[2025-03-05 00:00:05] Production.INFO: next invoice date [2025-03-05 00:00:05] Production.INFO: 2025-04-05 [2025-03-05 00:00:05] Production.INFO: getdaysdiff [2025-03-05 00:00:05] Production.INFO: +31 [2025-03-05 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (182,11,1,31,31,'RMScheduler',2025-03-05 00:00:05,0,0,,,0) [2025-03-05 00:00:05] Production.INFO: next invoice date [2025-03-05 00:00:05] Production.INFO: 2025-04-05 [2025-03-05 00:00:05] Production.INFO: getdaysdiff [2025-03-05 00:00:05] Production.INFO: +31 [2025-03-05 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (182,13,2,31,31,'RMScheduler',2025-03-05 00:00:05,0,0,,,0) [2025-03-05 00:00:05] Production.INFO: next invoice date [2025-03-05 00:00:05] Production.INFO: 2025-04-05 [2025-03-05 00:00:05] Production.INFO: getdaysdiff [2025-03-05 00:00:05] Production.INFO: +31 [2025-03-05 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (188,16,1,31,31,'RMScheduler',2025-03-05 00:00:05,0,0,,,0) [2025-03-05 00:00:05] Production.INFO: next invoice date [2025-03-05 00:00:05] Production.INFO: 2025-04-05 [2025-03-05 00:00:05] Production.INFO: getdaysdiff [2025-03-05 00:00:05] Production.INFO: +31 [2025-03-05 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (188,13,2,31,31,'RMScheduler',2025-03-05 00:00:05,0,0,,,0) [2025-03-05 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:00:06 [end_date_ymd] => 2025-03-05 00:00:06 [RateCDR] => 1 ) [2025-03-05 00: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-03-04 21:00:06' and `end` < '2025-03-05 00: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-03-05 00:00:18] Production.INFO: count ==781 [2025-03-05 00:00:19] Production.ERROR: pbx CDR StartTime 2025-03-04 21:00:06 - End Time 2025-03-05 00:00:06 [2025-03-05 00:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609325', 'tblTempUsageDetail_20' ) start [2025-03-05 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609325', 'tblTempUsageDetail_20' ) end [2025-03-05 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609325', 'tblTempVendorCDR_20' ) start [2025-03-05 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609325', 'tblTempVendorCDR_20' ) end [2025-03-05 00:00:19] Production.INFO: ProcessCDR(1,14609325,1,1,2) [2025-03-05 00:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609325', 'tblTempUsageDetail_20' ) start [2025-03-05 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609325', 'tblTempUsageDetail_20' ) end [2025-03-05 00:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:00:25] Production.INFO: ==2962== Releasing lock... [2025-03-05 00:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:00:25] Production.INFO: 35.75 MB #Memory Used# [2025-03-05 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:01:06 [end_date_ymd] => 2025-03-05 00:01:06 [RateCDR] => 1 ) [2025-03-05 00: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-03-04 21:01:06' and `end` < '2025-03-05 00: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-03-05 00:01:18] Production.INFO: count ==775 [2025-03-05 00:01:18] Production.ERROR: pbx CDR StartTime 2025-03-04 21:01:06 - End Time 2025-03-05 00:01:06 [2025-03-05 00:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609330', 'tblTempUsageDetail_20' ) start [2025-03-05 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609330', 'tblTempUsageDetail_20' ) end [2025-03-05 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609330', 'tblTempVendorCDR_20' ) start [2025-03-05 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609330', 'tblTempVendorCDR_20' ) end [2025-03-05 00:01:18] Production.INFO: ProcessCDR(1,14609330,1,1,2) [2025-03-05 00:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609330', 'tblTempUsageDetail_20' ) start [2025-03-05 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609330', 'tblTempUsageDetail_20' ) end [2025-03-05 00:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:01:21] Production.INFO: ==3097== Releasing lock... [2025-03-05 00:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:01:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-05 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:02:05 [end_date_ymd] => 2025-03-05 00:02:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 21:02:05' and `end` < '2025-03-05 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-03-05 00:02:20] Production.INFO: count ==305 [2025-03-05 00:02:20] Production.ERROR: pbx CDR StartTime 2025-03-04 21:02:05 - End Time 2025-03-05 00:02:05 [2025-03-05 00:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609335', 'tblTempUsageDetail_20' ) start [2025-03-05 00:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609335', 'tblTempUsageDetail_20' ) end [2025-03-05 00:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609335', 'tblTempVendorCDR_20' ) start [2025-03-05 00:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609335', 'tblTempVendorCDR_20' ) end [2025-03-05 00:02:20] Production.INFO: ProcessCDR(1,14609335,1,1,2) [2025-03-05 00:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609335', 'tblTempUsageDetail_20' ) start [2025-03-05 00:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609335', 'tblTempUsageDetail_20' ) end [2025-03-05 00:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:02:23] Production.INFO: ==3178== Releasing lock... [2025-03-05 00:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:02:23] Production.INFO: 31 MB #Memory Used# [2025-03-05 00:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:03:04 [end_date_ymd] => 2025-03-05 00:03:04 [RateCDR] => 1 ) [2025-03-05 00: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-03-04 21:03:04' and `end` < '2025-03-05 00: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-03-05 00:03:17] Production.INFO: count ==293 [2025-03-05 00:03:17] Production.ERROR: pbx CDR StartTime 2025-03-04 21:03:04 - End Time 2025-03-05 00:03:04 [2025-03-05 00:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609340', 'tblTempUsageDetail_20' ) start [2025-03-05 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609340', 'tblTempUsageDetail_20' ) end [2025-03-05 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609340', 'tblTempVendorCDR_20' ) start [2025-03-05 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609340', 'tblTempVendorCDR_20' ) end [2025-03-05 00:03:17] Production.INFO: ProcessCDR(1,14609340,1,1,2) [2025-03-05 00:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609340', 'tblTempUsageDetail_20' ) start [2025-03-05 00:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609340', 'tblTempUsageDetail_20' ) end [2025-03-05 00:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:03:20] Production.INFO: ==3255== Releasing lock... [2025-03-05 00:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:03:20] Production.INFO: 31 MB #Memory Used# [2025-03-05 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:04:05 [end_date_ymd] => 2025-03-05 00:04:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 21:04:05' and `end` < '2025-03-05 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-03-05 00:04:17] Production.INFO: count ==287 [2025-03-05 00:04:17] Production.ERROR: pbx CDR StartTime 2025-03-04 21:04:05 - End Time 2025-03-05 00:04:05 [2025-03-05 00:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609345', 'tblTempUsageDetail_20' ) start [2025-03-05 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609345', 'tblTempUsageDetail_20' ) end [2025-03-05 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609345', 'tblTempVendorCDR_20' ) start [2025-03-05 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609345', 'tblTempVendorCDR_20' ) end [2025-03-05 00:04:17] Production.INFO: ProcessCDR(1,14609345,1,1,2) [2025-03-05 00:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609345', 'tblTempUsageDetail_20' ) start [2025-03-05 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609345', 'tblTempUsageDetail_20' ) end [2025-03-05 00:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:04:21] Production.INFO: ==3330== Releasing lock... [2025-03-05 00:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:04:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-05 00:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:05:06 [end_date_ymd] => 2025-03-05 00:05:06 [RateCDR] => 1 ) [2025-03-05 00:05: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-03-04 21:05:06' and `end` < '2025-03-05 00:05: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-03-05 00:05:18] Production.INFO: count ==279 [2025-03-05 00:05:18] Production.ERROR: pbx CDR StartTime 2025-03-04 21:05:06 - End Time 2025-03-05 00:05:06 [2025-03-05 00:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609350', 'tblTempUsageDetail_20' ) start [2025-03-05 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609350', 'tblTempUsageDetail_20' ) end [2025-03-05 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609350', 'tblTempVendorCDR_20' ) start [2025-03-05 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609350', 'tblTempVendorCDR_20' ) end [2025-03-05 00:05:18] Production.INFO: ProcessCDR(1,14609350,1,1,2) [2025-03-05 00:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609350', 'tblTempUsageDetail_20' ) start [2025-03-05 00:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609350', 'tblTempUsageDetail_20' ) end [2025-03-05 00:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:05:21] Production.INFO: ==3412== Releasing lock... [2025-03-05 00:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:05:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:06:05 [end_date_ymd] => 2025-03-05 00:06:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 21:06:05' and `end` < '2025-03-05 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-03-05 00:06:17] Production.INFO: count ==266 [2025-03-05 00:06:17] Production.ERROR: pbx CDR StartTime 2025-03-04 21:06:05 - End Time 2025-03-05 00:06:05 [2025-03-05 00:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609355', 'tblTempUsageDetail_20' ) start [2025-03-05 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609355', 'tblTempUsageDetail_20' ) end [2025-03-05 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609355', 'tblTempVendorCDR_20' ) start [2025-03-05 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609355', 'tblTempVendorCDR_20' ) end [2025-03-05 00:06:17] Production.INFO: ProcessCDR(1,14609355,1,1,2) [2025-03-05 00:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609355', 'tblTempUsageDetail_20' ) start [2025-03-05 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609355', 'tblTempUsageDetail_20' ) end [2025-03-05 00:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:06:21] Production.INFO: ==3491== Releasing lock... [2025-03-05 00:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:06:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 00:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:07:06 [end_date_ymd] => 2025-03-05 00:07:06 [RateCDR] => 1 ) [2025-03-05 00: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-03-04 21:07:06' and `end` < '2025-03-05 00: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-03-05 00:07:18] Production.INFO: count ==255 [2025-03-05 00:07:18] Production.ERROR: pbx CDR StartTime 2025-03-04 21:07:06 - End Time 2025-03-05 00:07:06 [2025-03-05 00:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609360', 'tblTempUsageDetail_20' ) start [2025-03-05 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609360', 'tblTempUsageDetail_20' ) end [2025-03-05 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609360', 'tblTempVendorCDR_20' ) start [2025-03-05 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609360', 'tblTempVendorCDR_20' ) end [2025-03-05 00:07:18] Production.INFO: ProcessCDR(1,14609360,1,1,2) [2025-03-05 00:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609360', 'tblTempUsageDetail_20' ) start [2025-03-05 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609360', 'tblTempUsageDetail_20' ) end [2025-03-05 00:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:07:21] Production.INFO: ==3570== Releasing lock... [2025-03-05 00:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:07:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:08:05 [end_date_ymd] => 2025-03-05 00:08:05 [RateCDR] => 1 ) [2025-03-05 00: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-03-04 21:08:05' and `end` < '2025-03-05 00: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-03-05 00:08:17] Production.INFO: count ==244 [2025-03-05 00:08:17] Production.ERROR: pbx CDR StartTime 2025-03-04 21:08:05 - End Time 2025-03-05 00:08:05 [2025-03-05 00:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609365', 'tblTempUsageDetail_20' ) start [2025-03-05 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609365', 'tblTempUsageDetail_20' ) end [2025-03-05 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609365', 'tblTempVendorCDR_20' ) start [2025-03-05 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609365', 'tblTempVendorCDR_20' ) end [2025-03-05 00:08:17] Production.INFO: ProcessCDR(1,14609365,1,1,2) [2025-03-05 00:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609365', 'tblTempUsageDetail_20' ) start [2025-03-05 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609365', 'tblTempUsageDetail_20' ) end [2025-03-05 00:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:08:21] Production.INFO: ==3653== Releasing lock... [2025-03-05 00:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:08:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:09:05 [end_date_ymd] => 2025-03-05 00:09:05 [RateCDR] => 1 ) [2025-03-05 00: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-03-04 21:09:05' and `end` < '2025-03-05 00: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-03-05 00:09:17] Production.INFO: count ==231 [2025-03-05 00:09:18] Production.ERROR: pbx CDR StartTime 2025-03-04 21:09:05 - End Time 2025-03-05 00:09:05 [2025-03-05 00:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609370', 'tblTempUsageDetail_20' ) start [2025-03-05 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609370', 'tblTempUsageDetail_20' ) end [2025-03-05 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609370', 'tblTempVendorCDR_20' ) start [2025-03-05 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609370', 'tblTempVendorCDR_20' ) end [2025-03-05 00:09:18] Production.INFO: ProcessCDR(1,14609370,1,1,2) [2025-03-05 00:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609370', 'tblTempUsageDetail_20' ) start [2025-03-05 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609370', 'tblTempUsageDetail_20' ) end [2025-03-05 00:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:09:21] Production.INFO: ==3734== Releasing lock... [2025-03-05 00:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:09:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:10:05 [end_date_ymd] => 2025-03-05 00:10:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 21:10:05' and `end` < '2025-03-05 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-03-05 00:10:17] Production.INFO: count ==234 [2025-03-05 00:10:17] Production.ERROR: pbx CDR StartTime 2025-03-04 21:10:05 - End Time 2025-03-05 00:10:05 [2025-03-05 00:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609374', 'tblTempUsageDetail_20' ) start [2025-03-05 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609374', 'tblTempUsageDetail_20' ) end [2025-03-05 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609374', 'tblTempVendorCDR_20' ) start [2025-03-05 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609374', 'tblTempVendorCDR_20' ) end [2025-03-05 00:10:17] Production.INFO: ProcessCDR(1,14609374,1,1,2) [2025-03-05 00:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609374', 'tblTempUsageDetail_20' ) start [2025-03-05 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609374', 'tblTempUsageDetail_20' ) end [2025-03-05 00:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:10:21] Production.INFO: ==3822== Releasing lock... [2025-03-05 00:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:10:21] Production.INFO: 30 MB #Memory Used# [2025-03-05 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:11:05 [end_date_ymd] => 2025-03-05 00:11:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 21:11:05' and `end` < '2025-03-05 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-03-05 00:11:18] Production.INFO: count ==255 [2025-03-05 00:11:18] Production.ERROR: pbx CDR StartTime 2025-03-04 21:11:05 - End Time 2025-03-05 00:11:05 [2025-03-05 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609381', 'tblTempUsageDetail_20' ) start [2025-03-05 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609381', 'tblTempUsageDetail_20' ) end [2025-03-05 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609381', 'tblTempVendorCDR_20' ) start [2025-03-05 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609381', 'tblTempVendorCDR_20' ) end [2025-03-05 00:11:18] Production.INFO: ProcessCDR(1,14609381,1,1,2) [2025-03-05 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609381', 'tblTempUsageDetail_20' ) start [2025-03-05 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609381', 'tblTempUsageDetail_20' ) end [2025-03-05 00:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:11:21] Production.INFO: ==3915== Releasing lock... [2025-03-05 00:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:11:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:12:05 [end_date_ymd] => 2025-03-05 00:12:05 [RateCDR] => 1 ) [2025-03-05 00: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-03-04 21:12:05' and `end` < '2025-03-05 00: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-03-05 00:12:17] Production.INFO: count ==258 [2025-03-05 00:12:17] Production.ERROR: pbx CDR StartTime 2025-03-04 21:12:05 - End Time 2025-03-05 00:12:05 [2025-03-05 00:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609386', 'tblTempUsageDetail_20' ) start [2025-03-05 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609386', 'tblTempUsageDetail_20' ) end [2025-03-05 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609386', 'tblTempVendorCDR_20' ) start [2025-03-05 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609386', 'tblTempVendorCDR_20' ) end [2025-03-05 00:12:17] Production.INFO: ProcessCDR(1,14609386,1,1,2) [2025-03-05 00:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609386', 'tblTempUsageDetail_20' ) start [2025-03-05 00:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609386', 'tblTempUsageDetail_20' ) end [2025-03-05 00:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:12:20] Production.INFO: ==4005== Releasing lock... [2025-03-05 00:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:12:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 00:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:13:06 [end_date_ymd] => 2025-03-05 00:13:06 [RateCDR] => 1 ) [2025-03-05 00:13: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-03-04 21:13:06' and `end` < '2025-03-05 00:13: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-03-05 00:13:18] Production.INFO: count ==257 [2025-03-05 00:13:18] Production.ERROR: pbx CDR StartTime 2025-03-04 21:13:06 - End Time 2025-03-05 00:13:06 [2025-03-05 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609391', 'tblTempUsageDetail_20' ) start [2025-03-05 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609391', 'tblTempUsageDetail_20' ) end [2025-03-05 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609391', 'tblTempVendorCDR_20' ) start [2025-03-05 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609391', 'tblTempVendorCDR_20' ) end [2025-03-05 00:13:19] Production.INFO: ProcessCDR(1,14609391,1,1,2) [2025-03-05 00:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609391', 'tblTempUsageDetail_20' ) start [2025-03-05 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609391', 'tblTempUsageDetail_20' ) end [2025-03-05 00:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:13:22] Production.INFO: ==4097== Releasing lock... [2025-03-05 00:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:13:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 00:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:14:06 [end_date_ymd] => 2025-03-05 00:14:06 [RateCDR] => 1 ) [2025-03-05 00:14: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-03-04 21:14:06' and `end` < '2025-03-05 00:14: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-03-05 00:14:18] Production.INFO: count ==257 [2025-03-05 00:14:18] Production.ERROR: pbx CDR StartTime 2025-03-04 21:14:06 - End Time 2025-03-05 00:14:06 [2025-03-05 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609396', 'tblTempUsageDetail_20' ) start [2025-03-05 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609396', 'tblTempUsageDetail_20' ) end [2025-03-05 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609396', 'tblTempVendorCDR_20' ) start [2025-03-05 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609396', 'tblTempVendorCDR_20' ) end [2025-03-05 00:14:18] Production.INFO: ProcessCDR(1,14609396,1,1,2) [2025-03-05 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609396', 'tblTempUsageDetail_20' ) start [2025-03-05 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609396', 'tblTempUsageDetail_20' ) end [2025-03-05 00:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:14:21] Production.INFO: ==4196== Releasing lock... [2025-03-05 00:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:14:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:15:05 [end_date_ymd] => 2025-03-05 00:15:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 21:15:05' and `end` < '2025-03-05 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-03-05 00:15:17] Production.INFO: count ==253 [2025-03-05 00:15:17] Production.ERROR: pbx CDR StartTime 2025-03-04 21:15:05 - End Time 2025-03-05 00:15:05 [2025-03-05 00:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609401', 'tblTempUsageDetail_20' ) start [2025-03-05 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609401', 'tblTempUsageDetail_20' ) end [2025-03-05 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609401', 'tblTempVendorCDR_20' ) start [2025-03-05 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609401', 'tblTempVendorCDR_20' ) end [2025-03-05 00:15:17] Production.INFO: ProcessCDR(1,14609401,1,1,2) [2025-03-05 00:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609401', 'tblTempUsageDetail_20' ) start [2025-03-05 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609401', 'tblTempUsageDetail_20' ) end [2025-03-05 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:15:21] Production.INFO: ==4292== Releasing lock... [2025-03-05 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:15:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 00:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:16:06 [end_date_ymd] => 2025-03-05 00:16:06 [RateCDR] => 1 ) [2025-03-05 00:16: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-03-04 21:16:06' and `end` < '2025-03-05 00:16: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-03-05 00:16:18] Production.INFO: count ==255 [2025-03-05 00:16:18] Production.ERROR: pbx CDR StartTime 2025-03-04 21:16:06 - End Time 2025-03-05 00:16:06 [2025-03-05 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609406', 'tblTempUsageDetail_20' ) start [2025-03-05 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609406', 'tblTempUsageDetail_20' ) end [2025-03-05 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609406', 'tblTempVendorCDR_20' ) start [2025-03-05 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609406', 'tblTempVendorCDR_20' ) end [2025-03-05 00:16:18] Production.INFO: ProcessCDR(1,14609406,1,1,2) [2025-03-05 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609406', 'tblTempUsageDetail_20' ) start [2025-03-05 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609406', 'tblTempUsageDetail_20' ) end [2025-03-05 00:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:16:21] Production.INFO: ==4365== Releasing lock... [2025-03-05 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:16:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:17:05 [end_date_ymd] => 2025-03-05 00:17:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 21:17:05' and `end` < '2025-03-05 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-03-05 00:17:17] Production.INFO: count ==252 [2025-03-05 00:17:17] Production.ERROR: pbx CDR StartTime 2025-03-04 21:17:05 - End Time 2025-03-05 00:17:05 [2025-03-05 00:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609411', 'tblTempUsageDetail_20' ) start [2025-03-05 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609411', 'tblTempUsageDetail_20' ) end [2025-03-05 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609411', 'tblTempVendorCDR_20' ) start [2025-03-05 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609411', 'tblTempVendorCDR_20' ) end [2025-03-05 00:17:17] Production.INFO: ProcessCDR(1,14609411,1,1,2) [2025-03-05 00:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609411', 'tblTempUsageDetail_20' ) start [2025-03-05 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609411', 'tblTempUsageDetail_20' ) end [2025-03-05 00:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:17:20] Production.INFO: ==4478== Releasing lock... [2025-03-05 00:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:17:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 00:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:18:06 [end_date_ymd] => 2025-03-05 00:18:06 [RateCDR] => 1 ) [2025-03-05 00: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-03-04 21:18:06' and `end` < '2025-03-05 00: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-03-05 00:18:18] Production.INFO: count ==251 [2025-03-05 00:18:18] Production.ERROR: pbx CDR StartTime 2025-03-04 21:18:06 - End Time 2025-03-05 00:18:06 [2025-03-05 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609416', 'tblTempUsageDetail_20' ) start [2025-03-05 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609416', 'tblTempUsageDetail_20' ) end [2025-03-05 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609416', 'tblTempVendorCDR_20' ) start [2025-03-05 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609416', 'tblTempVendorCDR_20' ) end [2025-03-05 00:18:18] Production.INFO: ProcessCDR(1,14609416,1,1,2) [2025-03-05 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609416', 'tblTempUsageDetail_20' ) start [2025-03-05 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609416', 'tblTempUsageDetail_20' ) end [2025-03-05 00:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:18:21] Production.INFO: ==4563== Releasing lock... [2025-03-05 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:18:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:19:05 [end_date_ymd] => 2025-03-05 00:19:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 21:19:05' and `end` < '2025-03-05 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-03-05 00:19:17] Production.INFO: count ==251 [2025-03-05 00:19:17] Production.ERROR: pbx CDR StartTime 2025-03-04 21:19:05 - End Time 2025-03-05 00:19:05 [2025-03-05 00:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609421', 'tblTempUsageDetail_20' ) start [2025-03-05 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609421', 'tblTempUsageDetail_20' ) end [2025-03-05 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609421', 'tblTempVendorCDR_20' ) start [2025-03-05 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609421', 'tblTempVendorCDR_20' ) end [2025-03-05 00:19:17] Production.INFO: ProcessCDR(1,14609421,1,1,2) [2025-03-05 00:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609421', 'tblTempUsageDetail_20' ) start [2025-03-05 00:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609421', 'tblTempUsageDetail_20' ) end [2025-03-05 00:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:19:20] Production.INFO: ==4641== Releasing lock... [2025-03-05 00:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:19:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:20:06 [end_date_ymd] => 2025-03-05 00:20:06 [RateCDR] => 1 ) [2025-03-05 00: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-03-04 21:20:06' and `end` < '2025-03-05 00: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-03-05 00:20:18] Production.INFO: count ==260 [2025-03-05 00:20:18] Production.ERROR: pbx CDR StartTime 2025-03-04 21:20:06 - End Time 2025-03-05 00:20:06 [2025-03-05 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609427', 'tblTempUsageDetail_20' ) start [2025-03-05 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609427', 'tblTempUsageDetail_20' ) end [2025-03-05 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609427', 'tblTempVendorCDR_20' ) start [2025-03-05 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609427', 'tblTempVendorCDR_20' ) end [2025-03-05 00:20:18] Production.INFO: ProcessCDR(1,14609427,1,1,2) [2025-03-05 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609427', 'tblTempUsageDetail_20' ) start [2025-03-05 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609427', 'tblTempUsageDetail_20' ) end [2025-03-05 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:20:22] Production.INFO: ==4735== Releasing lock... [2025-03-05 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:20:22] Production.INFO: 31 MB #Memory Used# [2025-03-05 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:21:05 [end_date_ymd] => 2025-03-05 00:21:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 21:21:05' and `end` < '2025-03-05 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-03-05 00:21:17] Production.INFO: count ==272 [2025-03-05 00:21:17] Production.ERROR: pbx CDR StartTime 2025-03-04 21:21:05 - End Time 2025-03-05 00:21:05 [2025-03-05 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609432', 'tblTempUsageDetail_20' ) start [2025-03-05 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609432', 'tblTempUsageDetail_20' ) end [2025-03-05 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609432', 'tblTempVendorCDR_20' ) start [2025-03-05 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609432', 'tblTempVendorCDR_20' ) end [2025-03-05 00:21:17] Production.INFO: ProcessCDR(1,14609432,1,1,2) [2025-03-05 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609432', 'tblTempUsageDetail_20' ) start [2025-03-05 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609432', 'tblTempUsageDetail_20' ) end [2025-03-05 00:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:21:20] Production.INFO: ==4808== Releasing lock... [2025-03-05 00:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:21:20] Production.INFO: 31 MB #Memory Used# [2025-03-05 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:22:05 [end_date_ymd] => 2025-03-05 00:22:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 21:22:05' and `end` < '2025-03-05 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-03-05 00:22:17] Production.INFO: count ==272 [2025-03-05 00:22:17] Production.ERROR: pbx CDR StartTime 2025-03-04 21:22:05 - End Time 2025-03-05 00:22:05 [2025-03-05 00:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609437', 'tblTempUsageDetail_20' ) start [2025-03-05 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609437', 'tblTempUsageDetail_20' ) end [2025-03-05 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609437', 'tblTempVendorCDR_20' ) start [2025-03-05 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609437', 'tblTempVendorCDR_20' ) end [2025-03-05 00:22:17] Production.INFO: ProcessCDR(1,14609437,1,1,2) [2025-03-05 00:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609437', 'tblTempUsageDetail_20' ) start [2025-03-05 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609437', 'tblTempUsageDetail_20' ) end [2025-03-05 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:22:21] Production.INFO: ==4881== Releasing lock... [2025-03-05 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:22:21] Production.INFO: 31 MB #Memory Used# [2025-03-05 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:23:05 [end_date_ymd] => 2025-03-05 00:23:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 21:23:05' and `end` < '2025-03-05 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-03-05 00:23:17] Production.INFO: count ==271 [2025-03-05 00:23:17] Production.ERROR: pbx CDR StartTime 2025-03-04 21:23:05 - End Time 2025-03-05 00:23:05 [2025-03-05 00:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609442', 'tblTempUsageDetail_20' ) start [2025-03-05 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609442', 'tblTempUsageDetail_20' ) end [2025-03-05 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609442', 'tblTempVendorCDR_20' ) start [2025-03-05 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609442', 'tblTempVendorCDR_20' ) end [2025-03-05 00:23:17] Production.INFO: ProcessCDR(1,14609442,1,1,2) [2025-03-05 00:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609442', 'tblTempUsageDetail_20' ) start [2025-03-05 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609442', 'tblTempUsageDetail_20' ) end [2025-03-05 00:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:23:20] Production.INFO: ==4956== Releasing lock... [2025-03-05 00:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:23:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 00:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:24:06 [end_date_ymd] => 2025-03-05 00:24:06 [RateCDR] => 1 ) [2025-03-05 00: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-03-04 21:24:06' and `end` < '2025-03-05 00: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-03-05 00:24:18] Production.INFO: count ==276 [2025-03-05 00:24:18] Production.ERROR: pbx CDR StartTime 2025-03-04 21:24:06 - End Time 2025-03-05 00:24:06 [2025-03-05 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609447', 'tblTempUsageDetail_20' ) start [2025-03-05 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609447', 'tblTempUsageDetail_20' ) end [2025-03-05 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609447', 'tblTempVendorCDR_20' ) start [2025-03-05 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609447', 'tblTempVendorCDR_20' ) end [2025-03-05 00:24:18] Production.INFO: ProcessCDR(1,14609447,1,1,2) [2025-03-05 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609447', 'tblTempUsageDetail_20' ) start [2025-03-05 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609447', 'tblTempUsageDetail_20' ) end [2025-03-05 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:24:21] Production.INFO: ==5030== Releasing lock... [2025-03-05 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:24:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:25:05 [end_date_ymd] => 2025-03-05 00:25:05 [RateCDR] => 1 ) [2025-03-05 00: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-03-04 21:25:05' and `end` < '2025-03-05 00: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-03-05 00:25:17] Production.INFO: count ==274 [2025-03-05 00:25:17] Production.ERROR: pbx CDR StartTime 2025-03-04 21:25:05 - End Time 2025-03-05 00:25:05 [2025-03-05 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609452', 'tblTempUsageDetail_20' ) start [2025-03-05 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609452', 'tblTempUsageDetail_20' ) end [2025-03-05 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609452', 'tblTempVendorCDR_20' ) start [2025-03-05 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609452', 'tblTempVendorCDR_20' ) end [2025-03-05 00:25:17] Production.INFO: ProcessCDR(1,14609452,1,1,2) [2025-03-05 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609452', 'tblTempUsageDetail_20' ) start [2025-03-05 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609452', 'tblTempUsageDetail_20' ) end [2025-03-05 00:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:25:20] Production.INFO: ==5102== Releasing lock... [2025-03-05 00:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:25:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:26:05 [end_date_ymd] => 2025-03-05 00:26:05 [RateCDR] => 1 ) [2025-03-05 00: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-03-04 21:26:05' and `end` < '2025-03-05 00: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-03-05 00:26:17] Production.INFO: count ==273 [2025-03-05 00:26:17] Production.ERROR: pbx CDR StartTime 2025-03-04 21:26:05 - End Time 2025-03-05 00:26:05 [2025-03-05 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609457', 'tblTempUsageDetail_20' ) start [2025-03-05 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609457', 'tblTempUsageDetail_20' ) end [2025-03-05 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609457', 'tblTempVendorCDR_20' ) start [2025-03-05 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609457', 'tblTempVendorCDR_20' ) end [2025-03-05 00:26:17] Production.INFO: ProcessCDR(1,14609457,1,1,2) [2025-03-05 00:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609457', 'tblTempUsageDetail_20' ) start [2025-03-05 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609457', 'tblTempUsageDetail_20' ) end [2025-03-05 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:26:21] Production.INFO: ==5180== Releasing lock... [2025-03-05 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:26:21] Production.INFO: 31 MB #Memory Used# [2025-03-05 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:27:05 [end_date_ymd] => 2025-03-05 00:27:05 [RateCDR] => 1 ) [2025-03-05 00: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-03-04 21:27:05' and `end` < '2025-03-05 00: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-03-05 00:27:17] Production.INFO: count ==275 [2025-03-05 00:27:17] Production.ERROR: pbx CDR StartTime 2025-03-04 21:27:05 - End Time 2025-03-05 00:27:05 [2025-03-05 00:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609462', 'tblTempUsageDetail_20' ) start [2025-03-05 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609462', 'tblTempUsageDetail_20' ) end [2025-03-05 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609462', 'tblTempVendorCDR_20' ) start [2025-03-05 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609462', 'tblTempVendorCDR_20' ) end [2025-03-05 00:27:17] Production.INFO: ProcessCDR(1,14609462,1,1,2) [2025-03-05 00:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609462', 'tblTempUsageDetail_20' ) start [2025-03-05 00:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609462', 'tblTempUsageDetail_20' ) end [2025-03-05 00:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:27:20] Production.INFO: ==5259== Releasing lock... [2025-03-05 00:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:27:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:28:05 [end_date_ymd] => 2025-03-05 00:28:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 21:28:05' and `end` < '2025-03-05 00: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-03-05 00:28:17] Production.INFO: count ==275 [2025-03-05 00:28:17] Production.ERROR: pbx CDR StartTime 2025-03-04 21:28:05 - End Time 2025-03-05 00:28:05 [2025-03-05 00:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609467', 'tblTempUsageDetail_20' ) start [2025-03-05 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609467', 'tblTempUsageDetail_20' ) end [2025-03-05 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609467', 'tblTempVendorCDR_20' ) start [2025-03-05 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609467', 'tblTempVendorCDR_20' ) end [2025-03-05 00:28:17] Production.INFO: ProcessCDR(1,14609467,1,1,2) [2025-03-05 00:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609467', 'tblTempUsageDetail_20' ) start [2025-03-05 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609467', 'tblTempUsageDetail_20' ) end [2025-03-05 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:28:21] Production.INFO: ==5334== Releasing lock... [2025-03-05 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:28:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:29:05 [end_date_ymd] => 2025-03-05 00:29:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 21:29:05' and `end` < '2025-03-05 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-03-05 00:29:17] Production.INFO: count ==273 [2025-03-05 00:29:17] Production.ERROR: pbx CDR StartTime 2025-03-04 21:29:05 - End Time 2025-03-05 00:29:05 [2025-03-05 00:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609472', 'tblTempUsageDetail_20' ) start [2025-03-05 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609472', 'tblTempUsageDetail_20' ) end [2025-03-05 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609472', 'tblTempVendorCDR_20' ) start [2025-03-05 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609472', 'tblTempVendorCDR_20' ) end [2025-03-05 00:29:17] Production.INFO: ProcessCDR(1,14609472,1,1,2) [2025-03-05 00:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609472', 'tblTempUsageDetail_20' ) start [2025-03-05 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609472', 'tblTempUsageDetail_20' ) end [2025-03-05 00:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:29:20] Production.INFO: ==5406== Releasing lock... [2025-03-05 00:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:29:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:30:06 [end_date_ymd] => 2025-03-05 00:30:06 [RateCDR] => 1 ) [2025-03-05 00: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-03-04 21:30:06' and `end` < '2025-03-05 00: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-03-05 00:30:18] Production.INFO: count ==278 [2025-03-05 00:30:18] Production.ERROR: pbx CDR StartTime 2025-03-04 21:30:06 - End Time 2025-03-05 00:30:06 [2025-03-05 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609477', 'tblTempUsageDetail_20' ) start [2025-03-05 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609477', 'tblTempUsageDetail_20' ) end [2025-03-05 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609477', 'tblTempVendorCDR_20' ) start [2025-03-05 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609477', 'tblTempVendorCDR_20' ) end [2025-03-05 00:30:18] Production.INFO: ProcessCDR(1,14609477,1,1,2) [2025-03-05 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609477', 'tblTempUsageDetail_20' ) start [2025-03-05 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609477', 'tblTempUsageDetail_20' ) end [2025-03-05 00:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:30:22] Production.INFO: ==5491== Releasing lock... [2025-03-05 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:30:22] Production.INFO: 31 MB #Memory Used# [2025-03-05 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:31:05 [end_date_ymd] => 2025-03-05 00:31:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 21:31:05' and `end` < '2025-03-05 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-03-05 00:31:17] Production.INFO: count ==278 [2025-03-05 00:31:17] Production.ERROR: pbx CDR StartTime 2025-03-04 21:31:05 - End Time 2025-03-05 00:31:05 [2025-03-05 00:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609483', 'tblTempUsageDetail_20' ) start [2025-03-05 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609483', 'tblTempUsageDetail_20' ) end [2025-03-05 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609483', 'tblTempVendorCDR_20' ) start [2025-03-05 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609483', 'tblTempVendorCDR_20' ) end [2025-03-05 00:31:17] Production.INFO: ProcessCDR(1,14609483,1,1,2) [2025-03-05 00:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609483', 'tblTempUsageDetail_20' ) start [2025-03-05 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609483', 'tblTempUsageDetail_20' ) end [2025-03-05 00:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:31:20] Production.INFO: ==5565== Releasing lock... [2025-03-05 00:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:31:20] Production.INFO: 31 MB #Memory Used# [2025-03-05 00:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:32:06 [end_date_ymd] => 2025-03-05 00:32:06 [RateCDR] => 1 ) [2025-03-05 00: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-03-04 21:32:06' and `end` < '2025-03-05 00: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-03-05 00:32:18] Production.INFO: count ==270 [2025-03-05 00:32:18] Production.ERROR: pbx CDR StartTime 2025-03-04 21:32:06 - End Time 2025-03-05 00:32:06 [2025-03-05 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609488', 'tblTempUsageDetail_20' ) start [2025-03-05 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609488', 'tblTempUsageDetail_20' ) end [2025-03-05 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609488', 'tblTempVendorCDR_20' ) start [2025-03-05 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609488', 'tblTempVendorCDR_20' ) end [2025-03-05 00:32:18] Production.INFO: ProcessCDR(1,14609488,1,1,2) [2025-03-05 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609488', 'tblTempUsageDetail_20' ) start [2025-03-05 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609488', 'tblTempUsageDetail_20' ) end [2025-03-05 00:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:32:22] Production.INFO: ==5679== Releasing lock... [2025-03-05 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:32:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-05 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:33:05 [end_date_ymd] => 2025-03-05 00:33:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 21:33:05' and `end` < '2025-03-05 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-03-05 00:33:17] Production.INFO: count ==266 [2025-03-05 00:33:17] Production.ERROR: pbx CDR StartTime 2025-03-04 21:33:05 - End Time 2025-03-05 00:33:05 [2025-03-05 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609493', 'tblTempUsageDetail_20' ) start [2025-03-05 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609493', 'tblTempUsageDetail_20' ) end [2025-03-05 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609493', 'tblTempVendorCDR_20' ) start [2025-03-05 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609493', 'tblTempVendorCDR_20' ) end [2025-03-05 00:33:17] Production.INFO: ProcessCDR(1,14609493,1,1,2) [2025-03-05 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609493', 'tblTempUsageDetail_20' ) start [2025-03-05 00:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609493', 'tblTempUsageDetail_20' ) end [2025-03-05 00:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:33:20] Production.INFO: ==5755== Releasing lock... [2025-03-05 00:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:33:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 00:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:34:06 [end_date_ymd] => 2025-03-05 00:34:06 [RateCDR] => 1 ) [2025-03-05 00: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-03-04 21:34:06' and `end` < '2025-03-05 00: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-03-05 00:34:18] Production.INFO: count ==262 [2025-03-05 00:34:18] Production.ERROR: pbx CDR StartTime 2025-03-04 21:34:06 - End Time 2025-03-05 00:34:06 [2025-03-05 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609498', 'tblTempUsageDetail_20' ) start [2025-03-05 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609498', 'tblTempUsageDetail_20' ) end [2025-03-05 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609498', 'tblTempVendorCDR_20' ) start [2025-03-05 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609498', 'tblTempVendorCDR_20' ) end [2025-03-05 00:34:18] Production.INFO: ProcessCDR(1,14609498,1,1,2) [2025-03-05 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609498', 'tblTempUsageDetail_20' ) start [2025-03-05 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609498', 'tblTempUsageDetail_20' ) end [2025-03-05 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:34:21] Production.INFO: ==5832== Releasing lock... [2025-03-05 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:34:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:35:05 [end_date_ymd] => 2025-03-05 00:35:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 21:35:05' and `end` < '2025-03-05 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-03-05 00:35:17] Production.INFO: count ==262 [2025-03-05 00:35:17] Production.ERROR: pbx CDR StartTime 2025-03-04 21:35:05 - End Time 2025-03-05 00:35:05 [2025-03-05 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609503', 'tblTempUsageDetail_20' ) start [2025-03-05 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609503', 'tblTempUsageDetail_20' ) end [2025-03-05 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609503', 'tblTempVendorCDR_20' ) start [2025-03-05 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609503', 'tblTempVendorCDR_20' ) end [2025-03-05 00:35:17] Production.INFO: ProcessCDR(1,14609503,1,1,2) [2025-03-05 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609503', 'tblTempUsageDetail_20' ) start [2025-03-05 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609503', 'tblTempUsageDetail_20' ) end [2025-03-05 00:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:35:20] Production.INFO: ==5906== Releasing lock... [2025-03-05 00:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:35:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 00:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:36:06 [end_date_ymd] => 2025-03-05 00:36:06 [RateCDR] => 1 ) [2025-03-05 00:36: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-03-04 21:36:06' and `end` < '2025-03-05 00:36: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-03-05 00:36:18] Production.INFO: count ==262 [2025-03-05 00:36:18] Production.ERROR: pbx CDR StartTime 2025-03-04 21:36:06 - End Time 2025-03-05 00:36:06 [2025-03-05 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609508', 'tblTempUsageDetail_20' ) start [2025-03-05 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609508', 'tblTempUsageDetail_20' ) end [2025-03-05 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609508', 'tblTempVendorCDR_20' ) start [2025-03-05 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609508', 'tblTempVendorCDR_20' ) end [2025-03-05 00:36:18] Production.INFO: ProcessCDR(1,14609508,1,1,2) [2025-03-05 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609508', 'tblTempUsageDetail_20' ) start [2025-03-05 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609508', 'tblTempUsageDetail_20' ) end [2025-03-05 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:36:21] Production.INFO: ==5984== Releasing lock... [2025-03-05 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:36:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:37:05 [end_date_ymd] => 2025-03-05 00:37:05 [RateCDR] => 1 ) [2025-03-05 00: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-03-04 21:37:05' and `end` < '2025-03-05 00: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-03-05 00:37:17] Production.INFO: count ==262 [2025-03-05 00:37:17] Production.ERROR: pbx CDR StartTime 2025-03-04 21:37:05 - End Time 2025-03-05 00:37:05 [2025-03-05 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609513', 'tblTempUsageDetail_20' ) start [2025-03-05 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609513', 'tblTempUsageDetail_20' ) end [2025-03-05 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609513', 'tblTempVendorCDR_20' ) start [2025-03-05 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609513', 'tblTempVendorCDR_20' ) end [2025-03-05 00:37:17] Production.INFO: ProcessCDR(1,14609513,1,1,2) [2025-03-05 00:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609513', 'tblTempUsageDetail_20' ) start [2025-03-05 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609513', 'tblTempUsageDetail_20' ) end [2025-03-05 00:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:37:20] Production.INFO: ==6058== Releasing lock... [2025-03-05 00:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:37:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 00:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:38:06 [end_date_ymd] => 2025-03-05 00:38:06 [RateCDR] => 1 ) [2025-03-05 00:38: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-03-04 21:38:06' and `end` < '2025-03-05 00:38: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-03-05 00:38:18] Production.INFO: count ==262 [2025-03-05 00:38:18] Production.ERROR: pbx CDR StartTime 2025-03-04 21:38:06 - End Time 2025-03-05 00:38:06 [2025-03-05 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609518', 'tblTempUsageDetail_20' ) start [2025-03-05 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609518', 'tblTempUsageDetail_20' ) end [2025-03-05 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609518', 'tblTempVendorCDR_20' ) start [2025-03-05 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609518', 'tblTempVendorCDR_20' ) end [2025-03-05 00:38:18] Production.INFO: ProcessCDR(1,14609518,1,1,2) [2025-03-05 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609518', 'tblTempUsageDetail_20' ) start [2025-03-05 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609518', 'tblTempUsageDetail_20' ) end [2025-03-05 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:38:21] Production.INFO: ==6134== Releasing lock... [2025-03-05 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:38:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:39:05 [end_date_ymd] => 2025-03-05 00:39:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 21:39:05' and `end` < '2025-03-05 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-03-05 00:39:17] Production.INFO: count ==262 [2025-03-05 00:39:18] Production.ERROR: pbx CDR StartTime 2025-03-04 21:39:05 - End Time 2025-03-05 00:39:05 [2025-03-05 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609523', 'tblTempUsageDetail_20' ) start [2025-03-05 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609523', 'tblTempUsageDetail_20' ) end [2025-03-05 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609523', 'tblTempVendorCDR_20' ) start [2025-03-05 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609523', 'tblTempVendorCDR_20' ) end [2025-03-05 00:39:18] Production.INFO: ProcessCDR(1,14609523,1,1,2) [2025-03-05 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609523', 'tblTempUsageDetail_20' ) start [2025-03-05 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609523', 'tblTempUsageDetail_20' ) end [2025-03-05 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:39:21] Production.INFO: ==6208== Releasing lock... [2025-03-05 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:39:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:40:06 [end_date_ymd] => 2025-03-05 00:40:06 [RateCDR] => 1 ) [2025-03-05 00: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-03-04 21:40:06' and `end` < '2025-03-05 00: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-03-05 00:40:18] Production.INFO: count ==270 [2025-03-05 00:40:18] Production.ERROR: pbx CDR StartTime 2025-03-04 21:40:06 - End Time 2025-03-05 00:40:06 [2025-03-05 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609529', 'tblTempUsageDetail_20' ) start [2025-03-05 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609529', 'tblTempUsageDetail_20' ) end [2025-03-05 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609529', 'tblTempVendorCDR_20' ) start [2025-03-05 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609529', 'tblTempVendorCDR_20' ) end [2025-03-05 00:40:18] Production.INFO: ProcessCDR(1,14609529,1,1,2) [2025-03-05 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609529', 'tblTempUsageDetail_20' ) start [2025-03-05 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609529', 'tblTempUsageDetail_20' ) end [2025-03-05 00:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:40:22] Production.INFO: ==6287== Releasing lock... [2025-03-05 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:40:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 00:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:41:06 [end_date_ymd] => 2025-03-05 00:41:06 [RateCDR] => 1 ) [2025-03-05 00:41: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-03-04 21:41:06' and `end` < '2025-03-05 00:41: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-03-05 00:41:17] Production.INFO: count ==275 [2025-03-05 00:41:18] Production.ERROR: pbx CDR StartTime 2025-03-04 21:41:06 - End Time 2025-03-05 00:41:06 [2025-03-05 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609534', 'tblTempUsageDetail_20' ) start [2025-03-05 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609534', 'tblTempUsageDetail_20' ) end [2025-03-05 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609534', 'tblTempVendorCDR_20' ) start [2025-03-05 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609534', 'tblTempVendorCDR_20' ) end [2025-03-05 00:41:18] Production.INFO: ProcessCDR(1,14609534,1,1,2) [2025-03-05 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609534', 'tblTempUsageDetail_20' ) start [2025-03-05 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609534', 'tblTempUsageDetail_20' ) end [2025-03-05 00:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:41:22] Production.INFO: ==6367== Releasing lock... [2025-03-05 00:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:41:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:42:05 [end_date_ymd] => 2025-03-05 00:42:05 [RateCDR] => 1 ) [2025-03-05 00: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-03-04 21:42:05' and `end` < '2025-03-05 00: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-03-05 00:42:17] Production.INFO: count ==275 [2025-03-05 00:42:17] Production.ERROR: pbx CDR StartTime 2025-03-04 21:42:05 - End Time 2025-03-05 00:42:05 [2025-03-05 00:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609539', 'tblTempUsageDetail_20' ) start [2025-03-05 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609539', 'tblTempUsageDetail_20' ) end [2025-03-05 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609539', 'tblTempVendorCDR_20' ) start [2025-03-05 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609539', 'tblTempVendorCDR_20' ) end [2025-03-05 00:42:17] Production.INFO: ProcessCDR(1,14609539,1,1,2) [2025-03-05 00:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609539', 'tblTempUsageDetail_20' ) start [2025-03-05 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609539', 'tblTempUsageDetail_20' ) end [2025-03-05 00:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:42:20] Production.INFO: ==6444== Releasing lock... [2025-03-05 00:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:42:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:43:05 [end_date_ymd] => 2025-03-05 00:43:05 [RateCDR] => 1 ) [2025-03-05 00: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-03-04 21:43:05' and `end` < '2025-03-05 00: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-03-05 00:43:17] Production.INFO: count ==268 [2025-03-05 00:43:17] Production.ERROR: pbx CDR StartTime 2025-03-04 21:43:05 - End Time 2025-03-05 00:43:05 [2025-03-05 00:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609544', 'tblTempUsageDetail_20' ) start [2025-03-05 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609544', 'tblTempUsageDetail_20' ) end [2025-03-05 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609544', 'tblTempVendorCDR_20' ) start [2025-03-05 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609544', 'tblTempVendorCDR_20' ) end [2025-03-05 00:43:17] Production.INFO: ProcessCDR(1,14609544,1,1,2) [2025-03-05 00:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609544', 'tblTempUsageDetail_20' ) start [2025-03-05 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609544', 'tblTempUsageDetail_20' ) end [2025-03-05 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:43:21] Production.INFO: ==6516== Releasing lock... [2025-03-05 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:43:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:44:05 [end_date_ymd] => 2025-03-05 00:44:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 21:44:05' and `end` < '2025-03-05 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-03-05 00:44:17] Production.INFO: count ==267 [2025-03-05 00:44:17] Production.ERROR: pbx CDR StartTime 2025-03-04 21:44:05 - End Time 2025-03-05 00:44:05 [2025-03-05 00:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609549', 'tblTempUsageDetail_20' ) start [2025-03-05 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609549', 'tblTempUsageDetail_20' ) end [2025-03-05 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609549', 'tblTempVendorCDR_20' ) start [2025-03-05 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609549', 'tblTempVendorCDR_20' ) end [2025-03-05 00:44:17] Production.INFO: ProcessCDR(1,14609549,1,1,2) [2025-03-05 00:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609549', 'tblTempUsageDetail_20' ) start [2025-03-05 00:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609549', 'tblTempUsageDetail_20' ) end [2025-03-05 00:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:44:20] Production.INFO: ==6593== Releasing lock... [2025-03-05 00:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:44:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 00:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:45:06 [end_date_ymd] => 2025-03-05 00:45:06 [RateCDR] => 1 ) [2025-03-05 00: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-03-04 21:45:06' and `end` < '2025-03-05 00: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-03-05 00:45:18] Production.INFO: count ==266 [2025-03-05 00:45:18] Production.ERROR: pbx CDR StartTime 2025-03-04 21:45:06 - End Time 2025-03-05 00:45:06 [2025-03-05 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609554', 'tblTempUsageDetail_20' ) start [2025-03-05 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609554', 'tblTempUsageDetail_20' ) end [2025-03-05 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609554', 'tblTempVendorCDR_20' ) start [2025-03-05 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609554', 'tblTempVendorCDR_20' ) end [2025-03-05 00:45:18] Production.INFO: ProcessCDR(1,14609554,1,1,2) [2025-03-05 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609554', 'tblTempUsageDetail_20' ) start [2025-03-05 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609554', 'tblTempUsageDetail_20' ) end [2025-03-05 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:45:21] Production.INFO: ==6670== Releasing lock... [2025-03-05 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:45:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:46:05 [end_date_ymd] => 2025-03-05 00:46:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 21:46:05' and `end` < '2025-03-05 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-03-05 00:46:17] Production.INFO: count ==266 [2025-03-05 00:46:17] Production.ERROR: pbx CDR StartTime 2025-03-04 21:46:05 - End Time 2025-03-05 00:46:05 [2025-03-05 00:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609559', 'tblTempUsageDetail_20' ) start [2025-03-05 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609559', 'tblTempUsageDetail_20' ) end [2025-03-05 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609559', 'tblTempVendorCDR_20' ) start [2025-03-05 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609559', 'tblTempVendorCDR_20' ) end [2025-03-05 00:46:17] Production.INFO: ProcessCDR(1,14609559,1,1,2) [2025-03-05 00:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609559', 'tblTempUsageDetail_20' ) start [2025-03-05 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609559', 'tblTempUsageDetail_20' ) end [2025-03-05 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:46:21] Production.INFO: ==6745== Releasing lock... [2025-03-05 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:46:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:47:05 [end_date_ymd] => 2025-03-05 00:47:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 21:47:05' and `end` < '2025-03-05 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-03-05 00:47:17] Production.INFO: count ==259 [2025-03-05 00:47:17] Production.ERROR: pbx CDR StartTime 2025-03-04 21:47:05 - End Time 2025-03-05 00:47:05 [2025-03-05 00:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609564', 'tblTempUsageDetail_20' ) start [2025-03-05 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609564', 'tblTempUsageDetail_20' ) end [2025-03-05 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609564', 'tblTempVendorCDR_20' ) start [2025-03-05 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609564', 'tblTempVendorCDR_20' ) end [2025-03-05 00:47:17] Production.INFO: ProcessCDR(1,14609564,1,1,2) [2025-03-05 00:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609564', 'tblTempUsageDetail_20' ) start [2025-03-05 00:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609564', 'tblTempUsageDetail_20' ) end [2025-03-05 00:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:47:20] Production.INFO: ==6819== Releasing lock... [2025-03-05 00:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:47:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:48:05 [end_date_ymd] => 2025-03-05 00:48:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 21:48:05' and `end` < '2025-03-05 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-03-05 00:48:17] Production.INFO: count ==259 [2025-03-05 00:48:17] Production.ERROR: pbx CDR StartTime 2025-03-04 21:48:05 - End Time 2025-03-05 00:48:05 [2025-03-05 00:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609569', 'tblTempUsageDetail_20' ) start [2025-03-05 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609569', 'tblTempUsageDetail_20' ) end [2025-03-05 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609569', 'tblTempVendorCDR_20' ) start [2025-03-05 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609569', 'tblTempVendorCDR_20' ) end [2025-03-05 00:48:17] Production.INFO: ProcessCDR(1,14609569,1,1,2) [2025-03-05 00:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609569', 'tblTempUsageDetail_20' ) start [2025-03-05 00:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609569', 'tblTempUsageDetail_20' ) end [2025-03-05 00:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:48:20] Production.INFO: ==6937== Releasing lock... [2025-03-05 00:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:48:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:49:05 [end_date_ymd] => 2025-03-05 00:49:05 [RateCDR] => 1 ) [2025-03-05 00: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-03-04 21:49:05' and `end` < '2025-03-05 00: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-03-05 00:49:17] Production.INFO: count ==258 [2025-03-05 00:49:17] Production.ERROR: pbx CDR StartTime 2025-03-04 21:49:05 - End Time 2025-03-05 00:49:05 [2025-03-05 00:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609574', 'tblTempUsageDetail_20' ) start [2025-03-05 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609574', 'tblTempUsageDetail_20' ) end [2025-03-05 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609574', 'tblTempVendorCDR_20' ) start [2025-03-05 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609574', 'tblTempVendorCDR_20' ) end [2025-03-05 00:49:17] Production.INFO: ProcessCDR(1,14609574,1,1,2) [2025-03-05 00:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609574', 'tblTempUsageDetail_20' ) start [2025-03-05 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609574', 'tblTempUsageDetail_20' ) end [2025-03-05 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:49:21] Production.INFO: ==7016== Releasing lock... [2025-03-05 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:49:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:50:06 [end_date_ymd] => 2025-03-05 00:50:06 [RateCDR] => 1 ) [2025-03-05 00: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-03-04 21:50:06' and `end` < '2025-03-05 00: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-03-05 00:50:18] Production.INFO: count ==264 [2025-03-05 00:50:18] Production.ERROR: pbx CDR StartTime 2025-03-04 21:50:06 - End Time 2025-03-05 00:50:06 [2025-03-05 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609579', 'tblTempUsageDetail_20' ) start [2025-03-05 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609579', 'tblTempUsageDetail_20' ) end [2025-03-05 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609579', 'tblTempVendorCDR_20' ) start [2025-03-05 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609579', 'tblTempVendorCDR_20' ) end [2025-03-05 00:50:18] Production.INFO: ProcessCDR(1,14609579,1,1,2) [2025-03-05 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609579', 'tblTempUsageDetail_20' ) start [2025-03-05 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609579', 'tblTempUsageDetail_20' ) end [2025-03-05 00:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:50:21] Production.INFO: ==7095== Releasing lock... [2025-03-05 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:50:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:51:05 [end_date_ymd] => 2025-03-05 00:51:05 [RateCDR] => 1 ) [2025-03-05 00: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-03-04 21:51:05' and `end` < '2025-03-05 00: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-03-05 00:51:17] Production.INFO: count ==276 [2025-03-05 00:51:17] Production.ERROR: pbx CDR StartTime 2025-03-04 21:51:05 - End Time 2025-03-05 00:51:05 [2025-03-05 00:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609585', 'tblTempUsageDetail_20' ) start [2025-03-05 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609585', 'tblTempUsageDetail_20' ) end [2025-03-05 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609585', 'tblTempVendorCDR_20' ) start [2025-03-05 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609585', 'tblTempVendorCDR_20' ) end [2025-03-05 00:51:17] Production.INFO: ProcessCDR(1,14609585,1,1,2) [2025-03-05 00:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609585', 'tblTempUsageDetail_20' ) start [2025-03-05 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609585', 'tblTempUsageDetail_20' ) end [2025-03-05 00:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:51:20] Production.INFO: ==7173== Releasing lock... [2025-03-05 00:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:51:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 00:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:52:06 [end_date_ymd] => 2025-03-05 00:52:06 [RateCDR] => 1 ) [2025-03-05 00: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-03-04 21:52:06' and `end` < '2025-03-05 00: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-03-05 00:52:18] Production.INFO: count ==273 [2025-03-05 00:52:18] Production.ERROR: pbx CDR StartTime 2025-03-04 21:52:06 - End Time 2025-03-05 00:52:06 [2025-03-05 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609590', 'tblTempUsageDetail_20' ) start [2025-03-05 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609590', 'tblTempUsageDetail_20' ) end [2025-03-05 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609590', 'tblTempVendorCDR_20' ) start [2025-03-05 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609590', 'tblTempVendorCDR_20' ) end [2025-03-05 00:52:18] Production.INFO: ProcessCDR(1,14609590,1,1,2) [2025-03-05 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609590', 'tblTempUsageDetail_20' ) start [2025-03-05 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609590', 'tblTempUsageDetail_20' ) end [2025-03-05 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:52:21] Production.INFO: ==7287== Releasing lock... [2025-03-05 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:52:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-05 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:53:05 [end_date_ymd] => 2025-03-05 00:53:05 [RateCDR] => 1 ) [2025-03-05 00: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-03-04 21:53:05' and `end` < '2025-03-05 00: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-03-05 00:53:17] Production.INFO: count ==272 [2025-03-05 00:53:17] Production.ERROR: pbx CDR StartTime 2025-03-04 21:53:05 - End Time 2025-03-05 00:53:05 [2025-03-05 00:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609595', 'tblTempUsageDetail_20' ) start [2025-03-05 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609595', 'tblTempUsageDetail_20' ) end [2025-03-05 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609595', 'tblTempVendorCDR_20' ) start [2025-03-05 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609595', 'tblTempVendorCDR_20' ) end [2025-03-05 00:53:17] Production.INFO: ProcessCDR(1,14609595,1,1,2) [2025-03-05 00:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609595', 'tblTempUsageDetail_20' ) start [2025-03-05 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609595', 'tblTempUsageDetail_20' ) end [2025-03-05 00:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:53:20] Production.INFO: ==7364== Releasing lock... [2025-03-05 00:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:53:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-05 00:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:54:06 [end_date_ymd] => 2025-03-05 00:54:06 [RateCDR] => 1 ) [2025-03-05 00:54: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-03-04 21:54:06' and `end` < '2025-03-05 00:54: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-03-05 00:54:18] Production.INFO: count ==271 [2025-03-05 00:54:18] Production.ERROR: pbx CDR StartTime 2025-03-04 21:54:06 - End Time 2025-03-05 00:54:06 [2025-03-05 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609600', 'tblTempUsageDetail_20' ) start [2025-03-05 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609600', 'tblTempUsageDetail_20' ) end [2025-03-05 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609600', 'tblTempVendorCDR_20' ) start [2025-03-05 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609600', 'tblTempVendorCDR_20' ) end [2025-03-05 00:54:18] Production.INFO: ProcessCDR(1,14609600,1,1,2) [2025-03-05 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609600', 'tblTempUsageDetail_20' ) start [2025-03-05 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609600', 'tblTempUsageDetail_20' ) end [2025-03-05 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:54:21] Production.INFO: ==7440== Releasing lock... [2025-03-05 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:54:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 00:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:55:06 [end_date_ymd] => 2025-03-05 00:55:06 [RateCDR] => 1 ) [2025-03-05 00:55: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-03-04 21:55:06' and `end` < '2025-03-05 00:55: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-03-05 00:55:18] Production.INFO: count ==271 [2025-03-05 00:55:18] Production.ERROR: pbx CDR StartTime 2025-03-04 21:55:06 - End Time 2025-03-05 00:55:06 [2025-03-05 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609605', 'tblTempUsageDetail_20' ) start [2025-03-05 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609605', 'tblTempUsageDetail_20' ) end [2025-03-05 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609605', 'tblTempVendorCDR_20' ) start [2025-03-05 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609605', 'tblTempVendorCDR_20' ) end [2025-03-05 00:55:18] Production.INFO: ProcessCDR(1,14609605,1,1,2) [2025-03-05 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609605', 'tblTempUsageDetail_20' ) start [2025-03-05 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609605', 'tblTempUsageDetail_20' ) end [2025-03-05 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:55:21] Production.INFO: ==7523== Releasing lock... [2025-03-05 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:55:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 00:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:56:06 [end_date_ymd] => 2025-03-05 00:56:06 [RateCDR] => 1 ) [2025-03-05 00: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-03-04 21:56:06' and `end` < '2025-03-05 00: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-03-05 00:56:18] Production.INFO: count ==274 [2025-03-05 00:56:18] Production.ERROR: pbx CDR StartTime 2025-03-04 21:56:06 - End Time 2025-03-05 00:56:06 [2025-03-05 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609610', 'tblTempUsageDetail_20' ) start [2025-03-05 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609610', 'tblTempUsageDetail_20' ) end [2025-03-05 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609610', 'tblTempVendorCDR_20' ) start [2025-03-05 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609610', 'tblTempVendorCDR_20' ) end [2025-03-05 00:56:18] Production.INFO: ProcessCDR(1,14609610,1,1,2) [2025-03-05 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609610', 'tblTempUsageDetail_20' ) start [2025-03-05 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609610', 'tblTempUsageDetail_20' ) end [2025-03-05 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:56:21] Production.INFO: ==7601== Releasing lock... [2025-03-05 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:56:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-05 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:57:05 [end_date_ymd] => 2025-03-05 00:57:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 21:57:05' and `end` < '2025-03-05 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-03-05 00:57:17] Production.INFO: count ==271 [2025-03-05 00:57:17] Production.ERROR: pbx CDR StartTime 2025-03-04 21:57:05 - End Time 2025-03-05 00:57:05 [2025-03-05 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609615', 'tblTempUsageDetail_20' ) start [2025-03-05 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609615', 'tblTempUsageDetail_20' ) end [2025-03-05 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609615', 'tblTempVendorCDR_20' ) start [2025-03-05 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609615', 'tblTempVendorCDR_20' ) end [2025-03-05 00:57:17] Production.INFO: ProcessCDR(1,14609615,1,1,2) [2025-03-05 00:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609615', 'tblTempUsageDetail_20' ) start [2025-03-05 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609615', 'tblTempUsageDetail_20' ) end [2025-03-05 00:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:57:21] Production.INFO: ==7682== Releasing lock... [2025-03-05 00:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:57:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 00:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:58:06 [end_date_ymd] => 2025-03-05 00:58:06 [RateCDR] => 1 ) [2025-03-05 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-03-04 21:58:06' and `end` < '2025-03-05 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-03-05 00:58:18] Production.INFO: count ==269 [2025-03-05 00:58:18] Production.ERROR: pbx CDR StartTime 2025-03-04 21:58:06 - End Time 2025-03-05 00:58:06 [2025-03-05 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609620', 'tblTempUsageDetail_20' ) start [2025-03-05 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609620', 'tblTempUsageDetail_20' ) end [2025-03-05 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609620', 'tblTempVendorCDR_20' ) start [2025-03-05 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609620', 'tblTempVendorCDR_20' ) end [2025-03-05 00:58:18] Production.INFO: ProcessCDR(1,14609620,1,1,2) [2025-03-05 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609620', 'tblTempUsageDetail_20' ) start [2025-03-05 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609620', 'tblTempUsageDetail_20' ) end [2025-03-05 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:58:21] Production.INFO: ==7760== Releasing lock... [2025-03-05 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:58:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 21:59:05 [end_date_ymd] => 2025-03-05 00:59:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 21:59:05' and `end` < '2025-03-05 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-03-05 00:59:17] Production.INFO: count ==269 [2025-03-05 00:59:17] Production.ERROR: pbx CDR StartTime 2025-03-04 21:59:05 - End Time 2025-03-05 00:59:05 [2025-03-05 00:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609625', 'tblTempUsageDetail_20' ) start [2025-03-05 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609625', 'tblTempUsageDetail_20' ) end [2025-03-05 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609625', 'tblTempVendorCDR_20' ) start [2025-03-05 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609625', 'tblTempVendorCDR_20' ) end [2025-03-05 00:59:17] Production.INFO: ProcessCDR(1,14609625,1,1,2) [2025-03-05 00:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 00:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 00:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609625', 'tblTempUsageDetail_20' ) start [2025-03-05 00:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609625', 'tblTempUsageDetail_20' ) end [2025-03-05 00:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 00:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 00:59:20] Production.INFO: ==7842== Releasing lock... [2025-03-05 00:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 00:59:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:00:06 [end_date_ymd] => 2025-03-05 01:00:06 [RateCDR] => 1 ) [2025-03-05 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-03-04 22:00:06' and `end` < '2025-03-05 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-03-05 01:00:18] Production.INFO: count ==281 [2025-03-05 01:00:18] Production.ERROR: pbx CDR StartTime 2025-03-04 22:00:06 - End Time 2025-03-05 01:00:06 [2025-03-05 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609630', 'tblTempUsageDetail_20' ) start [2025-03-05 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609630', 'tblTempUsageDetail_20' ) end [2025-03-05 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609630', 'tblTempVendorCDR_20' ) start [2025-03-05 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609630', 'tblTempVendorCDR_20' ) end [2025-03-05 01:00:18] Production.INFO: ProcessCDR(1,14609630,1,1,2) [2025-03-05 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609630', 'tblTempUsageDetail_20' ) start [2025-03-05 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609630', 'tblTempUsageDetail_20' ) end [2025-03-05 01:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:00:21] Production.INFO: ==7923== Releasing lock... [2025-03-05 01:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:00:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-05 01:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:01:04 [end_date_ymd] => 2025-03-05 01:01:04 [RateCDR] => 1 ) [2025-03-05 01: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-03-04 22:01:04' and `end` < '2025-03-05 01: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-03-05 01:01:16] Production.INFO: count ==296 [2025-03-05 01:01:16] Production.ERROR: pbx CDR StartTime 2025-03-04 22:01:04 - End Time 2025-03-05 01:01:04 [2025-03-05 01:01:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609636', 'tblTempUsageDetail_20' ) start [2025-03-05 01:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609636', 'tblTempUsageDetail_20' ) end [2025-03-05 01:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609636', 'tblTempVendorCDR_20' ) start [2025-03-05 01:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609636', 'tblTempVendorCDR_20' ) end [2025-03-05 01:01:16] Production.INFO: ProcessCDR(1,14609636,1,1,2) [2025-03-05 01:01:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609636', 'tblTempUsageDetail_20' ) start [2025-03-05 01:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609636', 'tblTempUsageDetail_20' ) end [2025-03-05 01:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:01:20] Production.INFO: ==8017== Releasing lock... [2025-03-05 01:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:01:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:02:05 [end_date_ymd] => 2025-03-05 01:02:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 22:02:05' and `end` < '2025-03-05 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-03-05 01:02:17] Production.INFO: count ==296 [2025-03-05 01:02:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:02:05 - End Time 2025-03-05 01:02:05 [2025-03-05 01:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609641', 'tblTempUsageDetail_20' ) start [2025-03-05 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609641', 'tblTempUsageDetail_20' ) end [2025-03-05 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609641', 'tblTempVendorCDR_20' ) start [2025-03-05 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609641', 'tblTempVendorCDR_20' ) end [2025-03-05 01:02:18] Production.INFO: ProcessCDR(1,14609641,1,1,2) [2025-03-05 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609641', 'tblTempUsageDetail_20' ) start [2025-03-05 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609641', 'tblTempUsageDetail_20' ) end [2025-03-05 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:02:21] Production.INFO: ==8099== Releasing lock... [2025-03-05 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:02:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:03:05 [end_date_ymd] => 2025-03-05 01:03:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 22:03:05' and `end` < '2025-03-05 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-03-05 01:03:17] Production.INFO: count ==296 [2025-03-05 01:03:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:03:05 - End Time 2025-03-05 01:03:05 [2025-03-05 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609646', 'tblTempUsageDetail_20' ) start [2025-03-05 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609646', 'tblTempUsageDetail_20' ) end [2025-03-05 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609646', 'tblTempVendorCDR_20' ) start [2025-03-05 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609646', 'tblTempVendorCDR_20' ) end [2025-03-05 01:03:17] Production.INFO: ProcessCDR(1,14609646,1,1,2) [2025-03-05 01:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609646', 'tblTempUsageDetail_20' ) start [2025-03-05 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609646', 'tblTempUsageDetail_20' ) end [2025-03-05 01:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:03:20] Production.INFO: ==8214== Releasing lock... [2025-03-05 01:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:03:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 01:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:04:06 [end_date_ymd] => 2025-03-05 01:04:06 [RateCDR] => 1 ) [2025-03-05 01:04: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-03-04 22:04:06' and `end` < '2025-03-05 01:04: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-03-05 01:04:18] Production.INFO: count ==292 [2025-03-05 01:04:18] Production.ERROR: pbx CDR StartTime 2025-03-04 22:04:06 - End Time 2025-03-05 01:04:06 [2025-03-05 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609651', 'tblTempUsageDetail_20' ) start [2025-03-05 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609651', 'tblTempUsageDetail_20' ) end [2025-03-05 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609651', 'tblTempVendorCDR_20' ) start [2025-03-05 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609651', 'tblTempVendorCDR_20' ) end [2025-03-05 01:04:18] Production.INFO: ProcessCDR(1,14609651,1,1,2) [2025-03-05 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609651', 'tblTempUsageDetail_20' ) start [2025-03-05 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609651', 'tblTempUsageDetail_20' ) end [2025-03-05 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:04:21] Production.INFO: ==8297== Releasing lock... [2025-03-05 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:04:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:05:05 [end_date_ymd] => 2025-03-05 01:05:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 22:05:05' and `end` < '2025-03-05 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-03-05 01:05:17] Production.INFO: count ==292 [2025-03-05 01:05:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:05:05 - End Time 2025-03-05 01:05:05 [2025-03-05 01:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609656', 'tblTempUsageDetail_20' ) start [2025-03-05 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609656', 'tblTempUsageDetail_20' ) end [2025-03-05 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609656', 'tblTempVendorCDR_20' ) start [2025-03-05 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609656', 'tblTempVendorCDR_20' ) end [2025-03-05 01:05:17] Production.INFO: ProcessCDR(1,14609656,1,1,2) [2025-03-05 01:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609656', 'tblTempUsageDetail_20' ) start [2025-03-05 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609656', 'tblTempUsageDetail_20' ) end [2025-03-05 01:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:05:20] Production.INFO: ==8377== Releasing lock... [2025-03-05 01:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:05:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:06:05 [end_date_ymd] => 2025-03-05 01:06:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 22:06:05' and `end` < '2025-03-05 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-03-05 01:06:17] Production.INFO: count ==293 [2025-03-05 01:06:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:06:05 - End Time 2025-03-05 01:06:05 [2025-03-05 01:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609661', 'tblTempUsageDetail_20' ) start [2025-03-05 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609661', 'tblTempUsageDetail_20' ) end [2025-03-05 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609661', 'tblTempVendorCDR_20' ) start [2025-03-05 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609661', 'tblTempVendorCDR_20' ) end [2025-03-05 01:06:17] Production.INFO: ProcessCDR(1,14609661,1,1,2) [2025-03-05 01:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609661', 'tblTempUsageDetail_20' ) start [2025-03-05 01:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609661', 'tblTempUsageDetail_20' ) end [2025-03-05 01:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:06:20] Production.INFO: ==8453== Releasing lock... [2025-03-05 01:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:06:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-05 01:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:07:06 [end_date_ymd] => 2025-03-05 01:07:06 [RateCDR] => 1 ) [2025-03-05 01: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-03-04 22:07:06' and `end` < '2025-03-05 01: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-03-05 01:07:18] Production.INFO: count ==295 [2025-03-05 01:07:18] Production.ERROR: pbx CDR StartTime 2025-03-04 22:07:06 - End Time 2025-03-05 01:07:06 [2025-03-05 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609666', 'tblTempUsageDetail_20' ) start [2025-03-05 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609666', 'tblTempUsageDetail_20' ) end [2025-03-05 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609666', 'tblTempVendorCDR_20' ) start [2025-03-05 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609666', 'tblTempVendorCDR_20' ) end [2025-03-05 01:07:18] Production.INFO: ProcessCDR(1,14609666,1,1,2) [2025-03-05 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609666', 'tblTempUsageDetail_20' ) start [2025-03-05 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609666', 'tblTempUsageDetail_20' ) end [2025-03-05 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:07:21] Production.INFO: ==8529== Releasing lock... [2025-03-05 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:07:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:08:05 [end_date_ymd] => 2025-03-05 01:08:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 22:08:05' and `end` < '2025-03-05 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-03-05 01:08:17] Production.INFO: count ==299 [2025-03-05 01:08:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:08:05 - End Time 2025-03-05 01:08:05 [2025-03-05 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609671', 'tblTempUsageDetail_20' ) start [2025-03-05 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609671', 'tblTempUsageDetail_20' ) end [2025-03-05 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609671', 'tblTempVendorCDR_20' ) start [2025-03-05 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609671', 'tblTempVendorCDR_20' ) end [2025-03-05 01:08:17] Production.INFO: ProcessCDR(1,14609671,1,1,2) [2025-03-05 01:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609671', 'tblTempUsageDetail_20' ) start [2025-03-05 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609671', 'tblTempUsageDetail_20' ) end [2025-03-05 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:08:21] Production.INFO: ==8615== Releasing lock... [2025-03-05 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:08:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 01:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:09:06 [end_date_ymd] => 2025-03-05 01:09:06 [RateCDR] => 1 ) [2025-03-05 01: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-03-04 22:09:06' and `end` < '2025-03-05 01: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-03-05 01:09:18] Production.INFO: count ==299 [2025-03-05 01:09:18] Production.ERROR: pbx CDR StartTime 2025-03-04 22:09:06 - End Time 2025-03-05 01:09:06 [2025-03-05 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609676', 'tblTempUsageDetail_20' ) start [2025-03-05 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609676', 'tblTempUsageDetail_20' ) end [2025-03-05 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609676', 'tblTempVendorCDR_20' ) start [2025-03-05 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609676', 'tblTempVendorCDR_20' ) end [2025-03-05 01:09:18] Production.INFO: ProcessCDR(1,14609676,1,1,2) [2025-03-05 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609676', 'tblTempUsageDetail_20' ) start [2025-03-05 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609676', 'tblTempUsageDetail_20' ) end [2025-03-05 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:09:21] Production.INFO: ==8702== Releasing lock... [2025-03-05 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:09:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:10:06 [end_date_ymd] => 2025-03-05 01:10:06 [RateCDR] => 1 ) [2025-03-05 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-03-04 22:10:06' and `end` < '2025-03-05 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-03-05 01:10:18] Production.INFO: count ==307 [2025-03-05 01:10:18] Production.ERROR: pbx CDR StartTime 2025-03-04 22:10:06 - End Time 2025-03-05 01:10:06 [2025-03-05 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609682', 'tblTempUsageDetail_20' ) start [2025-03-05 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609682', 'tblTempUsageDetail_20' ) end [2025-03-05 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609682', 'tblTempVendorCDR_20' ) start [2025-03-05 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609682', 'tblTempVendorCDR_20' ) end [2025-03-05 01:10:18] Production.INFO: ProcessCDR(1,14609682,1,1,2) [2025-03-05 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609682', 'tblTempUsageDetail_20' ) start [2025-03-05 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609682', 'tblTempUsageDetail_20' ) end [2025-03-05 01:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:10:21] Production.INFO: ==8778== Releasing lock... [2025-03-05 01:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:10:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 01:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:11:06 [end_date_ymd] => 2025-03-05 01:11:06 [RateCDR] => 1 ) [2025-03-05 01:11: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-03-04 22:11:06' and `end` < '2025-03-05 01:11: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-03-05 01:11:18] Production.INFO: count ==313 [2025-03-05 01:11:18] Production.ERROR: pbx CDR StartTime 2025-03-04 22:11:06 - End Time 2025-03-05 01:11:06 [2025-03-05 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609687', 'tblTempUsageDetail_20' ) start [2025-03-05 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609687', 'tblTempUsageDetail_20' ) end [2025-03-05 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609687', 'tblTempVendorCDR_20' ) start [2025-03-05 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609687', 'tblTempVendorCDR_20' ) end [2025-03-05 01:11:18] Production.INFO: ProcessCDR(1,14609687,1,1,2) [2025-03-05 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609687', 'tblTempUsageDetail_20' ) start [2025-03-05 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609687', 'tblTempUsageDetail_20' ) end [2025-03-05 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:11:21] Production.INFO: ==8863== Releasing lock... [2025-03-05 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:11:21] Production.INFO: 31 MB #Memory Used# [2025-03-05 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:12:05 [end_date_ymd] => 2025-03-05 01:12:05 [RateCDR] => 1 ) [2025-03-05 01: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-03-04 22:12:05' and `end` < '2025-03-05 01: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-03-05 01:12:17] Production.INFO: count ==312 [2025-03-05 01:12:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:12:05 - End Time 2025-03-05 01:12:05 [2025-03-05 01:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609692', 'tblTempUsageDetail_20' ) start [2025-03-05 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609692', 'tblTempUsageDetail_20' ) end [2025-03-05 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609692', 'tblTempVendorCDR_20' ) start [2025-03-05 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609692', 'tblTempVendorCDR_20' ) end [2025-03-05 01:12:17] Production.INFO: ProcessCDR(1,14609692,1,1,2) [2025-03-05 01:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609692', 'tblTempUsageDetail_20' ) start [2025-03-05 01:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609692', 'tblTempUsageDetail_20' ) end [2025-03-05 01:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:12:20] Production.INFO: ==8940== Releasing lock... [2025-03-05 01:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:12:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 01:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:13:06 [end_date_ymd] => 2025-03-05 01:13:06 [RateCDR] => 1 ) [2025-03-05 01:13: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-03-04 22:13:06' and `end` < '2025-03-05 01:13: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-03-05 01:13:18] Production.INFO: count ==311 [2025-03-05 01:13:18] Production.ERROR: pbx CDR StartTime 2025-03-04 22:13:06 - End Time 2025-03-05 01:13:06 [2025-03-05 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609697', 'tblTempUsageDetail_20' ) start [2025-03-05 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609697', 'tblTempUsageDetail_20' ) end [2025-03-05 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609697', 'tblTempVendorCDR_20' ) start [2025-03-05 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609697', 'tblTempVendorCDR_20' ) end [2025-03-05 01:13:18] Production.INFO: ProcessCDR(1,14609697,1,1,2) [2025-03-05 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609697', 'tblTempUsageDetail_20' ) start [2025-03-05 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609697', 'tblTempUsageDetail_20' ) end [2025-03-05 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:13:21] Production.INFO: ==9021== Releasing lock... [2025-03-05 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:13:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:14:05 [end_date_ymd] => 2025-03-05 01:14:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 22:14:05' and `end` < '2025-03-05 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-03-05 01:14:17] Production.INFO: count ==309 [2025-03-05 01:14:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:14:05 - End Time 2025-03-05 01:14:05 [2025-03-05 01:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609702', 'tblTempUsageDetail_20' ) start [2025-03-05 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609702', 'tblTempUsageDetail_20' ) end [2025-03-05 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609702', 'tblTempVendorCDR_20' ) start [2025-03-05 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609702', 'tblTempVendorCDR_20' ) end [2025-03-05 01:14:17] Production.INFO: ProcessCDR(1,14609702,1,1,2) [2025-03-05 01:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609702', 'tblTempUsageDetail_20' ) start [2025-03-05 01:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609702', 'tblTempUsageDetail_20' ) end [2025-03-05 01:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:14:20] Production.INFO: ==9100== Releasing lock... [2025-03-05 01:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:14:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:15:05 [end_date_ymd] => 2025-03-05 01:15:05 [RateCDR] => 1 ) [2025-03-05 01: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-03-04 22:15:05' and `end` < '2025-03-05 01: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-03-05 01:15:17] Production.INFO: count ==309 [2025-03-05 01:15:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:15:05 - End Time 2025-03-05 01:15:05 [2025-03-05 01:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609707', 'tblTempUsageDetail_20' ) start [2025-03-05 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609707', 'tblTempUsageDetail_20' ) end [2025-03-05 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609707', 'tblTempVendorCDR_20' ) start [2025-03-05 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609707', 'tblTempVendorCDR_20' ) end [2025-03-05 01:15:17] Production.INFO: ProcessCDR(1,14609707,1,1,2) [2025-03-05 01:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609707', 'tblTempUsageDetail_20' ) start [2025-03-05 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609707', 'tblTempUsageDetail_20' ) end [2025-03-05 01:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:15:20] Production.INFO: ==9183== Releasing lock... [2025-03-05 01:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:15:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:16:05 [end_date_ymd] => 2025-03-05 01:16:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 22:16:05' and `end` < '2025-03-05 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-03-05 01:16:17] Production.INFO: count ==308 [2025-03-05 01:16:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:16:05 - End Time 2025-03-05 01:16:05 [2025-03-05 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609712', 'tblTempUsageDetail_20' ) start [2025-03-05 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609712', 'tblTempUsageDetail_20' ) end [2025-03-05 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609712', 'tblTempVendorCDR_20' ) start [2025-03-05 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609712', 'tblTempVendorCDR_20' ) end [2025-03-05 01:16:17] Production.INFO: ProcessCDR(1,14609712,1,1,2) [2025-03-05 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609712', 'tblTempUsageDetail_20' ) start [2025-03-05 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609712', 'tblTempUsageDetail_20' ) end [2025-03-05 01:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:16:20] Production.INFO: ==9258== Releasing lock... [2025-03-05 01:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:16:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:17:05 [end_date_ymd] => 2025-03-05 01:17:05 [RateCDR] => 1 ) [2025-03-05 01: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-03-04 22:17:05' and `end` < '2025-03-05 01: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-03-05 01:17:17] Production.INFO: count ==306 [2025-03-05 01:17:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:17:05 - End Time 2025-03-05 01:17:05 [2025-03-05 01:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609717', 'tblTempUsageDetail_20' ) start [2025-03-05 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609717', 'tblTempUsageDetail_20' ) end [2025-03-05 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609717', 'tblTempVendorCDR_20' ) start [2025-03-05 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609717', 'tblTempVendorCDR_20' ) end [2025-03-05 01:17:17] Production.INFO: ProcessCDR(1,14609717,1,1,2) [2025-03-05 01:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609717', 'tblTempUsageDetail_20' ) start [2025-03-05 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609717', 'tblTempUsageDetail_20' ) end [2025-03-05 01:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:17:20] Production.INFO: ==9338== Releasing lock... [2025-03-05 01:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:17:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 01:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:18:06 [end_date_ymd] => 2025-03-05 01:18:06 [RateCDR] => 1 ) [2025-03-05 01: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-03-04 22:18:06' and `end` < '2025-03-05 01: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-03-05 01:18:18] Production.INFO: count ==304 [2025-03-05 01:18:18] Production.ERROR: pbx CDR StartTime 2025-03-04 22:18:06 - End Time 2025-03-05 01:18:06 [2025-03-05 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609722', 'tblTempUsageDetail_20' ) start [2025-03-05 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609722', 'tblTempUsageDetail_20' ) end [2025-03-05 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609722', 'tblTempVendorCDR_20' ) start [2025-03-05 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609722', 'tblTempVendorCDR_20' ) end [2025-03-05 01:18:18] Production.INFO: ProcessCDR(1,14609722,1,1,2) [2025-03-05 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609722', 'tblTempUsageDetail_20' ) start [2025-03-05 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609722', 'tblTempUsageDetail_20' ) end [2025-03-05 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:18:21] Production.INFO: ==9419== Releasing lock... [2025-03-05 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:18:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:19:05 [end_date_ymd] => 2025-03-05 01:19:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 22:19:05' and `end` < '2025-03-05 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-03-05 01:19:17] Production.INFO: count ==304 [2025-03-05 01:19:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:19:05 - End Time 2025-03-05 01:19:05 [2025-03-05 01:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609727', 'tblTempUsageDetail_20' ) start [2025-03-05 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609727', 'tblTempUsageDetail_20' ) end [2025-03-05 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609727', 'tblTempVendorCDR_20' ) start [2025-03-05 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609727', 'tblTempVendorCDR_20' ) end [2025-03-05 01:19:17] Production.INFO: ProcessCDR(1,14609727,1,1,2) [2025-03-05 01:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609727', 'tblTempUsageDetail_20' ) start [2025-03-05 01:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609727', 'tblTempUsageDetail_20' ) end [2025-03-05 01:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:19:20] Production.INFO: ==9532== Releasing lock... [2025-03-05 01:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:19:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:20:06 [end_date_ymd] => 2025-03-05 01:20:06 [RateCDR] => 1 ) [2025-03-05 01: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-03-04 22:20:06' and `end` < '2025-03-05 01: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-03-05 01:20:18] Production.INFO: count ==309 [2025-03-05 01:20:18] Production.ERROR: pbx CDR StartTime 2025-03-04 22:20:06 - End Time 2025-03-05 01:20:06 [2025-03-05 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609733', 'tblTempUsageDetail_20' ) start [2025-03-05 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609733', 'tblTempUsageDetail_20' ) end [2025-03-05 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609733', 'tblTempVendorCDR_20' ) start [2025-03-05 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609733', 'tblTempVendorCDR_20' ) end [2025-03-05 01:20:18] Production.INFO: ProcessCDR(1,14609733,1,1,2) [2025-03-05 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609733', 'tblTempUsageDetail_20' ) start [2025-03-05 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609733', 'tblTempUsageDetail_20' ) end [2025-03-05 01:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:20:23] Production.INFO: ==9613== Releasing lock... [2025-03-05 01:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:20:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:21:05 [end_date_ymd] => 2025-03-05 01:21:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 22:21:05' and `end` < '2025-03-05 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-03-05 01:21:17] Production.INFO: count ==309 [2025-03-05 01:21:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:21:05 - End Time 2025-03-05 01:21:05 [2025-03-05 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609738', 'tblTempUsageDetail_20' ) start [2025-03-05 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609738', 'tblTempUsageDetail_20' ) end [2025-03-05 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609738', 'tblTempVendorCDR_20' ) start [2025-03-05 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609738', 'tblTempVendorCDR_20' ) end [2025-03-05 01:21:17] Production.INFO: ProcessCDR(1,14609738,1,1,2) [2025-03-05 01:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609738', 'tblTempUsageDetail_20' ) start [2025-03-05 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609738', 'tblTempUsageDetail_20' ) end [2025-03-05 01:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:21:20] Production.INFO: ==9691== Releasing lock... [2025-03-05 01:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:21:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:22:05 [end_date_ymd] => 2025-03-05 01:22:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 22:22:05' and `end` < '2025-03-05 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-03-05 01:22:17] Production.INFO: count ==308 [2025-03-05 01:22:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:22:05 - End Time 2025-03-05 01:22:05 [2025-03-05 01:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609743', 'tblTempUsageDetail_20' ) start [2025-03-05 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609743', 'tblTempUsageDetail_20' ) end [2025-03-05 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609743', 'tblTempVendorCDR_20' ) start [2025-03-05 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609743', 'tblTempVendorCDR_20' ) end [2025-03-05 01:22:17] Production.INFO: ProcessCDR(1,14609743,1,1,2) [2025-03-05 01:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609743', 'tblTempUsageDetail_20' ) start [2025-03-05 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609743', 'tblTempUsageDetail_20' ) end [2025-03-05 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:22:21] Production.INFO: ==9767== Releasing lock... [2025-03-05 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:22:21] Production.INFO: 31 MB #Memory Used# [2025-03-05 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:23:05 [end_date_ymd] => 2025-03-05 01:23:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 22:23:05' and `end` < '2025-03-05 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-03-05 01:23:17] Production.INFO: count ==308 [2025-03-05 01:23:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:23:05 - End Time 2025-03-05 01:23:05 [2025-03-05 01:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609748', 'tblTempUsageDetail_20' ) start [2025-03-05 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609748', 'tblTempUsageDetail_20' ) end [2025-03-05 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609748', 'tblTempVendorCDR_20' ) start [2025-03-05 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609748', 'tblTempVendorCDR_20' ) end [2025-03-05 01:23:17] Production.INFO: ProcessCDR(1,14609748,1,1,2) [2025-03-05 01:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609748', 'tblTempUsageDetail_20' ) start [2025-03-05 01:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609748', 'tblTempUsageDetail_20' ) end [2025-03-05 01:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:23:20] Production.INFO: ==9846== Releasing lock... [2025-03-05 01:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:23:20] Production.INFO: 31 MB #Memory Used# [2025-03-05 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:24:05 [end_date_ymd] => 2025-03-05 01:24:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 22:24:05' and `end` < '2025-03-05 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-03-05 01:24:17] Production.INFO: count ==307 [2025-03-05 01:24:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:24:05 - End Time 2025-03-05 01:24:05 [2025-03-05 01:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609753', 'tblTempUsageDetail_20' ) start [2025-03-05 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609753', 'tblTempUsageDetail_20' ) end [2025-03-05 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609753', 'tblTempVendorCDR_20' ) start [2025-03-05 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609753', 'tblTempVendorCDR_20' ) end [2025-03-05 01:24:17] Production.INFO: ProcessCDR(1,14609753,1,1,2) [2025-03-05 01:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609753', 'tblTempUsageDetail_20' ) start [2025-03-05 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609753', 'tblTempUsageDetail_20' ) end [2025-03-05 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:24:21] Production.INFO: ==9928== Releasing lock... [2025-03-05 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:24:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:25:05 [end_date_ymd] => 2025-03-05 01:25:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 22:25:05' and `end` < '2025-03-05 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-03-05 01:25:17] Production.INFO: count ==306 [2025-03-05 01:25:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:25:05 - End Time 2025-03-05 01:25:05 [2025-03-05 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609758', 'tblTempUsageDetail_20' ) start [2025-03-05 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609758', 'tblTempUsageDetail_20' ) end [2025-03-05 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609758', 'tblTempVendorCDR_20' ) start [2025-03-05 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609758', 'tblTempVendorCDR_20' ) end [2025-03-05 01:25:17] Production.INFO: ProcessCDR(1,14609758,1,1,2) [2025-03-05 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609758', 'tblTempUsageDetail_20' ) start [2025-03-05 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609758', 'tblTempUsageDetail_20' ) end [2025-03-05 01:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:25:20] Production.INFO: ==10002== Releasing lock... [2025-03-05 01:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:25:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:26:05 [end_date_ymd] => 2025-03-05 01:26:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 22:26:05' and `end` < '2025-03-05 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-03-05 01:26:17] Production.INFO: count ==304 [2025-03-05 01:26:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:26:05 - End Time 2025-03-05 01:26:05 [2025-03-05 01:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609763', 'tblTempUsageDetail_20' ) start [2025-03-05 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609763', 'tblTempUsageDetail_20' ) end [2025-03-05 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609763', 'tblTempVendorCDR_20' ) start [2025-03-05 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609763', 'tblTempVendorCDR_20' ) end [2025-03-05 01:26:17] Production.INFO: ProcessCDR(1,14609763,1,1,2) [2025-03-05 01:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609763', 'tblTempUsageDetail_20' ) start [2025-03-05 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609763', 'tblTempUsageDetail_20' ) end [2025-03-05 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:26:21] Production.INFO: ==10086== Releasing lock... [2025-03-05 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:26:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 01:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:27:06 [end_date_ymd] => 2025-03-05 01:27:06 [RateCDR] => 1 ) [2025-03-05 01: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-03-04 22:27:06' and `end` < '2025-03-05 01: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-03-05 01:27:17] Production.INFO: count ==300 [2025-03-05 01:27:18] Production.ERROR: pbx CDR StartTime 2025-03-04 22:27:06 - End Time 2025-03-05 01:27:06 [2025-03-05 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609768', 'tblTempUsageDetail_20' ) start [2025-03-05 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609768', 'tblTempUsageDetail_20' ) end [2025-03-05 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609768', 'tblTempVendorCDR_20' ) start [2025-03-05 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609768', 'tblTempVendorCDR_20' ) end [2025-03-05 01:27:18] Production.INFO: ProcessCDR(1,14609768,1,1,2) [2025-03-05 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609768', 'tblTempUsageDetail_20' ) start [2025-03-05 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609768', 'tblTempUsageDetail_20' ) end [2025-03-05 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:27:21] Production.INFO: ==10162== Releasing lock... [2025-03-05 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:27:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:28:05 [end_date_ymd] => 2025-03-05 01:28:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 22:28:05' and `end` < '2025-03-05 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-03-05 01:28:17] Production.INFO: count ==299 [2025-03-05 01:28:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:28:05 - End Time 2025-03-05 01:28:05 [2025-03-05 01:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609773', 'tblTempUsageDetail_20' ) start [2025-03-05 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609773', 'tblTempUsageDetail_20' ) end [2025-03-05 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609773', 'tblTempVendorCDR_20' ) start [2025-03-05 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609773', 'tblTempVendorCDR_20' ) end [2025-03-05 01:28:17] Production.INFO: ProcessCDR(1,14609773,1,1,2) [2025-03-05 01:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609773', 'tblTempUsageDetail_20' ) start [2025-03-05 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609773', 'tblTempUsageDetail_20' ) end [2025-03-05 01:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:28:20] Production.INFO: ==10242== Releasing lock... [2025-03-05 01:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:28:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:29:05 [end_date_ymd] => 2025-03-05 01:29:05 [RateCDR] => 1 ) [2025-03-05 01: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-03-04 22:29:05' and `end` < '2025-03-05 01: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-03-05 01:29:17] Production.INFO: count ==295 [2025-03-05 01:29:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:29:05 - End Time 2025-03-05 01:29:05 [2025-03-05 01:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609778', 'tblTempUsageDetail_20' ) start [2025-03-05 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609778', 'tblTempUsageDetail_20' ) end [2025-03-05 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609778', 'tblTempVendorCDR_20' ) start [2025-03-05 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609778', 'tblTempVendorCDR_20' ) end [2025-03-05 01:29:17] Production.INFO: ProcessCDR(1,14609778,1,1,2) [2025-03-05 01:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609778', 'tblTempUsageDetail_20' ) start [2025-03-05 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609778', 'tblTempUsageDetail_20' ) end [2025-03-05 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:29:21] Production.INFO: ==10315== Releasing lock... [2025-03-05 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:29:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:30:06 [end_date_ymd] => 2025-03-05 01:30:06 [RateCDR] => 1 ) [2025-03-05 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-03-04 22:30:06' and `end` < '2025-03-05 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-03-05 01:30:18] Production.INFO: count ==299 [2025-03-05 01:30:18] Production.ERROR: pbx CDR StartTime 2025-03-04 22:30:06 - End Time 2025-03-05 01:30:06 [2025-03-05 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609783', 'tblTempUsageDetail_20' ) start [2025-03-05 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609783', 'tblTempUsageDetail_20' ) end [2025-03-05 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609783', 'tblTempVendorCDR_20' ) start [2025-03-05 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609783', 'tblTempVendorCDR_20' ) end [2025-03-05 01:30:18] Production.INFO: ProcessCDR(1,14609783,1,1,2) [2025-03-05 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609783', 'tblTempUsageDetail_20' ) start [2025-03-05 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609783', 'tblTempUsageDetail_20' ) end [2025-03-05 01:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:30:21] Production.INFO: ==10393== Releasing lock... [2025-03-05 01:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:30:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:31:05 [end_date_ymd] => 2025-03-05 01:31:05 [RateCDR] => 1 ) [2025-03-05 01: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-03-04 22:31:05' and `end` < '2025-03-05 01: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-03-05 01:31:17] Production.INFO: count ==299 [2025-03-05 01:31:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:31:05 - End Time 2025-03-05 01:31:05 [2025-03-05 01:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609789', 'tblTempUsageDetail_20' ) start [2025-03-05 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609789', 'tblTempUsageDetail_20' ) end [2025-03-05 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609789', 'tblTempVendorCDR_20' ) start [2025-03-05 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609789', 'tblTempVendorCDR_20' ) end [2025-03-05 01:31:17] Production.INFO: ProcessCDR(1,14609789,1,1,2) [2025-03-05 01:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609789', 'tblTempUsageDetail_20' ) start [2025-03-05 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609789', 'tblTempUsageDetail_20' ) end [2025-03-05 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:31:21] Production.INFO: ==10469== Releasing lock... [2025-03-05 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:31:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:32:05 [end_date_ymd] => 2025-03-05 01:32:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 22:32:05' and `end` < '2025-03-05 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-03-05 01:32:17] Production.INFO: count ==299 [2025-03-05 01:32:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:32:05 - End Time 2025-03-05 01:32:05 [2025-03-05 01:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609794', 'tblTempUsageDetail_20' ) start [2025-03-05 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609794', 'tblTempUsageDetail_20' ) end [2025-03-05 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609794', 'tblTempVendorCDR_20' ) start [2025-03-05 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609794', 'tblTempVendorCDR_20' ) end [2025-03-05 01:32:17] Production.INFO: ProcessCDR(1,14609794,1,1,2) [2025-03-05 01:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609794', 'tblTempUsageDetail_20' ) start [2025-03-05 01:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609794', 'tblTempUsageDetail_20' ) end [2025-03-05 01:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:32:20] Production.INFO: ==10543== Releasing lock... [2025-03-05 01:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:32:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:33:05 [end_date_ymd] => 2025-03-05 01:33:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 22:33:05' and `end` < '2025-03-05 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-03-05 01:33:17] Production.INFO: count ==295 [2025-03-05 01:33:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:33:05 - End Time 2025-03-05 01:33:05 [2025-03-05 01:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609799', 'tblTempUsageDetail_20' ) start [2025-03-05 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609799', 'tblTempUsageDetail_20' ) end [2025-03-05 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609799', 'tblTempVendorCDR_20' ) start [2025-03-05 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609799', 'tblTempVendorCDR_20' ) end [2025-03-05 01:33:18] Production.INFO: ProcessCDR(1,14609799,1,1,2) [2025-03-05 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609799', 'tblTempUsageDetail_20' ) start [2025-03-05 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609799', 'tblTempUsageDetail_20' ) end [2025-03-05 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:33:21] Production.INFO: ==10619== Releasing lock... [2025-03-05 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:33:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:34:05 [end_date_ymd] => 2025-03-05 01:34:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 22:34:05' and `end` < '2025-03-05 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-03-05 01:34:17] Production.INFO: count ==292 [2025-03-05 01:34:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:34:05 - End Time 2025-03-05 01:34:05 [2025-03-05 01:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609804', 'tblTempUsageDetail_20' ) start [2025-03-05 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609804', 'tblTempUsageDetail_20' ) end [2025-03-05 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609804', 'tblTempVendorCDR_20' ) start [2025-03-05 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609804', 'tblTempVendorCDR_20' ) end [2025-03-05 01:34:17] Production.INFO: ProcessCDR(1,14609804,1,1,2) [2025-03-05 01:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609804', 'tblTempUsageDetail_20' ) start [2025-03-05 01:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609804', 'tblTempUsageDetail_20' ) end [2025-03-05 01:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:34:20] Production.INFO: ==10733== Releasing lock... [2025-03-05 01:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:34:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:35:05 [end_date_ymd] => 2025-03-05 01:35:05 [RateCDR] => 1 ) [2025-03-05 01: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-03-04 22:35:05' and `end` < '2025-03-05 01: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-03-05 01:35:17] Production.INFO: count ==292 [2025-03-05 01:35:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:35:05 - End Time 2025-03-05 01:35:05 [2025-03-05 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609809', 'tblTempUsageDetail_20' ) start [2025-03-05 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609809', 'tblTempUsageDetail_20' ) end [2025-03-05 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609809', 'tblTempVendorCDR_20' ) start [2025-03-05 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609809', 'tblTempVendorCDR_20' ) end [2025-03-05 01:35:17] Production.INFO: ProcessCDR(1,14609809,1,1,2) [2025-03-05 01:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609809', 'tblTempUsageDetail_20' ) start [2025-03-05 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609809', 'tblTempUsageDetail_20' ) end [2025-03-05 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:35:21] Production.INFO: ==10806== Releasing lock... [2025-03-05 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:35:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:36:05 [end_date_ymd] => 2025-03-05 01:36:05 [RateCDR] => 1 ) [2025-03-05 01: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-03-04 22:36:05' and `end` < '2025-03-05 01: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-03-05 01:36:17] Production.INFO: count ==291 [2025-03-05 01:36:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:36:05 - End Time 2025-03-05 01:36:05 [2025-03-05 01:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609814', 'tblTempUsageDetail_20' ) start [2025-03-05 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609814', 'tblTempUsageDetail_20' ) end [2025-03-05 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609814', 'tblTempVendorCDR_20' ) start [2025-03-05 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609814', 'tblTempVendorCDR_20' ) end [2025-03-05 01:36:17] Production.INFO: ProcessCDR(1,14609814,1,1,2) [2025-03-05 01:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609814', 'tblTempUsageDetail_20' ) start [2025-03-05 01:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609814', 'tblTempUsageDetail_20' ) end [2025-03-05 01:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:36:20] Production.INFO: ==10881== Releasing lock... [2025-03-05 01:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:36:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:37:05 [end_date_ymd] => 2025-03-05 01:37:05 [RateCDR] => 1 ) [2025-03-05 01: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-03-04 22:37:05' and `end` < '2025-03-05 01: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-03-05 01:37:17] Production.INFO: count ==291 [2025-03-05 01:37:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:37:05 - End Time 2025-03-05 01:37:05 [2025-03-05 01:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609819', 'tblTempUsageDetail_20' ) start [2025-03-05 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609819', 'tblTempUsageDetail_20' ) end [2025-03-05 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609819', 'tblTempVendorCDR_20' ) start [2025-03-05 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609819', 'tblTempVendorCDR_20' ) end [2025-03-05 01:37:17] Production.INFO: ProcessCDR(1,14609819,1,1,2) [2025-03-05 01:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609819', 'tblTempUsageDetail_20' ) start [2025-03-05 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609819', 'tblTempUsageDetail_20' ) end [2025-03-05 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:37:21] Production.INFO: ==10952== Releasing lock... [2025-03-05 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:37:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:38:05 [end_date_ymd] => 2025-03-05 01:38:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 22:38:05' and `end` < '2025-03-05 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-03-05 01:38:17] Production.INFO: count ==291 [2025-03-05 01:38:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:38:05 - End Time 2025-03-05 01:38:05 [2025-03-05 01:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609824', 'tblTempUsageDetail_20' ) start [2025-03-05 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609824', 'tblTempUsageDetail_20' ) end [2025-03-05 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609824', 'tblTempVendorCDR_20' ) start [2025-03-05 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609824', 'tblTempVendorCDR_20' ) end [2025-03-05 01:38:17] Production.INFO: ProcessCDR(1,14609824,1,1,2) [2025-03-05 01:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609824', 'tblTempUsageDetail_20' ) start [2025-03-05 01:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609824', 'tblTempUsageDetail_20' ) end [2025-03-05 01:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:38:20] Production.INFO: ==11033== Releasing lock... [2025-03-05 01:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:38:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:39:05 [end_date_ymd] => 2025-03-05 01:39:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 22:39:05' and `end` < '2025-03-05 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-03-05 01:39:17] Production.INFO: count ==289 [2025-03-05 01:39:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:39:05 - End Time 2025-03-05 01:39:05 [2025-03-05 01:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609829', 'tblTempUsageDetail_20' ) start [2025-03-05 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609829', 'tblTempUsageDetail_20' ) end [2025-03-05 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609829', 'tblTempVendorCDR_20' ) start [2025-03-05 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609829', 'tblTempVendorCDR_20' ) end [2025-03-05 01:39:17] Production.INFO: ProcessCDR(1,14609829,1,1,2) [2025-03-05 01:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609829', 'tblTempUsageDetail_20' ) start [2025-03-05 01:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609829', 'tblTempUsageDetail_20' ) end [2025-03-05 01:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:39:20] Production.INFO: ==11107== Releasing lock... [2025-03-05 01:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:39:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 01:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:40:07 [end_date_ymd] => 2025-03-05 01:40:07 [RateCDR] => 1 ) [2025-03-05 01:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 22:40:07' and `end` < '2025-03-05 01:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-05 01:40:19] Production.INFO: count ==303 [2025-03-05 01:40:19] Production.ERROR: pbx CDR StartTime 2025-03-04 22:40:07 - End Time 2025-03-05 01:40:07 [2025-03-05 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609835', 'tblTempUsageDetail_20' ) start [2025-03-05 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609835', 'tblTempUsageDetail_20' ) end [2025-03-05 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609835', 'tblTempVendorCDR_20' ) start [2025-03-05 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609835', 'tblTempVendorCDR_20' ) end [2025-03-05 01:40:19] Production.INFO: ProcessCDR(1,14609835,1,1,2) [2025-03-05 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609835', 'tblTempUsageDetail_20' ) start [2025-03-05 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609835', 'tblTempUsageDetail_20' ) end [2025-03-05 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:40:22] Production.INFO: ==11186== Releasing lock... [2025-03-05 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:40:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:41:05 [end_date_ymd] => 2025-03-05 01:41:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 22:41:05' and `end` < '2025-03-05 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-03-05 01:41:17] Production.INFO: count ==307 [2025-03-05 01:41:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:41:05 - End Time 2025-03-05 01:41:05 [2025-03-05 01:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609840', 'tblTempUsageDetail_20' ) start [2025-03-05 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609840', 'tblTempUsageDetail_20' ) end [2025-03-05 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609840', 'tblTempVendorCDR_20' ) start [2025-03-05 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609840', 'tblTempVendorCDR_20' ) end [2025-03-05 01:41:17] Production.INFO: ProcessCDR(1,14609840,1,1,2) [2025-03-05 01:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609840', 'tblTempUsageDetail_20' ) start [2025-03-05 01:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609840', 'tblTempUsageDetail_20' ) end [2025-03-05 01:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:41:20] Production.INFO: ==11262== Releasing lock... [2025-03-05 01:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:41:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-05 01:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:42:06 [end_date_ymd] => 2025-03-05 01:42:06 [RateCDR] => 1 ) [2025-03-05 01: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-03-04 22:42:06' and `end` < '2025-03-05 01: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-03-05 01:42:18] Production.INFO: count ==302 [2025-03-05 01:42:18] Production.ERROR: pbx CDR StartTime 2025-03-04 22:42:06 - End Time 2025-03-05 01:42:06 [2025-03-05 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609845', 'tblTempUsageDetail_20' ) start [2025-03-05 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609845', 'tblTempUsageDetail_20' ) end [2025-03-05 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609845', 'tblTempVendorCDR_20' ) start [2025-03-05 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609845', 'tblTempVendorCDR_20' ) end [2025-03-05 01:42:18] Production.INFO: ProcessCDR(1,14609845,1,1,2) [2025-03-05 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609845', 'tblTempUsageDetail_20' ) start [2025-03-05 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609845', 'tblTempUsageDetail_20' ) end [2025-03-05 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:42:21] Production.INFO: ==11341== Releasing lock... [2025-03-05 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:42:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:43:05 [end_date_ymd] => 2025-03-05 01:43:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 22:43:05' and `end` < '2025-03-05 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-03-05 01:43:17] Production.INFO: count ==297 [2025-03-05 01:43:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:43:05 - End Time 2025-03-05 01:43:05 [2025-03-05 01:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609850', 'tblTempUsageDetail_20' ) start [2025-03-05 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609850', 'tblTempUsageDetail_20' ) end [2025-03-05 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609850', 'tblTempVendorCDR_20' ) start [2025-03-05 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609850', 'tblTempVendorCDR_20' ) end [2025-03-05 01:43:17] Production.INFO: ProcessCDR(1,14609850,1,1,2) [2025-03-05 01:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609850', 'tblTempUsageDetail_20' ) start [2025-03-05 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609850', 'tblTempUsageDetail_20' ) end [2025-03-05 01:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:43:21] Production.INFO: ==11415== Releasing lock... [2025-03-05 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:43:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-05 01:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:44:06 [end_date_ymd] => 2025-03-05 01:44:06 [RateCDR] => 1 ) [2025-03-05 01:44: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-03-04 22:44:06' and `end` < '2025-03-05 01:44: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-03-05 01:44:18] Production.INFO: count ==297 [2025-03-05 01:44:18] Production.ERROR: pbx CDR StartTime 2025-03-04 22:44:06 - End Time 2025-03-05 01:44:06 [2025-03-05 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609855', 'tblTempUsageDetail_20' ) start [2025-03-05 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609855', 'tblTempUsageDetail_20' ) end [2025-03-05 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609855', 'tblTempVendorCDR_20' ) start [2025-03-05 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609855', 'tblTempVendorCDR_20' ) end [2025-03-05 01:44:18] Production.INFO: ProcessCDR(1,14609855,1,1,2) [2025-03-05 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609855', 'tblTempUsageDetail_20' ) start [2025-03-05 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609855', 'tblTempUsageDetail_20' ) end [2025-03-05 01:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:44:22] Production.INFO: ==11489== Releasing lock... [2025-03-05 01:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:44:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-05 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:45:05 [end_date_ymd] => 2025-03-05 01:45:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 22:45:05' and `end` < '2025-03-05 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-03-05 01:45:17] Production.INFO: count ==297 [2025-03-05 01:45:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:45:05 - End Time 2025-03-05 01:45:05 [2025-03-05 01:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609860', 'tblTempUsageDetail_20' ) start [2025-03-05 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609860', 'tblTempUsageDetail_20' ) end [2025-03-05 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609860', 'tblTempVendorCDR_20' ) start [2025-03-05 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609860', 'tblTempVendorCDR_20' ) end [2025-03-05 01:45:17] Production.INFO: ProcessCDR(1,14609860,1,1,2) [2025-03-05 01:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609860', 'tblTempUsageDetail_20' ) start [2025-03-05 01:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609860', 'tblTempUsageDetail_20' ) end [2025-03-05 01:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:45:20] Production.INFO: ==11562== Releasing lock... [2025-03-05 01:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:45:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-05 01:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:46:06 [end_date_ymd] => 2025-03-05 01:46:06 [RateCDR] => 1 ) [2025-03-05 01: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-03-04 22:46:06' and `end` < '2025-03-05 01: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-03-05 01:46:18] Production.INFO: count ==297 [2025-03-05 01:46:18] Production.ERROR: pbx CDR StartTime 2025-03-04 22:46:06 - End Time 2025-03-05 01:46:06 [2025-03-05 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609865', 'tblTempUsageDetail_20' ) start [2025-03-05 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609865', 'tblTempUsageDetail_20' ) end [2025-03-05 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609865', 'tblTempVendorCDR_20' ) start [2025-03-05 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609865', 'tblTempVendorCDR_20' ) end [2025-03-05 01:46:18] Production.INFO: ProcessCDR(1,14609865,1,1,2) [2025-03-05 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609865', 'tblTempUsageDetail_20' ) start [2025-03-05 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609865', 'tblTempUsageDetail_20' ) end [2025-03-05 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:46:21] Production.INFO: ==11635== Releasing lock... [2025-03-05 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:46:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-05 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:47:05 [end_date_ymd] => 2025-03-05 01:47:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 22:47:05' and `end` < '2025-03-05 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-03-05 01:47:17] Production.INFO: count ==294 [2025-03-05 01:47:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:47:05 - End Time 2025-03-05 01:47:05 [2025-03-05 01:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609870', 'tblTempUsageDetail_20' ) start [2025-03-05 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609870', 'tblTempUsageDetail_20' ) end [2025-03-05 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609870', 'tblTempVendorCDR_20' ) start [2025-03-05 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609870', 'tblTempVendorCDR_20' ) end [2025-03-05 01:47:17] Production.INFO: ProcessCDR(1,14609870,1,1,2) [2025-03-05 01:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609870', 'tblTempUsageDetail_20' ) start [2025-03-05 01:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609870', 'tblTempUsageDetail_20' ) end [2025-03-05 01:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:47:20] Production.INFO: ==11714== Releasing lock... [2025-03-05 01:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:47:21] Production.INFO: 30 MB #Memory Used# [2025-03-05 01:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:48:06 [end_date_ymd] => 2025-03-05 01:48:06 [RateCDR] => 1 ) [2025-03-05 01: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-03-04 22:48:06' and `end` < '2025-03-05 01: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-03-05 01:48:18] Production.INFO: count ==294 [2025-03-05 01:48:18] Production.ERROR: pbx CDR StartTime 2025-03-04 22:48:06 - End Time 2025-03-05 01:48:06 [2025-03-05 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609875', 'tblTempUsageDetail_20' ) start [2025-03-05 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609875', 'tblTempUsageDetail_20' ) end [2025-03-05 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609875', 'tblTempVendorCDR_20' ) start [2025-03-05 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609875', 'tblTempVendorCDR_20' ) end [2025-03-05 01:48:18] Production.INFO: ProcessCDR(1,14609875,1,1,2) [2025-03-05 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609875', 'tblTempUsageDetail_20' ) start [2025-03-05 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609875', 'tblTempUsageDetail_20' ) end [2025-03-05 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:48:21] Production.INFO: ==11789== Releasing lock... [2025-03-05 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:48:21] Production.INFO: 30 MB #Memory Used# [2025-03-05 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:49:05 [end_date_ymd] => 2025-03-05 01:49:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 22:49:05' and `end` < '2025-03-05 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-03-05 01:49:17] Production.INFO: count ==291 [2025-03-05 01:49:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:49:05 - End Time 2025-03-05 01:49:05 [2025-03-05 01:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609880', 'tblTempUsageDetail_20' ) start [2025-03-05 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609880', 'tblTempUsageDetail_20' ) end [2025-03-05 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609880', 'tblTempVendorCDR_20' ) start [2025-03-05 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609880', 'tblTempVendorCDR_20' ) end [2025-03-05 01:49:17] Production.INFO: ProcessCDR(1,14609880,1,1,2) [2025-03-05 01:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609880', 'tblTempUsageDetail_20' ) start [2025-03-05 01:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609880', 'tblTempUsageDetail_20' ) end [2025-03-05 01:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:49:20] Production.INFO: ==11861== Releasing lock... [2025-03-05 01:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:49:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:50:06 [end_date_ymd] => 2025-03-05 01:50:06 [RateCDR] => 1 ) [2025-03-05 01: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-03-04 22:50:06' and `end` < '2025-03-05 01: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-03-05 01:50:18] Production.INFO: count ==295 [2025-03-05 01:50:18] Production.ERROR: pbx CDR StartTime 2025-03-04 22:50:06 - End Time 2025-03-05 01:50:06 [2025-03-05 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609885', 'tblTempUsageDetail_20' ) start [2025-03-05 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609885', 'tblTempUsageDetail_20' ) end [2025-03-05 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609885', 'tblTempVendorCDR_20' ) start [2025-03-05 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609885', 'tblTempVendorCDR_20' ) end [2025-03-05 01:50:18] Production.INFO: ProcessCDR(1,14609885,1,1,2) [2025-03-05 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609885', 'tblTempUsageDetail_20' ) start [2025-03-05 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609885', 'tblTempUsageDetail_20' ) end [2025-03-05 01:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:50:21] Production.INFO: ==11978== Releasing lock... [2025-03-05 01:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:50:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:51:05 [end_date_ymd] => 2025-03-05 01:51:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 22:51:05' and `end` < '2025-03-05 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-03-05 01:51:17] Production.INFO: count ==295 [2025-03-05 01:51:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:51:05 - End Time 2025-03-05 01:51:05 [2025-03-05 01:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609891', 'tblTempUsageDetail_20' ) start [2025-03-05 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609891', 'tblTempUsageDetail_20' ) end [2025-03-05 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609891', 'tblTempVendorCDR_20' ) start [2025-03-05 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609891', 'tblTempVendorCDR_20' ) end [2025-03-05 01:51:17] Production.INFO: ProcessCDR(1,14609891,1,1,2) [2025-03-05 01:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609891', 'tblTempUsageDetail_20' ) start [2025-03-05 01:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609891', 'tblTempUsageDetail_20' ) end [2025-03-05 01:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:51:20] Production.INFO: ==12049== Releasing lock... [2025-03-05 01:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:51:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:52:05 [end_date_ymd] => 2025-03-05 01:52:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 22:52:05' and `end` < '2025-03-05 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-03-05 01:52:17] Production.INFO: count ==291 [2025-03-05 01:52:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:52:05 - End Time 2025-03-05 01:52:05 [2025-03-05 01:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609896', 'tblTempUsageDetail_20' ) start [2025-03-05 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609896', 'tblTempUsageDetail_20' ) end [2025-03-05 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609896', 'tblTempVendorCDR_20' ) start [2025-03-05 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609896', 'tblTempVendorCDR_20' ) end [2025-03-05 01:52:17] Production.INFO: ProcessCDR(1,14609896,1,1,2) [2025-03-05 01:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609896', 'tblTempUsageDetail_20' ) start [2025-03-05 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609896', 'tblTempUsageDetail_20' ) end [2025-03-05 01:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:52:21] Production.INFO: ==12130== Releasing lock... [2025-03-05 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:52:21] Production.INFO: 30 MB #Memory Used# [2025-03-05 01:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:53:06 [end_date_ymd] => 2025-03-05 01:53:06 [RateCDR] => 1 ) [2025-03-05 01: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-03-04 22:53:06' and `end` < '2025-03-05 01: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-03-05 01:53:18] Production.INFO: count ==290 [2025-03-05 01:53:18] Production.ERROR: pbx CDR StartTime 2025-03-04 22:53:06 - End Time 2025-03-05 01:53:06 [2025-03-05 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609901', 'tblTempUsageDetail_20' ) start [2025-03-05 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609901', 'tblTempUsageDetail_20' ) end [2025-03-05 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609901', 'tblTempVendorCDR_20' ) start [2025-03-05 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609901', 'tblTempVendorCDR_20' ) end [2025-03-05 01:53:18] Production.INFO: ProcessCDR(1,14609901,1,1,2) [2025-03-05 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609901', 'tblTempUsageDetail_20' ) start [2025-03-05 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609901', 'tblTempUsageDetail_20' ) end [2025-03-05 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:53:21] Production.INFO: ==12206== Releasing lock... [2025-03-05 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:53:21] Production.INFO: 30 MB #Memory Used# [2025-03-05 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:54:05 [end_date_ymd] => 2025-03-05 01:54:05 [RateCDR] => 1 ) [2025-03-05 01: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-03-04 22:54:05' and `end` < '2025-03-05 01: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-03-05 01:54:17] Production.INFO: count ==288 [2025-03-05 01:54:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:54:05 - End Time 2025-03-05 01:54:05 [2025-03-05 01:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609906', 'tblTempUsageDetail_20' ) start [2025-03-05 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609906', 'tblTempUsageDetail_20' ) end [2025-03-05 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609906', 'tblTempVendorCDR_20' ) start [2025-03-05 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609906', 'tblTempVendorCDR_20' ) end [2025-03-05 01:54:17] Production.INFO: ProcessCDR(1,14609906,1,1,2) [2025-03-05 01:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609906', 'tblTempUsageDetail_20' ) start [2025-03-05 01:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609906', 'tblTempUsageDetail_20' ) end [2025-03-05 01:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:54:20] Production.INFO: ==12278== Releasing lock... [2025-03-05 01:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:54:20] Production.INFO: 30 MB #Memory Used# [2025-03-05 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:55:05 [end_date_ymd] => 2025-03-05 01:55:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 22:55:05' and `end` < '2025-03-05 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-03-05 01:55:18] Production.INFO: count ==287 [2025-03-05 01:55:18] Production.ERROR: pbx CDR StartTime 2025-03-04 22:55:05 - End Time 2025-03-05 01:55:05 [2025-03-05 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609911', 'tblTempUsageDetail_20' ) start [2025-03-05 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609911', 'tblTempUsageDetail_20' ) end [2025-03-05 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609911', 'tblTempVendorCDR_20' ) start [2025-03-05 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609911', 'tblTempVendorCDR_20' ) end [2025-03-05 01:55:18] Production.INFO: ProcessCDR(1,14609911,1,1,2) [2025-03-05 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609911', 'tblTempUsageDetail_20' ) start [2025-03-05 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609911', 'tblTempUsageDetail_20' ) end [2025-03-05 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:55:21] Production.INFO: ==12353== Releasing lock... [2025-03-05 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:55:21] Production.INFO: 30 MB #Memory Used# [2025-03-05 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:56:05 [end_date_ymd] => 2025-03-05 01:56:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 22:56:05' and `end` < '2025-03-05 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-03-05 01:56:17] Production.INFO: count ==287 [2025-03-05 01:56:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:56:05 - End Time 2025-03-05 01:56:05 [2025-03-05 01:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609916', 'tblTempUsageDetail_20' ) start [2025-03-05 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609916', 'tblTempUsageDetail_20' ) end [2025-03-05 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609916', 'tblTempVendorCDR_20' ) start [2025-03-05 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609916', 'tblTempVendorCDR_20' ) end [2025-03-05 01:56:17] Production.INFO: ProcessCDR(1,14609916,1,1,2) [2025-03-05 01:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609916', 'tblTempUsageDetail_20' ) start [2025-03-05 01:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609916', 'tblTempUsageDetail_20' ) end [2025-03-05 01:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:56:20] Production.INFO: ==12424== Releasing lock... [2025-03-05 01:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:56:20] Production.INFO: 30 MB #Memory Used# [2025-03-05 01:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:57:06 [end_date_ymd] => 2025-03-05 01:57:06 [RateCDR] => 1 ) [2025-03-05 01:57: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-03-04 22:57:06' and `end` < '2025-03-05 01:57: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-03-05 01:57:18] Production.INFO: count ==287 [2025-03-05 01:57:18] Production.ERROR: pbx CDR StartTime 2025-03-04 22:57:06 - End Time 2025-03-05 01:57:06 [2025-03-05 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609921', 'tblTempUsageDetail_20' ) start [2025-03-05 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609921', 'tblTempUsageDetail_20' ) end [2025-03-05 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609921', 'tblTempVendorCDR_20' ) start [2025-03-05 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609921', 'tblTempVendorCDR_20' ) end [2025-03-05 01:57:18] Production.INFO: ProcessCDR(1,14609921,1,1,2) [2025-03-05 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609921', 'tblTempUsageDetail_20' ) start [2025-03-05 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609921', 'tblTempUsageDetail_20' ) end [2025-03-05 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:57:21] Production.INFO: ==12497== Releasing lock... [2025-03-05 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:57:21] Production.INFO: 30 MB #Memory Used# [2025-03-05 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:58:05 [end_date_ymd] => 2025-03-05 01:58:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 22:58:05' and `end` < '2025-03-05 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-03-05 01:58:17] Production.INFO: count ==287 [2025-03-05 01:58:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:58:05 - End Time 2025-03-05 01:58:05 [2025-03-05 01:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609926', 'tblTempUsageDetail_20' ) start [2025-03-05 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609926', 'tblTempUsageDetail_20' ) end [2025-03-05 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609926', 'tblTempVendorCDR_20' ) start [2025-03-05 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609926', 'tblTempVendorCDR_20' ) end [2025-03-05 01:58:17] Production.INFO: ProcessCDR(1,14609926,1,1,2) [2025-03-05 01:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609926', 'tblTempUsageDetail_20' ) start [2025-03-05 01:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609926', 'tblTempUsageDetail_20' ) end [2025-03-05 01:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:58:20] Production.INFO: ==12571== Releasing lock... [2025-03-05 01:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:58:20] Production.INFO: 30 MB #Memory Used# [2025-03-05 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 22:59:05 [end_date_ymd] => 2025-03-05 01:59:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 22:59:05' and `end` < '2025-03-05 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-03-05 01:59:17] Production.INFO: count ==284 [2025-03-05 01:59:17] Production.ERROR: pbx CDR StartTime 2025-03-04 22:59:05 - End Time 2025-03-05 01:59:05 [2025-03-05 01:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609931', 'tblTempUsageDetail_20' ) start [2025-03-05 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609931', 'tblTempUsageDetail_20' ) end [2025-03-05 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609931', 'tblTempVendorCDR_20' ) start [2025-03-05 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609931', 'tblTempVendorCDR_20' ) end [2025-03-05 01:59:17] Production.INFO: ProcessCDR(1,14609931,1,1,2) [2025-03-05 01:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 01:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 01:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609931', 'tblTempUsageDetail_20' ) start [2025-03-05 01:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609931', 'tblTempUsageDetail_20' ) end [2025-03-05 01:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 01:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 01:59:20] Production.INFO: ==12643== Releasing lock... [2025-03-05 01:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 01:59:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-05 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:00:06 [end_date_ymd] => 2025-03-05 02:00:06 [RateCDR] => 1 ) [2025-03-05 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-03-04 23:00:06' and `end` < '2025-03-05 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-03-05 02:00:18] Production.INFO: count ==292 [2025-03-05 02:00:18] Production.ERROR: pbx CDR StartTime 2025-03-04 23:00:06 - End Time 2025-03-05 02:00:06 [2025-03-05 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609937', 'tblTempUsageDetail_20' ) start [2025-03-05 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609937', 'tblTempUsageDetail_20' ) end [2025-03-05 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609937', 'tblTempVendorCDR_20' ) start [2025-03-05 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609937', 'tblTempVendorCDR_20' ) end [2025-03-05 02:00:18] Production.INFO: ProcessCDR(1,14609937,1,1,2) [2025-03-05 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609937', 'tblTempUsageDetail_20' ) start [2025-03-05 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609937', 'tblTempUsageDetail_20' ) end [2025-03-05 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:00:22] Production.INFO: ==12721== Releasing lock... [2025-03-05 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:00:22] Production.INFO: 30 MB #Memory Used# [2025-03-05 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:01:05 [end_date_ymd] => 2025-03-05 02:01:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 23:01:05' and `end` < '2025-03-05 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-03-05 02:01:17] Production.INFO: count ==292 [2025-03-05 02:01:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:01:05 - End Time 2025-03-05 02:01:05 [2025-03-05 02:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609942', 'tblTempUsageDetail_20' ) start [2025-03-05 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609942', 'tblTempUsageDetail_20' ) end [2025-03-05 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609942', 'tblTempVendorCDR_20' ) start [2025-03-05 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609942', 'tblTempVendorCDR_20' ) end [2025-03-05 02:01:17] Production.INFO: ProcessCDR(1,14609942,1,1,2) [2025-03-05 02:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609942', 'tblTempUsageDetail_20' ) start [2025-03-05 02:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609942', 'tblTempUsageDetail_20' ) end [2025-03-05 02:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:01:20] Production.INFO: ==12897== Releasing lock... [2025-03-05 02:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:01:20] Production.INFO: 30 MB #Memory Used# [2025-03-05 02:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:02:04 [end_date_ymd] => 2025-03-05 02:02:04 [RateCDR] => 1 ) [2025-03-05 02: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-03-04 23:02:04' and `end` < '2025-03-05 02: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-03-05 02:02:16] Production.INFO: count ==291 [2025-03-05 02:02:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:02:04 - End Time 2025-03-05 02:02:04 [2025-03-05 02:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609947', 'tblTempUsageDetail_20' ) start [2025-03-05 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609947', 'tblTempUsageDetail_20' ) end [2025-03-05 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609947', 'tblTempVendorCDR_20' ) start [2025-03-05 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609947', 'tblTempVendorCDR_20' ) end [2025-03-05 02:02:17] Production.INFO: ProcessCDR(1,14609947,1,1,2) [2025-03-05 02:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609947', 'tblTempUsageDetail_20' ) start [2025-03-05 02:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609947', 'tblTempUsageDetail_20' ) end [2025-03-05 02:02:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:02:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:02:20] Production.INFO: ==12966== Releasing lock... [2025-03-05 02:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:02:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-05 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:03:05 [end_date_ymd] => 2025-03-05 02:03:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 23:03:05' and `end` < '2025-03-05 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-03-05 02:03:17] Production.INFO: count ==287 [2025-03-05 02:03:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:03:05 - End Time 2025-03-05 02:03:05 [2025-03-05 02:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609952', 'tblTempUsageDetail_20' ) start [2025-03-05 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609952', 'tblTempUsageDetail_20' ) end [2025-03-05 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609952', 'tblTempVendorCDR_20' ) start [2025-03-05 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609952', 'tblTempVendorCDR_20' ) end [2025-03-05 02:03:17] Production.INFO: ProcessCDR(1,14609952,1,1,2) [2025-03-05 02:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609952', 'tblTempUsageDetail_20' ) start [2025-03-05 02:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609952', 'tblTempUsageDetail_20' ) end [2025-03-05 02:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:03:20] Production.INFO: ==13044== Releasing lock... [2025-03-05 02:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:03:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-05 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:04:06 [end_date_ymd] => 2025-03-05 02:04:06 [RateCDR] => 1 ) [2025-03-05 02:04: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-03-04 23:04:06' and `end` < '2025-03-05 02:04: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-03-05 02:04:18] Production.INFO: count ==286 [2025-03-05 02:04:18] Production.ERROR: pbx CDR StartTime 2025-03-04 23:04:06 - End Time 2025-03-05 02:04:06 [2025-03-05 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609957', 'tblTempUsageDetail_20' ) start [2025-03-05 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609957', 'tblTempUsageDetail_20' ) end [2025-03-05 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609957', 'tblTempVendorCDR_20' ) start [2025-03-05 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609957', 'tblTempVendorCDR_20' ) end [2025-03-05 02:04:18] Production.INFO: ProcessCDR(1,14609957,1,1,2) [2025-03-05 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609957', 'tblTempUsageDetail_20' ) start [2025-03-05 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609957', 'tblTempUsageDetail_20' ) end [2025-03-05 02:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:04:22] Production.INFO: ==13120== Releasing lock... [2025-03-05 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:04:22] Production.INFO: 30 MB #Memory Used# [2025-03-05 02:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:05:06 [end_date_ymd] => 2025-03-05 02:05:06 [RateCDR] => 1 ) [2025-03-05 02:05: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-03-04 23:05:06' and `end` < '2025-03-05 02:05: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-03-05 02:05:18] Production.INFO: count ==300 [2025-03-05 02:05:18] Production.ERROR: pbx CDR StartTime 2025-03-04 23:05:06 - End Time 2025-03-05 02:05:06 [2025-03-05 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609962', 'tblTempUsageDetail_20' ) start [2025-03-05 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609962', 'tblTempUsageDetail_20' ) end [2025-03-05 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609962', 'tblTempVendorCDR_20' ) start [2025-03-05 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609962', 'tblTempVendorCDR_20' ) end [2025-03-05 02:05:18] Production.INFO: ProcessCDR(1,14609962,1,1,2) [2025-03-05 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609962', 'tblTempUsageDetail_20' ) start [2025-03-05 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609962', 'tblTempUsageDetail_20' ) end [2025-03-05 02:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:05:22] Production.INFO: ==13230== Releasing lock... [2025-03-05 02:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:05:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 02:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:06:06 [end_date_ymd] => 2025-03-05 02:06:06 [RateCDR] => 1 ) [2025-03-05 02:06: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-03-04 23:06:06' and `end` < '2025-03-05 02:06: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-03-05 02:06:18] Production.INFO: count ==300 [2025-03-05 02:06:18] Production.ERROR: pbx CDR StartTime 2025-03-04 23:06:06 - End Time 2025-03-05 02:06:06 [2025-03-05 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609967', 'tblTempUsageDetail_20' ) start [2025-03-05 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609967', 'tblTempUsageDetail_20' ) end [2025-03-05 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609967', 'tblTempVendorCDR_20' ) start [2025-03-05 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609967', 'tblTempVendorCDR_20' ) end [2025-03-05 02:06:18] Production.INFO: ProcessCDR(1,14609967,1,1,2) [2025-03-05 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609967', 'tblTempUsageDetail_20' ) start [2025-03-05 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609967', 'tblTempUsageDetail_20' ) end [2025-03-05 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:06:21] Production.INFO: ==13314== Releasing lock... [2025-03-05 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:06:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:07:05 [end_date_ymd] => 2025-03-05 02:07:05 [RateCDR] => 1 ) [2025-03-05 02: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-03-04 23:07:05' and `end` < '2025-03-05 02: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-03-05 02:07:18] Production.INFO: count ==299 [2025-03-05 02:07:18] Production.ERROR: pbx CDR StartTime 2025-03-04 23:07:05 - End Time 2025-03-05 02:07:05 [2025-03-05 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609972', 'tblTempUsageDetail_20' ) start [2025-03-05 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609972', 'tblTempUsageDetail_20' ) end [2025-03-05 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609972', 'tblTempVendorCDR_20' ) start [2025-03-05 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609972', 'tblTempVendorCDR_20' ) end [2025-03-05 02:07:18] Production.INFO: ProcessCDR(1,14609972,1,1,2) [2025-03-05 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609972', 'tblTempUsageDetail_20' ) start [2025-03-05 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609972', 'tblTempUsageDetail_20' ) end [2025-03-05 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:07:21] Production.INFO: ==13387== Releasing lock... [2025-03-05 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:07:21] Production.INFO: 30 MB #Memory Used# [2025-03-05 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:08:05 [end_date_ymd] => 2025-03-05 02:08:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 23:08:05' and `end` < '2025-03-05 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-03-05 02:08:17] Production.INFO: count ==298 [2025-03-05 02:08:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:08:05 - End Time 2025-03-05 02:08:05 [2025-03-05 02:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609977', 'tblTempUsageDetail_20' ) start [2025-03-05 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609977', 'tblTempUsageDetail_20' ) end [2025-03-05 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609977', 'tblTempVendorCDR_20' ) start [2025-03-05 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609977', 'tblTempVendorCDR_20' ) end [2025-03-05 02:08:17] Production.INFO: ProcessCDR(1,14609977,1,1,2) [2025-03-05 02:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609977', 'tblTempUsageDetail_20' ) start [2025-03-05 02:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609977', 'tblTempUsageDetail_20' ) end [2025-03-05 02:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:08:20] Production.INFO: ==13459== Releasing lock... [2025-03-05 02:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:08:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:09:05 [end_date_ymd] => 2025-03-05 02:09:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 23:09:05' and `end` < '2025-03-05 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-03-05 02:09:17] Production.INFO: count ==297 [2025-03-05 02:09:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:09:05 - End Time 2025-03-05 02:09:05 [2025-03-05 02:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609982', 'tblTempUsageDetail_20' ) start [2025-03-05 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609982', 'tblTempUsageDetail_20' ) end [2025-03-05 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609982', 'tblTempVendorCDR_20' ) start [2025-03-05 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609982', 'tblTempVendorCDR_20' ) end [2025-03-05 02:09:17] Production.INFO: ProcessCDR(1,14609982,1,1,2) [2025-03-05 02:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609982', 'tblTempUsageDetail_20' ) start [2025-03-05 02:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609982', 'tblTempUsageDetail_20' ) end [2025-03-05 02:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:09:20] Production.INFO: ==13533== Releasing lock... [2025-03-05 02:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:09:20] Production.INFO: 30 MB #Memory Used# [2025-03-05 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:10:06 [end_date_ymd] => 2025-03-05 02:10:06 [RateCDR] => 1 ) [2025-03-05 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-03-04 23:10:06' and `end` < '2025-03-05 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-03-05 02:10:18] Production.INFO: count ==302 [2025-03-05 02:10:18] Production.ERROR: pbx CDR StartTime 2025-03-04 23:10:06 - End Time 2025-03-05 02:10:06 [2025-03-05 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609988', 'tblTempUsageDetail_20' ) start [2025-03-05 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609988', 'tblTempUsageDetail_20' ) end [2025-03-05 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609988', 'tblTempVendorCDR_20' ) start [2025-03-05 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609988', 'tblTempVendorCDR_20' ) end [2025-03-05 02:10:18] Production.INFO: ProcessCDR(1,14609988,1,1,2) [2025-03-05 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609988', 'tblTempUsageDetail_20' ) start [2025-03-05 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609988', 'tblTempUsageDetail_20' ) end [2025-03-05 02:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:10:21] Production.INFO: ==13611== Releasing lock... [2025-03-05 02:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:10:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:11:05 [end_date_ymd] => 2025-03-05 02:11:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 23:11:05' and `end` < '2025-03-05 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-03-05 02:11:17] Production.INFO: count ==302 [2025-03-05 02:11:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:11:05 - End Time 2025-03-05 02:11:05 [2025-03-05 02:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609993', 'tblTempUsageDetail_20' ) start [2025-03-05 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609993', 'tblTempUsageDetail_20' ) end [2025-03-05 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609993', 'tblTempVendorCDR_20' ) start [2025-03-05 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609993', 'tblTempVendorCDR_20' ) end [2025-03-05 02:11:17] Production.INFO: ProcessCDR(1,14609993,1,1,2) [2025-03-05 02:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609993', 'tblTempUsageDetail_20' ) start [2025-03-05 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609993', 'tblTempUsageDetail_20' ) end [2025-03-05 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:11:21] Production.INFO: ==13685== Releasing lock... [2025-03-05 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:11:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:12:05 [end_date_ymd] => 2025-03-05 02:12:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 23:12:05' and `end` < '2025-03-05 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-03-05 02:12:17] Production.INFO: count ==302 [2025-03-05 02:12:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:12:05 - End Time 2025-03-05 02:12:05 [2025-03-05 02:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609998', 'tblTempUsageDetail_20' ) start [2025-03-05 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609998', 'tblTempUsageDetail_20' ) end [2025-03-05 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609998', 'tblTempVendorCDR_20' ) start [2025-03-05 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609998', 'tblTempVendorCDR_20' ) end [2025-03-05 02:12:17] Production.INFO: ProcessCDR(1,14609998,1,1,2) [2025-03-05 02:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609998', 'tblTempUsageDetail_20' ) start [2025-03-05 02:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609998', 'tblTempUsageDetail_20' ) end [2025-03-05 02:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:12:20] Production.INFO: ==13758== Releasing lock... [2025-03-05 02:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:12:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:13:05 [end_date_ymd] => 2025-03-05 02:13:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 23:13:05' and `end` < '2025-03-05 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-03-05 02:13:17] Production.INFO: count ==302 [2025-03-05 02:13:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:13:05 - End Time 2025-03-05 02:13:05 [2025-03-05 02:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610003', 'tblTempUsageDetail_20' ) start [2025-03-05 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610003', 'tblTempUsageDetail_20' ) end [2025-03-05 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610003', 'tblTempVendorCDR_20' ) start [2025-03-05 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610003', 'tblTempVendorCDR_20' ) end [2025-03-05 02:13:17] Production.INFO: ProcessCDR(1,14610003,1,1,2) [2025-03-05 02:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610003', 'tblTempUsageDetail_20' ) start [2025-03-05 02:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610003', 'tblTempUsageDetail_20' ) end [2025-03-05 02:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:13:20] Production.INFO: ==13831== Releasing lock... [2025-03-05 02:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:13:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:14:05 [end_date_ymd] => 2025-03-05 02:14:05 [RateCDR] => 1 ) [2025-03-05 02: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-03-04 23:14:05' and `end` < '2025-03-05 02: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-03-05 02:14:17] Production.INFO: count ==302 [2025-03-05 02:14:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:14:05 - End Time 2025-03-05 02:14:05 [2025-03-05 02:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610008', 'tblTempUsageDetail_20' ) start [2025-03-05 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610008', 'tblTempUsageDetail_20' ) end [2025-03-05 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610008', 'tblTempVendorCDR_20' ) start [2025-03-05 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610008', 'tblTempVendorCDR_20' ) end [2025-03-05 02:14:17] Production.INFO: ProcessCDR(1,14610008,1,1,2) [2025-03-05 02:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610008', 'tblTempUsageDetail_20' ) start [2025-03-05 02:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610008', 'tblTempUsageDetail_20' ) end [2025-03-05 02:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:14:20] Production.INFO: ==13903== Releasing lock... [2025-03-05 02:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:14:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 02:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:15:06 [end_date_ymd] => 2025-03-05 02:15:06 [RateCDR] => 1 ) [2025-03-05 02: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-03-04 23:15:06' and `end` < '2025-03-05 02: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-03-05 02:15:18] Production.INFO: count ==302 [2025-03-05 02:15:18] Production.ERROR: pbx CDR StartTime 2025-03-04 23:15:06 - End Time 2025-03-05 02:15:06 [2025-03-05 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610013', 'tblTempUsageDetail_20' ) start [2025-03-05 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610013', 'tblTempUsageDetail_20' ) end [2025-03-05 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610013', 'tblTempVendorCDR_20' ) start [2025-03-05 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610013', 'tblTempVendorCDR_20' ) end [2025-03-05 02:15:18] Production.INFO: ProcessCDR(1,14610013,1,1,2) [2025-03-05 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610013', 'tblTempUsageDetail_20' ) start [2025-03-05 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610013', 'tblTempUsageDetail_20' ) end [2025-03-05 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:15:21] Production.INFO: ==13979== Releasing lock... [2025-03-05 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:15:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:16:05 [end_date_ymd] => 2025-03-05 02:16:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 23:16:05' and `end` < '2025-03-05 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-03-05 02:16:17] Production.INFO: count ==302 [2025-03-05 02:16:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:16:05 - End Time 2025-03-05 02:16:05 [2025-03-05 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610018', 'tblTempUsageDetail_20' ) start [2025-03-05 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610018', 'tblTempUsageDetail_20' ) end [2025-03-05 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610018', 'tblTempVendorCDR_20' ) start [2025-03-05 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610018', 'tblTempVendorCDR_20' ) end [2025-03-05 02:16:17] Production.INFO: ProcessCDR(1,14610018,1,1,2) [2025-03-05 02:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610018', 'tblTempUsageDetail_20' ) start [2025-03-05 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610018', 'tblTempUsageDetail_20' ) end [2025-03-05 02:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:16:20] Production.INFO: ==14054== Releasing lock... [2025-03-05 02:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:16:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 02:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:17:06 [end_date_ymd] => 2025-03-05 02:17:06 [RateCDR] => 1 ) [2025-03-05 02: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-03-04 23:17:06' and `end` < '2025-03-05 02: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-03-05 02:17:17] Production.INFO: count ==302 [2025-03-05 02:17:18] Production.ERROR: pbx CDR StartTime 2025-03-04 23:17:06 - End Time 2025-03-05 02:17:06 [2025-03-05 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610023', 'tblTempUsageDetail_20' ) start [2025-03-05 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610023', 'tblTempUsageDetail_20' ) end [2025-03-05 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610023', 'tblTempVendorCDR_20' ) start [2025-03-05 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610023', 'tblTempVendorCDR_20' ) end [2025-03-05 02:17:18] Production.INFO: ProcessCDR(1,14610023,1,1,2) [2025-03-05 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610023', 'tblTempUsageDetail_20' ) start [2025-03-05 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610023', 'tblTempUsageDetail_20' ) end [2025-03-05 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:17:21] Production.INFO: ==14124== Releasing lock... [2025-03-05 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:17:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:18:05 [end_date_ymd] => 2025-03-05 02:18:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 23:18:05' and `end` < '2025-03-05 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-03-05 02:18:17] Production.INFO: count ==301 [2025-03-05 02:18:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:18:05 - End Time 2025-03-05 02:18:05 [2025-03-05 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610028', 'tblTempUsageDetail_20' ) start [2025-03-05 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610028', 'tblTempUsageDetail_20' ) end [2025-03-05 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610028', 'tblTempVendorCDR_20' ) start [2025-03-05 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610028', 'tblTempVendorCDR_20' ) end [2025-03-05 02:18:17] Production.INFO: ProcessCDR(1,14610028,1,1,2) [2025-03-05 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610028', 'tblTempUsageDetail_20' ) start [2025-03-05 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610028', 'tblTempUsageDetail_20' ) end [2025-03-05 02:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:18:20] Production.INFO: ==14198== Releasing lock... [2025-03-05 02:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:18:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:19:05 [end_date_ymd] => 2025-03-05 02:19:05 [RateCDR] => 1 ) [2025-03-05 02: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-03-04 23:19:05' and `end` < '2025-03-05 02: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-03-05 02:19:17] Production.INFO: count ==301 [2025-03-05 02:19:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:19:05 - End Time 2025-03-05 02:19:05 [2025-03-05 02:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610033', 'tblTempUsageDetail_20' ) start [2025-03-05 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610033', 'tblTempUsageDetail_20' ) end [2025-03-05 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610033', 'tblTempVendorCDR_20' ) start [2025-03-05 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610033', 'tblTempVendorCDR_20' ) end [2025-03-05 02:19:17] Production.INFO: ProcessCDR(1,14610033,1,1,2) [2025-03-05 02:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610033', 'tblTempUsageDetail_20' ) start [2025-03-05 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610033', 'tblTempUsageDetail_20' ) end [2025-03-05 02:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:19:20] Production.INFO: ==14273== Releasing lock... [2025-03-05 02:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:19:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:20:06 [end_date_ymd] => 2025-03-05 02:20:06 [RateCDR] => 1 ) [2025-03-05 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-03-04 23:20:06' and `end` < '2025-03-05 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-03-05 02:20:18] Production.INFO: count ==304 [2025-03-05 02:20:18] Production.ERROR: pbx CDR StartTime 2025-03-04 23:20:06 - End Time 2025-03-05 02:20:06 [2025-03-05 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610038', 'tblTempUsageDetail_20' ) start [2025-03-05 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610038', 'tblTempUsageDetail_20' ) end [2025-03-05 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610038', 'tblTempVendorCDR_20' ) start [2025-03-05 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610038', 'tblTempVendorCDR_20' ) end [2025-03-05 02:20:18] Production.INFO: ProcessCDR(1,14610038,1,1,2) [2025-03-05 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610038', 'tblTempUsageDetail_20' ) start [2025-03-05 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610038', 'tblTempUsageDetail_20' ) end [2025-03-05 02:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:20:21] Production.INFO: ==14350== Releasing lock... [2025-03-05 02:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:20:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:21:05 [end_date_ymd] => 2025-03-05 02:21:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 23:21:05' and `end` < '2025-03-05 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-03-05 02:21:17] Production.INFO: count ==301 [2025-03-05 02:21:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:21:05 - End Time 2025-03-05 02:21:05 [2025-03-05 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610044', 'tblTempUsageDetail_20' ) start [2025-03-05 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610044', 'tblTempUsageDetail_20' ) end [2025-03-05 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610044', 'tblTempVendorCDR_20' ) start [2025-03-05 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610044', 'tblTempVendorCDR_20' ) end [2025-03-05 02:21:17] Production.INFO: ProcessCDR(1,14610044,1,1,2) [2025-03-05 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610044', 'tblTempUsageDetail_20' ) start [2025-03-05 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610044', 'tblTempUsageDetail_20' ) end [2025-03-05 02:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:21:20] Production.INFO: ==14465== Releasing lock... [2025-03-05 02:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:21:20] Production.INFO: 30 MB #Memory Used# [2025-03-05 02:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:22:06 [end_date_ymd] => 2025-03-05 02:22:06 [RateCDR] => 1 ) [2025-03-05 02: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-03-04 23:22:06' and `end` < '2025-03-05 02:22: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-03-05 02:22:18] Production.INFO: count ==298 [2025-03-05 02:22:18] Production.ERROR: pbx CDR StartTime 2025-03-04 23:22:06 - End Time 2025-03-05 02:22:06 [2025-03-05 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610049', 'tblTempUsageDetail_20' ) start [2025-03-05 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610049', 'tblTempUsageDetail_20' ) end [2025-03-05 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610049', 'tblTempVendorCDR_20' ) start [2025-03-05 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610049', 'tblTempVendorCDR_20' ) end [2025-03-05 02:22:18] Production.INFO: ProcessCDR(1,14610049,1,1,2) [2025-03-05 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610049', 'tblTempUsageDetail_20' ) start [2025-03-05 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610049', 'tblTempUsageDetail_20' ) end [2025-03-05 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:22:21] Production.INFO: ==14598== Releasing lock... [2025-03-05 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:22:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:23:05 [end_date_ymd] => 2025-03-05 02:23:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 23:23:05' and `end` < '2025-03-05 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-03-05 02:23:17] Production.INFO: count ==295 [2025-03-05 02:23:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:23:05 - End Time 2025-03-05 02:23:05 [2025-03-05 02:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610054', 'tblTempUsageDetail_20' ) start [2025-03-05 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610054', 'tblTempUsageDetail_20' ) end [2025-03-05 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610054', 'tblTempVendorCDR_20' ) start [2025-03-05 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610054', 'tblTempVendorCDR_20' ) end [2025-03-05 02:23:17] Production.INFO: ProcessCDR(1,14610054,1,1,2) [2025-03-05 02:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610054', 'tblTempUsageDetail_20' ) start [2025-03-05 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610054', 'tblTempUsageDetail_20' ) end [2025-03-05 02:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:23:20] Production.INFO: ==14751== Releasing lock... [2025-03-05 02:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:23:20] Production.INFO: 30 MB #Memory Used# [2025-03-05 02:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:24:06 [end_date_ymd] => 2025-03-05 02:24:06 [RateCDR] => 1 ) [2025-03-05 02: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-03-04 23:24:06' and `end` < '2025-03-05 02: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-03-05 02:24:18] Production.INFO: count ==293 [2025-03-05 02:24:18] Production.ERROR: pbx CDR StartTime 2025-03-04 23:24:06 - End Time 2025-03-05 02:24:06 [2025-03-05 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610059', 'tblTempUsageDetail_20' ) start [2025-03-05 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610059', 'tblTempUsageDetail_20' ) end [2025-03-05 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610059', 'tblTempVendorCDR_20' ) start [2025-03-05 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610059', 'tblTempVendorCDR_20' ) end [2025-03-05 02:24:18] Production.INFO: ProcessCDR(1,14610059,1,1,2) [2025-03-05 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610059', 'tblTempUsageDetail_20' ) start [2025-03-05 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610059', 'tblTempUsageDetail_20' ) end [2025-03-05 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:24:21] Production.INFO: ==14904== Releasing lock... [2025-03-05 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:24:21] Production.INFO: 30 MB #Memory Used# [2025-03-05 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:25:05 [end_date_ymd] => 2025-03-05 02:25:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 23:25:05' and `end` < '2025-03-05 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-03-05 02:25:17] Production.INFO: count ==293 [2025-03-05 02:25:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:25:05 - End Time 2025-03-05 02:25:05 [2025-03-05 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610064', 'tblTempUsageDetail_20' ) start [2025-03-05 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610064', 'tblTempUsageDetail_20' ) end [2025-03-05 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610064', 'tblTempVendorCDR_20' ) start [2025-03-05 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610064', 'tblTempVendorCDR_20' ) end [2025-03-05 02:25:17] Production.INFO: ProcessCDR(1,14610064,1,1,2) [2025-03-05 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610064', 'tblTempUsageDetail_20' ) start [2025-03-05 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610064', 'tblTempUsageDetail_20' ) end [2025-03-05 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:25:21] Production.INFO: ==15052== Releasing lock... [2025-03-05 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:25:21] Production.INFO: 30 MB #Memory Used# [2025-03-05 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:26:05 [end_date_ymd] => 2025-03-05 02:26:05 [RateCDR] => 1 ) [2025-03-05 02: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-03-04 23:26:05' and `end` < '2025-03-05 02: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-03-05 02:26:17] Production.INFO: count ==293 [2025-03-05 02:26:18] Production.ERROR: pbx CDR StartTime 2025-03-04 23:26:05 - End Time 2025-03-05 02:26:05 [2025-03-05 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610069', 'tblTempUsageDetail_20' ) start [2025-03-05 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610069', 'tblTempUsageDetail_20' ) end [2025-03-05 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610069', 'tblTempVendorCDR_20' ) start [2025-03-05 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610069', 'tblTempVendorCDR_20' ) end [2025-03-05 02:26:18] Production.INFO: ProcessCDR(1,14610069,1,1,2) [2025-03-05 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610069', 'tblTempUsageDetail_20' ) start [2025-03-05 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610069', 'tblTempUsageDetail_20' ) end [2025-03-05 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:26:21] Production.INFO: ==15204== Releasing lock... [2025-03-05 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:26:21] Production.INFO: 30 MB #Memory Used# [2025-03-05 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:27:05 [end_date_ymd] => 2025-03-05 02:27:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 23:27:05' and `end` < '2025-03-05 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-03-05 02:27:17] Production.INFO: count ==294 [2025-03-05 02:27:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:27:05 - End Time 2025-03-05 02:27:05 [2025-03-05 02:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610074', 'tblTempUsageDetail_20' ) start [2025-03-05 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610074', 'tblTempUsageDetail_20' ) end [2025-03-05 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610074', 'tblTempVendorCDR_20' ) start [2025-03-05 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610074', 'tblTempVendorCDR_20' ) end [2025-03-05 02:27:17] Production.INFO: ProcessCDR(1,14610074,1,1,2) [2025-03-05 02:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610074', 'tblTempUsageDetail_20' ) start [2025-03-05 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610074', 'tblTempUsageDetail_20' ) end [2025-03-05 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:27:21] Production.INFO: ==15351== Releasing lock... [2025-03-05 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:27:21] Production.INFO: 30 MB #Memory Used# [2025-03-05 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:28:05 [end_date_ymd] => 2025-03-05 02:28:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 23:28:05' and `end` < '2025-03-05 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-03-05 02:28:17] Production.INFO: count ==291 [2025-03-05 02:28:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:28:05 - End Time 2025-03-05 02:28:05 [2025-03-05 02:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610079', 'tblTempUsageDetail_20' ) start [2025-03-05 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610079', 'tblTempUsageDetail_20' ) end [2025-03-05 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610079', 'tblTempVendorCDR_20' ) start [2025-03-05 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610079', 'tblTempVendorCDR_20' ) end [2025-03-05 02:28:17] Production.INFO: ProcessCDR(1,14610079,1,1,2) [2025-03-05 02:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610079', 'tblTempUsageDetail_20' ) start [2025-03-05 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610079', 'tblTempUsageDetail_20' ) end [2025-03-05 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:28:21] Production.INFO: ==15503== Releasing lock... [2025-03-05 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:28:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:29:05 [end_date_ymd] => 2025-03-05 02:29:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 23:29:05' and `end` < '2025-03-05 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-03-05 02:29:17] Production.INFO: count ==289 [2025-03-05 02:29:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:29:05 - End Time 2025-03-05 02:29:05 [2025-03-05 02:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610084', 'tblTempUsageDetail_20' ) start [2025-03-05 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610084', 'tblTempUsageDetail_20' ) end [2025-03-05 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610084', 'tblTempVendorCDR_20' ) start [2025-03-05 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610084', 'tblTempVendorCDR_20' ) end [2025-03-05 02:29:17] Production.INFO: ProcessCDR(1,14610084,1,1,2) [2025-03-05 02:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610084', 'tblTempUsageDetail_20' ) start [2025-03-05 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610084', 'tblTempUsageDetail_20' ) end [2025-03-05 02:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:29:20] Production.INFO: ==15648== Releasing lock... [2025-03-05 02:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:29:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:30:06 [end_date_ymd] => 2025-03-05 02:30:06 [RateCDR] => 1 ) [2025-03-05 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-03-04 23:30:06' and `end` < '2025-03-05 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-03-05 02:30:18] Production.INFO: count ==291 [2025-03-05 02:30:18] Production.ERROR: pbx CDR StartTime 2025-03-04 23:30:06 - End Time 2025-03-05 02:30:06 [2025-03-05 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610090', 'tblTempUsageDetail_20' ) start [2025-03-05 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610090', 'tblTempUsageDetail_20' ) end [2025-03-05 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610090', 'tblTempVendorCDR_20' ) start [2025-03-05 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610090', 'tblTempVendorCDR_20' ) end [2025-03-05 02:30:18] Production.INFO: ProcessCDR(1,14610090,1,1,2) [2025-03-05 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610090', 'tblTempUsageDetail_20' ) start [2025-03-05 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610090', 'tblTempUsageDetail_20' ) end [2025-03-05 02:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:30:21] Production.INFO: ==15803== Releasing lock... [2025-03-05 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:30:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:31:05 [end_date_ymd] => 2025-03-05 02:31:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 23:31:05' and `end` < '2025-03-05 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-03-05 02:31:17] Production.INFO: count ==291 [2025-03-05 02:31:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:31:05 - End Time 2025-03-05 02:31:05 [2025-03-05 02:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610095', 'tblTempUsageDetail_20' ) start [2025-03-05 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610095', 'tblTempUsageDetail_20' ) end [2025-03-05 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610095', 'tblTempVendorCDR_20' ) start [2025-03-05 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610095', 'tblTempVendorCDR_20' ) end [2025-03-05 02:31:17] Production.INFO: ProcessCDR(1,14610095,1,1,2) [2025-03-05 02:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610095', 'tblTempUsageDetail_20' ) start [2025-03-05 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610095', 'tblTempUsageDetail_20' ) end [2025-03-05 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:31:21] Production.INFO: ==15960== Releasing lock... [2025-03-05 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:31:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 02:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:32:06 [end_date_ymd] => 2025-03-05 02:32:06 [RateCDR] => 1 ) [2025-03-05 02: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-03-04 23:32:06' and `end` < '2025-03-05 02: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-03-05 02:32:17] Production.INFO: count ==291 [2025-03-05 02:32:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:32:06 - End Time 2025-03-05 02:32:06 [2025-03-05 02:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610100', 'tblTempUsageDetail_20' ) start [2025-03-05 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610100', 'tblTempUsageDetail_20' ) end [2025-03-05 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610100', 'tblTempVendorCDR_20' ) start [2025-03-05 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610100', 'tblTempVendorCDR_20' ) end [2025-03-05 02:32:17] Production.INFO: ProcessCDR(1,14610100,1,1,2) [2025-03-05 02:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610100', 'tblTempUsageDetail_20' ) start [2025-03-05 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610100', 'tblTempUsageDetail_20' ) end [2025-03-05 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:32:21] Production.INFO: ==16109== Releasing lock... [2025-03-05 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:32:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 02:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:33:06 [end_date_ymd] => 2025-03-05 02:33:06 [RateCDR] => 1 ) [2025-03-05 02: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-03-04 23:33:06' and `end` < '2025-03-05 02: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-03-05 02:33:18] Production.INFO: count ==290 [2025-03-05 02:33:18] Production.ERROR: pbx CDR StartTime 2025-03-04 23:33:06 - End Time 2025-03-05 02:33:06 [2025-03-05 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610105', 'tblTempUsageDetail_20' ) start [2025-03-05 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610105', 'tblTempUsageDetail_20' ) end [2025-03-05 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610105', 'tblTempVendorCDR_20' ) start [2025-03-05 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610105', 'tblTempVendorCDR_20' ) end [2025-03-05 02:33:18] Production.INFO: ProcessCDR(1,14610105,1,1,2) [2025-03-05 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610105', 'tblTempUsageDetail_20' ) start [2025-03-05 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610105', 'tblTempUsageDetail_20' ) end [2025-03-05 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:33:21] Production.INFO: ==16269== Releasing lock... [2025-03-05 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:33:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:34:05 [end_date_ymd] => 2025-03-05 02:34:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 23:34:05' and `end` < '2025-03-05 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-03-05 02:34:17] Production.INFO: count ==290 [2025-03-05 02:34:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:34:05 - End Time 2025-03-05 02:34:05 [2025-03-05 02:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610110', 'tblTempUsageDetail_20' ) start [2025-03-05 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610110', 'tblTempUsageDetail_20' ) end [2025-03-05 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610110', 'tblTempVendorCDR_20' ) start [2025-03-05 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610110', 'tblTempVendorCDR_20' ) end [2025-03-05 02:34:17] Production.INFO: ProcessCDR(1,14610110,1,1,2) [2025-03-05 02:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610110', 'tblTempUsageDetail_20' ) start [2025-03-05 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610110', 'tblTempUsageDetail_20' ) end [2025-03-05 02:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:34:21] Production.INFO: ==16423== Releasing lock... [2025-03-05 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:34:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:35:05 [end_date_ymd] => 2025-03-05 02:35:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 23:35:05' and `end` < '2025-03-05 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-03-05 02:35:17] Production.INFO: count ==290 [2025-03-05 02:35:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:35:05 - End Time 2025-03-05 02:35:05 [2025-03-05 02:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610115', 'tblTempUsageDetail_20' ) start [2025-03-05 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610115', 'tblTempUsageDetail_20' ) end [2025-03-05 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610115', 'tblTempVendorCDR_20' ) start [2025-03-05 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610115', 'tblTempVendorCDR_20' ) end [2025-03-05 02:35:17] Production.INFO: ProcessCDR(1,14610115,1,1,2) [2025-03-05 02:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610115', 'tblTempUsageDetail_20' ) start [2025-03-05 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610115', 'tblTempUsageDetail_20' ) end [2025-03-05 02:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:35:20] Production.INFO: ==16582== Releasing lock... [2025-03-05 02:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:35:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:36:05 [end_date_ymd] => 2025-03-05 02:36:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 23:36:05' and `end` < '2025-03-05 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-03-05 02:36:17] Production.INFO: count ==289 [2025-03-05 02:36:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:36:05 - End Time 2025-03-05 02:36:05 [2025-03-05 02:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610120', 'tblTempUsageDetail_20' ) start [2025-03-05 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610120', 'tblTempUsageDetail_20' ) end [2025-03-05 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610120', 'tblTempVendorCDR_20' ) start [2025-03-05 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610120', 'tblTempVendorCDR_20' ) end [2025-03-05 02:36:17] Production.INFO: ProcessCDR(1,14610120,1,1,2) [2025-03-05 02:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610120', 'tblTempUsageDetail_20' ) start [2025-03-05 02:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610120', 'tblTempUsageDetail_20' ) end [2025-03-05 02:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:36:20] Production.INFO: ==16775== Releasing lock... [2025-03-05 02:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:36:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:37:05 [end_date_ymd] => 2025-03-05 02:37:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 23:37:05' and `end` < '2025-03-05 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-03-05 02:37:17] Production.INFO: count ==288 [2025-03-05 02:37:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:37:05 - End Time 2025-03-05 02:37:05 [2025-03-05 02:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610125', 'tblTempUsageDetail_20' ) start [2025-03-05 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610125', 'tblTempUsageDetail_20' ) end [2025-03-05 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610125', 'tblTempVendorCDR_20' ) start [2025-03-05 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610125', 'tblTempVendorCDR_20' ) end [2025-03-05 02:37:17] Production.INFO: ProcessCDR(1,14610125,1,1,2) [2025-03-05 02:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610125', 'tblTempUsageDetail_20' ) start [2025-03-05 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610125', 'tblTempUsageDetail_20' ) end [2025-03-05 02:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:37:21] Production.INFO: ==16931== Releasing lock... [2025-03-05 02:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:37:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:38:05 [end_date_ymd] => 2025-03-05 02:38:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 23:38:05' and `end` < '2025-03-05 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-03-05 02:38:17] Production.INFO: count ==287 [2025-03-05 02:38:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:38:05 - End Time 2025-03-05 02:38:05 [2025-03-05 02:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610130', 'tblTempUsageDetail_20' ) start [2025-03-05 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610130', 'tblTempUsageDetail_20' ) end [2025-03-05 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610130', 'tblTempVendorCDR_20' ) start [2025-03-05 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610130', 'tblTempVendorCDR_20' ) end [2025-03-05 02:38:17] Production.INFO: ProcessCDR(1,14610130,1,1,2) [2025-03-05 02:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610130', 'tblTempUsageDetail_20' ) start [2025-03-05 02:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610130', 'tblTempUsageDetail_20' ) end [2025-03-05 02:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:38:20] Production.INFO: ==17091== Releasing lock... [2025-03-05 02:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:38:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 02:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:39:06 [end_date_ymd] => 2025-03-05 02:39:06 [RateCDR] => 1 ) [2025-03-05 02:39: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-03-04 23:39:06' and `end` < '2025-03-05 02:39: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-03-05 02:39:18] Production.INFO: count ==287 [2025-03-05 02:39:18] Production.ERROR: pbx CDR StartTime 2025-03-04 23:39:06 - End Time 2025-03-05 02:39:06 [2025-03-05 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610135', 'tblTempUsageDetail_20' ) start [2025-03-05 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610135', 'tblTempUsageDetail_20' ) end [2025-03-05 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610135', 'tblTempVendorCDR_20' ) start [2025-03-05 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610135', 'tblTempVendorCDR_20' ) end [2025-03-05 02:39:18] Production.INFO: ProcessCDR(1,14610135,1,1,2) [2025-03-05 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610135', 'tblTempUsageDetail_20' ) start [2025-03-05 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610135', 'tblTempUsageDetail_20' ) end [2025-03-05 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:39:21] Production.INFO: ==17249== Releasing lock... [2025-03-05 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:39:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:40:06 [end_date_ymd] => 2025-03-05 02:40:06 [RateCDR] => 1 ) [2025-03-05 02: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-03-04 23:40:06' and `end` < '2025-03-05 02: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-03-05 02:40:18] Production.INFO: count ==290 [2025-03-05 02:40:18] Production.ERROR: pbx CDR StartTime 2025-03-04 23:40:06 - End Time 2025-03-05 02:40:06 [2025-03-05 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610141', 'tblTempUsageDetail_20' ) start [2025-03-05 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610141', 'tblTempUsageDetail_20' ) end [2025-03-05 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610141', 'tblTempVendorCDR_20' ) start [2025-03-05 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610141', 'tblTempVendorCDR_20' ) end [2025-03-05 02:40:18] Production.INFO: ProcessCDR(1,14610141,1,1,2) [2025-03-05 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610141', 'tblTempUsageDetail_20' ) start [2025-03-05 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610141', 'tblTempUsageDetail_20' ) end [2025-03-05 02:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:40:22] Production.INFO: ==17406== Releasing lock... [2025-03-05 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:40:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:41:05 [end_date_ymd] => 2025-03-05 02:41:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 23:41:05' and `end` < '2025-03-05 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-03-05 02:41:17] Production.INFO: count ==290 [2025-03-05 02:41:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:41:05 - End Time 2025-03-05 02:41:05 [2025-03-05 02:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610146', 'tblTempUsageDetail_20' ) start [2025-03-05 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610146', 'tblTempUsageDetail_20' ) end [2025-03-05 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610146', 'tblTempVendorCDR_20' ) start [2025-03-05 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610146', 'tblTempVendorCDR_20' ) end [2025-03-05 02:41:17] Production.INFO: ProcessCDR(1,14610146,1,1,2) [2025-03-05 02:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610146', 'tblTempUsageDetail_20' ) start [2025-03-05 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610146', 'tblTempUsageDetail_20' ) end [2025-03-05 02:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:41:20] Production.INFO: ==17556== Releasing lock... [2025-03-05 02:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:41:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:42:05 [end_date_ymd] => 2025-03-05 02:42:05 [RateCDR] => 1 ) [2025-03-05 02: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-03-04 23:42:05' and `end` < '2025-03-05 02: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-03-05 02:42:17] Production.INFO: count ==289 [2025-03-05 02:42:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:42:05 - End Time 2025-03-05 02:42:05 [2025-03-05 02:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610151', 'tblTempUsageDetail_20' ) start [2025-03-05 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610151', 'tblTempUsageDetail_20' ) end [2025-03-05 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610151', 'tblTempVendorCDR_20' ) start [2025-03-05 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610151', 'tblTempVendorCDR_20' ) end [2025-03-05 02:42:17] Production.INFO: ProcessCDR(1,14610151,1,1,2) [2025-03-05 02:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610151', 'tblTempUsageDetail_20' ) start [2025-03-05 02:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610151', 'tblTempUsageDetail_20' ) end [2025-03-05 02:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:42:20] Production.INFO: ==17709== Releasing lock... [2025-03-05 02:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:42:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:43:05 [end_date_ymd] => 2025-03-05 02:43:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 23:43:05' and `end` < '2025-03-05 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-03-05 02:43:17] Production.INFO: count ==289 [2025-03-05 02:43:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:43:05 - End Time 2025-03-05 02:43:05 [2025-03-05 02:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610156', 'tblTempUsageDetail_20' ) start [2025-03-05 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610156', 'tblTempUsageDetail_20' ) end [2025-03-05 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610156', 'tblTempVendorCDR_20' ) start [2025-03-05 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610156', 'tblTempVendorCDR_20' ) end [2025-03-05 02:43:17] Production.INFO: ProcessCDR(1,14610156,1,1,2) [2025-03-05 02:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610156', 'tblTempUsageDetail_20' ) start [2025-03-05 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610156', 'tblTempUsageDetail_20' ) end [2025-03-05 02:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:43:20] Production.INFO: ==17873== Releasing lock... [2025-03-05 02:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:43:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:44:05 [end_date_ymd] => 2025-03-05 02:44:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 23:44:05' and `end` < '2025-03-05 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-03-05 02:44:17] Production.INFO: count ==288 [2025-03-05 02:44:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:44:05 - End Time 2025-03-05 02:44:05 [2025-03-05 02:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610161', 'tblTempUsageDetail_20' ) start [2025-03-05 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610161', 'tblTempUsageDetail_20' ) end [2025-03-05 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610161', 'tblTempVendorCDR_20' ) start [2025-03-05 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610161', 'tblTempVendorCDR_20' ) end [2025-03-05 02:44:17] Production.INFO: ProcessCDR(1,14610161,1,1,2) [2025-03-05 02:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610161', 'tblTempUsageDetail_20' ) start [2025-03-05 02:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610161', 'tblTempUsageDetail_20' ) end [2025-03-05 02:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:44:20] Production.INFO: ==18027== Releasing lock... [2025-03-05 02:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:44:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:45:05 [end_date_ymd] => 2025-03-05 02:45:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 23:45:05' and `end` < '2025-03-05 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-03-05 02:45:17] Production.INFO: count ==288 [2025-03-05 02:45:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:45:05 - End Time 2025-03-05 02:45:05 [2025-03-05 02:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610166', 'tblTempUsageDetail_20' ) start [2025-03-05 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610166', 'tblTempUsageDetail_20' ) end [2025-03-05 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610166', 'tblTempVendorCDR_20' ) start [2025-03-05 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610166', 'tblTempVendorCDR_20' ) end [2025-03-05 02:45:17] Production.INFO: ProcessCDR(1,14610166,1,1,2) [2025-03-05 02:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610166', 'tblTempUsageDetail_20' ) start [2025-03-05 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610166', 'tblTempUsageDetail_20' ) end [2025-03-05 02:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:45:20] Production.INFO: ==18193== Releasing lock... [2025-03-05 02:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:45:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 02:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:46:06 [end_date_ymd] => 2025-03-05 02:46:06 [RateCDR] => 1 ) [2025-03-05 02: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-03-04 23:46:06' and `end` < '2025-03-05 02: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-03-05 02:46:18] Production.INFO: count ==288 [2025-03-05 02:46:18] Production.ERROR: pbx CDR StartTime 2025-03-04 23:46:06 - End Time 2025-03-05 02:46:06 [2025-03-05 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610171', 'tblTempUsageDetail_20' ) start [2025-03-05 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610171', 'tblTempUsageDetail_20' ) end [2025-03-05 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610171', 'tblTempVendorCDR_20' ) start [2025-03-05 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610171', 'tblTempVendorCDR_20' ) end [2025-03-05 02:46:18] Production.INFO: ProcessCDR(1,14610171,1,1,2) [2025-03-05 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610171', 'tblTempUsageDetail_20' ) start [2025-03-05 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610171', 'tblTempUsageDetail_20' ) end [2025-03-05 02:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:46:21] Production.INFO: ==18350== Releasing lock... [2025-03-05 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:46:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:47:05 [end_date_ymd] => 2025-03-05 02:47:05 [RateCDR] => 1 ) [2025-03-05 02: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-03-04 23:47:05' and `end` < '2025-03-05 02: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-03-05 02:47:17] Production.INFO: count ==287 [2025-03-05 02:47:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:47:05 - End Time 2025-03-05 02:47:05 [2025-03-05 02:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610176', 'tblTempUsageDetail_20' ) start [2025-03-05 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610176', 'tblTempUsageDetail_20' ) end [2025-03-05 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610176', 'tblTempVendorCDR_20' ) start [2025-03-05 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610176', 'tblTempVendorCDR_20' ) end [2025-03-05 02:47:17] Production.INFO: ProcessCDR(1,14610176,1,1,2) [2025-03-05 02:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610176', 'tblTempUsageDetail_20' ) start [2025-03-05 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610176', 'tblTempUsageDetail_20' ) end [2025-03-05 02:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:47:20] Production.INFO: ==18501== Releasing lock... [2025-03-05 02:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:47:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 02:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:48:06 [end_date_ymd] => 2025-03-05 02:48:06 [RateCDR] => 1 ) [2025-03-05 02: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-03-04 23:48:06' and `end` < '2025-03-05 02: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-03-05 02:48:18] Production.INFO: count ==287 [2025-03-05 02:48:18] Production.ERROR: pbx CDR StartTime 2025-03-04 23:48:06 - End Time 2025-03-05 02:48:06 [2025-03-05 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610181', 'tblTempUsageDetail_20' ) start [2025-03-05 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610181', 'tblTempUsageDetail_20' ) end [2025-03-05 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610181', 'tblTempVendorCDR_20' ) start [2025-03-05 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610181', 'tblTempVendorCDR_20' ) end [2025-03-05 02:48:18] Production.INFO: ProcessCDR(1,14610181,1,1,2) [2025-03-05 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610181', 'tblTempUsageDetail_20' ) start [2025-03-05 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610181', 'tblTempUsageDetail_20' ) end [2025-03-05 02:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:48:21] Production.INFO: ==18658== Releasing lock... [2025-03-05 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:48:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:49:05 [end_date_ymd] => 2025-03-05 02:49:05 [RateCDR] => 1 ) [2025-03-05 02: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-03-04 23:49:05' and `end` < '2025-03-05 02: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-03-05 02:49:17] Production.INFO: count ==287 [2025-03-05 02:49:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:49:05 - End Time 2025-03-05 02:49:05 [2025-03-05 02:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610186', 'tblTempUsageDetail_20' ) start [2025-03-05 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610186', 'tblTempUsageDetail_20' ) end [2025-03-05 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610186', 'tblTempVendorCDR_20' ) start [2025-03-05 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610186', 'tblTempVendorCDR_20' ) end [2025-03-05 02:49:17] Production.INFO: ProcessCDR(1,14610186,1,1,2) [2025-03-05 02:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610186', 'tblTempUsageDetail_20' ) start [2025-03-05 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610186', 'tblTempUsageDetail_20' ) end [2025-03-05 02:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:49:20] Production.INFO: ==18823== Releasing lock... [2025-03-05 02:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:49:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:50:06 [end_date_ymd] => 2025-03-05 02:50:06 [RateCDR] => 1 ) [2025-03-05 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-03-04 23:50:06' and `end` < '2025-03-05 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-03-05 02:50:18] Production.INFO: count ==290 [2025-03-05 02:50:18] Production.ERROR: pbx CDR StartTime 2025-03-04 23:50:06 - End Time 2025-03-05 02:50:06 [2025-03-05 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610192', 'tblTempUsageDetail_20' ) start [2025-03-05 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610192', 'tblTempUsageDetail_20' ) end [2025-03-05 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610192', 'tblTempVendorCDR_20' ) start [2025-03-05 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610192', 'tblTempVendorCDR_20' ) end [2025-03-05 02:50:18] Production.INFO: ProcessCDR(1,14610192,1,1,2) [2025-03-05 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610192', 'tblTempUsageDetail_20' ) start [2025-03-05 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610192', 'tblTempUsageDetail_20' ) end [2025-03-05 02:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:50:22] Production.INFO: ==18995== Releasing lock... [2025-03-05 02:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:50:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:51:05 [end_date_ymd] => 2025-03-05 02:51:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 23:51:05' and `end` < '2025-03-05 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-03-05 02:51:17] Production.INFO: count ==289 [2025-03-05 02:51:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:51:05 - End Time 2025-03-05 02:51:05 [2025-03-05 02:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610197', 'tblTempUsageDetail_20' ) start [2025-03-05 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610197', 'tblTempUsageDetail_20' ) end [2025-03-05 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610197', 'tblTempVendorCDR_20' ) start [2025-03-05 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610197', 'tblTempVendorCDR_20' ) end [2025-03-05 02:51:17] Production.INFO: ProcessCDR(1,14610197,1,1,2) [2025-03-05 02:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610197', 'tblTempUsageDetail_20' ) start [2025-03-05 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610197', 'tblTempUsageDetail_20' ) end [2025-03-05 02:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:51:20] Production.INFO: ==19202== Releasing lock... [2025-03-05 02:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:51:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:52:05 [end_date_ymd] => 2025-03-05 02:52:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 23:52:05' and `end` < '2025-03-05 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-03-05 02:52:17] Production.INFO: count ==289 [2025-03-05 02:52:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:52:05 - End Time 2025-03-05 02:52:05 [2025-03-05 02:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610202', 'tblTempUsageDetail_20' ) start [2025-03-05 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610202', 'tblTempUsageDetail_20' ) end [2025-03-05 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610202', 'tblTempVendorCDR_20' ) start [2025-03-05 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610202', 'tblTempVendorCDR_20' ) end [2025-03-05 02:52:17] Production.INFO: ProcessCDR(1,14610202,1,1,2) [2025-03-05 02:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610202', 'tblTempUsageDetail_20' ) start [2025-03-05 02:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610202', 'tblTempUsageDetail_20' ) end [2025-03-05 02:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:52:20] Production.INFO: ==19315== Releasing lock... [2025-03-05 02:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:52:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:53:05 [end_date_ymd] => 2025-03-05 02:53:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 23:53:05' and `end` < '2025-03-05 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-03-05 02:53:16] Production.INFO: count ==288 [2025-03-05 02:53:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:53:05 - End Time 2025-03-05 02:53:05 [2025-03-05 02:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610207', 'tblTempUsageDetail_20' ) start [2025-03-05 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610207', 'tblTempUsageDetail_20' ) end [2025-03-05 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610207', 'tblTempVendorCDR_20' ) start [2025-03-05 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610207', 'tblTempVendorCDR_20' ) end [2025-03-05 02:53:17] Production.INFO: ProcessCDR(1,14610207,1,1,2) [2025-03-05 02:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:53:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:53:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610207', 'tblTempUsageDetail_20' ) start [2025-03-05 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610207', 'tblTempUsageDetail_20' ) end [2025-03-05 02:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:53:20] Production.INFO: ==19393== Releasing lock... [2025-03-05 02:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:53:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:54:05 [end_date_ymd] => 2025-03-05 02:54:05 [RateCDR] => 1 ) [2025-03-05 02: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-03-04 23:54:05' and `end` < '2025-03-05 02: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-03-05 02:54:17] Production.INFO: count ==287 [2025-03-05 02:54:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:54:05 - End Time 2025-03-05 02:54:05 [2025-03-05 02:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610212', 'tblTempUsageDetail_20' ) start [2025-03-05 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610212', 'tblTempUsageDetail_20' ) end [2025-03-05 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610212', 'tblTempVendorCDR_20' ) start [2025-03-05 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610212', 'tblTempVendorCDR_20' ) end [2025-03-05 02:54:17] Production.INFO: ProcessCDR(1,14610212,1,1,2) [2025-03-05 02:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610212', 'tblTempUsageDetail_20' ) start [2025-03-05 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610212', 'tblTempUsageDetail_20' ) end [2025-03-05 02:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:54:20] Production.INFO: ==19475== Releasing lock... [2025-03-05 02:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:54:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:55:05 [end_date_ymd] => 2025-03-05 02:55:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 23:55:05' and `end` < '2025-03-05 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-03-05 02:55:17] Production.INFO: count ==287 [2025-03-05 02:55:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:55:05 - End Time 2025-03-05 02:55:05 [2025-03-05 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610217', 'tblTempUsageDetail_20' ) start [2025-03-05 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610217', 'tblTempUsageDetail_20' ) end [2025-03-05 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610217', 'tblTempVendorCDR_20' ) start [2025-03-05 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610217', 'tblTempVendorCDR_20' ) end [2025-03-05 02:55:17] Production.INFO: ProcessCDR(1,14610217,1,1,2) [2025-03-05 02:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610217', 'tblTempUsageDetail_20' ) start [2025-03-05 02:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610217', 'tblTempUsageDetail_20' ) end [2025-03-05 02:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:55:20] Production.INFO: ==19554== Releasing lock... [2025-03-05 02:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:55:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:56:05 [end_date_ymd] => 2025-03-05 02:56:05 [RateCDR] => 1 ) [2025-03-05 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-03-04 23:56:05' and `end` < '2025-03-05 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-03-05 02:56:17] Production.INFO: count ==285 [2025-03-05 02:56:17] Production.ERROR: pbx CDR StartTime 2025-03-04 23:56:05 - End Time 2025-03-05 02:56:05 [2025-03-05 02:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610222', 'tblTempUsageDetail_20' ) start [2025-03-05 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610222', 'tblTempUsageDetail_20' ) end [2025-03-05 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610222', 'tblTempVendorCDR_20' ) start [2025-03-05 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610222', 'tblTempVendorCDR_20' ) end [2025-03-05 02:56:17] Production.INFO: ProcessCDR(1,14610222,1,1,2) [2025-03-05 02:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610222', 'tblTempUsageDetail_20' ) start [2025-03-05 02:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610222', 'tblTempUsageDetail_20' ) end [2025-03-05 02:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:56:20] Production.INFO: ==19635== Releasing lock... [2025-03-05 02:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:56:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 02:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:57:06 [end_date_ymd] => 2025-03-05 02:57:06 [RateCDR] => 1 ) [2025-03-05 02:57: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-03-04 23:57:06' and `end` < '2025-03-05 02:57: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-03-05 02:57:18] Production.INFO: count ==284 [2025-03-05 02:57:18] Production.ERROR: pbx CDR StartTime 2025-03-04 23:57:06 - End Time 2025-03-05 02:57:06 [2025-03-05 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610227', 'tblTempUsageDetail_20' ) start [2025-03-05 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610227', 'tblTempUsageDetail_20' ) end [2025-03-05 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610227', 'tblTempVendorCDR_20' ) start [2025-03-05 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610227', 'tblTempVendorCDR_20' ) end [2025-03-05 02:57:18] Production.INFO: ProcessCDR(1,14610227,1,1,2) [2025-03-05 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610227', 'tblTempUsageDetail_20' ) start [2025-03-05 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610227', 'tblTempUsageDetail_20' ) end [2025-03-05 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:57:21] Production.INFO: ==19714== Releasing lock... [2025-03-05 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:57:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 02:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:58:06 [end_date_ymd] => 2025-03-05 02:58:06 [RateCDR] => 1 ) [2025-03-05 02: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-03-04 23:58:06' and `end` < '2025-03-05 02: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-03-05 02:58:18] Production.INFO: count ==283 [2025-03-05 02:58:18] Production.ERROR: pbx CDR StartTime 2025-03-04 23:58:06 - End Time 2025-03-05 02:58:06 [2025-03-05 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610232', 'tblTempUsageDetail_20' ) start [2025-03-05 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610232', 'tblTempUsageDetail_20' ) end [2025-03-05 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610232', 'tblTempVendorCDR_20' ) start [2025-03-05 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610232', 'tblTempVendorCDR_20' ) end [2025-03-05 02:58:18] Production.INFO: ProcessCDR(1,14610232,1,1,2) [2025-03-05 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610232', 'tblTempUsageDetail_20' ) start [2025-03-05 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610232', 'tblTempUsageDetail_20' ) end [2025-03-05 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:58:21] Production.INFO: ==19794== Releasing lock... [2025-03-05 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:58:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 02:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 23:59:06 [end_date_ymd] => 2025-03-05 02:59:06 [RateCDR] => 1 ) [2025-03-05 02: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-03-04 23:59:06' and `end` < '2025-03-05 02: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-03-05 02:59:18] Production.INFO: count ==283 [2025-03-05 02:59:18] Production.ERROR: pbx CDR StartTime 2025-03-04 23:59:06 - End Time 2025-03-05 02:59:06 [2025-03-05 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610237', 'tblTempUsageDetail_20' ) start [2025-03-05 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610237', 'tblTempUsageDetail_20' ) end [2025-03-05 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610237', 'tblTempVendorCDR_20' ) start [2025-03-05 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610237', 'tblTempVendorCDR_20' ) end [2025-03-05 02:59:18] Production.INFO: ProcessCDR(1,14610237,1,1,2) [2025-03-05 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610237', 'tblTempUsageDetail_20' ) start [2025-03-05 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610237', 'tblTempUsageDetail_20' ) end [2025-03-05 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 02:59:21] Production.INFO: ==19874== Releasing lock... [2025-03-05 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 02:59:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 03:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:00:07 [end_date_ymd] => 2025-03-05 03:00:07 [RateCDR] => 1 ) [2025-03-05 03:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 00:00:07' and `end` < '2025-03-05 03:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-05 03:00:19] Production.INFO: count ==283 [2025-03-05 03:00:19] Production.ERROR: pbx CDR StartTime 2025-03-05 00:00:07 - End Time 2025-03-05 03:00:07 [2025-03-05 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610243', 'tblTempUsageDetail_20' ) start [2025-03-05 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610243', 'tblTempUsageDetail_20' ) end [2025-03-05 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610243', 'tblTempVendorCDR_20' ) start [2025-03-05 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610243', 'tblTempVendorCDR_20' ) end [2025-03-05 03:00:19] Production.INFO: ProcessCDR(1,14610243,1,1,2) [2025-03-05 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610243', 'tblTempUsageDetail_20' ) start [2025-03-05 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610243', 'tblTempUsageDetail_20' ) end [2025-03-05 03:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:00:22] Production.INFO: ==19950== Releasing lock... [2025-03-05 03:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:00:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:01:06 [end_date_ymd] => 2025-03-05 03:01:06 [RateCDR] => 1 ) [2025-03-05 03: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-03-05 00:01:06' and `end` < '2025-03-05 03: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-03-05 03:01:18] Production.INFO: count ==287 [2025-03-05 03:01:18] Production.ERROR: pbx CDR StartTime 2025-03-05 00:01:06 - End Time 2025-03-05 03:01:06 [2025-03-05 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610248', 'tblTempUsageDetail_20' ) start [2025-03-05 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610248', 'tblTempUsageDetail_20' ) end [2025-03-05 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610248', 'tblTempVendorCDR_20' ) start [2025-03-05 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610248', 'tblTempVendorCDR_20' ) end [2025-03-05 03:01:18] Production.INFO: ProcessCDR(1,14610248,1,1,2) [2025-03-05 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610248', 'tblTempUsageDetail_20' ) start [2025-03-05 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610248', 'tblTempUsageDetail_20' ) end [2025-03-05 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:01:21] Production.INFO: ==20047== Releasing lock... [2025-03-05 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:01:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:02:05 [end_date_ymd] => 2025-03-05 03:02:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 00:02:05' and `end` < '2025-03-05 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-03-05 03:02:17] Production.INFO: count ==286 [2025-03-05 03:02:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:02:05 - End Time 2025-03-05 03:02:05 [2025-03-05 03:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610253', 'tblTempUsageDetail_20' ) start [2025-03-05 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610253', 'tblTempUsageDetail_20' ) end [2025-03-05 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610253', 'tblTempVendorCDR_20' ) start [2025-03-05 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610253', 'tblTempVendorCDR_20' ) end [2025-03-05 03:02:17] Production.INFO: ProcessCDR(1,14610253,1,1,2) [2025-03-05 03:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610253', 'tblTempUsageDetail_20' ) start [2025-03-05 03:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610253', 'tblTempUsageDetail_20' ) end [2025-03-05 03:02:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:02:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:02:20] Production.INFO: ==20207== Releasing lock... [2025-03-05 03:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:02:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:03:05 [end_date_ymd] => 2025-03-05 03:03:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 00:03:05' and `end` < '2025-03-05 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-03-05 03:03:17] Production.INFO: count ==283 [2025-03-05 03:03:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:03:05 - End Time 2025-03-05 03:03:05 [2025-03-05 03:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610258', 'tblTempUsageDetail_20' ) start [2025-03-05 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610258', 'tblTempUsageDetail_20' ) end [2025-03-05 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610258', 'tblTempVendorCDR_20' ) start [2025-03-05 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610258', 'tblTempVendorCDR_20' ) end [2025-03-05 03:03:17] Production.INFO: ProcessCDR(1,14610258,1,1,2) [2025-03-05 03:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610258', 'tblTempUsageDetail_20' ) start [2025-03-05 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610258', 'tblTempUsageDetail_20' ) end [2025-03-05 03:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:03:21] Production.INFO: ==20280== Releasing lock... [2025-03-05 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:03:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:04:05 [end_date_ymd] => 2025-03-05 03:04:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 00:04:05' and `end` < '2025-03-05 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-03-05 03:04:17] Production.INFO: count ==279 [2025-03-05 03:04:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:04:05 - End Time 2025-03-05 03:04:05 [2025-03-05 03:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610263', 'tblTempUsageDetail_20' ) start [2025-03-05 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610263', 'tblTempUsageDetail_20' ) end [2025-03-05 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610263', 'tblTempVendorCDR_20' ) start [2025-03-05 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610263', 'tblTempVendorCDR_20' ) end [2025-03-05 03:04:17] Production.INFO: ProcessCDR(1,14610263,1,1,2) [2025-03-05 03:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610263', 'tblTempUsageDetail_20' ) start [2025-03-05 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610263', 'tblTempUsageDetail_20' ) end [2025-03-05 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:04:21] Production.INFO: ==20359== Releasing lock... [2025-03-05 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:04:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:05:05 [end_date_ymd] => 2025-03-05 03:05:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 00:05:05' and `end` < '2025-03-05 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-03-05 03:05:17] Production.INFO: count ==279 [2025-03-05 03:05:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:05:05 - End Time 2025-03-05 03:05:05 [2025-03-05 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610268', 'tblTempUsageDetail_20' ) start [2025-03-05 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610268', 'tblTempUsageDetail_20' ) end [2025-03-05 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610268', 'tblTempVendorCDR_20' ) start [2025-03-05 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610268', 'tblTempVendorCDR_20' ) end [2025-03-05 03:05:17] Production.INFO: ProcessCDR(1,14610268,1,1,2) [2025-03-05 03:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610268', 'tblTempUsageDetail_20' ) start [2025-03-05 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610268', 'tblTempUsageDetail_20' ) end [2025-03-05 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:05:21] Production.INFO: ==20441== Releasing lock... [2025-03-05 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:05:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:06:05 [end_date_ymd] => 2025-03-05 03:06:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 00:06:05' and `end` < '2025-03-05 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-03-05 03:06:17] Production.INFO: count ==279 [2025-03-05 03:06:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:06:05 - End Time 2025-03-05 03:06:05 [2025-03-05 03:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610273', 'tblTempUsageDetail_20' ) start [2025-03-05 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610273', 'tblTempUsageDetail_20' ) end [2025-03-05 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610273', 'tblTempVendorCDR_20' ) start [2025-03-05 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610273', 'tblTempVendorCDR_20' ) end [2025-03-05 03:06:17] Production.INFO: ProcessCDR(1,14610273,1,1,2) [2025-03-05 03:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610273', 'tblTempUsageDetail_20' ) start [2025-03-05 03:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610273', 'tblTempUsageDetail_20' ) end [2025-03-05 03:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:06:20] Production.INFO: ==20591== Releasing lock... [2025-03-05 03:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:06:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:07:05 [end_date_ymd] => 2025-03-05 03:07:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 00:07:05' and `end` < '2025-03-05 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-03-05 03:07:17] Production.INFO: count ==279 [2025-03-05 03:07:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:07:05 - End Time 2025-03-05 03:07:05 [2025-03-05 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610278', 'tblTempUsageDetail_20' ) start [2025-03-05 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610278', 'tblTempUsageDetail_20' ) end [2025-03-05 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610278', 'tblTempVendorCDR_20' ) start [2025-03-05 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610278', 'tblTempVendorCDR_20' ) end [2025-03-05 03:07:17] Production.INFO: ProcessCDR(1,14610278,1,1,2) [2025-03-05 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610278', 'tblTempUsageDetail_20' ) start [2025-03-05 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610278', 'tblTempUsageDetail_20' ) end [2025-03-05 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:07:21] Production.INFO: ==20708== Releasing lock... [2025-03-05 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:07:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:08:05 [end_date_ymd] => 2025-03-05 03:08:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 00:08:05' and `end` < '2025-03-05 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-03-05 03:08:17] Production.INFO: count ==280 [2025-03-05 03:08:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:08:05 - End Time 2025-03-05 03:08:05 [2025-03-05 03:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610283', 'tblTempUsageDetail_20' ) start [2025-03-05 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610283', 'tblTempUsageDetail_20' ) end [2025-03-05 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610283', 'tblTempVendorCDR_20' ) start [2025-03-05 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610283', 'tblTempVendorCDR_20' ) end [2025-03-05 03:08:17] Production.INFO: ProcessCDR(1,14610283,1,1,2) [2025-03-05 03:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610283', 'tblTempUsageDetail_20' ) start [2025-03-05 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610283', 'tblTempUsageDetail_20' ) end [2025-03-05 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:08:21] Production.INFO: ==20783== Releasing lock... [2025-03-05 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:08:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:09:05 [end_date_ymd] => 2025-03-05 03:09:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 00:09:05' and `end` < '2025-03-05 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-03-05 03:09:17] Production.INFO: count ==277 [2025-03-05 03:09:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:09:05 - End Time 2025-03-05 03:09:05 [2025-03-05 03:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610288', 'tblTempUsageDetail_20' ) start [2025-03-05 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610288', 'tblTempUsageDetail_20' ) end [2025-03-05 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610288', 'tblTempVendorCDR_20' ) start [2025-03-05 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610288', 'tblTempVendorCDR_20' ) end [2025-03-05 03:09:17] Production.INFO: ProcessCDR(1,14610288,1,1,2) [2025-03-05 03:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610288', 'tblTempUsageDetail_20' ) start [2025-03-05 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610288', 'tblTempUsageDetail_20' ) end [2025-03-05 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:09:21] Production.INFO: ==20933== Releasing lock... [2025-03-05 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:09:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 03:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:10:06 [end_date_ymd] => 2025-03-05 03:10:06 [RateCDR] => 1 ) [2025-03-05 03:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 00:10:06' and `end` < '2025-03-05 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-03-05 03:10:18] Production.INFO: count ==273 [2025-03-05 03:10:18] Production.ERROR: pbx CDR StartTime 2025-03-05 00:10:06 - End Time 2025-03-05 03:10:06 [2025-03-05 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610294', 'tblTempUsageDetail_20' ) start [2025-03-05 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610294', 'tblTempUsageDetail_20' ) end [2025-03-05 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610294', 'tblTempVendorCDR_20' ) start [2025-03-05 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610294', 'tblTempVendorCDR_20' ) end [2025-03-05 03:10:18] Production.INFO: ProcessCDR(1,14610294,1,1,2) [2025-03-05 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610294', 'tblTempUsageDetail_20' ) start [2025-03-05 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610294', 'tblTempUsageDetail_20' ) end [2025-03-05 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:10:22] Production.INFO: ==21012== Releasing lock... [2025-03-05 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:10:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:11:05 [end_date_ymd] => 2025-03-05 03:11:05 [RateCDR] => 1 ) [2025-03-05 03: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-03-05 00:11:05' and `end` < '2025-03-05 03: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-03-05 03:11:17] Production.INFO: count ==246 [2025-03-05 03:11:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:11:05 - End Time 2025-03-05 03:11:05 [2025-03-05 03:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610299', 'tblTempUsageDetail_20' ) start [2025-03-05 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610299', 'tblTempUsageDetail_20' ) end [2025-03-05 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610299', 'tblTempVendorCDR_20' ) start [2025-03-05 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610299', 'tblTempVendorCDR_20' ) end [2025-03-05 03:11:17] Production.INFO: ProcessCDR(1,14610299,1,1,2) [2025-03-05 03:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610299', 'tblTempUsageDetail_20' ) start [2025-03-05 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610299', 'tblTempUsageDetail_20' ) end [2025-03-05 03:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:11:20] Production.INFO: ==21091== Releasing lock... [2025-03-05 03:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:11:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 03:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:12:06 [end_date_ymd] => 2025-03-05 03:12:06 [RateCDR] => 1 ) [2025-03-05 03:12: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-03-05 00:12:06' and `end` < '2025-03-05 03:12: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-03-05 03:12:18] Production.INFO: count ==246 [2025-03-05 03:12:18] Production.ERROR: pbx CDR StartTime 2025-03-05 00:12:06 - End Time 2025-03-05 03:12:06 [2025-03-05 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610304', 'tblTempUsageDetail_20' ) start [2025-03-05 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610304', 'tblTempUsageDetail_20' ) end [2025-03-05 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610304', 'tblTempVendorCDR_20' ) start [2025-03-05 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610304', 'tblTempVendorCDR_20' ) end [2025-03-05 03:12:18] Production.INFO: ProcessCDR(1,14610304,1,1,2) [2025-03-05 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610304', 'tblTempUsageDetail_20' ) start [2025-03-05 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610304', 'tblTempUsageDetail_20' ) end [2025-03-05 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:12:21] Production.INFO: ==21163== Releasing lock... [2025-03-05 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:12:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:13:05 [end_date_ymd] => 2025-03-05 03:13:05 [RateCDR] => 1 ) [2025-03-05 03: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-03-05 00:13:05' and `end` < '2025-03-05 03: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-03-05 03:13:17] Production.INFO: count ==246 [2025-03-05 03:13:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:13:05 - End Time 2025-03-05 03:13:05 [2025-03-05 03:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610309', 'tblTempUsageDetail_20' ) start [2025-03-05 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610309', 'tblTempUsageDetail_20' ) end [2025-03-05 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610309', 'tblTempVendorCDR_20' ) start [2025-03-05 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610309', 'tblTempVendorCDR_20' ) end [2025-03-05 03:13:17] Production.INFO: ProcessCDR(1,14610309,1,1,2) [2025-03-05 03:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610309', 'tblTempUsageDetail_20' ) start [2025-03-05 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610309', 'tblTempUsageDetail_20' ) end [2025-03-05 03:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:13:20] Production.INFO: ==21316== Releasing lock... [2025-03-05 03:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:13:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 03:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:14:06 [end_date_ymd] => 2025-03-05 03:14:06 [RateCDR] => 1 ) [2025-03-05 03:14: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-03-05 00:14:06' and `end` < '2025-03-05 03:14: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-03-05 03:14:18] Production.INFO: count ==246 [2025-03-05 03:14:18] Production.ERROR: pbx CDR StartTime 2025-03-05 00:14:06 - End Time 2025-03-05 03:14:06 [2025-03-05 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610314', 'tblTempUsageDetail_20' ) start [2025-03-05 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610314', 'tblTempUsageDetail_20' ) end [2025-03-05 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610314', 'tblTempVendorCDR_20' ) start [2025-03-05 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610314', 'tblTempVendorCDR_20' ) end [2025-03-05 03:14:18] Production.INFO: ProcessCDR(1,14610314,1,1,2) [2025-03-05 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610314', 'tblTempUsageDetail_20' ) start [2025-03-05 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610314', 'tblTempUsageDetail_20' ) end [2025-03-05 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:14:21] Production.INFO: ==21391== Releasing lock... [2025-03-05 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:14:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:15:05 [end_date_ymd] => 2025-03-05 03:15:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 00:15:05' and `end` < '2025-03-05 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-03-05 03:15:17] Production.INFO: count ==240 [2025-03-05 03:15:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:15:05 - End Time 2025-03-05 03:15:05 [2025-03-05 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610319', 'tblTempUsageDetail_20' ) start [2025-03-05 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610319', 'tblTempUsageDetail_20' ) end [2025-03-05 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610319', 'tblTempVendorCDR_20' ) start [2025-03-05 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610319', 'tblTempVendorCDR_20' ) end [2025-03-05 03:15:17] Production.INFO: ProcessCDR(1,14610319,1,1,2) [2025-03-05 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610319', 'tblTempUsageDetail_20' ) start [2025-03-05 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610319', 'tblTempUsageDetail_20' ) end [2025-03-05 03:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:15:20] Production.INFO: ==21466== Releasing lock... [2025-03-05 03:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:15:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 03:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:16:06 [end_date_ymd] => 2025-03-05 03:16:06 [RateCDR] => 1 ) [2025-03-05 03:16: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-03-05 00:16:06' and `end` < '2025-03-05 03:16: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-03-05 03:16:17] Production.INFO: count ==240 [2025-03-05 03:16:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:16:06 - End Time 2025-03-05 03:16:06 [2025-03-05 03:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610324', 'tblTempUsageDetail_20' ) start [2025-03-05 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610324', 'tblTempUsageDetail_20' ) end [2025-03-05 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610324', 'tblTempVendorCDR_20' ) start [2025-03-05 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610324', 'tblTempVendorCDR_20' ) end [2025-03-05 03:16:17] Production.INFO: ProcessCDR(1,14610324,1,1,2) [2025-03-05 03:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610324', 'tblTempUsageDetail_20' ) start [2025-03-05 03:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610324', 'tblTempUsageDetail_20' ) end [2025-03-05 03:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:16:21] Production.INFO: ==21538== Releasing lock... [2025-03-05 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:16:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:17:05 [end_date_ymd] => 2025-03-05 03:17:05 [RateCDR] => 1 ) [2025-03-05 03: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-03-05 00:17:05' and `end` < '2025-03-05 03: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-03-05 03:17:17] Production.INFO: count ==240 [2025-03-05 03:17:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:17:05 - End Time 2025-03-05 03:17:05 [2025-03-05 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610329', 'tblTempUsageDetail_20' ) start [2025-03-05 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610329', 'tblTempUsageDetail_20' ) end [2025-03-05 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610329', 'tblTempVendorCDR_20' ) start [2025-03-05 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610329', 'tblTempVendorCDR_20' ) end [2025-03-05 03:17:17] Production.INFO: ProcessCDR(1,14610329,1,1,2) [2025-03-05 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610329', 'tblTempUsageDetail_20' ) start [2025-03-05 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610329', 'tblTempUsageDetail_20' ) end [2025-03-05 03:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:17:20] Production.INFO: ==21690== Releasing lock... [2025-03-05 03:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:17:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:18:05 [end_date_ymd] => 2025-03-05 03:18:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 00:18:05' and `end` < '2025-03-05 03: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-03-05 03:18:17] Production.INFO: count ==240 [2025-03-05 03:18:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:18:05 - End Time 2025-03-05 03:18:05 [2025-03-05 03:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610334', 'tblTempUsageDetail_20' ) start [2025-03-05 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610334', 'tblTempUsageDetail_20' ) end [2025-03-05 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610334', 'tblTempVendorCDR_20' ) start [2025-03-05 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610334', 'tblTempVendorCDR_20' ) end [2025-03-05 03:18:17] Production.INFO: ProcessCDR(1,14610334,1,1,2) [2025-03-05 03:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610334', 'tblTempUsageDetail_20' ) start [2025-03-05 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610334', 'tblTempUsageDetail_20' ) end [2025-03-05 03:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:18:21] Production.INFO: ==21761== Releasing lock... [2025-03-05 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:18:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 03:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:19:04 [end_date_ymd] => 2025-03-05 03:19:04 [RateCDR] => 1 ) [2025-03-05 03: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-03-05 00:19:04' and `end` < '2025-03-05 03: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-03-05 03:19:16] Production.INFO: count ==240 [2025-03-05 03:19:16] Production.ERROR: pbx CDR StartTime 2025-03-05 00:19:04 - End Time 2025-03-05 03:19:04 [2025-03-05 03:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610339', 'tblTempUsageDetail_20' ) start [2025-03-05 03:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610339', 'tblTempUsageDetail_20' ) end [2025-03-05 03:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610339', 'tblTempVendorCDR_20' ) start [2025-03-05 03:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610339', 'tblTempVendorCDR_20' ) end [2025-03-05 03:19:16] Production.INFO: ProcessCDR(1,14610339,1,1,2) [2025-03-05 03:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:19:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:19:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:19:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:19:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610339', 'tblTempUsageDetail_20' ) start [2025-03-05 03:19:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610339', 'tblTempUsageDetail_20' ) end [2025-03-05 03:19:19] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:19:19] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:19:19] Production.INFO: ==21833== Releasing lock... [2025-03-05 03:19:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:19:19] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:20:06 [end_date_ymd] => 2025-03-05 03:20:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 00:20:06' and `end` < '2025-03-05 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-03-05 03:20:18] Production.INFO: count ==236 [2025-03-05 03:20:18] Production.ERROR: pbx CDR StartTime 2025-03-05 00:20:06 - End Time 2025-03-05 03:20:06 [2025-03-05 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610345', 'tblTempUsageDetail_20' ) start [2025-03-05 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610345', 'tblTempUsageDetail_20' ) end [2025-03-05 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610345', 'tblTempVendorCDR_20' ) start [2025-03-05 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610345', 'tblTempVendorCDR_20' ) end [2025-03-05 03:20:18] Production.INFO: ProcessCDR(1,14610345,1,1,2) [2025-03-05 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610345', 'tblTempUsageDetail_20' ) start [2025-03-05 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610345', 'tblTempUsageDetail_20' ) end [2025-03-05 03:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:20:21] Production.INFO: ==21908== Releasing lock... [2025-03-05 03:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:20:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 03:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:21:06 [end_date_ymd] => 2025-03-05 03:21:06 [RateCDR] => 1 ) [2025-03-05 03:21: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-03-05 00:21:06' and `end` < '2025-03-05 03:21: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-03-05 03:21:18] Production.INFO: count ==224 [2025-03-05 03:21:18] Production.ERROR: pbx CDR StartTime 2025-03-05 00:21:06 - End Time 2025-03-05 03:21:06 [2025-03-05 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610350', 'tblTempUsageDetail_20' ) start [2025-03-05 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610350', 'tblTempUsageDetail_20' ) end [2025-03-05 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610350', 'tblTempVendorCDR_20' ) start [2025-03-05 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610350', 'tblTempVendorCDR_20' ) end [2025-03-05 03:21:18] Production.INFO: ProcessCDR(1,14610350,1,1,2) [2025-03-05 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610350', 'tblTempUsageDetail_20' ) start [2025-03-05 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610350', 'tblTempUsageDetail_20' ) end [2025-03-05 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:21:21] Production.INFO: ==21980== Releasing lock... [2025-03-05 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:21:21] Production.INFO: 29 MB #Memory Used# [2025-03-05 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:22:05 [end_date_ymd] => 2025-03-05 03:22:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 00:22:05' and `end` < '2025-03-05 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-03-05 03:22:17] Production.INFO: count ==223 [2025-03-05 03:22:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:22:05 - End Time 2025-03-05 03:22:05 [2025-03-05 03:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610355', 'tblTempUsageDetail_20' ) start [2025-03-05 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610355', 'tblTempUsageDetail_20' ) end [2025-03-05 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610355', 'tblTempVendorCDR_20' ) start [2025-03-05 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610355', 'tblTempVendorCDR_20' ) end [2025-03-05 03:22:17] Production.INFO: ProcessCDR(1,14610355,1,1,2) [2025-03-05 03:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610355', 'tblTempUsageDetail_20' ) start [2025-03-05 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610355', 'tblTempUsageDetail_20' ) end [2025-03-05 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:22:21] Production.INFO: ==22054== Releasing lock... [2025-03-05 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:22:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 03:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:23:04 [end_date_ymd] => 2025-03-05 03:23:04 [RateCDR] => 1 ) [2025-03-05 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-03-05 00:23:04' and `end` < '2025-03-05 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-03-05 03:23:16] Production.INFO: count ==223 [2025-03-05 03:23:16] Production.ERROR: pbx CDR StartTime 2025-03-05 00:23:04 - End Time 2025-03-05 03:23:04 [2025-03-05 03:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610360', 'tblTempUsageDetail_20' ) start [2025-03-05 03:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610360', 'tblTempUsageDetail_20' ) end [2025-03-05 03:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610360', 'tblTempVendorCDR_20' ) start [2025-03-05 03:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610360', 'tblTempVendorCDR_20' ) end [2025-03-05 03:23:16] Production.INFO: ProcessCDR(1,14610360,1,1,2) [2025-03-05 03:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:23:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:23:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:23:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610360', 'tblTempUsageDetail_20' ) start [2025-03-05 03:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610360', 'tblTempUsageDetail_20' ) end [2025-03-05 03:23:19] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:23:19] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:23:19] Production.INFO: ==22127== Releasing lock... [2025-03-05 03:23:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:23:19] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:24:05 [end_date_ymd] => 2025-03-05 03:24:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 00:24:05' and `end` < '2025-03-05 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-03-05 03:24:17] Production.INFO: count ==216 [2025-03-05 03:24:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:24:05 - End Time 2025-03-05 03:24:05 [2025-03-05 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610365', 'tblTempUsageDetail_20' ) start [2025-03-05 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610365', 'tblTempUsageDetail_20' ) end [2025-03-05 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610365', 'tblTempVendorCDR_20' ) start [2025-03-05 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610365', 'tblTempVendorCDR_20' ) end [2025-03-05 03:24:17] Production.INFO: ProcessCDR(1,14610365,1,1,2) [2025-03-05 03:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610365', 'tblTempUsageDetail_20' ) start [2025-03-05 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610365', 'tblTempUsageDetail_20' ) end [2025-03-05 03:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:24:20] Production.INFO: ==22253== Releasing lock... [2025-03-05 03:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:24:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 03:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:25:05 [end_date_ymd] => 2025-03-05 03:25:05 [RateCDR] => 1 ) [2025-03-05 03:25: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-03-05 00:25:05' and `end` < '2025-03-05 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-03-05 03:25:17] Production.INFO: count ==216 [2025-03-05 03:25:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:25:05 - End Time 2025-03-05 03:25:05 [2025-03-05 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610370', 'tblTempUsageDetail_20' ) start [2025-03-05 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610370', 'tblTempUsageDetail_20' ) end [2025-03-05 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610370', 'tblTempVendorCDR_20' ) start [2025-03-05 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610370', 'tblTempVendorCDR_20' ) end [2025-03-05 03:25:17] Production.INFO: ProcessCDR(1,14610370,1,1,2) [2025-03-05 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610370', 'tblTempUsageDetail_20' ) start [2025-03-05 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610370', 'tblTempUsageDetail_20' ) end [2025-03-05 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:25:21] Production.INFO: ==22355== Releasing lock... [2025-03-05 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:25:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:26:05 [end_date_ymd] => 2025-03-05 03:26:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 00:26:05' and `end` < '2025-03-05 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-03-05 03:26:17] Production.INFO: count ==213 [2025-03-05 03:26:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:26:05 - End Time 2025-03-05 03:26:05 [2025-03-05 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610375', 'tblTempUsageDetail_20' ) start [2025-03-05 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610375', 'tblTempUsageDetail_20' ) end [2025-03-05 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610375', 'tblTempVendorCDR_20' ) start [2025-03-05 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610375', 'tblTempVendorCDR_20' ) end [2025-03-05 03:26:17] Production.INFO: ProcessCDR(1,14610375,1,1,2) [2025-03-05 03:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610375', 'tblTempUsageDetail_20' ) start [2025-03-05 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610375', 'tblTempUsageDetail_20' ) end [2025-03-05 03:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:26:20] Production.INFO: ==22430== Releasing lock... [2025-03-05 03:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:26:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:27:05 [end_date_ymd] => 2025-03-05 03:27:05 [RateCDR] => 1 ) [2025-03-05 03: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-03-05 00:27:05' and `end` < '2025-03-05 03: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-03-05 03:27:17] Production.INFO: count ==212 [2025-03-05 03:27:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:27:05 - End Time 2025-03-05 03:27:05 [2025-03-05 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610380', 'tblTempUsageDetail_20' ) start [2025-03-05 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610380', 'tblTempUsageDetail_20' ) end [2025-03-05 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610380', 'tblTempVendorCDR_20' ) start [2025-03-05 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610380', 'tblTempVendorCDR_20' ) end [2025-03-05 03:27:17] Production.INFO: ProcessCDR(1,14610380,1,1,2) [2025-03-05 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610380', 'tblTempUsageDetail_20' ) start [2025-03-05 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610380', 'tblTempUsageDetail_20' ) end [2025-03-05 03:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:27:20] Production.INFO: ==22504== Releasing lock... [2025-03-05 03:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:27:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:28:05 [end_date_ymd] => 2025-03-05 03:28:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 00:28:05' and `end` < '2025-03-05 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-03-05 03:28:17] Production.INFO: count ==212 [2025-03-05 03:28:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:28:05 - End Time 2025-03-05 03:28:05 [2025-03-05 03:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610385', 'tblTempUsageDetail_20' ) start [2025-03-05 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610385', 'tblTempUsageDetail_20' ) end [2025-03-05 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610385', 'tblTempVendorCDR_20' ) start [2025-03-05 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610385', 'tblTempVendorCDR_20' ) end [2025-03-05 03:28:17] Production.INFO: ProcessCDR(1,14610385,1,1,2) [2025-03-05 03:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610385', 'tblTempUsageDetail_20' ) start [2025-03-05 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610385', 'tblTempUsageDetail_20' ) end [2025-03-05 03:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:28:20] Production.INFO: ==22576== Releasing lock... [2025-03-05 03:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:28:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:29:05 [end_date_ymd] => 2025-03-05 03:29:05 [RateCDR] => 1 ) [2025-03-05 03: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-03-05 00:29:05' and `end` < '2025-03-05 03: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-03-05 03:29:17] Production.INFO: count ==212 [2025-03-05 03:29:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:29:05 - End Time 2025-03-05 03:29:05 [2025-03-05 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610390', 'tblTempUsageDetail_20' ) start [2025-03-05 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610390', 'tblTempUsageDetail_20' ) end [2025-03-05 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610390', 'tblTempVendorCDR_20' ) start [2025-03-05 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610390', 'tblTempVendorCDR_20' ) end [2025-03-05 03:29:17] Production.INFO: ProcessCDR(1,14610390,1,1,2) [2025-03-05 03:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610390', 'tblTempUsageDetail_20' ) start [2025-03-05 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610390', 'tblTempUsageDetail_20' ) end [2025-03-05 03:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:29:20] Production.INFO: ==22653== Releasing lock... [2025-03-05 03:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:29:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 03:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:30:05 [end_date_ymd] => 2025-03-05 03:30:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 00:30:05' and `end` < '2025-03-05 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-03-05 03:30:17] Production.INFO: count ==209 [2025-03-05 03:30:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:30:05 - End Time 2025-03-05 03:30:05 [2025-03-05 03:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610396', 'tblTempUsageDetail_20' ) start [2025-03-05 03:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610396', 'tblTempUsageDetail_20' ) end [2025-03-05 03:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610396', 'tblTempVendorCDR_20' ) start [2025-03-05 03:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610396', 'tblTempVendorCDR_20' ) end [2025-03-05 03:30:17] Production.INFO: ProcessCDR(1,14610396,1,1,2) [2025-03-05 03:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610396', 'tblTempUsageDetail_20' ) start [2025-03-05 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610396', 'tblTempUsageDetail_20' ) end [2025-03-05 03:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:30:21] Production.INFO: ==22733== Releasing lock... [2025-03-05 03:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:30:21] Production.INFO: 29 MB #Memory Used# [2025-03-05 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:31:05 [end_date_ymd] => 2025-03-05 03:31:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 00:31:05' and `end` < '2025-03-05 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-03-05 03:31:17] Production.INFO: count ==208 [2025-03-05 03:31:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:31:05 - End Time 2025-03-05 03:31:05 [2025-03-05 03:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610401', 'tblTempUsageDetail_20' ) start [2025-03-05 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610401', 'tblTempUsageDetail_20' ) end [2025-03-05 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610401', 'tblTempVendorCDR_20' ) start [2025-03-05 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610401', 'tblTempVendorCDR_20' ) end [2025-03-05 03:31:17] Production.INFO: ProcessCDR(1,14610401,1,1,2) [2025-03-05 03:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610401', 'tblTempUsageDetail_20' ) start [2025-03-05 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610401', 'tblTempUsageDetail_20' ) end [2025-03-05 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:31:21] Production.INFO: ==22812== Releasing lock... [2025-03-05 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:31:21] Production.INFO: 29 MB #Memory Used# [2025-03-05 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:32:05 [end_date_ymd] => 2025-03-05 03:32:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 00:32:05' and `end` < '2025-03-05 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-03-05 03:32:17] Production.INFO: count ==207 [2025-03-05 03:32:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:32:05 - End Time 2025-03-05 03:32:05 [2025-03-05 03:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610406', 'tblTempUsageDetail_20' ) start [2025-03-05 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610406', 'tblTempUsageDetail_20' ) end [2025-03-05 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610406', 'tblTempVendorCDR_20' ) start [2025-03-05 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610406', 'tblTempVendorCDR_20' ) end [2025-03-05 03:32:17] Production.INFO: ProcessCDR(1,14610406,1,1,2) [2025-03-05 03:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610406', 'tblTempUsageDetail_20' ) start [2025-03-05 03:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610406', 'tblTempUsageDetail_20' ) end [2025-03-05 03:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:32:20] Production.INFO: ==22886== Releasing lock... [2025-03-05 03:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:32:20] Production.INFO: 29 MB #Memory Used# [2025-03-05 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:33:05 [end_date_ymd] => 2025-03-05 03:33:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 00:33:05' and `end` < '2025-03-05 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-03-05 03:33:17] Production.INFO: count ==207 [2025-03-05 03:33:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:33:05 - End Time 2025-03-05 03:33:05 [2025-03-05 03:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610411', 'tblTempUsageDetail_20' ) start [2025-03-05 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610411', 'tblTempUsageDetail_20' ) end [2025-03-05 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610411', 'tblTempVendorCDR_20' ) start [2025-03-05 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610411', 'tblTempVendorCDR_20' ) end [2025-03-05 03:33:17] Production.INFO: ProcessCDR(1,14610411,1,1,2) [2025-03-05 03:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610411', 'tblTempUsageDetail_20' ) start [2025-03-05 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610411', 'tblTempUsageDetail_20' ) end [2025-03-05 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:33:21] Production.INFO: ==22961== Releasing lock... [2025-03-05 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:33:21] Production.INFO: 29 MB #Memory Used# [2025-03-05 03:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:34:06 [end_date_ymd] => 2025-03-05 03:34:06 [RateCDR] => 1 ) [2025-03-05 03: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-03-05 00:34:06' and `end` < '2025-03-05 03: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-03-05 03:34:18] Production.INFO: count ==207 [2025-03-05 03:34:18] Production.ERROR: pbx CDR StartTime 2025-03-05 00:34:06 - End Time 2025-03-05 03:34:06 [2025-03-05 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610416', 'tblTempUsageDetail_20' ) start [2025-03-05 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610416', 'tblTempUsageDetail_20' ) end [2025-03-05 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610416', 'tblTempVendorCDR_20' ) start [2025-03-05 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610416', 'tblTempVendorCDR_20' ) end [2025-03-05 03:34:18] Production.INFO: ProcessCDR(1,14610416,1,1,2) [2025-03-05 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610416', 'tblTempUsageDetail_20' ) start [2025-03-05 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610416', 'tblTempUsageDetail_20' ) end [2025-03-05 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:34:21] Production.INFO: ==23037== Releasing lock... [2025-03-05 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:34:21] Production.INFO: 29 MB #Memory Used# [2025-03-05 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:35:05 [end_date_ymd] => 2025-03-05 03:35:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 00:35:05' and `end` < '2025-03-05 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-03-05 03:35:17] Production.INFO: count ==207 [2025-03-05 03:35:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:35:05 - End Time 2025-03-05 03:35:05 [2025-03-05 03:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610421', 'tblTempUsageDetail_20' ) start [2025-03-05 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610421', 'tblTempUsageDetail_20' ) end [2025-03-05 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610421', 'tblTempVendorCDR_20' ) start [2025-03-05 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610421', 'tblTempVendorCDR_20' ) end [2025-03-05 03:35:17] Production.INFO: ProcessCDR(1,14610421,1,1,2) [2025-03-05 03:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610421', 'tblTempUsageDetail_20' ) start [2025-03-05 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610421', 'tblTempUsageDetail_20' ) end [2025-03-05 03:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:35:20] Production.INFO: ==23109== Releasing lock... [2025-03-05 03:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:35:20] Production.INFO: 29 MB #Memory Used# [2025-03-05 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:36:06 [end_date_ymd] => 2025-03-05 03:36:06 [RateCDR] => 1 ) [2025-03-05 03:36: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-03-05 00:36:06' and `end` < '2025-03-05 03:36: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-03-05 03:36:18] Production.INFO: count ==207 [2025-03-05 03:36:18] Production.ERROR: pbx CDR StartTime 2025-03-05 00:36:06 - End Time 2025-03-05 03:36:06 [2025-03-05 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610426', 'tblTempUsageDetail_20' ) start [2025-03-05 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610426', 'tblTempUsageDetail_20' ) end [2025-03-05 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610426', 'tblTempVendorCDR_20' ) start [2025-03-05 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610426', 'tblTempVendorCDR_20' ) end [2025-03-05 03:36:18] Production.INFO: ProcessCDR(1,14610426,1,1,2) [2025-03-05 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610426', 'tblTempUsageDetail_20' ) start [2025-03-05 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610426', 'tblTempUsageDetail_20' ) end [2025-03-05 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:36:21] Production.INFO: ==23184== Releasing lock... [2025-03-05 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:36:21] Production.INFO: 29 MB #Memory Used# [2025-03-05 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:37:05 [end_date_ymd] => 2025-03-05 03:37:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 00:37:05' and `end` < '2025-03-05 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-03-05 03:37:17] Production.INFO: count ==207 [2025-03-05 03:37:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:37:05 - End Time 2025-03-05 03:37:05 [2025-03-05 03:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610431', 'tblTempUsageDetail_20' ) start [2025-03-05 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610431', 'tblTempUsageDetail_20' ) end [2025-03-05 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610431', 'tblTempVendorCDR_20' ) start [2025-03-05 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610431', 'tblTempVendorCDR_20' ) end [2025-03-05 03:37:17] Production.INFO: ProcessCDR(1,14610431,1,1,2) [2025-03-05 03:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610431', 'tblTempUsageDetail_20' ) start [2025-03-05 03:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610431', 'tblTempUsageDetail_20' ) end [2025-03-05 03:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:37:20] Production.INFO: ==23256== Releasing lock... [2025-03-05 03:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:37:20] Production.INFO: 29 MB #Memory Used# [2025-03-05 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:38:05 [end_date_ymd] => 2025-03-05 03:38:05 [RateCDR] => 1 ) [2025-03-05 03: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-03-05 00:38:05' and `end` < '2025-03-05 03: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-03-05 03:38:18] Production.INFO: count ==207 [2025-03-05 03:38:18] Production.ERROR: pbx CDR StartTime 2025-03-05 00:38:05 - End Time 2025-03-05 03:38:05 [2025-03-05 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610436', 'tblTempUsageDetail_20' ) start [2025-03-05 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610436', 'tblTempUsageDetail_20' ) end [2025-03-05 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610436', 'tblTempVendorCDR_20' ) start [2025-03-05 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610436', 'tblTempVendorCDR_20' ) end [2025-03-05 03:38:18] Production.INFO: ProcessCDR(1,14610436,1,1,2) [2025-03-05 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610436', 'tblTempUsageDetail_20' ) start [2025-03-05 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610436', 'tblTempUsageDetail_20' ) end [2025-03-05 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:38:21] Production.INFO: ==23335== Releasing lock... [2025-03-05 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:38:21] Production.INFO: 29 MB #Memory Used# [2025-03-05 03:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:39:06 [end_date_ymd] => 2025-03-05 03:39:06 [RateCDR] => 1 ) [2025-03-05 03:39: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-03-05 00:39:06' and `end` < '2025-03-05 03:39: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-03-05 03:39:18] Production.INFO: count ==207 [2025-03-05 03:39:18] Production.ERROR: pbx CDR StartTime 2025-03-05 00:39:06 - End Time 2025-03-05 03:39:06 [2025-03-05 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610441', 'tblTempUsageDetail_20' ) start [2025-03-05 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610441', 'tblTempUsageDetail_20' ) end [2025-03-05 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610441', 'tblTempVendorCDR_20' ) start [2025-03-05 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610441', 'tblTempVendorCDR_20' ) end [2025-03-05 03:39:18] Production.INFO: ProcessCDR(1,14610441,1,1,2) [2025-03-05 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610441', 'tblTempUsageDetail_20' ) start [2025-03-05 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610441', 'tblTempUsageDetail_20' ) end [2025-03-05 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:39:21] Production.INFO: ==23405== Releasing lock... [2025-03-05 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:39:21] Production.INFO: 29 MB #Memory Used# [2025-03-05 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:40:06 [end_date_ymd] => 2025-03-05 03:40:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 00:40:06' and `end` < '2025-03-05 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-03-05 03:40:18] Production.INFO: count ==205 [2025-03-05 03:40:18] Production.ERROR: pbx CDR StartTime 2025-03-05 00:40:06 - End Time 2025-03-05 03:40:06 [2025-03-05 03:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610446', 'tblTempUsageDetail_20' ) start [2025-03-05 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610446', 'tblTempUsageDetail_20' ) end [2025-03-05 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610446', 'tblTempVendorCDR_20' ) start [2025-03-05 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610446', 'tblTempVendorCDR_20' ) end [2025-03-05 03:40:18] Production.INFO: ProcessCDR(1,14610446,1,1,2) [2025-03-05 03:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610446', 'tblTempUsageDetail_20' ) start [2025-03-05 03:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610446', 'tblTempUsageDetail_20' ) end [2025-03-05 03:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:40:21] Production.INFO: ==23526== Releasing lock... [2025-03-05 03:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:40:21] Production.INFO: 29 MB #Memory Used# [2025-03-05 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:41:05 [end_date_ymd] => 2025-03-05 03:41:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 00:41:05' and `end` < '2025-03-05 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-03-05 03:41:17] Production.INFO: count ==200 [2025-03-05 03:41:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:41:05 - End Time 2025-03-05 03:41:05 [2025-03-05 03:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610452', 'tblTempUsageDetail_20' ) start [2025-03-05 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610452', 'tblTempUsageDetail_20' ) end [2025-03-05 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610452', 'tblTempVendorCDR_20' ) start [2025-03-05 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610452', 'tblTempVendorCDR_20' ) end [2025-03-05 03:41:17] Production.INFO: ProcessCDR(1,14610452,1,1,2) [2025-03-05 03:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610452', 'tblTempUsageDetail_20' ) start [2025-03-05 03:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610452', 'tblTempUsageDetail_20' ) end [2025-03-05 03:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:41:20] Production.INFO: ==23642== Releasing lock... [2025-03-05 03:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:41:20] Production.INFO: 29 MB #Memory Used# [2025-03-05 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:42:05 [end_date_ymd] => 2025-03-05 03:42:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 00:42:05' and `end` < '2025-03-05 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-03-05 03:42:17] Production.INFO: count ==200 [2025-03-05 03:42:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:42:05 - End Time 2025-03-05 03:42:05 [2025-03-05 03:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610457', 'tblTempUsageDetail_20' ) start [2025-03-05 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610457', 'tblTempUsageDetail_20' ) end [2025-03-05 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610457', 'tblTempVendorCDR_20' ) start [2025-03-05 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610457', 'tblTempVendorCDR_20' ) end [2025-03-05 03:42:17] Production.INFO: ProcessCDR(1,14610457,1,1,2) [2025-03-05 03:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610457', 'tblTempUsageDetail_20' ) start [2025-03-05 03:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610457', 'tblTempUsageDetail_20' ) end [2025-03-05 03:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:42:20] Production.INFO: ==23753== Releasing lock... [2025-03-05 03:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:42:20] Production.INFO: 29 MB #Memory Used# [2025-03-05 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:43:05 [end_date_ymd] => 2025-03-05 03:43:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 00:43:05' and `end` < '2025-03-05 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-03-05 03:43:17] Production.INFO: count ==200 [2025-03-05 03:43:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:43:05 - End Time 2025-03-05 03:43:05 [2025-03-05 03:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610462', 'tblTempUsageDetail_20' ) start [2025-03-05 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610462', 'tblTempUsageDetail_20' ) end [2025-03-05 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610462', 'tblTempVendorCDR_20' ) start [2025-03-05 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610462', 'tblTempVendorCDR_20' ) end [2025-03-05 03:43:17] Production.INFO: ProcessCDR(1,14610462,1,1,2) [2025-03-05 03:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:43:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:43:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610462', 'tblTempUsageDetail_20' ) start [2025-03-05 03:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610462', 'tblTempUsageDetail_20' ) end [2025-03-05 03:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:43:20] Production.INFO: ==23837== Releasing lock... [2025-03-05 03:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:43:20] Production.INFO: 29 MB #Memory Used# [2025-03-05 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:44:06 [end_date_ymd] => 2025-03-05 03:44:06 [RateCDR] => 1 ) [2025-03-05 03:44: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-03-05 00:44:06' and `end` < '2025-03-05 03:44: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-03-05 03:44:18] Production.INFO: count ==200 [2025-03-05 03:44:18] Production.ERROR: pbx CDR StartTime 2025-03-05 00:44:06 - End Time 2025-03-05 03:44:06 [2025-03-05 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610467', 'tblTempUsageDetail_20' ) start [2025-03-05 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610467', 'tblTempUsageDetail_20' ) end [2025-03-05 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610467', 'tblTempVendorCDR_20' ) start [2025-03-05 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610467', 'tblTempVendorCDR_20' ) end [2025-03-05 03:44:18] Production.INFO: ProcessCDR(1,14610467,1,1,2) [2025-03-05 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610467', 'tblTempUsageDetail_20' ) start [2025-03-05 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610467', 'tblTempUsageDetail_20' ) end [2025-03-05 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:44:21] Production.INFO: ==23917== Releasing lock... [2025-03-05 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:44:21] Production.INFO: 29 MB #Memory Used# [2025-03-05 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:45:05 [end_date_ymd] => 2025-03-05 03:45:05 [RateCDR] => 1 ) [2025-03-05 03: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-03-05 00:45:05' and `end` < '2025-03-05 03: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-03-05 03:45:17] Production.INFO: count ==200 [2025-03-05 03:45:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:45:05 - End Time 2025-03-05 03:45:05 [2025-03-05 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610472', 'tblTempUsageDetail_20' ) start [2025-03-05 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610472', 'tblTempUsageDetail_20' ) end [2025-03-05 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610472', 'tblTempVendorCDR_20' ) start [2025-03-05 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610472', 'tblTempVendorCDR_20' ) end [2025-03-05 03:45:17] Production.INFO: ProcessCDR(1,14610472,1,1,2) [2025-03-05 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610472', 'tblTempUsageDetail_20' ) start [2025-03-05 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610472', 'tblTempUsageDetail_20' ) end [2025-03-05 03:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:45:20] Production.INFO: ==23988== Releasing lock... [2025-03-05 03:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:45:20] Production.INFO: 29 MB #Memory Used# [2025-03-05 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:46:05 [end_date_ymd] => 2025-03-05 03:46:05 [RateCDR] => 1 ) [2025-03-05 03: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-03-05 00:46:05' and `end` < '2025-03-05 03: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-03-05 03:46:17] Production.INFO: count ==200 [2025-03-05 03:46:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:46:05 - End Time 2025-03-05 03:46:05 [2025-03-05 03:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610477', 'tblTempUsageDetail_20' ) start [2025-03-05 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610477', 'tblTempUsageDetail_20' ) end [2025-03-05 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610477', 'tblTempVendorCDR_20' ) start [2025-03-05 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610477', 'tblTempVendorCDR_20' ) end [2025-03-05 03:46:17] Production.INFO: ProcessCDR(1,14610477,1,1,2) [2025-03-05 03:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610477', 'tblTempUsageDetail_20' ) start [2025-03-05 03:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610477', 'tblTempUsageDetail_20' ) end [2025-03-05 03:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:46:20] Production.INFO: ==24060== Releasing lock... [2025-03-05 03:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:46:20] Production.INFO: 29 MB #Memory Used# [2025-03-05 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:47:05 [end_date_ymd] => 2025-03-05 03:47:05 [RateCDR] => 1 ) [2025-03-05 03: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-03-05 00:47:05' and `end` < '2025-03-05 03: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-03-05 03:47:17] Production.INFO: count ==200 [2025-03-05 03:47:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:47:05 - End Time 2025-03-05 03:47:05 [2025-03-05 03:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610482', 'tblTempUsageDetail_20' ) start [2025-03-05 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610482', 'tblTempUsageDetail_20' ) end [2025-03-05 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610482', 'tblTempVendorCDR_20' ) start [2025-03-05 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610482', 'tblTempVendorCDR_20' ) end [2025-03-05 03:47:17] Production.INFO: ProcessCDR(1,14610482,1,1,2) [2025-03-05 03:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610482', 'tblTempUsageDetail_20' ) start [2025-03-05 03:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610482', 'tblTempUsageDetail_20' ) end [2025-03-05 03:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:47:20] Production.INFO: ==24131== Releasing lock... [2025-03-05 03:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:47:20] Production.INFO: 29 MB #Memory Used# [2025-03-05 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:48:05 [end_date_ymd] => 2025-03-05 03:48:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 00:48:05' and `end` < '2025-03-05 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-03-05 03:48:17] Production.INFO: count ==200 [2025-03-05 03:48:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:48:05 - End Time 2025-03-05 03:48:05 [2025-03-05 03:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610487', 'tblTempUsageDetail_20' ) start [2025-03-05 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610487', 'tblTempUsageDetail_20' ) end [2025-03-05 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610487', 'tblTempVendorCDR_20' ) start [2025-03-05 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610487', 'tblTempVendorCDR_20' ) end [2025-03-05 03:48:17] Production.INFO: ProcessCDR(1,14610487,1,1,2) [2025-03-05 03:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610487', 'tblTempUsageDetail_20' ) start [2025-03-05 03:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610487', 'tblTempUsageDetail_20' ) end [2025-03-05 03:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:48:20] Production.INFO: ==24202== Releasing lock... [2025-03-05 03:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:48:20] Production.INFO: 29 MB #Memory Used# [2025-03-05 03:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:49:06 [end_date_ymd] => 2025-03-05 03:49:06 [RateCDR] => 1 ) [2025-03-05 03:49: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-03-05 00:49:06' and `end` < '2025-03-05 03:49: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-03-05 03:49:18] Production.INFO: count ==200 [2025-03-05 03:49:18] Production.ERROR: pbx CDR StartTime 2025-03-05 00:49:06 - End Time 2025-03-05 03:49:06 [2025-03-05 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610492', 'tblTempUsageDetail_20' ) start [2025-03-05 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610492', 'tblTempUsageDetail_20' ) end [2025-03-05 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610492', 'tblTempVendorCDR_20' ) start [2025-03-05 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610492', 'tblTempVendorCDR_20' ) end [2025-03-05 03:49:18] Production.INFO: ProcessCDR(1,14610492,1,1,2) [2025-03-05 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610492', 'tblTempUsageDetail_20' ) start [2025-03-05 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610492', 'tblTempUsageDetail_20' ) end [2025-03-05 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:49:21] Production.INFO: ==24281== Releasing lock... [2025-03-05 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:49:21] Production.INFO: 29 MB #Memory Used# [2025-03-05 03:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:50:05 [end_date_ymd] => 2025-03-05 03:50:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 00:50:05' and `end` < '2025-03-05 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-03-05 03:50:17] Production.INFO: count ==196 [2025-03-05 03:50:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:50:05 - End Time 2025-03-05 03:50:05 [2025-03-05 03:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610498', 'tblTempUsageDetail_20' ) start [2025-03-05 03:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610498', 'tblTempUsageDetail_20' ) end [2025-03-05 03:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610498', 'tblTempVendorCDR_20' ) start [2025-03-05 03:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610498', 'tblTempVendorCDR_20' ) end [2025-03-05 03:50:17] Production.INFO: ProcessCDR(1,14610498,1,1,2) [2025-03-05 03:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610498', 'tblTempUsageDetail_20' ) start [2025-03-05 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610498', 'tblTempUsageDetail_20' ) end [2025-03-05 03:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:50:21] Production.INFO: ==24355== Releasing lock... [2025-03-05 03:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:50:21] Production.INFO: 29 MB #Memory Used# [2025-03-05 03:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:51:06 [end_date_ymd] => 2025-03-05 03:51:06 [RateCDR] => 1 ) [2025-03-05 03: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-03-05 00:51:06' and `end` < '2025-03-05 03: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-03-05 03:51:18] Production.INFO: count ==178 [2025-03-05 03:51:18] Production.ERROR: pbx CDR StartTime 2025-03-05 00:51:06 - End Time 2025-03-05 03:51:06 [2025-03-05 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610503', 'tblTempUsageDetail_20' ) start [2025-03-05 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610503', 'tblTempUsageDetail_20' ) end [2025-03-05 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610503', 'tblTempVendorCDR_20' ) start [2025-03-05 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610503', 'tblTempVendorCDR_20' ) end [2025-03-05 03:51:18] Production.INFO: ProcessCDR(1,14610503,1,1,2) [2025-03-05 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610503', 'tblTempUsageDetail_20' ) start [2025-03-05 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610503', 'tblTempUsageDetail_20' ) end [2025-03-05 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:51:21] Production.INFO: ==24429== Releasing lock... [2025-03-05 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:51:21] Production.INFO: 29 MB #Memory Used# [2025-03-05 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:52:05 [end_date_ymd] => 2025-03-05 03:52:05 [RateCDR] => 1 ) [2025-03-05 03: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-03-05 00:52:05' and `end` < '2025-03-05 03: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-03-05 03:52:17] Production.INFO: count ==178 [2025-03-05 03:52:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:52:05 - End Time 2025-03-05 03:52:05 [2025-03-05 03:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610508', 'tblTempUsageDetail_20' ) start [2025-03-05 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610508', 'tblTempUsageDetail_20' ) end [2025-03-05 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610508', 'tblTempVendorCDR_20' ) start [2025-03-05 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610508', 'tblTempVendorCDR_20' ) end [2025-03-05 03:52:17] Production.INFO: ProcessCDR(1,14610508,1,1,2) [2025-03-05 03:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610508', 'tblTempUsageDetail_20' ) start [2025-03-05 03:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610508', 'tblTempUsageDetail_20' ) end [2025-03-05 03:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:52:20] Production.INFO: ==24500== Releasing lock... [2025-03-05 03:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:52:20] Production.INFO: 29 MB #Memory Used# [2025-03-05 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:53:05 [end_date_ymd] => 2025-03-05 03:53:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 00:53:05' and `end` < '2025-03-05 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-03-05 03:53:17] Production.INFO: count ==178 [2025-03-05 03:53:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:53:05 - End Time 2025-03-05 03:53:05 [2025-03-05 03:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610513', 'tblTempUsageDetail_20' ) start [2025-03-05 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610513', 'tblTempUsageDetail_20' ) end [2025-03-05 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610513', 'tblTempVendorCDR_20' ) start [2025-03-05 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610513', 'tblTempVendorCDR_20' ) end [2025-03-05 03:53:17] Production.INFO: ProcessCDR(1,14610513,1,1,2) [2025-03-05 03:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610513', 'tblTempUsageDetail_20' ) start [2025-03-05 03:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610513', 'tblTempUsageDetail_20' ) end [2025-03-05 03:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:53:20] Production.INFO: ==24573== Releasing lock... [2025-03-05 03:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:53:20] Production.INFO: 29 MB #Memory Used# [2025-03-05 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:54:05 [end_date_ymd] => 2025-03-05 03:54:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 00:54:05' and `end` < '2025-03-05 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-03-05 03:54:17] Production.INFO: count ==178 [2025-03-05 03:54:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:54:05 - End Time 2025-03-05 03:54:05 [2025-03-05 03:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610517', 'tblTempUsageDetail_20' ) start [2025-03-05 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610517', 'tblTempUsageDetail_20' ) end [2025-03-05 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610517', 'tblTempVendorCDR_20' ) start [2025-03-05 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610517', 'tblTempVendorCDR_20' ) end [2025-03-05 03:54:17] Production.INFO: ProcessCDR(1,14610517,1,1,2) [2025-03-05 03:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610517', 'tblTempUsageDetail_20' ) start [2025-03-05 03:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610517', 'tblTempUsageDetail_20' ) end [2025-03-05 03:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:54:20] Production.INFO: ==24646== Releasing lock... [2025-03-05 03:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:54:20] Production.INFO: 29 MB #Memory Used# [2025-03-05 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:55:05 [end_date_ymd] => 2025-03-05 03:55:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 00:55:05' and `end` < '2025-03-05 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-03-05 03:55:17] Production.INFO: count ==176 [2025-03-05 03:55:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:55:05 - End Time 2025-03-05 03:55:05 [2025-03-05 03:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610523', 'tblTempUsageDetail_20' ) start [2025-03-05 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610523', 'tblTempUsageDetail_20' ) end [2025-03-05 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610523', 'tblTempVendorCDR_20' ) start [2025-03-05 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610523', 'tblTempVendorCDR_20' ) end [2025-03-05 03:55:17] Production.INFO: ProcessCDR(1,14610523,1,1,2) [2025-03-05 03:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610523', 'tblTempUsageDetail_20' ) start [2025-03-05 03:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610523', 'tblTempUsageDetail_20' ) end [2025-03-05 03:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:55:20] Production.INFO: ==24762== Releasing lock... [2025-03-05 03:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:55:20] Production.INFO: 29 MB #Memory Used# [2025-03-05 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:56:06 [end_date_ymd] => 2025-03-05 03:56:06 [RateCDR] => 1 ) [2025-03-05 03: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-03-05 00:56:06' and `end` < '2025-03-05 03: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-03-05 03:56:18] Production.INFO: count ==174 [2025-03-05 03:56:18] Production.ERROR: pbx CDR StartTime 2025-03-05 00:56:06 - End Time 2025-03-05 03:56:06 [2025-03-05 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610528', 'tblTempUsageDetail_20' ) start [2025-03-05 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610528', 'tblTempUsageDetail_20' ) end [2025-03-05 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610528', 'tblTempVendorCDR_20' ) start [2025-03-05 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610528', 'tblTempVendorCDR_20' ) end [2025-03-05 03:56:18] Production.INFO: ProcessCDR(1,14610528,1,1,2) [2025-03-05 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610528', 'tblTempUsageDetail_20' ) start [2025-03-05 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610528', 'tblTempUsageDetail_20' ) end [2025-03-05 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:56:21] Production.INFO: ==24839== Releasing lock... [2025-03-05 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:56:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-05 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:57:05 [end_date_ymd] => 2025-03-05 03:57:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 00:57:05' and `end` < '2025-03-05 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-03-05 03:57:17] Production.INFO: count ==173 [2025-03-05 03:57:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:57:05 - End Time 2025-03-05 03:57:05 [2025-03-05 03:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610533', 'tblTempUsageDetail_20' ) start [2025-03-05 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610533', 'tblTempUsageDetail_20' ) end [2025-03-05 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610533', 'tblTempVendorCDR_20' ) start [2025-03-05 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610533', 'tblTempVendorCDR_20' ) end [2025-03-05 03:57:17] Production.INFO: ProcessCDR(1,14610533,1,1,2) [2025-03-05 03:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610533', 'tblTempUsageDetail_20' ) start [2025-03-05 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610533', 'tblTempUsageDetail_20' ) end [2025-03-05 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:57:21] Production.INFO: ==24913== Releasing lock... [2025-03-05 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:57:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-05 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:58:05 [end_date_ymd] => 2025-03-05 03:58:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 00:58:05' and `end` < '2025-03-05 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-03-05 03:58:17] Production.INFO: count ==173 [2025-03-05 03:58:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:58:05 - End Time 2025-03-05 03:58:05 [2025-03-05 03:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610538', 'tblTempUsageDetail_20' ) start [2025-03-05 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610538', 'tblTempUsageDetail_20' ) end [2025-03-05 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610538', 'tblTempVendorCDR_20' ) start [2025-03-05 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610538', 'tblTempVendorCDR_20' ) end [2025-03-05 03:58:17] Production.INFO: ProcessCDR(1,14610538,1,1,2) [2025-03-05 03:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610538', 'tblTempUsageDetail_20' ) start [2025-03-05 03:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610538', 'tblTempUsageDetail_20' ) end [2025-03-05 03:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:58:20] Production.INFO: ==24986== Releasing lock... [2025-03-05 03:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:58:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-05 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 00:59:05 [end_date_ymd] => 2025-03-05 03:59:05 [RateCDR] => 1 ) [2025-03-05 03: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-03-05 00:59:05' and `end` < '2025-03-05 03: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-03-05 03:59:17] Production.INFO: count ==173 [2025-03-05 03:59:17] Production.ERROR: pbx CDR StartTime 2025-03-05 00:59:05 - End Time 2025-03-05 03:59:05 [2025-03-05 03:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610543', 'tblTempUsageDetail_20' ) start [2025-03-05 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610543', 'tblTempUsageDetail_20' ) end [2025-03-05 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610543', 'tblTempVendorCDR_20' ) start [2025-03-05 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610543', 'tblTempVendorCDR_20' ) end [2025-03-05 03:59:17] Production.INFO: ProcessCDR(1,14610543,1,1,2) [2025-03-05 03:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 03:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 03:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610543', 'tblTempUsageDetail_20' ) start [2025-03-05 03:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610543', 'tblTempUsageDetail_20' ) end [2025-03-05 03:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 03:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 03:59:20] Production.INFO: ==25058== Releasing lock... [2025-03-05 03:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 03:59:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-05 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:00:06 [end_date_ymd] => 2025-03-05 04:00:06 [RateCDR] => 1 ) [2025-03-05 04: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-03-05 01:00:06' and `end` < '2025-03-05 04: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-03-05 04:00:18] Production.INFO: count ==165 [2025-03-05 04:00:18] Production.ERROR: pbx CDR StartTime 2025-03-05 01:00:06 - End Time 2025-03-05 04:00:06 [2025-03-05 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610550', 'tblTempUsageDetail_20' ) start [2025-03-05 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610550', 'tblTempUsageDetail_20' ) end [2025-03-05 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610550', 'tblTempVendorCDR_20' ) start [2025-03-05 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610550', 'tblTempVendorCDR_20' ) end [2025-03-05 04:00:18] Production.INFO: ProcessCDR(1,14610550,1,1,2) [2025-03-05 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610550', 'tblTempUsageDetail_20' ) start [2025-03-05 04:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610550', 'tblTempUsageDetail_20' ) end [2025-03-05 04:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:00:21] Production.INFO: ==25133== Releasing lock... [2025-03-05 04:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:00:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-05 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:01:05 [end_date_ymd] => 2025-03-05 04:01:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:01:05' and `end` < '2025-03-05 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-03-05 04:01:17] Production.INFO: count ==152 [2025-03-05 04:01:17] Production.ERROR: pbx CDR StartTime 2025-03-05 01:01:05 - End Time 2025-03-05 04:01:05 [2025-03-05 04:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610555', 'tblTempUsageDetail_20' ) start [2025-03-05 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610555', 'tblTempUsageDetail_20' ) end [2025-03-05 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610555', 'tblTempVendorCDR_20' ) start [2025-03-05 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610555', 'tblTempVendorCDR_20' ) end [2025-03-05 04:01:17] Production.INFO: ProcessCDR(1,14610555,1,1,2) [2025-03-05 04:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610555', 'tblTempUsageDetail_20' ) start [2025-03-05 04:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610555', 'tblTempUsageDetail_20' ) end [2025-03-05 04:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:01:20] Production.INFO: ==25226== Releasing lock... [2025-03-05 04:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:01:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-05 04:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:02:06 [end_date_ymd] => 2025-03-05 04:02:06 [RateCDR] => 1 ) [2025-03-05 04:02: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-03-05 01:02:06' and `end` < '2025-03-05 04:02: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-03-05 04:02:18] Production.INFO: count ==153 [2025-03-05 04:02:18] Production.ERROR: pbx CDR StartTime 2025-03-05 01:02:06 - End Time 2025-03-05 04:02:06 [2025-03-05 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610560', 'tblTempUsageDetail_20' ) start [2025-03-05 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610560', 'tblTempUsageDetail_20' ) end [2025-03-05 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610560', 'tblTempVendorCDR_20' ) start [2025-03-05 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610560', 'tblTempVendorCDR_20' ) end [2025-03-05 04:02:18] Production.INFO: ProcessCDR(1,14610560,1,1,2) [2025-03-05 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610560', 'tblTempUsageDetail_20' ) start [2025-03-05 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610560', 'tblTempUsageDetail_20' ) end [2025-03-05 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:02:21] Production.INFO: ==25305== Releasing lock... [2025-03-05 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:02:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-05 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:03:05 [end_date_ymd] => 2025-03-05 04:03:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:03:05' and `end` < '2025-03-05 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-03-05 04:03:17] Production.INFO: count ==156 [2025-03-05 04:03:17] Production.ERROR: pbx CDR StartTime 2025-03-05 01:03:05 - End Time 2025-03-05 04:03:05 [2025-03-05 04:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610565', 'tblTempUsageDetail_20' ) start [2025-03-05 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610565', 'tblTempUsageDetail_20' ) end [2025-03-05 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610565', 'tblTempVendorCDR_20' ) start [2025-03-05 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610565', 'tblTempVendorCDR_20' ) end [2025-03-05 04:03:17] Production.INFO: ProcessCDR(1,14610565,1,1,2) [2025-03-05 04:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610565', 'tblTempUsageDetail_20' ) start [2025-03-05 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610565', 'tblTempUsageDetail_20' ) end [2025-03-05 04:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:03:20] Production.INFO: ==25382== Releasing lock... [2025-03-05 04:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:03:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-05 04:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:04:06 [end_date_ymd] => 2025-03-05 04:04:06 [RateCDR] => 1 ) [2025-03-05 04:04: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-03-05 01:04:06' and `end` < '2025-03-05 04:04: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-03-05 04:04:17] Production.INFO: count ==156 [2025-03-05 04:04:18] Production.ERROR: pbx CDR StartTime 2025-03-05 01:04:06 - End Time 2025-03-05 04:04:06 [2025-03-05 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610570', 'tblTempUsageDetail_20' ) start [2025-03-05 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610570', 'tblTempUsageDetail_20' ) end [2025-03-05 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610570', 'tblTempVendorCDR_20' ) start [2025-03-05 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610570', 'tblTempVendorCDR_20' ) end [2025-03-05 04:04:18] Production.INFO: ProcessCDR(1,14610570,1,1,2) [2025-03-05 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610570', 'tblTempUsageDetail_20' ) start [2025-03-05 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610570', 'tblTempUsageDetail_20' ) end [2025-03-05 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:04:21] Production.INFO: ==25456== Releasing lock... [2025-03-05 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:04:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-05 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:05:05 [end_date_ymd] => 2025-03-05 04:05:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:05:05' and `end` < '2025-03-05 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-03-05 04:05:17] Production.INFO: count ==156 [2025-03-05 04:05:17] Production.ERROR: pbx CDR StartTime 2025-03-05 01:05:05 - End Time 2025-03-05 04:05:05 [2025-03-05 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610575', 'tblTempUsageDetail_20' ) start [2025-03-05 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610575', 'tblTempUsageDetail_20' ) end [2025-03-05 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610575', 'tblTempVendorCDR_20' ) start [2025-03-05 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610575', 'tblTempVendorCDR_20' ) end [2025-03-05 04:05:17] Production.INFO: ProcessCDR(1,14610575,1,1,2) [2025-03-05 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610575', 'tblTempUsageDetail_20' ) start [2025-03-05 04:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610575', 'tblTempUsageDetail_20' ) end [2025-03-05 04:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:05:20] Production.INFO: ==25528== Releasing lock... [2025-03-05 04:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:05:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-05 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:06:05 [end_date_ymd] => 2025-03-05 04:06:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:06:05' and `end` < '2025-03-05 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-03-05 04:06:17] Production.INFO: count ==154 [2025-03-05 04:06:17] Production.ERROR: pbx CDR StartTime 2025-03-05 01:06:05 - End Time 2025-03-05 04:06:05 [2025-03-05 04:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610580', 'tblTempUsageDetail_20' ) start [2025-03-05 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610580', 'tblTempUsageDetail_20' ) end [2025-03-05 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610580', 'tblTempVendorCDR_20' ) start [2025-03-05 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610580', 'tblTempVendorCDR_20' ) end [2025-03-05 04:06:17] Production.INFO: ProcessCDR(1,14610580,1,1,2) [2025-03-05 04:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610580', 'tblTempUsageDetail_20' ) start [2025-03-05 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610580', 'tblTempUsageDetail_20' ) end [2025-03-05 04:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:06:20] Production.INFO: ==25602== Releasing lock... [2025-03-05 04:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:06:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-05 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:07:05 [end_date_ymd] => 2025-03-05 04:07:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:07:05' and `end` < '2025-03-05 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-03-05 04:07:17] Production.INFO: count ==152 [2025-03-05 04:07:17] Production.ERROR: pbx CDR StartTime 2025-03-05 01:07:05 - End Time 2025-03-05 04:07:05 [2025-03-05 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610585', 'tblTempUsageDetail_20' ) start [2025-03-05 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610585', 'tblTempUsageDetail_20' ) end [2025-03-05 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610585', 'tblTempVendorCDR_20' ) start [2025-03-05 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610585', 'tblTempVendorCDR_20' ) end [2025-03-05 04:07:17] Production.INFO: ProcessCDR(1,14610585,1,1,2) [2025-03-05 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610585', 'tblTempUsageDetail_20' ) start [2025-03-05 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610585', 'tblTempUsageDetail_20' ) end [2025-03-05 04:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:07:20] Production.INFO: ==25675== Releasing lock... [2025-03-05 04:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:07:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-05 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:08:05 [end_date_ymd] => 2025-03-05 04:08:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:08:05' and `end` < '2025-03-05 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-03-05 04:08:17] Production.INFO: count ==148 [2025-03-05 04:08:17] Production.ERROR: pbx CDR StartTime 2025-03-05 01:08:05 - End Time 2025-03-05 04:08:05 [2025-03-05 04:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610590', 'tblTempUsageDetail_20' ) start [2025-03-05 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610590', 'tblTempUsageDetail_20' ) end [2025-03-05 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610590', 'tblTempVendorCDR_20' ) start [2025-03-05 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610590', 'tblTempVendorCDR_20' ) end [2025-03-05 04:08:17] Production.INFO: ProcessCDR(1,14610590,1,1,2) [2025-03-05 04:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610590', 'tblTempUsageDetail_20' ) start [2025-03-05 04:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610590', 'tblTempUsageDetail_20' ) end [2025-03-05 04:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:08:20] Production.INFO: ==25749== Releasing lock... [2025-03-05 04:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:08:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:09:05 [end_date_ymd] => 2025-03-05 04:09:05 [RateCDR] => 1 ) [2025-03-05 04: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-03-05 01:09:05' and `end` < '2025-03-05 04: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-03-05 04:09:17] Production.INFO: count ==148 [2025-03-05 04:09:17] Production.ERROR: pbx CDR StartTime 2025-03-05 01:09:05 - End Time 2025-03-05 04:09:05 [2025-03-05 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610595', 'tblTempUsageDetail_20' ) start [2025-03-05 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610595', 'tblTempUsageDetail_20' ) end [2025-03-05 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610595', 'tblTempVendorCDR_20' ) start [2025-03-05 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610595', 'tblTempVendorCDR_20' ) end [2025-03-05 04:09:17] Production.INFO: ProcessCDR(1,14610595,1,1,2) [2025-03-05 04:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610595', 'tblTempUsageDetail_20' ) start [2025-03-05 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610595', 'tblTempUsageDetail_20' ) end [2025-03-05 04:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:09:20] Production.INFO: ==25823== Releasing lock... [2025-03-05 04:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:09:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:10:06 [end_date_ymd] => 2025-03-05 04:10:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:10:06' and `end` < '2025-03-05 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-03-05 04:10:18] Production.INFO: count ==146 [2025-03-05 04:10:18] Production.ERROR: pbx CDR StartTime 2025-03-05 01:10:06 - End Time 2025-03-05 04:10:06 [2025-03-05 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610601', 'tblTempUsageDetail_20' ) start [2025-03-05 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610601', 'tblTempUsageDetail_20' ) end [2025-03-05 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610601', 'tblTempVendorCDR_20' ) start [2025-03-05 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610601', 'tblTempVendorCDR_20' ) end [2025-03-05 04:10:18] Production.INFO: ProcessCDR(1,14610601,1,1,2) [2025-03-05 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610601', 'tblTempUsageDetail_20' ) start [2025-03-05 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610601', 'tblTempUsageDetail_20' ) end [2025-03-05 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:10:22] Production.INFO: ==25937== Releasing lock... [2025-03-05 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:10:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:11:04 [end_date_ymd] => 2025-03-05 04:11:04 [RateCDR] => 1 ) [2025-03-05 04: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-03-05 01:11:04' and `end` < '2025-03-05 04: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-03-05 04:11:16] Production.INFO: count ==140 [2025-03-05 04:11:16] Production.ERROR: pbx CDR StartTime 2025-03-05 01:11:04 - End Time 2025-03-05 04:11:04 [2025-03-05 04:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610606', 'tblTempUsageDetail_20' ) start [2025-03-05 04:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610606', 'tblTempUsageDetail_20' ) end [2025-03-05 04:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610606', 'tblTempVendorCDR_20' ) start [2025-03-05 04:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610606', 'tblTempVendorCDR_20' ) end [2025-03-05 04:11:16] Production.INFO: ProcessCDR(1,14610606,1,1,2) [2025-03-05 04:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610606', 'tblTempUsageDetail_20' ) start [2025-03-05 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610606', 'tblTempUsageDetail_20' ) end [2025-03-05 04:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:11:20] Production.INFO: ==26017== Releasing lock... [2025-03-05 04:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:11:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:12:06 [end_date_ymd] => 2025-03-05 04:12:06 [RateCDR] => 1 ) [2025-03-05 04:12: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-03-05 01:12:06' and `end` < '2025-03-05 04:12: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-03-05 04:12:18] Production.INFO: count ==140 [2025-03-05 04:12:18] Production.ERROR: pbx CDR StartTime 2025-03-05 01:12:06 - End Time 2025-03-05 04:12:06 [2025-03-05 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610611', 'tblTempUsageDetail_20' ) start [2025-03-05 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610611', 'tblTempUsageDetail_20' ) end [2025-03-05 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610611', 'tblTempVendorCDR_20' ) start [2025-03-05 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610611', 'tblTempVendorCDR_20' ) end [2025-03-05 04:12:18] Production.INFO: ProcessCDR(1,14610611,1,1,2) [2025-03-05 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610611', 'tblTempUsageDetail_20' ) start [2025-03-05 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610611', 'tblTempUsageDetail_20' ) end [2025-03-05 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:12:21] Production.INFO: ==26089== Releasing lock... [2025-03-05 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:12:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:13:05 [end_date_ymd] => 2025-03-05 04:13:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:13:05' and `end` < '2025-03-05 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-03-05 04:13:17] Production.INFO: count ==140 [2025-03-05 04:13:17] Production.ERROR: pbx CDR StartTime 2025-03-05 01:13:05 - End Time 2025-03-05 04:13:05 [2025-03-05 04:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610616', 'tblTempUsageDetail_20' ) start [2025-03-05 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610616', 'tblTempUsageDetail_20' ) end [2025-03-05 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610616', 'tblTempVendorCDR_20' ) start [2025-03-05 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610616', 'tblTempVendorCDR_20' ) end [2025-03-05 04:13:17] Production.INFO: ProcessCDR(1,14610616,1,1,2) [2025-03-05 04:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610616', 'tblTempUsageDetail_20' ) start [2025-03-05 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610616', 'tblTempUsageDetail_20' ) end [2025-03-05 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:13:21] Production.INFO: ==26165== Releasing lock... [2025-03-05 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:13:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-05 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:14:05 [end_date_ymd] => 2025-03-05 04:14:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:14:05' and `end` < '2025-03-05 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-03-05 04:14:17] Production.INFO: count ==140 [2025-03-05 04:14:17] Production.ERROR: pbx CDR StartTime 2025-03-05 01:14:05 - End Time 2025-03-05 04:14:05 [2025-03-05 04:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610621', 'tblTempUsageDetail_20' ) start [2025-03-05 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610621', 'tblTempUsageDetail_20' ) end [2025-03-05 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610621', 'tblTempVendorCDR_20' ) start [2025-03-05 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610621', 'tblTempVendorCDR_20' ) end [2025-03-05 04:14:17] Production.INFO: ProcessCDR(1,14610621,1,1,2) [2025-03-05 04:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610621', 'tblTempUsageDetail_20' ) start [2025-03-05 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610621', 'tblTempUsageDetail_20' ) end [2025-03-05 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:14:21] Production.INFO: ==26237== Releasing lock... [2025-03-05 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:14:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:15:06 [end_date_ymd] => 2025-03-05 04:15:06 [RateCDR] => 1 ) [2025-03-05 04: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-03-05 01:15:06' and `end` < '2025-03-05 04: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-03-05 04:15:18] Production.INFO: count ==140 [2025-03-05 04:15:18] Production.ERROR: pbx CDR StartTime 2025-03-05 01:15:06 - End Time 2025-03-05 04:15:06 [2025-03-05 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610626', 'tblTempUsageDetail_20' ) start [2025-03-05 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610626', 'tblTempUsageDetail_20' ) end [2025-03-05 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610626', 'tblTempVendorCDR_20' ) start [2025-03-05 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610626', 'tblTempVendorCDR_20' ) end [2025-03-05 04:15:18] Production.INFO: ProcessCDR(1,14610626,1,1,2) [2025-03-05 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610626', 'tblTempUsageDetail_20' ) start [2025-03-05 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610626', 'tblTempUsageDetail_20' ) end [2025-03-05 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:15:21] Production.INFO: ==26312== Releasing lock... [2025-03-05 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:15:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:16:05 [end_date_ymd] => 2025-03-05 04:16:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:16:05' and `end` < '2025-03-05 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-03-05 04:16:17] Production.INFO: count ==140 [2025-03-05 04:16:17] Production.ERROR: pbx CDR StartTime 2025-03-05 01:16:05 - End Time 2025-03-05 04:16:05 [2025-03-05 04:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610631', 'tblTempUsageDetail_20' ) start [2025-03-05 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610631', 'tblTempUsageDetail_20' ) end [2025-03-05 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610631', 'tblTempVendorCDR_20' ) start [2025-03-05 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610631', 'tblTempVendorCDR_20' ) end [2025-03-05 04:16:17] Production.INFO: ProcessCDR(1,14610631,1,1,2) [2025-03-05 04:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610631', 'tblTempUsageDetail_20' ) start [2025-03-05 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610631', 'tblTempUsageDetail_20' ) end [2025-03-05 04:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:16:20] Production.INFO: ==26384== Releasing lock... [2025-03-05 04:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:16:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:17:05 [end_date_ymd] => 2025-03-05 04:17:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:17:05' and `end` < '2025-03-05 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-03-05 04:17:17] Production.INFO: count ==140 [2025-03-05 04:17:17] Production.ERROR: pbx CDR StartTime 2025-03-05 01:17:05 - End Time 2025-03-05 04:17:05 [2025-03-05 04:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610636', 'tblTempUsageDetail_20' ) start [2025-03-05 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610636', 'tblTempUsageDetail_20' ) end [2025-03-05 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610636', 'tblTempVendorCDR_20' ) start [2025-03-05 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610636', 'tblTempVendorCDR_20' ) end [2025-03-05 04:17:17] Production.INFO: ProcessCDR(1,14610636,1,1,2) [2025-03-05 04:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610636', 'tblTempUsageDetail_20' ) start [2025-03-05 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610636', 'tblTempUsageDetail_20' ) end [2025-03-05 04:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:17:20] Production.INFO: ==26456== Releasing lock... [2025-03-05 04:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:17:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:18:05 [end_date_ymd] => 2025-03-05 04:18:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:18:05' and `end` < '2025-03-05 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-03-05 04:18:17] Production.INFO: count ==140 [2025-03-05 04:18:17] Production.ERROR: pbx CDR StartTime 2025-03-05 01:18:05 - End Time 2025-03-05 04:18:05 [2025-03-05 04:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610641', 'tblTempUsageDetail_20' ) start [2025-03-05 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610641', 'tblTempUsageDetail_20' ) end [2025-03-05 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610641', 'tblTempVendorCDR_20' ) start [2025-03-05 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610641', 'tblTempVendorCDR_20' ) end [2025-03-05 04:18:17] Production.INFO: ProcessCDR(1,14610641,1,1,2) [2025-03-05 04:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610641', 'tblTempUsageDetail_20' ) start [2025-03-05 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610641', 'tblTempUsageDetail_20' ) end [2025-03-05 04:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:18:20] Production.INFO: ==26541== Releasing lock... [2025-03-05 04:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:18:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:19:05 [end_date_ymd] => 2025-03-05 04:19:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:19:05' and `end` < '2025-03-05 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-03-05 04:19:17] Production.INFO: count ==140 [2025-03-05 04:19:17] Production.ERROR: pbx CDR StartTime 2025-03-05 01:19:05 - End Time 2025-03-05 04:19:05 [2025-03-05 04:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610646', 'tblTempUsageDetail_20' ) start [2025-03-05 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610646', 'tblTempUsageDetail_20' ) end [2025-03-05 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610646', 'tblTempVendorCDR_20' ) start [2025-03-05 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610646', 'tblTempVendorCDR_20' ) end [2025-03-05 04:19:17] Production.INFO: ProcessCDR(1,14610646,1,1,2) [2025-03-05 04:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610646', 'tblTempUsageDetail_20' ) start [2025-03-05 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610646', 'tblTempUsageDetail_20' ) end [2025-03-05 04:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:19:20] Production.INFO: ==26616== Releasing lock... [2025-03-05 04:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:19:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:20:07 [end_date_ymd] => 2025-03-05 04:20:07 [RateCDR] => 1 ) [2025-03-05 04:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 01:20:07' and `end` < '2025-03-05 04:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-05 04:20:19] Production.INFO: count ==139 [2025-03-05 04:20:19] Production.ERROR: pbx CDR StartTime 2025-03-05 01:20:07 - End Time 2025-03-05 04:20:07 [2025-03-05 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610652', 'tblTempUsageDetail_20' ) start [2025-03-05 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610652', 'tblTempUsageDetail_20' ) end [2025-03-05 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610652', 'tblTempVendorCDR_20' ) start [2025-03-05 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610652', 'tblTempVendorCDR_20' ) end [2025-03-05 04:20:19] Production.INFO: ProcessCDR(1,14610652,1,1,2) [2025-03-05 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610652', 'tblTempUsageDetail_20' ) start [2025-03-05 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610652', 'tblTempUsageDetail_20' ) end [2025-03-05 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:20:22] Production.INFO: ==26690== Releasing lock... [2025-03-05 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:20:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:21:05 [end_date_ymd] => 2025-03-05 04:21:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:21:05' and `end` < '2025-03-05 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-03-05 04:21:17] Production.INFO: count ==139 [2025-03-05 04:21:17] Production.ERROR: pbx CDR StartTime 2025-03-05 01:21:05 - End Time 2025-03-05 04:21:05 [2025-03-05 04:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610657', 'tblTempUsageDetail_20' ) start [2025-03-05 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610657', 'tblTempUsageDetail_20' ) end [2025-03-05 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610657', 'tblTempVendorCDR_20' ) start [2025-03-05 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610657', 'tblTempVendorCDR_20' ) end [2025-03-05 04:21:17] Production.INFO: ProcessCDR(1,14610657,1,1,2) [2025-03-05 04:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610657', 'tblTempUsageDetail_20' ) start [2025-03-05 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610657', 'tblTempUsageDetail_20' ) end [2025-03-05 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:21:21] Production.INFO: ==26763== Releasing lock... [2025-03-05 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:21:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:22:05 [end_date_ymd] => 2025-03-05 04:22:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:22:05' and `end` < '2025-03-05 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-03-05 04:22:17] Production.INFO: count ==139 [2025-03-05 04:22:17] Production.ERROR: pbx CDR StartTime 2025-03-05 01:22:05 - End Time 2025-03-05 04:22:05 [2025-03-05 04:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610662', 'tblTempUsageDetail_20' ) start [2025-03-05 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610662', 'tblTempUsageDetail_20' ) end [2025-03-05 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610662', 'tblTempVendorCDR_20' ) start [2025-03-05 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610662', 'tblTempVendorCDR_20' ) end [2025-03-05 04:22:17] Production.INFO: ProcessCDR(1,14610662,1,1,2) [2025-03-05 04:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610662', 'tblTempUsageDetail_20' ) start [2025-03-05 04:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610662', 'tblTempUsageDetail_20' ) end [2025-03-05 04:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:22:20] Production.INFO: ==26848== Releasing lock... [2025-03-05 04:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:22:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:23:05 [end_date_ymd] => 2025-03-05 04:23:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:23:05' and `end` < '2025-03-05 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-03-05 04:23:17] Production.INFO: count ==139 [2025-03-05 04:23:17] Production.ERROR: pbx CDR StartTime 2025-03-05 01:23:05 - End Time 2025-03-05 04:23:05 [2025-03-05 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610667', 'tblTempUsageDetail_20' ) start [2025-03-05 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610667', 'tblTempUsageDetail_20' ) end [2025-03-05 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610667', 'tblTempVendorCDR_20' ) start [2025-03-05 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610667', 'tblTempVendorCDR_20' ) end [2025-03-05 04:23:17] Production.INFO: ProcessCDR(1,14610667,1,1,2) [2025-03-05 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610667', 'tblTempUsageDetail_20' ) start [2025-03-05 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610667', 'tblTempUsageDetail_20' ) end [2025-03-05 04:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:23:20] Production.INFO: ==26922== Releasing lock... [2025-03-05 04:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:23:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:24:05 [end_date_ymd] => 2025-03-05 04:24:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:24:05' and `end` < '2025-03-05 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-03-05 04:24:17] Production.INFO: count ==139 [2025-03-05 04:24:17] Production.ERROR: pbx CDR StartTime 2025-03-05 01:24:05 - End Time 2025-03-05 04:24:05 [2025-03-05 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610672', 'tblTempUsageDetail_20' ) start [2025-03-05 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610672', 'tblTempUsageDetail_20' ) end [2025-03-05 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610672', 'tblTempVendorCDR_20' ) start [2025-03-05 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610672', 'tblTempVendorCDR_20' ) end [2025-03-05 04:24:17] Production.INFO: ProcessCDR(1,14610672,1,1,2) [2025-03-05 04:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610672', 'tblTempUsageDetail_20' ) start [2025-03-05 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610672', 'tblTempUsageDetail_20' ) end [2025-03-05 04:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:24:20] Production.INFO: ==26998== Releasing lock... [2025-03-05 04:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:24:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:25:05 [end_date_ymd] => 2025-03-05 04:25:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:25:05' and `end` < '2025-03-05 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-03-05 04:25:17] Production.INFO: count ==139 [2025-03-05 04:25:17] Production.ERROR: pbx CDR StartTime 2025-03-05 01:25:05 - End Time 2025-03-05 04:25:05 [2025-03-05 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610677', 'tblTempUsageDetail_20' ) start [2025-03-05 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610677', 'tblTempUsageDetail_20' ) end [2025-03-05 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610677', 'tblTempVendorCDR_20' ) start [2025-03-05 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610677', 'tblTempVendorCDR_20' ) end [2025-03-05 04:25:17] Production.INFO: ProcessCDR(1,14610677,1,1,2) [2025-03-05 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610677', 'tblTempUsageDetail_20' ) start [2025-03-05 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610677', 'tblTempUsageDetail_20' ) end [2025-03-05 04:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:25:20] Production.INFO: ==27074== Releasing lock... [2025-03-05 04:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:25:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:26:05 [end_date_ymd] => 2025-03-05 04:26:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:26:05' and `end` < '2025-03-05 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-03-05 04:26:17] Production.INFO: count ==139 [2025-03-05 04:26:17] Production.ERROR: pbx CDR StartTime 2025-03-05 01:26:05 - End Time 2025-03-05 04:26:05 [2025-03-05 04:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610682', 'tblTempUsageDetail_20' ) start [2025-03-05 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610682', 'tblTempUsageDetail_20' ) end [2025-03-05 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610682', 'tblTempVendorCDR_20' ) start [2025-03-05 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610682', 'tblTempVendorCDR_20' ) end [2025-03-05 04:26:17] Production.INFO: ProcessCDR(1,14610682,1,1,2) [2025-03-05 04:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610682', 'tblTempUsageDetail_20' ) start [2025-03-05 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610682', 'tblTempUsageDetail_20' ) end [2025-03-05 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:26:21] Production.INFO: ==27188== Releasing lock... [2025-03-05 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:26:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:27:05 [end_date_ymd] => 2025-03-05 04:27:05 [RateCDR] => 1 ) [2025-03-05 04: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-03-05 01:27:05' and `end` < '2025-03-05 04: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-03-05 04:27:17] Production.INFO: count ==139 [2025-03-05 04:27:17] Production.ERROR: pbx CDR StartTime 2025-03-05 01:27:05 - End Time 2025-03-05 04:27:05 [2025-03-05 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610687', 'tblTempUsageDetail_20' ) start [2025-03-05 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610687', 'tblTempUsageDetail_20' ) end [2025-03-05 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610687', 'tblTempVendorCDR_20' ) start [2025-03-05 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610687', 'tblTempVendorCDR_20' ) end [2025-03-05 04:27:17] Production.INFO: ProcessCDR(1,14610687,1,1,2) [2025-03-05 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610687', 'tblTempUsageDetail_20' ) start [2025-03-05 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610687', 'tblTempUsageDetail_20' ) end [2025-03-05 04:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:27:20] Production.INFO: ==27261== Releasing lock... [2025-03-05 04:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:27:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:28:05 [end_date_ymd] => 2025-03-05 04:28:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:28:05' and `end` < '2025-03-05 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-03-05 04:28:18] Production.INFO: count ==139 [2025-03-05 04:28:18] Production.ERROR: pbx CDR StartTime 2025-03-05 01:28:05 - End Time 2025-03-05 04:28:05 [2025-03-05 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610692', 'tblTempUsageDetail_20' ) start [2025-03-05 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610692', 'tblTempUsageDetail_20' ) end [2025-03-05 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610692', 'tblTempVendorCDR_20' ) start [2025-03-05 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610692', 'tblTempVendorCDR_20' ) end [2025-03-05 04:28:18] Production.INFO: ProcessCDR(1,14610692,1,1,2) [2025-03-05 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610692', 'tblTempUsageDetail_20' ) start [2025-03-05 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610692', 'tblTempUsageDetail_20' ) end [2025-03-05 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:28:21] Production.INFO: ==27335== Releasing lock... [2025-03-05 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:28:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:29:05 [end_date_ymd] => 2025-03-05 04:29:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:29:05' and `end` < '2025-03-05 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-03-05 04:29:16] Production.INFO: count ==139 [2025-03-05 04:29:16] Production.ERROR: pbx CDR StartTime 2025-03-05 01:29:05 - End Time 2025-03-05 04:29:05 [2025-03-05 04:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610697', 'tblTempUsageDetail_20' ) start [2025-03-05 04:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610697', 'tblTempUsageDetail_20' ) end [2025-03-05 04:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610697', 'tblTempVendorCDR_20' ) start [2025-03-05 04:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610697', 'tblTempVendorCDR_20' ) end [2025-03-05 04:29:16] Production.INFO: ProcessCDR(1,14610697,1,1,2) [2025-03-05 04:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:29:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:29:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610697', 'tblTempUsageDetail_20' ) start [2025-03-05 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610697', 'tblTempUsageDetail_20' ) end [2025-03-05 04:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:29:20] Production.INFO: ==27407== Releasing lock... [2025-03-05 04:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:29:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:30:05 [end_date_ymd] => 2025-03-05 04:30:05 [RateCDR] => 1 ) [2025-03-05 04: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-03-05 01:30:05' and `end` < '2025-03-05 04: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-03-05 04:30:17] Production.INFO: count ==141 [2025-03-05 04:30:17] Production.ERROR: pbx CDR StartTime 2025-03-05 01:30:05 - End Time 2025-03-05 04:30:05 [2025-03-05 04:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610702', 'tblTempUsageDetail_20' ) start [2025-03-05 04:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610702', 'tblTempUsageDetail_20' ) end [2025-03-05 04:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610702', 'tblTempVendorCDR_20' ) start [2025-03-05 04:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610702', 'tblTempVendorCDR_20' ) end [2025-03-05 04:30:17] Production.INFO: ProcessCDR(1,14610702,1,1,2) [2025-03-05 04:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610702', 'tblTempUsageDetail_20' ) start [2025-03-05 04:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610702', 'tblTempUsageDetail_20' ) end [2025-03-05 04:30:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:30:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:30:20] Production.INFO: ==27484== Releasing lock... [2025-03-05 04:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:30:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:31:06 [end_date_ymd] => 2025-03-05 04:31:06 [RateCDR] => 1 ) [2025-03-05 04:31: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-03-05 01:31:06' and `end` < '2025-03-05 04:31: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-03-05 04:31:18] Production.INFO: count ==141 [2025-03-05 04:31:18] Production.ERROR: pbx CDR StartTime 2025-03-05 01:31:06 - End Time 2025-03-05 04:31:06 [2025-03-05 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610709', 'tblTempUsageDetail_20' ) start [2025-03-05 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610709', 'tblTempUsageDetail_20' ) end [2025-03-05 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610709', 'tblTempVendorCDR_20' ) start [2025-03-05 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610709', 'tblTempVendorCDR_20' ) end [2025-03-05 04:31:18] Production.INFO: ProcessCDR(1,14610709,1,1,2) [2025-03-05 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610709', 'tblTempUsageDetail_20' ) start [2025-03-05 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610709', 'tblTempUsageDetail_20' ) end [2025-03-05 04:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:31:22] Production.INFO: ==27562== Releasing lock... [2025-03-05 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:31:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:32:05 [end_date_ymd] => 2025-03-05 04:32:05 [RateCDR] => 1 ) [2025-03-05 04: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-03-05 01:32:05' and `end` < '2025-03-05 04: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-03-05 04:32:17] Production.INFO: count ==141 [2025-03-05 04:32:17] Production.ERROR: pbx CDR StartTime 2025-03-05 01:32:05 - End Time 2025-03-05 04:32:05 [2025-03-05 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610714', 'tblTempUsageDetail_20' ) start [2025-03-05 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610714', 'tblTempUsageDetail_20' ) end [2025-03-05 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610714', 'tblTempVendorCDR_20' ) start [2025-03-05 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610714', 'tblTempVendorCDR_20' ) end [2025-03-05 04:32:17] Production.INFO: ProcessCDR(1,14610714,1,1,2) [2025-03-05 04:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610714', 'tblTempUsageDetail_20' ) start [2025-03-05 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610714', 'tblTempUsageDetail_20' ) end [2025-03-05 04:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:32:20] Production.INFO: ==27716== Releasing lock... [2025-03-05 04:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:32:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:33:06 [end_date_ymd] => 2025-03-05 04:33:06 [RateCDR] => 1 ) [2025-03-05 04: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-03-05 01:33:06' and `end` < '2025-03-05 04: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-03-05 04:33:18] Production.INFO: count ==141 [2025-03-05 04:33:18] Production.ERROR: pbx CDR StartTime 2025-03-05 01:33:06 - End Time 2025-03-05 04:33:06 [2025-03-05 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610719', 'tblTempUsageDetail_20' ) start [2025-03-05 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610719', 'tblTempUsageDetail_20' ) end [2025-03-05 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610719', 'tblTempVendorCDR_20' ) start [2025-03-05 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610719', 'tblTempVendorCDR_20' ) end [2025-03-05 04:33:18] Production.INFO: ProcessCDR(1,14610719,1,1,2) [2025-03-05 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610719', 'tblTempUsageDetail_20' ) start [2025-03-05 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610719', 'tblTempUsageDetail_20' ) end [2025-03-05 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:33:21] Production.INFO: ==27787== Releasing lock... [2025-03-05 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:33:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:34:05 [end_date_ymd] => 2025-03-05 04:34:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:34:05' and `end` < '2025-03-05 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-03-05 04:34:17] Production.INFO: count ==141 [2025-03-05 04:34:17] Production.ERROR: pbx CDR StartTime 2025-03-05 01:34:05 - End Time 2025-03-05 04:34:05 [2025-03-05 04:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610724', 'tblTempUsageDetail_20' ) start [2025-03-05 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610724', 'tblTempUsageDetail_20' ) end [2025-03-05 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610724', 'tblTempVendorCDR_20' ) start [2025-03-05 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610724', 'tblTempVendorCDR_20' ) end [2025-03-05 04:34:17] Production.INFO: ProcessCDR(1,14610724,1,1,2) [2025-03-05 04:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610724', 'tblTempUsageDetail_20' ) start [2025-03-05 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610724', 'tblTempUsageDetail_20' ) end [2025-03-05 04:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:34:20] Production.INFO: ==27865== Releasing lock... [2025-03-05 04:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:34:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:35:04 [end_date_ymd] => 2025-03-05 04:35:04 [RateCDR] => 1 ) [2025-03-05 04: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-03-05 01:35:04' and `end` < '2025-03-05 04: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-03-05 04:35:16] Production.INFO: count ==141 [2025-03-05 04:35:16] Production.ERROR: pbx CDR StartTime 2025-03-05 01:35:04 - End Time 2025-03-05 04:35:04 [2025-03-05 04:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610729', 'tblTempUsageDetail_20' ) start [2025-03-05 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610729', 'tblTempUsageDetail_20' ) end [2025-03-05 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610729', 'tblTempVendorCDR_20' ) start [2025-03-05 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610729', 'tblTempVendorCDR_20' ) end [2025-03-05 04:35:16] Production.INFO: ProcessCDR(1,14610729,1,1,2) [2025-03-05 04:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:35:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610729', 'tblTempUsageDetail_20' ) start [2025-03-05 04:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610729', 'tblTempUsageDetail_20' ) end [2025-03-05 04:35:19] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:35:19] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:35:19] Production.INFO: ==27939== Releasing lock... [2025-03-05 04:35:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:35:19] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:36:05 [end_date_ymd] => 2025-03-05 04:36:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:36:05' and `end` < '2025-03-05 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-03-05 04:36:17] Production.INFO: count ==141 [2025-03-05 04:36:17] Production.ERROR: pbx CDR StartTime 2025-03-05 01:36:05 - End Time 2025-03-05 04:36:05 [2025-03-05 04:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610734', 'tblTempUsageDetail_20' ) start [2025-03-05 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610734', 'tblTempUsageDetail_20' ) end [2025-03-05 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610734', 'tblTempVendorCDR_20' ) start [2025-03-05 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610734', 'tblTempVendorCDR_20' ) end [2025-03-05 04:36:17] Production.INFO: ProcessCDR(1,14610734,1,1,2) [2025-03-05 04:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610734', 'tblTempUsageDetail_20' ) start [2025-03-05 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610734', 'tblTempUsageDetail_20' ) end [2025-03-05 04:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:36:20] Production.INFO: ==28015== Releasing lock... [2025-03-05 04:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:36:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:37:06 [end_date_ymd] => 2025-03-05 04:37:06 [RateCDR] => 1 ) [2025-03-05 04: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-03-05 01:37:06' and `end` < '2025-03-05 04: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-03-05 04:37:18] Production.INFO: count ==141 [2025-03-05 04:37:18] Production.ERROR: pbx CDR StartTime 2025-03-05 01:37:06 - End Time 2025-03-05 04:37:06 [2025-03-05 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610739', 'tblTempUsageDetail_20' ) start [2025-03-05 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610739', 'tblTempUsageDetail_20' ) end [2025-03-05 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610739', 'tblTempVendorCDR_20' ) start [2025-03-05 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610739', 'tblTempVendorCDR_20' ) end [2025-03-05 04:37:18] Production.INFO: ProcessCDR(1,14610739,1,1,2) [2025-03-05 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610739', 'tblTempUsageDetail_20' ) start [2025-03-05 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610739', 'tblTempUsageDetail_20' ) end [2025-03-05 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:37:21] Production.INFO: ==28087== Releasing lock... [2025-03-05 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:37:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:38:05 [end_date_ymd] => 2025-03-05 04:38:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:38:05' and `end` < '2025-03-05 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-03-05 04:38:17] Production.INFO: count ==141 [2025-03-05 04:38:17] Production.ERROR: pbx CDR StartTime 2025-03-05 01:38:05 - End Time 2025-03-05 04:38:05 [2025-03-05 04:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610744', 'tblTempUsageDetail_20' ) start [2025-03-05 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610744', 'tblTempUsageDetail_20' ) end [2025-03-05 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610744', 'tblTempVendorCDR_20' ) start [2025-03-05 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610744', 'tblTempVendorCDR_20' ) end [2025-03-05 04:38:17] Production.INFO: ProcessCDR(1,14610744,1,1,2) [2025-03-05 04:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610744', 'tblTempUsageDetail_20' ) start [2025-03-05 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610744', 'tblTempUsageDetail_20' ) end [2025-03-05 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:38:21] Production.INFO: ==28160== Releasing lock... [2025-03-05 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:38:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:39:05 [end_date_ymd] => 2025-03-05 04:39:05 [RateCDR] => 1 ) [2025-03-05 04: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-03-05 01:39:05' and `end` < '2025-03-05 04: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-03-05 04:39:17] Production.INFO: count ==141 [2025-03-05 04:39:17] Production.ERROR: pbx CDR StartTime 2025-03-05 01:39:05 - End Time 2025-03-05 04:39:05 [2025-03-05 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610749', 'tblTempUsageDetail_20' ) start [2025-03-05 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610749', 'tblTempUsageDetail_20' ) end [2025-03-05 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610749', 'tblTempVendorCDR_20' ) start [2025-03-05 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610749', 'tblTempVendorCDR_20' ) end [2025-03-05 04:39:17] Production.INFO: ProcessCDR(1,14610749,1,1,2) [2025-03-05 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610749', 'tblTempUsageDetail_20' ) start [2025-03-05 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610749', 'tblTempUsageDetail_20' ) end [2025-03-05 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:39:21] Production.INFO: ==28234== Releasing lock... [2025-03-05 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:39:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:40:06 [end_date_ymd] => 2025-03-05 04:40:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:40:06' and `end` < '2025-03-05 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-03-05 04:40:18] Production.INFO: count ==135 [2025-03-05 04:40:18] Production.ERROR: pbx CDR StartTime 2025-03-05 01:40:06 - End Time 2025-03-05 04:40:06 [2025-03-05 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610755', 'tblTempUsageDetail_20' ) start [2025-03-05 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610755', 'tblTempUsageDetail_20' ) end [2025-03-05 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610755', 'tblTempVendorCDR_20' ) start [2025-03-05 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610755', 'tblTempVendorCDR_20' ) end [2025-03-05 04:40:18] Production.INFO: ProcessCDR(1,14610755,1,1,2) [2025-03-05 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610755', 'tblTempUsageDetail_20' ) start [2025-03-05 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610755', 'tblTempUsageDetail_20' ) end [2025-03-05 04:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:40:21] Production.INFO: ==28310== Releasing lock... [2025-03-05 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:40:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:41:05 [end_date_ymd] => 2025-03-05 04:41:05 [RateCDR] => 1 ) [2025-03-05 04: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-03-05 01:41:05' and `end` < '2025-03-05 04: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-03-05 04:41:17] Production.INFO: count ==129 [2025-03-05 04:41:17] Production.ERROR: pbx CDR StartTime 2025-03-05 01:41:05 - End Time 2025-03-05 04:41:05 [2025-03-05 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610760', 'tblTempUsageDetail_20' ) start [2025-03-05 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610760', 'tblTempUsageDetail_20' ) end [2025-03-05 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610760', 'tblTempVendorCDR_20' ) start [2025-03-05 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610760', 'tblTempVendorCDR_20' ) end [2025-03-05 04:41:17] Production.INFO: ProcessCDR(1,14610760,1,1,2) [2025-03-05 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610760', 'tblTempUsageDetail_20' ) start [2025-03-05 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610760', 'tblTempUsageDetail_20' ) end [2025-03-05 04:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:41:20] Production.INFO: ==28435== Releasing lock... [2025-03-05 04:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:41:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:42:06 [end_date_ymd] => 2025-03-05 04:42:06 [RateCDR] => 1 ) [2025-03-05 04: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-03-05 01:42:06' and `end` < '2025-03-05 04: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-03-05 04:42:18] Production.INFO: count ==129 [2025-03-05 04:42:18] Production.ERROR: pbx CDR StartTime 2025-03-05 01:42:06 - End Time 2025-03-05 04:42:06 [2025-03-05 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610765', 'tblTempUsageDetail_20' ) start [2025-03-05 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610765', 'tblTempUsageDetail_20' ) end [2025-03-05 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610765', 'tblTempVendorCDR_20' ) start [2025-03-05 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610765', 'tblTempVendorCDR_20' ) end [2025-03-05 04:42:18] Production.INFO: ProcessCDR(1,14610765,1,1,2) [2025-03-05 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610765', 'tblTempUsageDetail_20' ) start [2025-03-05 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610765', 'tblTempUsageDetail_20' ) end [2025-03-05 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:42:21] Production.INFO: ==28508== Releasing lock... [2025-03-05 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:42:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:43:05 [end_date_ymd] => 2025-03-05 04:43:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:43:05' and `end` < '2025-03-05 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-03-05 04:43:17] Production.INFO: count ==129 [2025-03-05 04:43:17] Production.ERROR: pbx CDR StartTime 2025-03-05 01:43:05 - End Time 2025-03-05 04:43:05 [2025-03-05 04:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610770', 'tblTempUsageDetail_20' ) start [2025-03-05 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610770', 'tblTempUsageDetail_20' ) end [2025-03-05 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610770', 'tblTempVendorCDR_20' ) start [2025-03-05 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610770', 'tblTempVendorCDR_20' ) end [2025-03-05 04:43:17] Production.INFO: ProcessCDR(1,14610770,1,1,2) [2025-03-05 04:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610770', 'tblTempUsageDetail_20' ) start [2025-03-05 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610770', 'tblTempUsageDetail_20' ) end [2025-03-05 04:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:43:20] Production.INFO: ==28580== Releasing lock... [2025-03-05 04:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:43:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:44:06 [end_date_ymd] => 2025-03-05 04:44:06 [RateCDR] => 1 ) [2025-03-05 04:44: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-03-05 01:44:06' and `end` < '2025-03-05 04:44: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-03-05 04:44:17] Production.INFO: count ==129 [2025-03-05 04:44:17] Production.ERROR: pbx CDR StartTime 2025-03-05 01:44:06 - End Time 2025-03-05 04:44:06 [2025-03-05 04:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610775', 'tblTempUsageDetail_20' ) start [2025-03-05 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610775', 'tblTempUsageDetail_20' ) end [2025-03-05 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610775', 'tblTempVendorCDR_20' ) start [2025-03-05 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610775', 'tblTempVendorCDR_20' ) end [2025-03-05 04:44:17] Production.INFO: ProcessCDR(1,14610775,1,1,2) [2025-03-05 04:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610775', 'tblTempUsageDetail_20' ) start [2025-03-05 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610775', 'tblTempUsageDetail_20' ) end [2025-03-05 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:44:21] Production.INFO: ==28653== Releasing lock... [2025-03-05 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:44:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:45:05 [end_date_ymd] => 2025-03-05 04:45:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:45:05' and `end` < '2025-03-05 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-03-05 04:45:18] Production.INFO: count ==129 [2025-03-05 04:45:18] Production.ERROR: pbx CDR StartTime 2025-03-05 01:45:05 - End Time 2025-03-05 04:45:05 [2025-03-05 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610780', 'tblTempUsageDetail_20' ) start [2025-03-05 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610780', 'tblTempUsageDetail_20' ) end [2025-03-05 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610780', 'tblTempVendorCDR_20' ) start [2025-03-05 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610780', 'tblTempVendorCDR_20' ) end [2025-03-05 04:45:18] Production.INFO: ProcessCDR(1,14610780,1,1,2) [2025-03-05 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610780', 'tblTempUsageDetail_20' ) start [2025-03-05 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610780', 'tblTempUsageDetail_20' ) end [2025-03-05 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:45:21] Production.INFO: ==28726== Releasing lock... [2025-03-05 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:45:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:46:05 [end_date_ymd] => 2025-03-05 04:46:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:46:05' and `end` < '2025-03-05 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-03-05 04:46:17] Production.INFO: count ==129 [2025-03-05 04:46:17] Production.ERROR: pbx CDR StartTime 2025-03-05 01:46:05 - End Time 2025-03-05 04:46:05 [2025-03-05 04:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610785', 'tblTempUsageDetail_20' ) start [2025-03-05 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610785', 'tblTempUsageDetail_20' ) end [2025-03-05 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610785', 'tblTempVendorCDR_20' ) start [2025-03-05 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610785', 'tblTempVendorCDR_20' ) end [2025-03-05 04:46:18] Production.INFO: ProcessCDR(1,14610785,1,1,2) [2025-03-05 04:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610785', 'tblTempUsageDetail_20' ) start [2025-03-05 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610785', 'tblTempUsageDetail_20' ) end [2025-03-05 04:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:46:21] Production.INFO: ==28802== Releasing lock... [2025-03-05 04:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:46:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:47:06 [end_date_ymd] => 2025-03-05 04:47:06 [RateCDR] => 1 ) [2025-03-05 04:47: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-03-05 01:47:06' and `end` < '2025-03-05 04:47: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-03-05 04:47:18] Production.INFO: count ==129 [2025-03-05 04:47:18] Production.ERROR: pbx CDR StartTime 2025-03-05 01:47:06 - End Time 2025-03-05 04:47:06 [2025-03-05 04:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610790', 'tblTempUsageDetail_20' ) start [2025-03-05 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610790', 'tblTempUsageDetail_20' ) end [2025-03-05 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610790', 'tblTempVendorCDR_20' ) start [2025-03-05 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610790', 'tblTempVendorCDR_20' ) end [2025-03-05 04:47:18] Production.INFO: ProcessCDR(1,14610790,1,1,2) [2025-03-05 04:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610790', 'tblTempUsageDetail_20' ) start [2025-03-05 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610790', 'tblTempUsageDetail_20' ) end [2025-03-05 04:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:47:21] Production.INFO: ==28875== Releasing lock... [2025-03-05 04:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:47:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:48:05 [end_date_ymd] => 2025-03-05 04:48:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:48:05' and `end` < '2025-03-05 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-03-05 04:48:18] Production.INFO: count ==129 [2025-03-05 04:48:18] Production.ERROR: pbx CDR StartTime 2025-03-05 01:48:05 - End Time 2025-03-05 04:48:05 [2025-03-05 04:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610795', 'tblTempUsageDetail_20' ) start [2025-03-05 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610795', 'tblTempUsageDetail_20' ) end [2025-03-05 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610795', 'tblTempVendorCDR_20' ) start [2025-03-05 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610795', 'tblTempVendorCDR_20' ) end [2025-03-05 04:48:18] Production.INFO: ProcessCDR(1,14610795,1,1,2) [2025-03-05 04:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610795', 'tblTempUsageDetail_20' ) start [2025-03-05 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610795', 'tblTempUsageDetail_20' ) end [2025-03-05 04:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:48:21] Production.INFO: ==28949== Releasing lock... [2025-03-05 04:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:48:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:49:05 [end_date_ymd] => 2025-03-05 04:49:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:49:05' and `end` < '2025-03-05 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-03-05 04:49:18] Production.INFO: count ==129 [2025-03-05 04:49:18] Production.ERROR: pbx CDR StartTime 2025-03-05 01:49:05 - End Time 2025-03-05 04:49:05 [2025-03-05 04:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610800', 'tblTempUsageDetail_20' ) start [2025-03-05 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610800', 'tblTempUsageDetail_20' ) end [2025-03-05 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610800', 'tblTempVendorCDR_20' ) start [2025-03-05 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610800', 'tblTempVendorCDR_20' ) end [2025-03-05 04:49:18] Production.INFO: ProcessCDR(1,14610800,1,1,2) [2025-03-05 04:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610800', 'tblTempUsageDetail_20' ) start [2025-03-05 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610800', 'tblTempUsageDetail_20' ) end [2025-03-05 04:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:49:21] Production.INFO: ==29024== Releasing lock... [2025-03-05 04:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:49:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:50:06 [end_date_ymd] => 2025-03-05 04:50:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:50:06' and `end` < '2025-03-05 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-03-05 04:50:20] Production.INFO: count ==127 [2025-03-05 04:50:20] Production.ERROR: pbx CDR StartTime 2025-03-05 01:50:06 - End Time 2025-03-05 04:50:06 [2025-03-05 04:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610805', 'tblTempUsageDetail_20' ) start [2025-03-05 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610805', 'tblTempUsageDetail_20' ) end [2025-03-05 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610805', 'tblTempVendorCDR_20' ) start [2025-03-05 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610805', 'tblTempVendorCDR_20' ) end [2025-03-05 04:50:20] Production.INFO: ProcessCDR(1,14610805,1,1,2) [2025-03-05 04:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610805', 'tblTempUsageDetail_20' ) start [2025-03-05 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610805', 'tblTempUsageDetail_20' ) end [2025-03-05 04:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:50:23] Production.INFO: ==29099== Releasing lock... [2025-03-05 04:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:50:23] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:51:05 [end_date_ymd] => 2025-03-05 04:51:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:51:05' and `end` < '2025-03-05 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-03-05 04:51:18] Production.INFO: count ==127 [2025-03-05 04:51:18] Production.ERROR: pbx CDR StartTime 2025-03-05 01:51:05 - End Time 2025-03-05 04:51:05 [2025-03-05 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610811', 'tblTempUsageDetail_20' ) start [2025-03-05 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610811', 'tblTempUsageDetail_20' ) end [2025-03-05 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610811', 'tblTempVendorCDR_20' ) start [2025-03-05 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610811', 'tblTempVendorCDR_20' ) end [2025-03-05 04:51:18] Production.INFO: ProcessCDR(1,14610811,1,1,2) [2025-03-05 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610811', 'tblTempUsageDetail_20' ) start [2025-03-05 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610811', 'tblTempUsageDetail_20' ) end [2025-03-05 04:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:51:21] Production.INFO: ==29176== Releasing lock... [2025-03-05 04:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:51:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:52:06 [end_date_ymd] => 2025-03-05 04:52:06 [RateCDR] => 1 ) [2025-03-05 04: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-03-05 01:52:06' and `end` < '2025-03-05 04: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-03-05 04:52:18] Production.INFO: count ==127 [2025-03-05 04:52:18] Production.ERROR: pbx CDR StartTime 2025-03-05 01:52:06 - End Time 2025-03-05 04:52:06 [2025-03-05 04:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610816', 'tblTempUsageDetail_20' ) start [2025-03-05 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610816', 'tblTempUsageDetail_20' ) end [2025-03-05 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610816', 'tblTempVendorCDR_20' ) start [2025-03-05 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610816', 'tblTempVendorCDR_20' ) end [2025-03-05 04:52:18] Production.INFO: ProcessCDR(1,14610816,1,1,2) [2025-03-05 04:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610816', 'tblTempUsageDetail_20' ) start [2025-03-05 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610816', 'tblTempUsageDetail_20' ) end [2025-03-05 04:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:52:21] Production.INFO: ==29250== Releasing lock... [2025-03-05 04:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:52:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:53:06 [end_date_ymd] => 2025-03-05 04:53:06 [RateCDR] => 1 ) [2025-03-05 04: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-03-05 01:53:06' and `end` < '2025-03-05 04: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-03-05 04:53:18] Production.INFO: count ==131 [2025-03-05 04:53:18] Production.ERROR: pbx CDR StartTime 2025-03-05 01:53:06 - End Time 2025-03-05 04:53:06 [2025-03-05 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610821', 'tblTempUsageDetail_20' ) start [2025-03-05 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610821', 'tblTempUsageDetail_20' ) end [2025-03-05 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610821', 'tblTempVendorCDR_20' ) start [2025-03-05 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610821', 'tblTempVendorCDR_20' ) end [2025-03-05 04:53:18] Production.INFO: ProcessCDR(1,14610821,1,1,2) [2025-03-05 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610821', 'tblTempUsageDetail_20' ) start [2025-03-05 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610821', 'tblTempUsageDetail_20' ) end [2025-03-05 04:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:53:21] Production.INFO: ==29325== Releasing lock... [2025-03-05 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:53:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:54:05 [end_date_ymd] => 2025-03-05 04:54:05 [RateCDR] => 1 ) [2025-03-05 04: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-03-05 01:54:05' and `end` < '2025-03-05 04: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-03-05 04:54:18] Production.INFO: count ==131 [2025-03-05 04:54:18] Production.ERROR: pbx CDR StartTime 2025-03-05 01:54:05 - End Time 2025-03-05 04:54:05 [2025-03-05 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610826', 'tblTempUsageDetail_20' ) start [2025-03-05 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610826', 'tblTempUsageDetail_20' ) end [2025-03-05 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610826', 'tblTempVendorCDR_20' ) start [2025-03-05 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610826', 'tblTempVendorCDR_20' ) end [2025-03-05 04:54:18] Production.INFO: ProcessCDR(1,14610826,1,1,2) [2025-03-05 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610826', 'tblTempUsageDetail_20' ) start [2025-03-05 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610826', 'tblTempUsageDetail_20' ) end [2025-03-05 04:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:54:21] Production.INFO: ==29406== Releasing lock... [2025-03-05 04:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:54:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:55:05 [end_date_ymd] => 2025-03-05 04:55:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:55:05' and `end` < '2025-03-05 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-03-05 04:55:17] Production.INFO: count ==131 [2025-03-05 04:55:17] Production.ERROR: pbx CDR StartTime 2025-03-05 01:55:05 - End Time 2025-03-05 04:55:05 [2025-03-05 04:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610831', 'tblTempUsageDetail_20' ) start [2025-03-05 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610831', 'tblTempUsageDetail_20' ) end [2025-03-05 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610831', 'tblTempVendorCDR_20' ) start [2025-03-05 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610831', 'tblTempVendorCDR_20' ) end [2025-03-05 04:55:17] Production.INFO: ProcessCDR(1,14610831,1,1,2) [2025-03-05 04:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610831', 'tblTempUsageDetail_20' ) start [2025-03-05 04:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610831', 'tblTempUsageDetail_20' ) end [2025-03-05 04:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:55:20] Production.INFO: ==29494== Releasing lock... [2025-03-05 04:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:55:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:56:05 [end_date_ymd] => 2025-03-05 04:56:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:56:05' and `end` < '2025-03-05 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-03-05 04:56:17] Production.INFO: count ==131 [2025-03-05 04:56:17] Production.ERROR: pbx CDR StartTime 2025-03-05 01:56:05 - End Time 2025-03-05 04:56:05 [2025-03-05 04:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610836', 'tblTempUsageDetail_20' ) start [2025-03-05 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610836', 'tblTempUsageDetail_20' ) end [2025-03-05 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610836', 'tblTempVendorCDR_20' ) start [2025-03-05 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610836', 'tblTempVendorCDR_20' ) end [2025-03-05 04:56:17] Production.INFO: ProcessCDR(1,14610836,1,1,2) [2025-03-05 04:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610836', 'tblTempUsageDetail_20' ) start [2025-03-05 04:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610836', 'tblTempUsageDetail_20' ) end [2025-03-05 04:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:56:20] Production.INFO: ==29600== Releasing lock... [2025-03-05 04:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:56:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:57:05 [end_date_ymd] => 2025-03-05 04:57:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:57:05' and `end` < '2025-03-05 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-03-05 04:57:18] Production.INFO: count ==131 [2025-03-05 04:57:18] Production.ERROR: pbx CDR StartTime 2025-03-05 01:57:05 - End Time 2025-03-05 04:57:05 [2025-03-05 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610841', 'tblTempUsageDetail_20' ) start [2025-03-05 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610841', 'tblTempUsageDetail_20' ) end [2025-03-05 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610841', 'tblTempVendorCDR_20' ) start [2025-03-05 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610841', 'tblTempVendorCDR_20' ) end [2025-03-05 04:57:18] Production.INFO: ProcessCDR(1,14610841,1,1,2) [2025-03-05 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610841', 'tblTempUsageDetail_20' ) start [2025-03-05 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610841', 'tblTempUsageDetail_20' ) end [2025-03-05 04:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:57:21] Production.INFO: ==29715== Releasing lock... [2025-03-05 04:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:57:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:58:05 [end_date_ymd] => 2025-03-05 04:58:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 01:58:05' and `end` < '2025-03-05 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-03-05 04:58:18] Production.INFO: count ==131 [2025-03-05 04:58:18] Production.ERROR: pbx CDR StartTime 2025-03-05 01:58:05 - End Time 2025-03-05 04:58:05 [2025-03-05 04:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610846', 'tblTempUsageDetail_20' ) start [2025-03-05 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610846', 'tblTempUsageDetail_20' ) end [2025-03-05 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610846', 'tblTempVendorCDR_20' ) start [2025-03-05 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610846', 'tblTempVendorCDR_20' ) end [2025-03-05 04:58:18] Production.INFO: ProcessCDR(1,14610846,1,1,2) [2025-03-05 04:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610846', 'tblTempUsageDetail_20' ) start [2025-03-05 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610846', 'tblTempUsageDetail_20' ) end [2025-03-05 04:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:58:21] Production.INFO: ==29789== Releasing lock... [2025-03-05 04:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:58:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 01:59:05 [end_date_ymd] => 2025-03-05 04:59:05 [RateCDR] => 1 ) [2025-03-05 04: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-03-05 01:59:05' and `end` < '2025-03-05 04: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-03-05 04:59:18] Production.INFO: count ==131 [2025-03-05 04:59:18] Production.ERROR: pbx CDR StartTime 2025-03-05 01:59:05 - End Time 2025-03-05 04:59:05 [2025-03-05 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610851', 'tblTempUsageDetail_20' ) start [2025-03-05 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610851', 'tblTempUsageDetail_20' ) end [2025-03-05 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610851', 'tblTempVendorCDR_20' ) start [2025-03-05 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610851', 'tblTempVendorCDR_20' ) end [2025-03-05 04:59:18] Production.INFO: ProcessCDR(1,14610851,1,1,2) [2025-03-05 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610851', 'tblTempUsageDetail_20' ) start [2025-03-05 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610851', 'tblTempUsageDetail_20' ) end [2025-03-05 04:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 04:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 04:59:21] Production.INFO: ==29865== Releasing lock... [2025-03-05 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 04:59:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:00:05 [end_date_ymd] => 2025-03-05 05:00:05 [RateCDR] => 1 ) [2025-03-05 05: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-03-05 02:00:05' and `end` < '2025-03-05 05: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-03-05 05:00:19] Production.INFO: count ==132 [2025-03-05 05:00:19] Production.ERROR: pbx CDR StartTime 2025-03-05 02:00:05 - End Time 2025-03-05 05:00:05 [2025-03-05 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610857', 'tblTempUsageDetail_20' ) start [2025-03-05 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610857', 'tblTempUsageDetail_20' ) end [2025-03-05 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610857', 'tblTempVendorCDR_20' ) start [2025-03-05 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610857', 'tblTempVendorCDR_20' ) end [2025-03-05 05:00:19] Production.INFO: ProcessCDR(1,14610857,1,1,2) [2025-03-05 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610857', 'tblTempUsageDetail_20' ) start [2025-03-05 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610857', 'tblTempUsageDetail_20' ) end [2025-03-05 05:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:00:22] Production.INFO: ==29946== Releasing lock... [2025-03-05 05:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:00:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:01:05 [end_date_ymd] => 2025-03-05 05:01:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:01:05' and `end` < '2025-03-05 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-03-05 05:01:18] Production.INFO: count ==136 [2025-03-05 05:01:18] Production.ERROR: pbx CDR StartTime 2025-03-05 02:01:05 - End Time 2025-03-05 05:01:05 [2025-03-05 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610862', 'tblTempUsageDetail_20' ) start [2025-03-05 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610862', 'tblTempUsageDetail_20' ) end [2025-03-05 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610862', 'tblTempVendorCDR_20' ) start [2025-03-05 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610862', 'tblTempVendorCDR_20' ) end [2025-03-05 05:01:18] Production.INFO: ProcessCDR(1,14610862,1,1,2) [2025-03-05 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610862', 'tblTempUsageDetail_20' ) start [2025-03-05 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610862', 'tblTempUsageDetail_20' ) end [2025-03-05 05:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:01:21] Production.INFO: ==30043== Releasing lock... [2025-03-05 05:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:01:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 05:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:02:06 [end_date_ymd] => 2025-03-05 05:02:06 [RateCDR] => 1 ) [2025-03-05 05:02: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-03-05 02:02:06' and `end` < '2025-03-05 05:02: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-03-05 05:02:20] Production.INFO: count ==140 [2025-03-05 05:02:20] Production.ERROR: pbx CDR StartTime 2025-03-05 02:02:06 - End Time 2025-03-05 05:02:06 [2025-03-05 05:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610867', 'tblTempUsageDetail_20' ) start [2025-03-05 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610867', 'tblTempUsageDetail_20' ) end [2025-03-05 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610867', 'tblTempVendorCDR_20' ) start [2025-03-05 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610867', 'tblTempVendorCDR_20' ) end [2025-03-05 05:02:20] Production.INFO: ProcessCDR(1,14610867,1,1,2) [2025-03-05 05:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610867', 'tblTempUsageDetail_20' ) start [2025-03-05 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610867', 'tblTempUsageDetail_20' ) end [2025-03-05 05:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:02:23] Production.INFO: ==30119== Releasing lock... [2025-03-05 05:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:02:23] Production.INFO: 28.75 MB #Memory Used# [2025-03-05 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:03:05 [end_date_ymd] => 2025-03-05 05:03:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:03:05' and `end` < '2025-03-05 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-03-05 05:03:17] Production.INFO: count ==140 [2025-03-05 05:03:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:03:05 - End Time 2025-03-05 05:03:05 [2025-03-05 05:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610872', 'tblTempUsageDetail_20' ) start [2025-03-05 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610872', 'tblTempUsageDetail_20' ) end [2025-03-05 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610872', 'tblTempVendorCDR_20' ) start [2025-03-05 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610872', 'tblTempVendorCDR_20' ) end [2025-03-05 05:03:17] Production.INFO: ProcessCDR(1,14610872,1,1,2) [2025-03-05 05:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610872', 'tblTempUsageDetail_20' ) start [2025-03-05 05:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610872', 'tblTempUsageDetail_20' ) end [2025-03-05 05:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:03:20] Production.INFO: ==30190== Releasing lock... [2025-03-05 05:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:03:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-05 05:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:04:06 [end_date_ymd] => 2025-03-05 05:04:06 [RateCDR] => 1 ) [2025-03-05 05:04: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-03-05 02:04:06' and `end` < '2025-03-05 05:04: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-03-05 05:04:19] Production.INFO: count ==130 [2025-03-05 05:04:19] Production.ERROR: pbx CDR StartTime 2025-03-05 02:04:06 - End Time 2025-03-05 05:04:06 [2025-03-05 05:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610877', 'tblTempUsageDetail_20' ) start [2025-03-05 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610877', 'tblTempUsageDetail_20' ) end [2025-03-05 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610877', 'tblTempVendorCDR_20' ) start [2025-03-05 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610877', 'tblTempVendorCDR_20' ) end [2025-03-05 05:04:19] Production.INFO: ProcessCDR(1,14610877,1,1,2) [2025-03-05 05:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610877', 'tblTempUsageDetail_20' ) start [2025-03-05 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610877', 'tblTempUsageDetail_20' ) end [2025-03-05 05:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:04:22] Production.INFO: ==30274== Releasing lock... [2025-03-05 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:04:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:05:05 [end_date_ymd] => 2025-03-05 05:05:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:05:05' and `end` < '2025-03-05 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-03-05 05:05:17] Production.INFO: count ==120 [2025-03-05 05:05:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:05:05 - End Time 2025-03-05 05:05:05 [2025-03-05 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610882', 'tblTempUsageDetail_20' ) start [2025-03-05 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610882', 'tblTempUsageDetail_20' ) end [2025-03-05 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610882', 'tblTempVendorCDR_20' ) start [2025-03-05 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610882', 'tblTempVendorCDR_20' ) end [2025-03-05 05:05:17] Production.INFO: ProcessCDR(1,14610882,1,1,2) [2025-03-05 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610882', 'tblTempUsageDetail_20' ) start [2025-03-05 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610882', 'tblTempUsageDetail_20' ) end [2025-03-05 05:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:05:20] Production.INFO: ==30352== Releasing lock... [2025-03-05 05:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:05:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:06:05 [end_date_ymd] => 2025-03-05 05:06:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:06:05' and `end` < '2025-03-05 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-03-05 05:06:18] Production.INFO: count ==120 [2025-03-05 05:06:18] Production.ERROR: pbx CDR StartTime 2025-03-05 02:06:05 - End Time 2025-03-05 05:06:05 [2025-03-05 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610887', 'tblTempUsageDetail_20' ) start [2025-03-05 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610887', 'tblTempUsageDetail_20' ) end [2025-03-05 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610887', 'tblTempVendorCDR_20' ) start [2025-03-05 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610887', 'tblTempVendorCDR_20' ) end [2025-03-05 05:06:18] Production.INFO: ProcessCDR(1,14610887,1,1,2) [2025-03-05 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610887', 'tblTempUsageDetail_20' ) start [2025-03-05 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610887', 'tblTempUsageDetail_20' ) end [2025-03-05 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:06:21] Production.INFO: ==30432== Releasing lock... [2025-03-05 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:06:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:07:05 [end_date_ymd] => 2025-03-05 05:07:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:07:05' and `end` < '2025-03-05 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-03-05 05:07:17] Production.INFO: count ==120 [2025-03-05 05:07:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:07:05 - End Time 2025-03-05 05:07:05 [2025-03-05 05:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610892', 'tblTempUsageDetail_20' ) start [2025-03-05 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610892', 'tblTempUsageDetail_20' ) end [2025-03-05 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610892', 'tblTempVendorCDR_20' ) start [2025-03-05 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610892', 'tblTempVendorCDR_20' ) end [2025-03-05 05:07:17] Production.INFO: ProcessCDR(1,14610892,1,1,2) [2025-03-05 05:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610892', 'tblTempUsageDetail_20' ) start [2025-03-05 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610892', 'tblTempUsageDetail_20' ) end [2025-03-05 05:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:07:20] Production.INFO: ==30509== Releasing lock... [2025-03-05 05:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:07:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:08:05 [end_date_ymd] => 2025-03-05 05:08:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:08:05' and `end` < '2025-03-05 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-03-05 05:08:17] Production.INFO: count ==120 [2025-03-05 05:08:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:08:05 - End Time 2025-03-05 05:08:05 [2025-03-05 05:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610897', 'tblTempUsageDetail_20' ) start [2025-03-05 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610897', 'tblTempUsageDetail_20' ) end [2025-03-05 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610897', 'tblTempVendorCDR_20' ) start [2025-03-05 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610897', 'tblTempVendorCDR_20' ) end [2025-03-05 05:08:17] Production.INFO: ProcessCDR(1,14610897,1,1,2) [2025-03-05 05:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610897', 'tblTempUsageDetail_20' ) start [2025-03-05 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610897', 'tblTempUsageDetail_20' ) end [2025-03-05 05:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:08:20] Production.INFO: ==30584== Releasing lock... [2025-03-05 05:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:08:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:09:05 [end_date_ymd] => 2025-03-05 05:09:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:09:05' and `end` < '2025-03-05 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-03-05 05:09:17] Production.INFO: count ==120 [2025-03-05 05:09:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:09:05 - End Time 2025-03-05 05:09:05 [2025-03-05 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610902', 'tblTempUsageDetail_20' ) start [2025-03-05 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610902', 'tblTempUsageDetail_20' ) end [2025-03-05 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610902', 'tblTempVendorCDR_20' ) start [2025-03-05 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610902', 'tblTempVendorCDR_20' ) end [2025-03-05 05:09:17] Production.INFO: ProcessCDR(1,14610902,1,1,2) [2025-03-05 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610902', 'tblTempUsageDetail_20' ) start [2025-03-05 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610902', 'tblTempUsageDetail_20' ) end [2025-03-05 05:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:09:20] Production.INFO: ==30659== Releasing lock... [2025-03-05 05:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:09:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:10:06 [end_date_ymd] => 2025-03-05 05:10:06 [RateCDR] => 1 ) [2025-03-05 05: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-03-05 02:10:06' and `end` < '2025-03-05 05: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-03-05 05:10:18] Production.INFO: count ==120 [2025-03-05 05:10:18] Production.ERROR: pbx CDR StartTime 2025-03-05 02:10:06 - End Time 2025-03-05 05:10:06 [2025-03-05 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610908', 'tblTempUsageDetail_20' ) start [2025-03-05 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610908', 'tblTempUsageDetail_20' ) end [2025-03-05 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610908', 'tblTempVendorCDR_20' ) start [2025-03-05 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610908', 'tblTempVendorCDR_20' ) end [2025-03-05 05:10:18] Production.INFO: ProcessCDR(1,14610908,1,1,2) [2025-03-05 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610908', 'tblTempUsageDetail_20' ) start [2025-03-05 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610908', 'tblTempUsageDetail_20' ) end [2025-03-05 05:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:10:21] Production.INFO: ==30755== Releasing lock... [2025-03-05 05:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:10:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:11:05 [end_date_ymd] => 2025-03-05 05:11:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:11:05' and `end` < '2025-03-05 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-03-05 05:11:17] Production.INFO: count ==120 [2025-03-05 05:11:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:11:05 - End Time 2025-03-05 05:11:05 [2025-03-05 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610913', 'tblTempUsageDetail_20' ) start [2025-03-05 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610913', 'tblTempUsageDetail_20' ) end [2025-03-05 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610913', 'tblTempVendorCDR_20' ) start [2025-03-05 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610913', 'tblTempVendorCDR_20' ) end [2025-03-05 05:11:17] Production.INFO: ProcessCDR(1,14610913,1,1,2) [2025-03-05 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610913', 'tblTempUsageDetail_20' ) start [2025-03-05 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610913', 'tblTempUsageDetail_20' ) end [2025-03-05 05:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:11:20] Production.INFO: ==30832== Releasing lock... [2025-03-05 05:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:11:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:12:05 [end_date_ymd] => 2025-03-05 05:12:05 [RateCDR] => 1 ) [2025-03-05 05: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-03-05 02:12:05' and `end` < '2025-03-05 05: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-03-05 05:12:17] Production.INFO: count ==120 [2025-03-05 05:12:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:12:05 - End Time 2025-03-05 05:12:05 [2025-03-05 05:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610918', 'tblTempUsageDetail_20' ) start [2025-03-05 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610918', 'tblTempUsageDetail_20' ) end [2025-03-05 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610918', 'tblTempVendorCDR_20' ) start [2025-03-05 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610918', 'tblTempVendorCDR_20' ) end [2025-03-05 05:12:17] Production.INFO: ProcessCDR(1,14610918,1,1,2) [2025-03-05 05:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610918', 'tblTempUsageDetail_20' ) start [2025-03-05 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610918', 'tblTempUsageDetail_20' ) end [2025-03-05 05:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:12:20] Production.INFO: ==30945== Releasing lock... [2025-03-05 05:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:12:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:13:05 [end_date_ymd] => 2025-03-05 05:13:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:13:05' and `end` < '2025-03-05 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-03-05 05:13:17] Production.INFO: count ==120 [2025-03-05 05:13:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:13:05 - End Time 2025-03-05 05:13:05 [2025-03-05 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610923', 'tblTempUsageDetail_20' ) start [2025-03-05 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610923', 'tblTempUsageDetail_20' ) end [2025-03-05 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610923', 'tblTempVendorCDR_20' ) start [2025-03-05 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610923', 'tblTempVendorCDR_20' ) end [2025-03-05 05:13:18] Production.INFO: ProcessCDR(1,14610923,1,1,2) [2025-03-05 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610923', 'tblTempUsageDetail_20' ) start [2025-03-05 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610923', 'tblTempUsageDetail_20' ) end [2025-03-05 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:13:21] Production.INFO: ==31021== Releasing lock... [2025-03-05 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:13:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:14:05 [end_date_ymd] => 2025-03-05 05:14:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:14:05' and `end` < '2025-03-05 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-03-05 05:14:17] Production.INFO: count ==120 [2025-03-05 05:14:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:14:05 - End Time 2025-03-05 05:14:05 [2025-03-05 05:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610928', 'tblTempUsageDetail_20' ) start [2025-03-05 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610928', 'tblTempUsageDetail_20' ) end [2025-03-05 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610928', 'tblTempVendorCDR_20' ) start [2025-03-05 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610928', 'tblTempVendorCDR_20' ) end [2025-03-05 05:14:17] Production.INFO: ProcessCDR(1,14610928,1,1,2) [2025-03-05 05:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610928', 'tblTempUsageDetail_20' ) start [2025-03-05 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610928', 'tblTempUsageDetail_20' ) end [2025-03-05 05:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:14:20] Production.INFO: ==31100== Releasing lock... [2025-03-05 05:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:14:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:15:05 [end_date_ymd] => 2025-03-05 05:15:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:15:05' and `end` < '2025-03-05 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-03-05 05:15:17] Production.INFO: count ==120 [2025-03-05 05:15:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:15:05 - End Time 2025-03-05 05:15:05 [2025-03-05 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610933', 'tblTempUsageDetail_20' ) start [2025-03-05 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610933', 'tblTempUsageDetail_20' ) end [2025-03-05 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610933', 'tblTempVendorCDR_20' ) start [2025-03-05 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610933', 'tblTempVendorCDR_20' ) end [2025-03-05 05:15:17] Production.INFO: ProcessCDR(1,14610933,1,1,2) [2025-03-05 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610933', 'tblTempUsageDetail_20' ) start [2025-03-05 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610933', 'tblTempUsageDetail_20' ) end [2025-03-05 05:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:15:20] Production.INFO: ==31179== Releasing lock... [2025-03-05 05:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:15:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:16:05 [end_date_ymd] => 2025-03-05 05:16:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:16:05' and `end` < '2025-03-05 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-03-05 05:16:17] Production.INFO: count ==117 [2025-03-05 05:16:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:16:05 - End Time 2025-03-05 05:16:05 [2025-03-05 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610938', 'tblTempUsageDetail_20' ) start [2025-03-05 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610938', 'tblTempUsageDetail_20' ) end [2025-03-05 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610938', 'tblTempVendorCDR_20' ) start [2025-03-05 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610938', 'tblTempVendorCDR_20' ) end [2025-03-05 05:16:17] Production.INFO: ProcessCDR(1,14610938,1,1,2) [2025-03-05 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610938', 'tblTempUsageDetail_20' ) start [2025-03-05 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610938', 'tblTempUsageDetail_20' ) end [2025-03-05 05:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:16:20] Production.INFO: ==31254== Releasing lock... [2025-03-05 05:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:16:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:17:05 [end_date_ymd] => 2025-03-05 05:17:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:17:05' and `end` < '2025-03-05 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-03-05 05:17:17] Production.INFO: count ==117 [2025-03-05 05:17:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:17:05 - End Time 2025-03-05 05:17:05 [2025-03-05 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610943', 'tblTempUsageDetail_20' ) start [2025-03-05 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610943', 'tblTempUsageDetail_20' ) end [2025-03-05 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610943', 'tblTempVendorCDR_20' ) start [2025-03-05 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610943', 'tblTempVendorCDR_20' ) end [2025-03-05 05:17:17] Production.INFO: ProcessCDR(1,14610943,1,1,2) [2025-03-05 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610943', 'tblTempUsageDetail_20' ) start [2025-03-05 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610943', 'tblTempUsageDetail_20' ) end [2025-03-05 05:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:17:20] Production.INFO: ==31332== Releasing lock... [2025-03-05 05:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:17:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:18:05 [end_date_ymd] => 2025-03-05 05:18:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:18:05' and `end` < '2025-03-05 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-03-05 05:18:17] Production.INFO: count ==116 [2025-03-05 05:18:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:18:05 - End Time 2025-03-05 05:18:05 [2025-03-05 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610948', 'tblTempUsageDetail_20' ) start [2025-03-05 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610948', 'tblTempUsageDetail_20' ) end [2025-03-05 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610948', 'tblTempVendorCDR_20' ) start [2025-03-05 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610948', 'tblTempVendorCDR_20' ) end [2025-03-05 05:18:17] Production.INFO: ProcessCDR(1,14610948,1,1,2) [2025-03-05 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610948', 'tblTempUsageDetail_20' ) start [2025-03-05 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610948', 'tblTempUsageDetail_20' ) end [2025-03-05 05:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:18:20] Production.INFO: ==31405== Releasing lock... [2025-03-05 05:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:18:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:19:05 [end_date_ymd] => 2025-03-05 05:19:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:19:05' and `end` < '2025-03-05 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-03-05 05:19:17] Production.INFO: count ==116 [2025-03-05 05:19:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:19:05 - End Time 2025-03-05 05:19:05 [2025-03-05 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610953', 'tblTempUsageDetail_20' ) start [2025-03-05 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610953', 'tblTempUsageDetail_20' ) end [2025-03-05 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610953', 'tblTempVendorCDR_20' ) start [2025-03-05 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610953', 'tblTempVendorCDR_20' ) end [2025-03-05 05:19:17] Production.INFO: ProcessCDR(1,14610953,1,1,2) [2025-03-05 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610953', 'tblTempUsageDetail_20' ) start [2025-03-05 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610953', 'tblTempUsageDetail_20' ) end [2025-03-05 05:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:19:20] Production.INFO: ==31481== Releasing lock... [2025-03-05 05:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:19:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:20:05 [end_date_ymd] => 2025-03-05 05:20:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:20:05' and `end` < '2025-03-05 05: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-03-05 05:20:17] Production.INFO: count ==116 [2025-03-05 05:20:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:20:05 - End Time 2025-03-05 05:20:05 [2025-03-05 05:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610959', 'tblTempUsageDetail_20' ) start [2025-03-05 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610959', 'tblTempUsageDetail_20' ) end [2025-03-05 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610959', 'tblTempVendorCDR_20' ) start [2025-03-05 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610959', 'tblTempVendorCDR_20' ) end [2025-03-05 05:20:17] Production.INFO: ProcessCDR(1,14610959,1,1,2) [2025-03-05 05:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610959', 'tblTempUsageDetail_20' ) start [2025-03-05 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610959', 'tblTempUsageDetail_20' ) end [2025-03-05 05:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:20:21] Production.INFO: ==31570== Releasing lock... [2025-03-05 05:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:20:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:21:04 [end_date_ymd] => 2025-03-05 05:21:04 [RateCDR] => 1 ) [2025-03-05 05: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-03-05 02:21:04' and `end` < '2025-03-05 05: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-03-05 05:21:16] Production.INFO: count ==116 [2025-03-05 05:21:16] Production.ERROR: pbx CDR StartTime 2025-03-05 02:21:04 - End Time 2025-03-05 05:21:04 [2025-03-05 05:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610964', 'tblTempUsageDetail_20' ) start [2025-03-05 05:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610964', 'tblTempUsageDetail_20' ) end [2025-03-05 05:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610964', 'tblTempVendorCDR_20' ) start [2025-03-05 05:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610964', 'tblTempVendorCDR_20' ) end [2025-03-05 05:21:16] Production.INFO: ProcessCDR(1,14610964,1,1,2) [2025-03-05 05:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:21:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:21:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610964', 'tblTempUsageDetail_20' ) start [2025-03-05 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610964', 'tblTempUsageDetail_20' ) end [2025-03-05 05:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:21:20] Production.INFO: ==31644== Releasing lock... [2025-03-05 05:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:21:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:22:06 [end_date_ymd] => 2025-03-05 05:22:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:22:06' and `end` < '2025-03-05 05:22: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-03-05 05:22:18] Production.INFO: count ==116 [2025-03-05 05:22:18] Production.ERROR: pbx CDR StartTime 2025-03-05 02:22:06 - End Time 2025-03-05 05:22:06 [2025-03-05 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610969', 'tblTempUsageDetail_20' ) start [2025-03-05 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610969', 'tblTempUsageDetail_20' ) end [2025-03-05 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610969', 'tblTempVendorCDR_20' ) start [2025-03-05 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610969', 'tblTempVendorCDR_20' ) end [2025-03-05 05:22:18] Production.INFO: ProcessCDR(1,14610969,1,1,2) [2025-03-05 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610969', 'tblTempUsageDetail_20' ) start [2025-03-05 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610969', 'tblTempUsageDetail_20' ) end [2025-03-05 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:22:21] Production.INFO: ==31718== Releasing lock... [2025-03-05 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:22:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:23:05 [end_date_ymd] => 2025-03-05 05:23:05 [RateCDR] => 1 ) [2025-03-05 05: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-03-05 02:23:05' and `end` < '2025-03-05 05: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-03-05 05:23:17] Production.INFO: count ==116 [2025-03-05 05:23:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:23:05 - End Time 2025-03-05 05:23:05 [2025-03-05 05:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610974', 'tblTempUsageDetail_20' ) start [2025-03-05 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610974', 'tblTempUsageDetail_20' ) end [2025-03-05 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610974', 'tblTempVendorCDR_20' ) start [2025-03-05 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610974', 'tblTempVendorCDR_20' ) end [2025-03-05 05:23:17] Production.INFO: ProcessCDR(1,14610974,1,1,2) [2025-03-05 05:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610974', 'tblTempUsageDetail_20' ) start [2025-03-05 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610974', 'tblTempUsageDetail_20' ) end [2025-03-05 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:23:21] Production.INFO: ==31796== Releasing lock... [2025-03-05 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:23:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:24:06 [end_date_ymd] => 2025-03-05 05:24:06 [RateCDR] => 1 ) [2025-03-05 05: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-03-05 02:24:06' and `end` < '2025-03-05 05: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-03-05 05:24:18] Production.INFO: count ==116 [2025-03-05 05:24:18] Production.ERROR: pbx CDR StartTime 2025-03-05 02:24:06 - End Time 2025-03-05 05:24:06 [2025-03-05 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610979', 'tblTempUsageDetail_20' ) start [2025-03-05 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610979', 'tblTempUsageDetail_20' ) end [2025-03-05 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610979', 'tblTempVendorCDR_20' ) start [2025-03-05 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610979', 'tblTempVendorCDR_20' ) end [2025-03-05 05:24:18] Production.INFO: ProcessCDR(1,14610979,1,1,2) [2025-03-05 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610979', 'tblTempUsageDetail_20' ) start [2025-03-05 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610979', 'tblTempUsageDetail_20' ) end [2025-03-05 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:24:21] Production.INFO: ==31871== Releasing lock... [2025-03-05 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:24:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:25:05 [end_date_ymd] => 2025-03-05 05:25:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:25:05' and `end` < '2025-03-05 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-03-05 05:25:17] Production.INFO: count ==116 [2025-03-05 05:25:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:25:05 - End Time 2025-03-05 05:25:05 [2025-03-05 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610984', 'tblTempUsageDetail_20' ) start [2025-03-05 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610984', 'tblTempUsageDetail_20' ) end [2025-03-05 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610984', 'tblTempVendorCDR_20' ) start [2025-03-05 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610984', 'tblTempVendorCDR_20' ) end [2025-03-05 05:25:17] Production.INFO: ProcessCDR(1,14610984,1,1,2) [2025-03-05 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610984', 'tblTempUsageDetail_20' ) start [2025-03-05 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610984', 'tblTempUsageDetail_20' ) end [2025-03-05 05:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:25:20] Production.INFO: ==31946== Releasing lock... [2025-03-05 05:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:25:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:26:05 [end_date_ymd] => 2025-03-05 05:26:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:26:05' and `end` < '2025-03-05 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-03-05 05:26:17] Production.INFO: count ==116 [2025-03-05 05:26:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:26:05 - End Time 2025-03-05 05:26:05 [2025-03-05 05:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610989', 'tblTempUsageDetail_20' ) start [2025-03-05 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610989', 'tblTempUsageDetail_20' ) end [2025-03-05 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610989', 'tblTempVendorCDR_20' ) start [2025-03-05 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610989', 'tblTempVendorCDR_20' ) end [2025-03-05 05:26:17] Production.INFO: ProcessCDR(1,14610989,1,1,2) [2025-03-05 05:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610989', 'tblTempUsageDetail_20' ) start [2025-03-05 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610989', 'tblTempUsageDetail_20' ) end [2025-03-05 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:26:21] Production.INFO: ==32022== Releasing lock... [2025-03-05 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:26:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:27:05 [end_date_ymd] => 2025-03-05 05:27:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:27:05' and `end` < '2025-03-05 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-03-05 05:27:17] Production.INFO: count ==115 [2025-03-05 05:27:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:27:05 - End Time 2025-03-05 05:27:05 [2025-03-05 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610994', 'tblTempUsageDetail_20' ) start [2025-03-05 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610994', 'tblTempUsageDetail_20' ) end [2025-03-05 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610994', 'tblTempVendorCDR_20' ) start [2025-03-05 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610994', 'tblTempVendorCDR_20' ) end [2025-03-05 05:27:17] Production.INFO: ProcessCDR(1,14610994,1,1,2) [2025-03-05 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610994', 'tblTempUsageDetail_20' ) start [2025-03-05 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610994', 'tblTempUsageDetail_20' ) end [2025-03-05 05:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:27:20] Production.INFO: ==32093== Releasing lock... [2025-03-05 05:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:27:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:28:05 [end_date_ymd] => 2025-03-05 05:28:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:28:05' and `end` < '2025-03-05 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-03-05 05:28:17] Production.INFO: count ==115 [2025-03-05 05:28:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:28:05 - End Time 2025-03-05 05:28:05 [2025-03-05 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610999', 'tblTempUsageDetail_20' ) start [2025-03-05 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14610999', 'tblTempUsageDetail_20' ) end [2025-03-05 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610999', 'tblTempVendorCDR_20' ) start [2025-03-05 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14610999', 'tblTempVendorCDR_20' ) end [2025-03-05 05:28:17] Production.INFO: ProcessCDR(1,14610999,1,1,2) [2025-03-05 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14610999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14610999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14610999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14610999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610999', 'tblTempUsageDetail_20' ) start [2025-03-05 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14610999', 'tblTempUsageDetail_20' ) end [2025-03-05 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:28:21] Production.INFO: ==32206== Releasing lock... [2025-03-05 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:28:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:29:05 [end_date_ymd] => 2025-03-05 05:29:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:29:05' and `end` < '2025-03-05 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-03-05 05:29:17] Production.INFO: count ==115 [2025-03-05 05:29:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:29:05 - End Time 2025-03-05 05:29:05 [2025-03-05 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611004', 'tblTempUsageDetail_20' ) start [2025-03-05 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611004', 'tblTempUsageDetail_20' ) end [2025-03-05 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611004', 'tblTempVendorCDR_20' ) start [2025-03-05 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611004', 'tblTempVendorCDR_20' ) end [2025-03-05 05:29:17] Production.INFO: ProcessCDR(1,14611004,1,1,2) [2025-03-05 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611004', 'tblTempUsageDetail_20' ) start [2025-03-05 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611004', 'tblTempUsageDetail_20' ) end [2025-03-05 05:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:29:20] Production.INFO: ==32282== Releasing lock... [2025-03-05 05:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:29:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:30:06 [end_date_ymd] => 2025-03-05 05:30:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:30:06' and `end` < '2025-03-05 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-03-05 05:30:18] Production.INFO: count ==113 [2025-03-05 05:30:18] Production.ERROR: pbx CDR StartTime 2025-03-05 02:30:06 - End Time 2025-03-05 05:30:06 [2025-03-05 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611009', 'tblTempUsageDetail_20' ) start [2025-03-05 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611009', 'tblTempUsageDetail_20' ) end [2025-03-05 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611009', 'tblTempVendorCDR_20' ) start [2025-03-05 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611009', 'tblTempVendorCDR_20' ) end [2025-03-05 05:30:18] Production.INFO: ProcessCDR(1,14611009,1,1,2) [2025-03-05 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611009', 'tblTempUsageDetail_20' ) start [2025-03-05 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611009', 'tblTempUsageDetail_20' ) end [2025-03-05 05:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:30:21] Production.INFO: ==32370== Releasing lock... [2025-03-05 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:30:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:31:04 [end_date_ymd] => 2025-03-05 05:31:04 [RateCDR] => 1 ) [2025-03-05 05: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-03-05 02:31:04' and `end` < '2025-03-05 05: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-03-05 05:31:16] Production.INFO: count ==113 [2025-03-05 05:31:16] Production.ERROR: pbx CDR StartTime 2025-03-05 02:31:04 - End Time 2025-03-05 05:31:04 [2025-03-05 05:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611015', 'tblTempUsageDetail_20' ) start [2025-03-05 05:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611015', 'tblTempUsageDetail_20' ) end [2025-03-05 05:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611015', 'tblTempVendorCDR_20' ) start [2025-03-05 05:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611015', 'tblTempVendorCDR_20' ) end [2025-03-05 05:31:16] Production.INFO: ProcessCDR(1,14611015,1,1,2) [2025-03-05 05:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:31:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:31:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611015', 'tblTempUsageDetail_20' ) start [2025-03-05 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611015', 'tblTempUsageDetail_20' ) end [2025-03-05 05:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:31:20] Production.INFO: ==32445== Releasing lock... [2025-03-05 05:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:31:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:32:05 [end_date_ymd] => 2025-03-05 05:32:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:32:05' and `end` < '2025-03-05 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-03-05 05:32:17] Production.INFO: count ==113 [2025-03-05 05:32:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:32:05 - End Time 2025-03-05 05:32:05 [2025-03-05 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611020', 'tblTempUsageDetail_20' ) start [2025-03-05 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611020', 'tblTempUsageDetail_20' ) end [2025-03-05 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611020', 'tblTempVendorCDR_20' ) start [2025-03-05 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611020', 'tblTempVendorCDR_20' ) end [2025-03-05 05:32:17] Production.INFO: ProcessCDR(1,14611020,1,1,2) [2025-03-05 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611020', 'tblTempUsageDetail_20' ) start [2025-03-05 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611020', 'tblTempUsageDetail_20' ) end [2025-03-05 05:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:32:20] Production.INFO: ==32518== Releasing lock... [2025-03-05 05:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:32:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:33:06 [end_date_ymd] => 2025-03-05 05:33:06 [RateCDR] => 1 ) [2025-03-05 05: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-03-05 02:33:06' and `end` < '2025-03-05 05: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-03-05 05:33:18] Production.INFO: count ==114 [2025-03-05 05:33:18] Production.ERROR: pbx CDR StartTime 2025-03-05 02:33:06 - End Time 2025-03-05 05:33:06 [2025-03-05 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611025', 'tblTempUsageDetail_20' ) start [2025-03-05 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611025', 'tblTempUsageDetail_20' ) end [2025-03-05 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611025', 'tblTempVendorCDR_20' ) start [2025-03-05 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611025', 'tblTempVendorCDR_20' ) end [2025-03-05 05:33:18] Production.INFO: ProcessCDR(1,14611025,1,1,2) [2025-03-05 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611025', 'tblTempUsageDetail_20' ) start [2025-03-05 05:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611025', 'tblTempUsageDetail_20' ) end [2025-03-05 05:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:33:22] Production.INFO: ==32597== Releasing lock... [2025-03-05 05:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:33:22] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:34:05 [end_date_ymd] => 2025-03-05 05:34:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:34:05' and `end` < '2025-03-05 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-03-05 05:34:17] Production.INFO: count ==115 [2025-03-05 05:34:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:34:05 - End Time 2025-03-05 05:34:05 [2025-03-05 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611030', 'tblTempUsageDetail_20' ) start [2025-03-05 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611030', 'tblTempUsageDetail_20' ) end [2025-03-05 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611030', 'tblTempVendorCDR_20' ) start [2025-03-05 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611030', 'tblTempVendorCDR_20' ) end [2025-03-05 05:34:17] Production.INFO: ProcessCDR(1,14611030,1,1,2) [2025-03-05 05:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611030', 'tblTempUsageDetail_20' ) start [2025-03-05 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611030', 'tblTempUsageDetail_20' ) end [2025-03-05 05:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:34:22] Production.INFO: ==32673== Releasing lock... [2025-03-05 05:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:34:22] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:35:06 [end_date_ymd] => 2025-03-05 05:35:06 [RateCDR] => 1 ) [2025-03-05 05:35: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-03-05 02:35:06' and `end` < '2025-03-05 05:35: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-03-05 05:35:18] Production.INFO: count ==116 [2025-03-05 05:35:18] Production.ERROR: pbx CDR StartTime 2025-03-05 02:35:06 - End Time 2025-03-05 05:35:06 [2025-03-05 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611035', 'tblTempUsageDetail_20' ) start [2025-03-05 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611035', 'tblTempUsageDetail_20' ) end [2025-03-05 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611035', 'tblTempVendorCDR_20' ) start [2025-03-05 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611035', 'tblTempVendorCDR_20' ) end [2025-03-05 05:35:18] Production.INFO: ProcessCDR(1,14611035,1,1,2) [2025-03-05 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611035', 'tblTempUsageDetail_20' ) start [2025-03-05 05:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611035', 'tblTempUsageDetail_20' ) end [2025-03-05 05:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:35:23] Production.INFO: ==32749== Releasing lock... [2025-03-05 05:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:35:23] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:36:05 [end_date_ymd] => 2025-03-05 05:36:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:36:05' and `end` < '2025-03-05 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-03-05 05:36:17] Production.INFO: count ==116 [2025-03-05 05:36:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:36:05 - End Time 2025-03-05 05:36:05 [2025-03-05 05:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611040', 'tblTempUsageDetail_20' ) start [2025-03-05 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611040', 'tblTempUsageDetail_20' ) end [2025-03-05 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611040', 'tblTempVendorCDR_20' ) start [2025-03-05 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611040', 'tblTempVendorCDR_20' ) end [2025-03-05 05:36:17] Production.INFO: ProcessCDR(1,14611040,1,1,2) [2025-03-05 05:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611040', 'tblTempUsageDetail_20' ) start [2025-03-05 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611040', 'tblTempUsageDetail_20' ) end [2025-03-05 05:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:36:20] Production.INFO: ==373== Releasing lock... [2025-03-05 05:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:36:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:37:05 [end_date_ymd] => 2025-03-05 05:37:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:37:05' and `end` < '2025-03-05 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-03-05 05:37:17] Production.INFO: count ==116 [2025-03-05 05:37:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:37:05 - End Time 2025-03-05 05:37:05 [2025-03-05 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611045', 'tblTempUsageDetail_20' ) start [2025-03-05 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611045', 'tblTempUsageDetail_20' ) end [2025-03-05 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611045', 'tblTempVendorCDR_20' ) start [2025-03-05 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611045', 'tblTempVendorCDR_20' ) end [2025-03-05 05:37:17] Production.INFO: ProcessCDR(1,14611045,1,1,2) [2025-03-05 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611045', 'tblTempUsageDetail_20' ) start [2025-03-05 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611045', 'tblTempUsageDetail_20' ) end [2025-03-05 05:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:37:20] Production.INFO: ==445== Releasing lock... [2025-03-05 05:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:37:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:38:05 [end_date_ymd] => 2025-03-05 05:38:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:38:05' and `end` < '2025-03-05 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-03-05 05:38:17] Production.INFO: count ==116 [2025-03-05 05:38:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:38:05 - End Time 2025-03-05 05:38:05 [2025-03-05 05:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611050', 'tblTempUsageDetail_20' ) start [2025-03-05 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611050', 'tblTempUsageDetail_20' ) end [2025-03-05 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611050', 'tblTempVendorCDR_20' ) start [2025-03-05 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611050', 'tblTempVendorCDR_20' ) end [2025-03-05 05:38:17] Production.INFO: ProcessCDR(1,14611050,1,1,2) [2025-03-05 05:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611050', 'tblTempUsageDetail_20' ) start [2025-03-05 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611050', 'tblTempUsageDetail_20' ) end [2025-03-05 05:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:38:20] Production.INFO: ==518== Releasing lock... [2025-03-05 05:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:38:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:39:06 [end_date_ymd] => 2025-03-05 05:39:06 [RateCDR] => 1 ) [2025-03-05 05:39: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-03-05 02:39:06' and `end` < '2025-03-05 05:39: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-03-05 05:39:18] Production.INFO: count ==116 [2025-03-05 05:39:18] Production.ERROR: pbx CDR StartTime 2025-03-05 02:39:06 - End Time 2025-03-05 05:39:06 [2025-03-05 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611055', 'tblTempUsageDetail_20' ) start [2025-03-05 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611055', 'tblTempUsageDetail_20' ) end [2025-03-05 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611055', 'tblTempVendorCDR_20' ) start [2025-03-05 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611055', 'tblTempVendorCDR_20' ) end [2025-03-05 05:39:18] Production.INFO: ProcessCDR(1,14611055,1,1,2) [2025-03-05 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611055', 'tblTempUsageDetail_20' ) start [2025-03-05 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611055', 'tblTempUsageDetail_20' ) end [2025-03-05 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:39:21] Production.INFO: ==600== Releasing lock... [2025-03-05 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:39:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:40:06 [end_date_ymd] => 2025-03-05 05:40:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:40:06' and `end` < '2025-03-05 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-03-05 05:40:18] Production.INFO: count ==114 [2025-03-05 05:40:18] Production.ERROR: pbx CDR StartTime 2025-03-05 02:40:06 - End Time 2025-03-05 05:40:06 [2025-03-05 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611060', 'tblTempUsageDetail_20' ) start [2025-03-05 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611060', 'tblTempUsageDetail_20' ) end [2025-03-05 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611060', 'tblTempVendorCDR_20' ) start [2025-03-05 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611060', 'tblTempVendorCDR_20' ) end [2025-03-05 05:40:18] Production.INFO: ProcessCDR(1,14611060,1,1,2) [2025-03-05 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611060', 'tblTempUsageDetail_20' ) start [2025-03-05 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611060', 'tblTempUsageDetail_20' ) end [2025-03-05 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:40:21] Production.INFO: ==697== Releasing lock... [2025-03-05 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:40:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:41:05 [end_date_ymd] => 2025-03-05 05:41:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:41:05' and `end` < '2025-03-05 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-03-05 05:41:17] Production.INFO: count ==114 [2025-03-05 05:41:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:41:05 - End Time 2025-03-05 05:41:05 [2025-03-05 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611066', 'tblTempUsageDetail_20' ) start [2025-03-05 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611066', 'tblTempUsageDetail_20' ) end [2025-03-05 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611066', 'tblTempVendorCDR_20' ) start [2025-03-05 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611066', 'tblTempVendorCDR_20' ) end [2025-03-05 05:41:17] Production.INFO: ProcessCDR(1,14611066,1,1,2) [2025-03-05 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611066', 'tblTempUsageDetail_20' ) start [2025-03-05 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611066', 'tblTempUsageDetail_20' ) end [2025-03-05 05:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:41:20] Production.INFO: ==781== Releasing lock... [2025-03-05 05:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:41:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:42:05 [end_date_ymd] => 2025-03-05 05:42:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:42:05' and `end` < '2025-03-05 05: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-03-05 05:42:16] Production.INFO: count ==114 [2025-03-05 05:42:16] Production.ERROR: pbx CDR StartTime 2025-03-05 02:42:05 - End Time 2025-03-05 05:42:05 [2025-03-05 05:42:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611071', 'tblTempUsageDetail_20' ) start [2025-03-05 05:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611071', 'tblTempUsageDetail_20' ) end [2025-03-05 05:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611071', 'tblTempVendorCDR_20' ) start [2025-03-05 05:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611071', 'tblTempVendorCDR_20' ) end [2025-03-05 05:42:16] Production.INFO: ProcessCDR(1,14611071,1,1,2) [2025-03-05 05:42:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:42:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:42:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611071', 'tblTempUsageDetail_20' ) start [2025-03-05 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611071', 'tblTempUsageDetail_20' ) end [2025-03-05 05:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:42:20] Production.INFO: ==851== Releasing lock... [2025-03-05 05:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:42:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:43:05 [end_date_ymd] => 2025-03-05 05:43:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:43:05' and `end` < '2025-03-05 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-03-05 05:43:17] Production.INFO: count ==114 [2025-03-05 05:43:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:43:05 - End Time 2025-03-05 05:43:05 [2025-03-05 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611076', 'tblTempUsageDetail_20' ) start [2025-03-05 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611076', 'tblTempUsageDetail_20' ) end [2025-03-05 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611076', 'tblTempVendorCDR_20' ) start [2025-03-05 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611076', 'tblTempVendorCDR_20' ) end [2025-03-05 05:43:17] Production.INFO: ProcessCDR(1,14611076,1,1,2) [2025-03-05 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611076', 'tblTempUsageDetail_20' ) start [2025-03-05 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611076', 'tblTempUsageDetail_20' ) end [2025-03-05 05:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:43:20] Production.INFO: ==961== Releasing lock... [2025-03-05 05:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:43:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:44:06 [end_date_ymd] => 2025-03-05 05:44:06 [RateCDR] => 1 ) [2025-03-05 05:44: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-03-05 02:44:06' and `end` < '2025-03-05 05:44: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-03-05 05:44:18] Production.INFO: count ==114 [2025-03-05 05:44:18] Production.ERROR: pbx CDR StartTime 2025-03-05 02:44:06 - End Time 2025-03-05 05:44:06 [2025-03-05 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611081', 'tblTempUsageDetail_20' ) start [2025-03-05 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611081', 'tblTempUsageDetail_20' ) end [2025-03-05 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611081', 'tblTempVendorCDR_20' ) start [2025-03-05 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611081', 'tblTempVendorCDR_20' ) end [2025-03-05 05:44:18] Production.INFO: ProcessCDR(1,14611081,1,1,2) [2025-03-05 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611081', 'tblTempUsageDetail_20' ) start [2025-03-05 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611081', 'tblTempUsageDetail_20' ) end [2025-03-05 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:44:21] Production.INFO: ==1034== Releasing lock... [2025-03-05 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:44:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:45:05 [end_date_ymd] => 2025-03-05 05:45:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:45:05' and `end` < '2025-03-05 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-03-05 05:45:17] Production.INFO: count ==114 [2025-03-05 05:45:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:45:05 - End Time 2025-03-05 05:45:05 [2025-03-05 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611086', 'tblTempUsageDetail_20' ) start [2025-03-05 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611086', 'tblTempUsageDetail_20' ) end [2025-03-05 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611086', 'tblTempVendorCDR_20' ) start [2025-03-05 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611086', 'tblTempVendorCDR_20' ) end [2025-03-05 05:45:17] Production.INFO: ProcessCDR(1,14611086,1,1,2) [2025-03-05 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611086', 'tblTempUsageDetail_20' ) start [2025-03-05 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611086', 'tblTempUsageDetail_20' ) end [2025-03-05 05:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:45:20] Production.INFO: ==1105== Releasing lock... [2025-03-05 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:45:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:46:06 [end_date_ymd] => 2025-03-05 05:46:06 [RateCDR] => 1 ) [2025-03-05 05: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-03-05 02:46:06' and `end` < '2025-03-05 05: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-03-05 05:46:18] Production.INFO: count ==114 [2025-03-05 05:46:18] Production.ERROR: pbx CDR StartTime 2025-03-05 02:46:06 - End Time 2025-03-05 05:46:06 [2025-03-05 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611091', 'tblTempUsageDetail_20' ) start [2025-03-05 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611091', 'tblTempUsageDetail_20' ) end [2025-03-05 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611091', 'tblTempVendorCDR_20' ) start [2025-03-05 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611091', 'tblTempVendorCDR_20' ) end [2025-03-05 05:46:18] Production.INFO: ProcessCDR(1,14611091,1,1,2) [2025-03-05 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611091', 'tblTempUsageDetail_20' ) start [2025-03-05 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611091', 'tblTempUsageDetail_20' ) end [2025-03-05 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:46:21] Production.INFO: ==1186== Releasing lock... [2025-03-05 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:46:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:47:05 [end_date_ymd] => 2025-03-05 05:47:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:47:05' and `end` < '2025-03-05 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-03-05 05:47:17] Production.INFO: count ==114 [2025-03-05 05:47:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:47:05 - End Time 2025-03-05 05:47:05 [2025-03-05 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611096', 'tblTempUsageDetail_20' ) start [2025-03-05 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611096', 'tblTempUsageDetail_20' ) end [2025-03-05 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611096', 'tblTempVendorCDR_20' ) start [2025-03-05 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611096', 'tblTempVendorCDR_20' ) end [2025-03-05 05:47:17] Production.INFO: ProcessCDR(1,14611096,1,1,2) [2025-03-05 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611096', 'tblTempUsageDetail_20' ) start [2025-03-05 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611096', 'tblTempUsageDetail_20' ) end [2025-03-05 05:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:47:20] Production.INFO: ==1269== Releasing lock... [2025-03-05 05:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:47:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:48:06 [end_date_ymd] => 2025-03-05 05:48:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:48:06' and `end` < '2025-03-05 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-03-05 05:48:17] Production.INFO: count ==114 [2025-03-05 05:48:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:48:06 - End Time 2025-03-05 05:48:06 [2025-03-05 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611101', 'tblTempUsageDetail_20' ) start [2025-03-05 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611101', 'tblTempUsageDetail_20' ) end [2025-03-05 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611101', 'tblTempVendorCDR_20' ) start [2025-03-05 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611101', 'tblTempVendorCDR_20' ) end [2025-03-05 05:48:17] Production.INFO: ProcessCDR(1,14611101,1,1,2) [2025-03-05 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611101', 'tblTempUsageDetail_20' ) start [2025-03-05 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611101', 'tblTempUsageDetail_20' ) end [2025-03-05 05:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:48:20] Production.INFO: ==1348== Releasing lock... [2025-03-05 05:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:48:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:49:05 [end_date_ymd] => 2025-03-05 05:49:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:49:05' and `end` < '2025-03-05 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-03-05 05:49:16] Production.INFO: count ==114 [2025-03-05 05:49:16] Production.ERROR: pbx CDR StartTime 2025-03-05 02:49:05 - End Time 2025-03-05 05:49:05 [2025-03-05 05:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611106', 'tblTempUsageDetail_20' ) start [2025-03-05 05:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611106', 'tblTempUsageDetail_20' ) end [2025-03-05 05:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611106', 'tblTempVendorCDR_20' ) start [2025-03-05 05:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611106', 'tblTempVendorCDR_20' ) end [2025-03-05 05:49:16] Production.INFO: ProcessCDR(1,14611106,1,1,2) [2025-03-05 05:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:49:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:49:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611106', 'tblTempUsageDetail_20' ) start [2025-03-05 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611106', 'tblTempUsageDetail_20' ) end [2025-03-05 05:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:49:20] Production.INFO: ==1425== Releasing lock... [2025-03-05 05:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:49:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:50:06 [end_date_ymd] => 2025-03-05 05:50:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:50:06' and `end` < '2025-03-05 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-03-05 05:50:18] Production.INFO: count ==115 [2025-03-05 05:50:18] Production.ERROR: pbx CDR StartTime 2025-03-05 02:50:06 - End Time 2025-03-05 05:50:06 [2025-03-05 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611111', 'tblTempUsageDetail_20' ) start [2025-03-05 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611111', 'tblTempUsageDetail_20' ) end [2025-03-05 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611111', 'tblTempVendorCDR_20' ) start [2025-03-05 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611111', 'tblTempVendorCDR_20' ) end [2025-03-05 05:50:18] Production.INFO: ProcessCDR(1,14611111,1,1,2) [2025-03-05 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611111', 'tblTempUsageDetail_20' ) start [2025-03-05 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611111', 'tblTempUsageDetail_20' ) end [2025-03-05 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:50:22] Production.INFO: ==1537== Releasing lock... [2025-03-05 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:50:22] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:51:05 [end_date_ymd] => 2025-03-05 05:51:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:51:05' and `end` < '2025-03-05 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-03-05 05:51:17] Production.INFO: count ==115 [2025-03-05 05:51:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:51:05 - End Time 2025-03-05 05:51:05 [2025-03-05 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611117', 'tblTempUsageDetail_20' ) start [2025-03-05 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611117', 'tblTempUsageDetail_20' ) end [2025-03-05 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611117', 'tblTempVendorCDR_20' ) start [2025-03-05 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611117', 'tblTempVendorCDR_20' ) end [2025-03-05 05:51:17] Production.INFO: ProcessCDR(1,14611117,1,1,2) [2025-03-05 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611117', 'tblTempUsageDetail_20' ) start [2025-03-05 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611117', 'tblTempUsageDetail_20' ) end [2025-03-05 05:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:51:20] Production.INFO: ==1621== Releasing lock... [2025-03-05 05:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:51:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:52:05 [end_date_ymd] => 2025-03-05 05:52:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:52:05' and `end` < '2025-03-05 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-03-05 05:52:17] Production.INFO: count ==115 [2025-03-05 05:52:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:52:05 - End Time 2025-03-05 05:52:05 [2025-03-05 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611122', 'tblTempUsageDetail_20' ) start [2025-03-05 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611122', 'tblTempUsageDetail_20' ) end [2025-03-05 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611122', 'tblTempVendorCDR_20' ) start [2025-03-05 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611122', 'tblTempVendorCDR_20' ) end [2025-03-05 05:52:17] Production.INFO: ProcessCDR(1,14611122,1,1,2) [2025-03-05 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611122', 'tblTempUsageDetail_20' ) start [2025-03-05 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611122', 'tblTempUsageDetail_20' ) end [2025-03-05 05:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:52:20] Production.INFO: ==1701== Releasing lock... [2025-03-05 05:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:52:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:53:06 [end_date_ymd] => 2025-03-05 05:53:06 [RateCDR] => 1 ) [2025-03-05 05: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-03-05 02:53:06' and `end` < '2025-03-05 05: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-03-05 05:53:18] Production.INFO: count ==119 [2025-03-05 05:53:18] Production.ERROR: pbx CDR StartTime 2025-03-05 02:53:06 - End Time 2025-03-05 05:53:06 [2025-03-05 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611127', 'tblTempUsageDetail_20' ) start [2025-03-05 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611127', 'tblTempUsageDetail_20' ) end [2025-03-05 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611127', 'tblTempVendorCDR_20' ) start [2025-03-05 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611127', 'tblTempVendorCDR_20' ) end [2025-03-05 05:53:18] Production.INFO: ProcessCDR(1,14611127,1,1,2) [2025-03-05 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611127', 'tblTempUsageDetail_20' ) start [2025-03-05 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611127', 'tblTempUsageDetail_20' ) end [2025-03-05 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:53:21] Production.INFO: ==1773== Releasing lock... [2025-03-05 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:53:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:54:05 [end_date_ymd] => 2025-03-05 05:54:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:54:05' and `end` < '2025-03-05 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-03-05 05:54:17] Production.INFO: count ==119 [2025-03-05 05:54:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:54:05 - End Time 2025-03-05 05:54:05 [2025-03-05 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611132', 'tblTempUsageDetail_20' ) start [2025-03-05 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611132', 'tblTempUsageDetail_20' ) end [2025-03-05 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611132', 'tblTempVendorCDR_20' ) start [2025-03-05 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611132', 'tblTempVendorCDR_20' ) end [2025-03-05 05:54:17] Production.INFO: ProcessCDR(1,14611132,1,1,2) [2025-03-05 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611132', 'tblTempUsageDetail_20' ) start [2025-03-05 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611132', 'tblTempUsageDetail_20' ) end [2025-03-05 05:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:54:20] Production.INFO: ==1856== Releasing lock... [2025-03-05 05:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:54:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:55:06 [end_date_ymd] => 2025-03-05 05:55:06 [RateCDR] => 1 ) [2025-03-05 05:55: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-03-05 02:55:06' and `end` < '2025-03-05 05:55: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-03-05 05:55:18] Production.INFO: count ==119 [2025-03-05 05:55:18] Production.ERROR: pbx CDR StartTime 2025-03-05 02:55:06 - End Time 2025-03-05 05:55:06 [2025-03-05 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611137', 'tblTempUsageDetail_20' ) start [2025-03-05 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611137', 'tblTempUsageDetail_20' ) end [2025-03-05 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611137', 'tblTempVendorCDR_20' ) start [2025-03-05 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611137', 'tblTempVendorCDR_20' ) end [2025-03-05 05:55:18] Production.INFO: ProcessCDR(1,14611137,1,1,2) [2025-03-05 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611137', 'tblTempUsageDetail_20' ) start [2025-03-05 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611137', 'tblTempUsageDetail_20' ) end [2025-03-05 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:55:21] Production.INFO: ==1927== Releasing lock... [2025-03-05 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:55:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:56:05 [end_date_ymd] => 2025-03-05 05:56:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:56:05' and `end` < '2025-03-05 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-03-05 05:56:17] Production.INFO: count ==120 [2025-03-05 05:56:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:56:05 - End Time 2025-03-05 05:56:05 [2025-03-05 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611142', 'tblTempUsageDetail_20' ) start [2025-03-05 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611142', 'tblTempUsageDetail_20' ) end [2025-03-05 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611142', 'tblTempVendorCDR_20' ) start [2025-03-05 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611142', 'tblTempVendorCDR_20' ) end [2025-03-05 05:56:17] Production.INFO: ProcessCDR(1,14611142,1,1,2) [2025-03-05 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611142', 'tblTempUsageDetail_20' ) start [2025-03-05 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611142', 'tblTempUsageDetail_20' ) end [2025-03-05 05:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:56:20] Production.INFO: ==2000== Releasing lock... [2025-03-05 05:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:56:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:57:05 [end_date_ymd] => 2025-03-05 05:57:05 [RateCDR] => 1 ) [2025-03-05 05: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-03-05 02:57:05' and `end` < '2025-03-05 05: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-03-05 05:57:17] Production.INFO: count ==123 [2025-03-05 05:57:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:57:05 - End Time 2025-03-05 05:57:05 [2025-03-05 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611147', 'tblTempUsageDetail_20' ) start [2025-03-05 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611147', 'tblTempUsageDetail_20' ) end [2025-03-05 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611147', 'tblTempVendorCDR_20' ) start [2025-03-05 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611147', 'tblTempVendorCDR_20' ) end [2025-03-05 05:57:17] Production.INFO: ProcessCDR(1,14611147,1,1,2) [2025-03-05 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611147', 'tblTempUsageDetail_20' ) start [2025-03-05 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611147', 'tblTempUsageDetail_20' ) end [2025-03-05 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:57:21] Production.INFO: ==2070== Releasing lock... [2025-03-05 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:57:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:58:05 [end_date_ymd] => 2025-03-05 05:58:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 02:58:05' and `end` < '2025-03-05 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-03-05 05:58:17] Production.INFO: count ==124 [2025-03-05 05:58:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:58:05 - End Time 2025-03-05 05:58:05 [2025-03-05 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611152', 'tblTempUsageDetail_20' ) start [2025-03-05 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611152', 'tblTempUsageDetail_20' ) end [2025-03-05 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611152', 'tblTempVendorCDR_20' ) start [2025-03-05 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611152', 'tblTempVendorCDR_20' ) end [2025-03-05 05:58:17] Production.INFO: ProcessCDR(1,14611152,1,1,2) [2025-03-05 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611152', 'tblTempUsageDetail_20' ) start [2025-03-05 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611152', 'tblTempUsageDetail_20' ) end [2025-03-05 05:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:58:22] Production.INFO: ==2144== Releasing lock... [2025-03-05 05:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:58:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 02:59:05 [end_date_ymd] => 2025-03-05 05:59:05 [RateCDR] => 1 ) [2025-03-05 05: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-03-05 02:59:05' and `end` < '2025-03-05 05: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-03-05 05:59:17] Production.INFO: count ==124 [2025-03-05 05:59:17] Production.ERROR: pbx CDR StartTime 2025-03-05 02:59:05 - End Time 2025-03-05 05:59:05 [2025-03-05 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611157', 'tblTempUsageDetail_20' ) start [2025-03-05 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611157', 'tblTempUsageDetail_20' ) end [2025-03-05 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611157', 'tblTempVendorCDR_20' ) start [2025-03-05 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611157', 'tblTempVendorCDR_20' ) end [2025-03-05 05:59:17] Production.INFO: ProcessCDR(1,14611157,1,1,2) [2025-03-05 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611157', 'tblTempUsageDetail_20' ) start [2025-03-05 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611157', 'tblTempUsageDetail_20' ) end [2025-03-05 05:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 05:59:21] Production.INFO: ==2263== Releasing lock... [2025-03-05 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 05:59:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 06:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:00:05 [end_date_ymd] => 2025-03-05 06:00:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 03:00:05' and `end` < '2025-03-05 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-03-05 06:00:17] Production.INFO: count ==124 [2025-03-05 06:00:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:00:05 - End Time 2025-03-05 06:00:05 [2025-03-05 06:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611163', 'tblTempUsageDetail_20' ) start [2025-03-05 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611163', 'tblTempUsageDetail_20' ) end [2025-03-05 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611163', 'tblTempVendorCDR_20' ) start [2025-03-05 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611163', 'tblTempVendorCDR_20' ) end [2025-03-05 06:00:17] Production.INFO: ProcessCDR(1,14611163,1,1,2) [2025-03-05 06:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611163', 'tblTempUsageDetail_20' ) start [2025-03-05 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611163', 'tblTempUsageDetail_20' ) end [2025-03-05 06:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:00:21] Production.INFO: ==2336== Releasing lock... [2025-03-05 06:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:00:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 06:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:01:06 [end_date_ymd] => 2025-03-05 06:01:06 [RateCDR] => 1 ) [2025-03-05 06: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-03-05 03:01:06' and `end` < '2025-03-05 06: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-03-05 06:01:18] Production.INFO: count ==120 [2025-03-05 06:01:18] Production.ERROR: pbx CDR StartTime 2025-03-05 03:01:06 - End Time 2025-03-05 06:01:06 [2025-03-05 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611168', 'tblTempUsageDetail_20' ) start [2025-03-05 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611168', 'tblTempUsageDetail_20' ) end [2025-03-05 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611168', 'tblTempVendorCDR_20' ) start [2025-03-05 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611168', 'tblTempVendorCDR_20' ) end [2025-03-05 06:01:18] Production.INFO: ProcessCDR(1,14611168,1,1,2) [2025-03-05 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611168', 'tblTempUsageDetail_20' ) start [2025-03-05 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611168', 'tblTempUsageDetail_20' ) end [2025-03-05 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:01:21] Production.INFO: ==2427== Releasing lock... [2025-03-05 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:01:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:02:05 [end_date_ymd] => 2025-03-05 06:02:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 03:02:05' and `end` < '2025-03-05 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-03-05 06:02:17] Production.INFO: count ==120 [2025-03-05 06:02:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:02:05 - End Time 2025-03-05 06:02:05 [2025-03-05 06:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611173', 'tblTempUsageDetail_20' ) start [2025-03-05 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611173', 'tblTempUsageDetail_20' ) end [2025-03-05 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611173', 'tblTempVendorCDR_20' ) start [2025-03-05 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611173', 'tblTempVendorCDR_20' ) end [2025-03-05 06:02:17] Production.INFO: ProcessCDR(1,14611173,1,1,2) [2025-03-05 06:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611173', 'tblTempUsageDetail_20' ) start [2025-03-05 06:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611173', 'tblTempUsageDetail_20' ) end [2025-03-05 06:02:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:02:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:02:20] Production.INFO: ==2498== Releasing lock... [2025-03-05 06:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:02:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:03:05 [end_date_ymd] => 2025-03-05 06:03:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 03:03:05' and `end` < '2025-03-05 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-03-05 06:03:17] Production.INFO: count ==120 [2025-03-05 06:03:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:03:05 - End Time 2025-03-05 06:03:05 [2025-03-05 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611178', 'tblTempUsageDetail_20' ) start [2025-03-05 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611178', 'tblTempUsageDetail_20' ) end [2025-03-05 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611178', 'tblTempVendorCDR_20' ) start [2025-03-05 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611178', 'tblTempVendorCDR_20' ) end [2025-03-05 06:03:17] Production.INFO: ProcessCDR(1,14611178,1,1,2) [2025-03-05 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611178', 'tblTempUsageDetail_20' ) start [2025-03-05 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611178', 'tblTempUsageDetail_20' ) end [2025-03-05 06:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:03:20] Production.INFO: ==2571== Releasing lock... [2025-03-05 06:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:03:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 06:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:04:04 [end_date_ymd] => 2025-03-05 06:04:04 [RateCDR] => 1 ) [2025-03-05 06: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-03-05 03:04:04' and `end` < '2025-03-05 06: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-03-05 06:04:16] Production.INFO: count ==120 [2025-03-05 06:04:16] Production.ERROR: pbx CDR StartTime 2025-03-05 03:04:04 - End Time 2025-03-05 06:04:04 [2025-03-05 06:04:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611183', 'tblTempUsageDetail_20' ) start [2025-03-05 06:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611183', 'tblTempUsageDetail_20' ) end [2025-03-05 06:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611183', 'tblTempVendorCDR_20' ) start [2025-03-05 06:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611183', 'tblTempVendorCDR_20' ) end [2025-03-05 06:04:16] Production.INFO: ProcessCDR(1,14611183,1,1,2) [2025-03-05 06:04:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:04:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:04:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:04:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:04:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611183', 'tblTempUsageDetail_20' ) start [2025-03-05 06:04:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611183', 'tblTempUsageDetail_20' ) end [2025-03-05 06:04:19] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:04:19] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:04:19] Production.INFO: ==2645== Releasing lock... [2025-03-05 06:04:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:04:19] Production.INFO: 28.25 MB #Memory Used# [2025-03-05 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:05:05 [end_date_ymd] => 2025-03-05 06:05:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 03:05:05' and `end` < '2025-03-05 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-03-05 06:05:17] Production.INFO: count ==128 [2025-03-05 06:05:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:05:05 - End Time 2025-03-05 06:05:05 [2025-03-05 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611188', 'tblTempUsageDetail_20' ) start [2025-03-05 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611188', 'tblTempUsageDetail_20' ) end [2025-03-05 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611188', 'tblTempVendorCDR_20' ) start [2025-03-05 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611188', 'tblTempVendorCDR_20' ) end [2025-03-05 06:05:17] Production.INFO: ProcessCDR(1,14611188,1,1,2) [2025-03-05 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611188', 'tblTempUsageDetail_20' ) start [2025-03-05 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611188', 'tblTempUsageDetail_20' ) end [2025-03-05 06:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:05:20] Production.INFO: ==2720== Releasing lock... [2025-03-05 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:05:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 06:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:06:06 [end_date_ymd] => 2025-03-05 06:06:06 [RateCDR] => 1 ) [2025-03-05 06:06: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-03-05 03:06:06' and `end` < '2025-03-05 06:06: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-03-05 06:06:18] Production.INFO: count ==128 [2025-03-05 06:06:18] Production.ERROR: pbx CDR StartTime 2025-03-05 03:06:06 - End Time 2025-03-05 06:06:06 [2025-03-05 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611193', 'tblTempUsageDetail_20' ) start [2025-03-05 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611193', 'tblTempUsageDetail_20' ) end [2025-03-05 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611193', 'tblTempVendorCDR_20' ) start [2025-03-05 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611193', 'tblTempVendorCDR_20' ) end [2025-03-05 06:06:18] Production.INFO: ProcessCDR(1,14611193,1,1,2) [2025-03-05 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611193', 'tblTempUsageDetail_20' ) start [2025-03-05 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611193', 'tblTempUsageDetail_20' ) end [2025-03-05 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:06:21] Production.INFO: ==2792== Releasing lock... [2025-03-05 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:06:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:07:05 [end_date_ymd] => 2025-03-05 06:07:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 03:07:05' and `end` < '2025-03-05 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-03-05 06:07:17] Production.INFO: count ==129 [2025-03-05 06:07:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:07:05 - End Time 2025-03-05 06:07:05 [2025-03-05 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611198', 'tblTempUsageDetail_20' ) start [2025-03-05 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611198', 'tblTempUsageDetail_20' ) end [2025-03-05 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611198', 'tblTempVendorCDR_20' ) start [2025-03-05 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611198', 'tblTempVendorCDR_20' ) end [2025-03-05 06:07:17] Production.INFO: ProcessCDR(1,14611198,1,1,2) [2025-03-05 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611198', 'tblTempUsageDetail_20' ) start [2025-03-05 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611198', 'tblTempUsageDetail_20' ) end [2025-03-05 06:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:07:22] Production.INFO: ==2865== Releasing lock... [2025-03-05 06:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:07:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:08:05 [end_date_ymd] => 2025-03-05 06:08:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 03:08:05' and `end` < '2025-03-05 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-03-05 06:08:17] Production.INFO: count ==128 [2025-03-05 06:08:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:08:05 - End Time 2025-03-05 06:08:05 [2025-03-05 06:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611203', 'tblTempUsageDetail_20' ) start [2025-03-05 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611203', 'tblTempUsageDetail_20' ) end [2025-03-05 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611203', 'tblTempVendorCDR_20' ) start [2025-03-05 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611203', 'tblTempVendorCDR_20' ) end [2025-03-05 06:08:17] Production.INFO: ProcessCDR(1,14611203,1,1,2) [2025-03-05 06:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611203', 'tblTempUsageDetail_20' ) start [2025-03-05 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611203', 'tblTempUsageDetail_20' ) end [2025-03-05 06:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:08:20] Production.INFO: ==2940== Releasing lock... [2025-03-05 06:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:08:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:09:05 [end_date_ymd] => 2025-03-05 06:09:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 03:09:05' and `end` < '2025-03-05 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-03-05 06:09:17] Production.INFO: count ==128 [2025-03-05 06:09:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:09:05 - End Time 2025-03-05 06:09:05 [2025-03-05 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611208', 'tblTempUsageDetail_20' ) start [2025-03-05 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611208', 'tblTempUsageDetail_20' ) end [2025-03-05 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611208', 'tblTempVendorCDR_20' ) start [2025-03-05 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611208', 'tblTempVendorCDR_20' ) end [2025-03-05 06:09:17] Production.INFO: ProcessCDR(1,14611208,1,1,2) [2025-03-05 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611208', 'tblTempUsageDetail_20' ) start [2025-03-05 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611208', 'tblTempUsageDetail_20' ) end [2025-03-05 06:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:09:20] Production.INFO: ==3024== Releasing lock... [2025-03-05 06:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:09:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:10:06 [end_date_ymd] => 2025-03-05 06:10:06 [RateCDR] => 1 ) [2025-03-05 06: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-03-05 03:10:06' and `end` < '2025-03-05 06: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-03-05 06:10:18] Production.INFO: count ==130 [2025-03-05 06:10:18] Production.ERROR: pbx CDR StartTime 2025-03-05 03:10:06 - End Time 2025-03-05 06:10:06 [2025-03-05 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611213', 'tblTempUsageDetail_20' ) start [2025-03-05 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611213', 'tblTempUsageDetail_20' ) end [2025-03-05 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611213', 'tblTempVendorCDR_20' ) start [2025-03-05 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611213', 'tblTempVendorCDR_20' ) end [2025-03-05 06:10:18] Production.INFO: ProcessCDR(1,14611213,1,1,2) [2025-03-05 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611213', 'tblTempUsageDetail_20' ) start [2025-03-05 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611213', 'tblTempUsageDetail_20' ) end [2025-03-05 06:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:10:21] Production.INFO: ==3105== Releasing lock... [2025-03-05 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:10:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:11:05 [end_date_ymd] => 2025-03-05 06:11:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 03:11:05' and `end` < '2025-03-05 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-03-05 06:11:17] Production.INFO: count ==130 [2025-03-05 06:11:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:11:05 - End Time 2025-03-05 06:11:05 [2025-03-05 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611219', 'tblTempUsageDetail_20' ) start [2025-03-05 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611219', 'tblTempUsageDetail_20' ) end [2025-03-05 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611219', 'tblTempVendorCDR_20' ) start [2025-03-05 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611219', 'tblTempVendorCDR_20' ) end [2025-03-05 06:11:17] Production.INFO: ProcessCDR(1,14611219,1,1,2) [2025-03-05 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611219', 'tblTempUsageDetail_20' ) start [2025-03-05 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611219', 'tblTempUsageDetail_20' ) end [2025-03-05 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:11:21] Production.INFO: ==3181== Releasing lock... [2025-03-05 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:11:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 06:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:12:06 [end_date_ymd] => 2025-03-05 06:12:06 [RateCDR] => 1 ) [2025-03-05 06:12: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-03-05 03:12:06' and `end` < '2025-03-05 06:12: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-03-05 06:12:18] Production.INFO: count ==130 [2025-03-05 06:12:18] Production.ERROR: pbx CDR StartTime 2025-03-05 03:12:06 - End Time 2025-03-05 06:12:06 [2025-03-05 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611224', 'tblTempUsageDetail_20' ) start [2025-03-05 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611224', 'tblTempUsageDetail_20' ) end [2025-03-05 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611224', 'tblTempVendorCDR_20' ) start [2025-03-05 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611224', 'tblTempVendorCDR_20' ) end [2025-03-05 06:12:18] Production.INFO: ProcessCDR(1,14611224,1,1,2) [2025-03-05 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611224', 'tblTempUsageDetail_20' ) start [2025-03-05 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611224', 'tblTempUsageDetail_20' ) end [2025-03-05 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:12:21] Production.INFO: ==3262== Releasing lock... [2025-03-05 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:12:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:13:05 [end_date_ymd] => 2025-03-05 06:13:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 03:13:05' and `end` < '2025-03-05 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-03-05 06:13:17] Production.INFO: count ==130 [2025-03-05 06:13:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:13:05 - End Time 2025-03-05 06:13:05 [2025-03-05 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611229', 'tblTempUsageDetail_20' ) start [2025-03-05 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611229', 'tblTempUsageDetail_20' ) end [2025-03-05 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611229', 'tblTempVendorCDR_20' ) start [2025-03-05 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611229', 'tblTempVendorCDR_20' ) end [2025-03-05 06:13:17] Production.INFO: ProcessCDR(1,14611229,1,1,2) [2025-03-05 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611229', 'tblTempUsageDetail_20' ) start [2025-03-05 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611229', 'tblTempUsageDetail_20' ) end [2025-03-05 06:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:13:20] Production.INFO: ==3336== Releasing lock... [2025-03-05 06:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:13:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-05 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:14:05 [end_date_ymd] => 2025-03-05 06:14:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 03:14:05' and `end` < '2025-03-05 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-03-05 06:14:17] Production.INFO: count ==130 [2025-03-05 06:14:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:14:05 - End Time 2025-03-05 06:14:05 [2025-03-05 06:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611234', 'tblTempUsageDetail_20' ) start [2025-03-05 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611234', 'tblTempUsageDetail_20' ) end [2025-03-05 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611234', 'tblTempVendorCDR_20' ) start [2025-03-05 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611234', 'tblTempVendorCDR_20' ) end [2025-03-05 06:14:17] Production.INFO: ProcessCDR(1,14611234,1,1,2) [2025-03-05 06:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611234', 'tblTempUsageDetail_20' ) start [2025-03-05 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611234', 'tblTempUsageDetail_20' ) end [2025-03-05 06:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:14:20] Production.INFO: ==3447== Releasing lock... [2025-03-05 06:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:14:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 06:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:15:06 [end_date_ymd] => 2025-03-05 06:15:06 [RateCDR] => 1 ) [2025-03-05 06: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-03-05 03:15:06' and `end` < '2025-03-05 06: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-03-05 06:15:17] Production.INFO: count ==130 [2025-03-05 06:15:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:15:06 - End Time 2025-03-05 06:15:06 [2025-03-05 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611239', 'tblTempUsageDetail_20' ) start [2025-03-05 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611239', 'tblTempUsageDetail_20' ) end [2025-03-05 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611239', 'tblTempVendorCDR_20' ) start [2025-03-05 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611239', 'tblTempVendorCDR_20' ) end [2025-03-05 06:15:17] Production.INFO: ProcessCDR(1,14611239,1,1,2) [2025-03-05 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611239', 'tblTempUsageDetail_20' ) start [2025-03-05 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611239', 'tblTempUsageDetail_20' ) end [2025-03-05 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:15:21] Production.INFO: ==3521== Releasing lock... [2025-03-05 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:15:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:16:05 [end_date_ymd] => 2025-03-05 06:16:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 03:16:05' and `end` < '2025-03-05 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-03-05 06:16:17] Production.INFO: count ==134 [2025-03-05 06:16:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:16:05 - End Time 2025-03-05 06:16:05 [2025-03-05 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611244', 'tblTempUsageDetail_20' ) start [2025-03-05 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611244', 'tblTempUsageDetail_20' ) end [2025-03-05 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611244', 'tblTempVendorCDR_20' ) start [2025-03-05 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611244', 'tblTempVendorCDR_20' ) end [2025-03-05 06:16:17] Production.INFO: ProcessCDR(1,14611244,1,1,2) [2025-03-05 06:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611244', 'tblTempUsageDetail_20' ) start [2025-03-05 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611244', 'tblTempUsageDetail_20' ) end [2025-03-05 06:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:16:20] Production.INFO: ==3600== Releasing lock... [2025-03-05 06:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:16:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-05 06:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:17:06 [end_date_ymd] => 2025-03-05 06:17:06 [RateCDR] => 1 ) [2025-03-05 06: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-03-05 03:17:06' and `end` < '2025-03-05 06: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-03-05 06:17:18] Production.INFO: count ==138 [2025-03-05 06:17:18] Production.ERROR: pbx CDR StartTime 2025-03-05 03:17:06 - End Time 2025-03-05 06:17:06 [2025-03-05 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611249', 'tblTempUsageDetail_20' ) start [2025-03-05 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611249', 'tblTempUsageDetail_20' ) end [2025-03-05 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611249', 'tblTempVendorCDR_20' ) start [2025-03-05 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611249', 'tblTempVendorCDR_20' ) end [2025-03-05 06:17:18] Production.INFO: ProcessCDR(1,14611249,1,1,2) [2025-03-05 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611249', 'tblTempUsageDetail_20' ) start [2025-03-05 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611249', 'tblTempUsageDetail_20' ) end [2025-03-05 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:17:21] Production.INFO: ==3671== Releasing lock... [2025-03-05 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:17:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-05 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:18:05 [end_date_ymd] => 2025-03-05 06:18:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 03:18:05' and `end` < '2025-03-05 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-03-05 06:18:17] Production.INFO: count ==138 [2025-03-05 06:18:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:18:05 - End Time 2025-03-05 06:18:05 [2025-03-05 06:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611254', 'tblTempUsageDetail_20' ) start [2025-03-05 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611254', 'tblTempUsageDetail_20' ) end [2025-03-05 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611254', 'tblTempVendorCDR_20' ) start [2025-03-05 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611254', 'tblTempVendorCDR_20' ) end [2025-03-05 06:18:17] Production.INFO: ProcessCDR(1,14611254,1,1,2) [2025-03-05 06:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611254', 'tblTempUsageDetail_20' ) start [2025-03-05 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611254', 'tblTempUsageDetail_20' ) end [2025-03-05 06:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:18:20] Production.INFO: ==3751== Releasing lock... [2025-03-05 06:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:18:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-05 06:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:19:06 [end_date_ymd] => 2025-03-05 06:19:06 [RateCDR] => 1 ) [2025-03-05 06:19: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-03-05 03:19:06' and `end` < '2025-03-05 06:19: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-03-05 06:19:18] Production.INFO: count ==138 [2025-03-05 06:19:18] Production.ERROR: pbx CDR StartTime 2025-03-05 03:19:06 - End Time 2025-03-05 06:19:06 [2025-03-05 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611259', 'tblTempUsageDetail_20' ) start [2025-03-05 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611259', 'tblTempUsageDetail_20' ) end [2025-03-05 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611259', 'tblTempVendorCDR_20' ) start [2025-03-05 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611259', 'tblTempVendorCDR_20' ) end [2025-03-05 06:19:18] Production.INFO: ProcessCDR(1,14611259,1,1,2) [2025-03-05 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611259', 'tblTempUsageDetail_20' ) start [2025-03-05 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611259', 'tblTempUsageDetail_20' ) end [2025-03-05 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:19:21] Production.INFO: ==3823== Releasing lock... [2025-03-05 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:19:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-05 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:20:05 [end_date_ymd] => 2025-03-05 06:20:05 [RateCDR] => 1 ) [2025-03-05 06: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-03-05 03:20:05' and `end` < '2025-03-05 06: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-03-05 06:20:17] Production.INFO: count ==138 [2025-03-05 06:20:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:20:05 - End Time 2025-03-05 06:20:05 [2025-03-05 06:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611265', 'tblTempUsageDetail_20' ) start [2025-03-05 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611265', 'tblTempUsageDetail_20' ) end [2025-03-05 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611265', 'tblTempVendorCDR_20' ) start [2025-03-05 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611265', 'tblTempVendorCDR_20' ) end [2025-03-05 06:20:17] Production.INFO: ProcessCDR(1,14611265,1,1,2) [2025-03-05 06:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611265', 'tblTempUsageDetail_20' ) start [2025-03-05 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611265', 'tblTempUsageDetail_20' ) end [2025-03-05 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:20:21] Production.INFO: ==3896== Releasing lock... [2025-03-05 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:20:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-05 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:21:05 [end_date_ymd] => 2025-03-05 06:21:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 03:21:05' and `end` < '2025-03-05 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-03-05 06:21:17] Production.INFO: count ==142 [2025-03-05 06:21:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:21:05 - End Time 2025-03-05 06:21:05 [2025-03-05 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611270', 'tblTempUsageDetail_20' ) start [2025-03-05 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611270', 'tblTempUsageDetail_20' ) end [2025-03-05 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611270', 'tblTempVendorCDR_20' ) start [2025-03-05 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611270', 'tblTempVendorCDR_20' ) end [2025-03-05 06:21:17] Production.INFO: ProcessCDR(1,14611270,1,1,2) [2025-03-05 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611270', 'tblTempUsageDetail_20' ) start [2025-03-05 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611270', 'tblTempUsageDetail_20' ) end [2025-03-05 06:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:21:20] Production.INFO: ==3970== Releasing lock... [2025-03-05 06:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:21:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-05 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:22:05 [end_date_ymd] => 2025-03-05 06:22:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 03:22:05' and `end` < '2025-03-05 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-03-05 06:22:17] Production.INFO: count ==142 [2025-03-05 06:22:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:22:05 - End Time 2025-03-05 06:22:05 [2025-03-05 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611275', 'tblTempUsageDetail_20' ) start [2025-03-05 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611275', 'tblTempUsageDetail_20' ) end [2025-03-05 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611275', 'tblTempVendorCDR_20' ) start [2025-03-05 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611275', 'tblTempVendorCDR_20' ) end [2025-03-05 06:22:17] Production.INFO: ProcessCDR(1,14611275,1,1,2) [2025-03-05 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611275', 'tblTempUsageDetail_20' ) start [2025-03-05 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611275', 'tblTempUsageDetail_20' ) end [2025-03-05 06:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:22:20] Production.INFO: ==4042== Releasing lock... [2025-03-05 06:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:22:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-05 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:23:05 [end_date_ymd] => 2025-03-05 06:23:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 03:23:05' and `end` < '2025-03-05 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-03-05 06:23:17] Production.INFO: count ==142 [2025-03-05 06:23:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:23:05 - End Time 2025-03-05 06:23:05 [2025-03-05 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611280', 'tblTempUsageDetail_20' ) start [2025-03-05 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611280', 'tblTempUsageDetail_20' ) end [2025-03-05 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611280', 'tblTempVendorCDR_20' ) start [2025-03-05 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611280', 'tblTempVendorCDR_20' ) end [2025-03-05 06:23:17] Production.INFO: ProcessCDR(1,14611280,1,1,2) [2025-03-05 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611280', 'tblTempUsageDetail_20' ) start [2025-03-05 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611280', 'tblTempUsageDetail_20' ) end [2025-03-05 06:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:23:20] Production.INFO: ==4116== Releasing lock... [2025-03-05 06:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:23:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-05 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:24:05 [end_date_ymd] => 2025-03-05 06:24:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 03:24:05' and `end` < '2025-03-05 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-03-05 06:24:17] Production.INFO: count ==146 [2025-03-05 06:24:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:24:05 - End Time 2025-03-05 06:24:05 [2025-03-05 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611285', 'tblTempUsageDetail_20' ) start [2025-03-05 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611285', 'tblTempUsageDetail_20' ) end [2025-03-05 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611285', 'tblTempVendorCDR_20' ) start [2025-03-05 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611285', 'tblTempVendorCDR_20' ) end [2025-03-05 06:24:17] Production.INFO: ProcessCDR(1,14611285,1,1,2) [2025-03-05 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611285', 'tblTempUsageDetail_20' ) start [2025-03-05 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611285', 'tblTempUsageDetail_20' ) end [2025-03-05 06:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:24:20] Production.INFO: ==4189== Releasing lock... [2025-03-05 06:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:24:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-05 06:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:25:04 [end_date_ymd] => 2025-03-05 06:25:04 [RateCDR] => 1 ) [2025-03-05 06: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-03-05 03:25:04' and `end` < '2025-03-05 06: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-03-05 06:25:16] Production.INFO: count ==146 [2025-03-05 06:25:16] Production.ERROR: pbx CDR StartTime 2025-03-05 03:25:04 - End Time 2025-03-05 06:25:04 [2025-03-05 06:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611290', 'tblTempUsageDetail_20' ) start [2025-03-05 06:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611290', 'tblTempUsageDetail_20' ) end [2025-03-05 06:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611290', 'tblTempVendorCDR_20' ) start [2025-03-05 06:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611290', 'tblTempVendorCDR_20' ) end [2025-03-05 06:25:16] Production.INFO: ProcessCDR(1,14611290,1,1,2) [2025-03-05 06:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:25:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611290', 'tblTempUsageDetail_20' ) start [2025-03-05 06:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611290', 'tblTempUsageDetail_20' ) end [2025-03-05 06:25:19] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:25:19] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:25:19] Production.INFO: ==4260== Releasing lock... [2025-03-05 06:25:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:25:19] Production.INFO: 28.75 MB #Memory Used# [2025-03-05 06:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:26:06 [end_date_ymd] => 2025-03-05 06:26:06 [RateCDR] => 1 ) [2025-03-05 06: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-03-05 03:26:06' and `end` < '2025-03-05 06: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-03-05 06:26:18] Production.INFO: count ==146 [2025-03-05 06:26:18] Production.ERROR: pbx CDR StartTime 2025-03-05 03:26:06 - End Time 2025-03-05 06:26:06 [2025-03-05 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611295', 'tblTempUsageDetail_20' ) start [2025-03-05 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611295', 'tblTempUsageDetail_20' ) end [2025-03-05 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611295', 'tblTempVendorCDR_20' ) start [2025-03-05 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611295', 'tblTempVendorCDR_20' ) end [2025-03-05 06:26:18] Production.INFO: ProcessCDR(1,14611295,1,1,2) [2025-03-05 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611295', 'tblTempUsageDetail_20' ) start [2025-03-05 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611295', 'tblTempUsageDetail_20' ) end [2025-03-05 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:26:21] Production.INFO: ==4332== Releasing lock... [2025-03-05 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:26:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-05 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:27:05 [end_date_ymd] => 2025-03-05 06:27:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 03:27:05' and `end` < '2025-03-05 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-03-05 06:27:16] Production.INFO: count ==148 [2025-03-05 06:27:16] Production.ERROR: pbx CDR StartTime 2025-03-05 03:27:05 - End Time 2025-03-05 06:27:05 [2025-03-05 06:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611300', 'tblTempUsageDetail_20' ) start [2025-03-05 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611300', 'tblTempUsageDetail_20' ) end [2025-03-05 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611300', 'tblTempVendorCDR_20' ) start [2025-03-05 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611300', 'tblTempVendorCDR_20' ) end [2025-03-05 06:27:16] Production.INFO: ProcessCDR(1,14611300,1,1,2) [2025-03-05 06:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611300', 'tblTempUsageDetail_20' ) start [2025-03-05 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611300', 'tblTempUsageDetail_20' ) end [2025-03-05 06:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:27:20] Production.INFO: ==4406== Releasing lock... [2025-03-05 06:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:27:20] Production.INFO: 29 MB #Memory Used# [2025-03-05 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:28:05 [end_date_ymd] => 2025-03-05 06:28:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 03:28:05' and `end` < '2025-03-05 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-03-05 06:28:17] Production.INFO: count ==148 [2025-03-05 06:28:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:28:05 - End Time 2025-03-05 06:28:05 [2025-03-05 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611305', 'tblTempUsageDetail_20' ) start [2025-03-05 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611305', 'tblTempUsageDetail_20' ) end [2025-03-05 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611305', 'tblTempVendorCDR_20' ) start [2025-03-05 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611305', 'tblTempVendorCDR_20' ) end [2025-03-05 06:28:17] Production.INFO: ProcessCDR(1,14611305,1,1,2) [2025-03-05 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611305', 'tblTempUsageDetail_20' ) start [2025-03-05 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611305', 'tblTempUsageDetail_20' ) end [2025-03-05 06:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:28:20] Production.INFO: ==4481== Releasing lock... [2025-03-05 06:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:28:20] Production.INFO: 29 MB #Memory Used# [2025-03-05 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:29:05 [end_date_ymd] => 2025-03-05 06:29:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 03:29:05' and `end` < '2025-03-05 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-03-05 06:29:17] Production.INFO: count ==148 [2025-03-05 06:29:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:29:05 - End Time 2025-03-05 06:29:05 [2025-03-05 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611310', 'tblTempUsageDetail_20' ) start [2025-03-05 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611310', 'tblTempUsageDetail_20' ) end [2025-03-05 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611310', 'tblTempVendorCDR_20' ) start [2025-03-05 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611310', 'tblTempVendorCDR_20' ) end [2025-03-05 06:29:17] Production.INFO: ProcessCDR(1,14611310,1,1,2) [2025-03-05 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611310', 'tblTempUsageDetail_20' ) start [2025-03-05 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611310', 'tblTempUsageDetail_20' ) end [2025-03-05 06:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:29:20] Production.INFO: ==4567== Releasing lock... [2025-03-05 06:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:29:20] Production.INFO: 29 MB #Memory Used# [2025-03-05 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:30:06 [end_date_ymd] => 2025-03-05 06:30:06 [RateCDR] => 1 ) [2025-03-05 06: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-03-05 03:30:06' and `end` < '2025-03-05 06: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-03-05 06:30:18] Production.INFO: count ==154 [2025-03-05 06:30:18] Production.ERROR: pbx CDR StartTime 2025-03-05 03:30:06 - End Time 2025-03-05 06:30:06 [2025-03-05 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611316', 'tblTempUsageDetail_20' ) start [2025-03-05 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611316', 'tblTempUsageDetail_20' ) end [2025-03-05 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611316', 'tblTempVendorCDR_20' ) start [2025-03-05 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611316', 'tblTempVendorCDR_20' ) end [2025-03-05 06:30:18] Production.INFO: ProcessCDR(1,14611316,1,1,2) [2025-03-05 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611316', 'tblTempUsageDetail_20' ) start [2025-03-05 06:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611316', 'tblTempUsageDetail_20' ) end [2025-03-05 06:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:30:23] Production.INFO: ==4692== Releasing lock... [2025-03-05 06:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:30:23] Production.INFO: 29 MB #Memory Used# [2025-03-05 06:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:31:04 [end_date_ymd] => 2025-03-05 06:31:04 [RateCDR] => 1 ) [2025-03-05 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-03-05 03:31:04' and `end` < '2025-03-05 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-03-05 06:31:16] Production.INFO: count ==164 [2025-03-05 06:31:16] Production.ERROR: pbx CDR StartTime 2025-03-05 03:31:04 - End Time 2025-03-05 06:31:04 [2025-03-05 06:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611321', 'tblTempUsageDetail_20' ) start [2025-03-05 06:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611321', 'tblTempUsageDetail_20' ) end [2025-03-05 06:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611321', 'tblTempVendorCDR_20' ) start [2025-03-05 06:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611321', 'tblTempVendorCDR_20' ) end [2025-03-05 06:31:16] Production.INFO: ProcessCDR(1,14611321,1,1,2) [2025-03-05 06:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:31:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:31:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611321', 'tblTempUsageDetail_20' ) start [2025-03-05 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611321', 'tblTempUsageDetail_20' ) end [2025-03-05 06:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:31:20] Production.INFO: ==4773== Releasing lock... [2025-03-05 06:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:31:20] Production.INFO: 29 MB #Memory Used# [2025-03-05 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:32:05 [end_date_ymd] => 2025-03-05 06:32:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 03:32:05' and `end` < '2025-03-05 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-03-05 06:32:17] Production.INFO: count ==167 [2025-03-05 06:32:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:32:05 - End Time 2025-03-05 06:32:05 [2025-03-05 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611326', 'tblTempUsageDetail_20' ) start [2025-03-05 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611326', 'tblTempUsageDetail_20' ) end [2025-03-05 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611326', 'tblTempVendorCDR_20' ) start [2025-03-05 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611326', 'tblTempVendorCDR_20' ) end [2025-03-05 06:32:17] Production.INFO: ProcessCDR(1,14611326,1,1,2) [2025-03-05 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611326', 'tblTempUsageDetail_20' ) start [2025-03-05 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611326', 'tblTempUsageDetail_20' ) end [2025-03-05 06:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:32:20] Production.INFO: ==4850== Releasing lock... [2025-03-05 06:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:32:20] Production.INFO: 29 MB #Memory Used# [2025-03-05 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:33:05 [end_date_ymd] => 2025-03-05 06:33:05 [RateCDR] => 1 ) [2025-03-05 06: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-03-05 03:33:05' and `end` < '2025-03-05 06: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-03-05 06:33:17] Production.INFO: count ==167 [2025-03-05 06:33:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:33:05 - End Time 2025-03-05 06:33:05 [2025-03-05 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611331', 'tblTempUsageDetail_20' ) start [2025-03-05 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611331', 'tblTempUsageDetail_20' ) end [2025-03-05 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611331', 'tblTempVendorCDR_20' ) start [2025-03-05 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611331', 'tblTempVendorCDR_20' ) end [2025-03-05 06:33:17] Production.INFO: ProcessCDR(1,14611331,1,1,2) [2025-03-05 06:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611331', 'tblTempUsageDetail_20' ) start [2025-03-05 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611331', 'tblTempUsageDetail_20' ) end [2025-03-05 06:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:33:20] Production.INFO: ==4925== Releasing lock... [2025-03-05 06:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:33:20] Production.INFO: 29 MB #Memory Used# [2025-03-05 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:34:05 [end_date_ymd] => 2025-03-05 06:34:05 [RateCDR] => 1 ) [2025-03-05 06: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-03-05 03:34:05' and `end` < '2025-03-05 06: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-03-05 06:34:17] Production.INFO: count ==167 [2025-03-05 06:34:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:34:05 - End Time 2025-03-05 06:34:05 [2025-03-05 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611336', 'tblTempUsageDetail_20' ) start [2025-03-05 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611336', 'tblTempUsageDetail_20' ) end [2025-03-05 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611336', 'tblTempVendorCDR_20' ) start [2025-03-05 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611336', 'tblTempVendorCDR_20' ) end [2025-03-05 06:34:17] Production.INFO: ProcessCDR(1,14611336,1,1,2) [2025-03-05 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611336', 'tblTempUsageDetail_20' ) start [2025-03-05 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611336', 'tblTempUsageDetail_20' ) end [2025-03-05 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:34:21] Production.INFO: ==4998== Releasing lock... [2025-03-05 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:34:21] Production.INFO: 29 MB #Memory Used# [2025-03-05 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:35:05 [end_date_ymd] => 2025-03-05 06:35:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 03:35:05' and `end` < '2025-03-05 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-03-05 06:35:17] Production.INFO: count ==167 [2025-03-05 06:35:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:35:05 - End Time 2025-03-05 06:35:05 [2025-03-05 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611341', 'tblTempUsageDetail_20' ) start [2025-03-05 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611341', 'tblTempUsageDetail_20' ) end [2025-03-05 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611341', 'tblTempVendorCDR_20' ) start [2025-03-05 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611341', 'tblTempVendorCDR_20' ) end [2025-03-05 06:35:17] Production.INFO: ProcessCDR(1,14611341,1,1,2) [2025-03-05 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611341', 'tblTempUsageDetail_20' ) start [2025-03-05 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611341', 'tblTempUsageDetail_20' ) end [2025-03-05 06:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:35:20] Production.INFO: ==5069== Releasing lock... [2025-03-05 06:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:35:20] Production.INFO: 29 MB #Memory Used# [2025-03-05 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:36:05 [end_date_ymd] => 2025-03-05 06:36:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 03:36:05' and `end` < '2025-03-05 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-03-05 06:36:17] Production.INFO: count ==167 [2025-03-05 06:36:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:36:05 - End Time 2025-03-05 06:36:05 [2025-03-05 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611346', 'tblTempUsageDetail_20' ) start [2025-03-05 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611346', 'tblTempUsageDetail_20' ) end [2025-03-05 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611346', 'tblTempVendorCDR_20' ) start [2025-03-05 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611346', 'tblTempVendorCDR_20' ) end [2025-03-05 06:36:17] Production.INFO: ProcessCDR(1,14611346,1,1,2) [2025-03-05 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611346', 'tblTempUsageDetail_20' ) start [2025-03-05 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611346', 'tblTempUsageDetail_20' ) end [2025-03-05 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:36:21] Production.INFO: ==5140== Releasing lock... [2025-03-05 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:36:21] Production.INFO: 29 MB #Memory Used# [2025-03-05 06:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:37:06 [end_date_ymd] => 2025-03-05 06:37:06 [RateCDR] => 1 ) [2025-03-05 06: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-03-05 03:37:06' and `end` < '2025-03-05 06: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-03-05 06:37:18] Production.INFO: count ==167 [2025-03-05 06:37:18] Production.ERROR: pbx CDR StartTime 2025-03-05 03:37:06 - End Time 2025-03-05 06:37:06 [2025-03-05 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611351', 'tblTempUsageDetail_20' ) start [2025-03-05 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611351', 'tblTempUsageDetail_20' ) end [2025-03-05 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611351', 'tblTempVendorCDR_20' ) start [2025-03-05 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611351', 'tblTempVendorCDR_20' ) end [2025-03-05 06:37:18] Production.INFO: ProcessCDR(1,14611351,1,1,2) [2025-03-05 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611351', 'tblTempUsageDetail_20' ) start [2025-03-05 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611351', 'tblTempUsageDetail_20' ) end [2025-03-05 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:37:21] Production.INFO: ==5214== Releasing lock... [2025-03-05 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:37:21] Production.INFO: 29 MB #Memory Used# [2025-03-05 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:38:05 [end_date_ymd] => 2025-03-05 06:38:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 03:38:05' and `end` < '2025-03-05 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-03-05 06:38:17] Production.INFO: count ==167 [2025-03-05 06:38:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:38:05 - End Time 2025-03-05 06:38:05 [2025-03-05 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611356', 'tblTempUsageDetail_20' ) start [2025-03-05 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611356', 'tblTempUsageDetail_20' ) end [2025-03-05 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611356', 'tblTempVendorCDR_20' ) start [2025-03-05 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611356', 'tblTempVendorCDR_20' ) end [2025-03-05 06:38:17] Production.INFO: ProcessCDR(1,14611356,1,1,2) [2025-03-05 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611356', 'tblTempUsageDetail_20' ) start [2025-03-05 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611356', 'tblTempUsageDetail_20' ) end [2025-03-05 06:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:38:20] Production.INFO: ==5290== Releasing lock... [2025-03-05 06:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:38:20] Production.INFO: 29 MB #Memory Used# [2025-03-05 06:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:39:06 [end_date_ymd] => 2025-03-05 06:39:06 [RateCDR] => 1 ) [2025-03-05 06:39: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-03-05 03:39:06' and `end` < '2025-03-05 06:39: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-03-05 06:39:18] Production.INFO: count ==167 [2025-03-05 06:39:18] Production.ERROR: pbx CDR StartTime 2025-03-05 03:39:06 - End Time 2025-03-05 06:39:06 [2025-03-05 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611361', 'tblTempUsageDetail_20' ) start [2025-03-05 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611361', 'tblTempUsageDetail_20' ) end [2025-03-05 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611361', 'tblTempVendorCDR_20' ) start [2025-03-05 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611361', 'tblTempVendorCDR_20' ) end [2025-03-05 06:39:18] Production.INFO: ProcessCDR(1,14611361,1,1,2) [2025-03-05 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611361', 'tblTempUsageDetail_20' ) start [2025-03-05 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611361', 'tblTempUsageDetail_20' ) end [2025-03-05 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:39:21] Production.INFO: ==5364== Releasing lock... [2025-03-05 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:39:21] Production.INFO: 29 MB #Memory Used# [2025-03-05 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:40:06 [end_date_ymd] => 2025-03-05 06:40:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 03:40:06' and `end` < '2025-03-05 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-03-05 06:40:18] Production.INFO: count ==171 [2025-03-05 06:40:18] Production.ERROR: pbx CDR StartTime 2025-03-05 03:40:06 - End Time 2025-03-05 06:40:06 [2025-03-05 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611366', 'tblTempUsageDetail_20' ) start [2025-03-05 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611366', 'tblTempUsageDetail_20' ) end [2025-03-05 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611366', 'tblTempVendorCDR_20' ) start [2025-03-05 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611366', 'tblTempVendorCDR_20' ) end [2025-03-05 06:40:18] Production.INFO: ProcessCDR(1,14611366,1,1,2) [2025-03-05 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611366', 'tblTempUsageDetail_20' ) start [2025-03-05 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611366', 'tblTempUsageDetail_20' ) end [2025-03-05 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:40:21] Production.INFO: ==5441== Releasing lock... [2025-03-05 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:40:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:41:05 [end_date_ymd] => 2025-03-05 06:41:05 [RateCDR] => 1 ) [2025-03-05 06: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-03-05 03:41:05' and `end` < '2025-03-05 06: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-03-05 06:41:17] Production.INFO: count ==171 [2025-03-05 06:41:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:41:05 - End Time 2025-03-05 06:41:05 [2025-03-05 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611372', 'tblTempUsageDetail_20' ) start [2025-03-05 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611372', 'tblTempUsageDetail_20' ) end [2025-03-05 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611372', 'tblTempVendorCDR_20' ) start [2025-03-05 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611372', 'tblTempVendorCDR_20' ) end [2025-03-05 06:41:17] Production.INFO: ProcessCDR(1,14611372,1,1,2) [2025-03-05 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611372', 'tblTempUsageDetail_20' ) start [2025-03-05 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611372', 'tblTempUsageDetail_20' ) end [2025-03-05 06:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:41:20] Production.INFO: ==5515== Releasing lock... [2025-03-05 06:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:41:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:42:05 [end_date_ymd] => 2025-03-05 06:42:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 03:42:05' and `end` < '2025-03-05 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-03-05 06:42:17] Production.INFO: count ==171 [2025-03-05 06:42:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:42:05 - End Time 2025-03-05 06:42:05 [2025-03-05 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611377', 'tblTempUsageDetail_20' ) start [2025-03-05 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611377', 'tblTempUsageDetail_20' ) end [2025-03-05 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611377', 'tblTempVendorCDR_20' ) start [2025-03-05 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611377', 'tblTempVendorCDR_20' ) end [2025-03-05 06:42:17] Production.INFO: ProcessCDR(1,14611377,1,1,2) [2025-03-05 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611377', 'tblTempUsageDetail_20' ) start [2025-03-05 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611377', 'tblTempUsageDetail_20' ) end [2025-03-05 06:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:42:20] Production.INFO: ==5584== Releasing lock... [2025-03-05 06:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:42:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 06:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:43:06 [end_date_ymd] => 2025-03-05 06:43:06 [RateCDR] => 1 ) [2025-03-05 06: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-03-05 03:43:06' and `end` < '2025-03-05 06: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-03-05 06:43:18] Production.INFO: count ==171 [2025-03-05 06:43:18] Production.ERROR: pbx CDR StartTime 2025-03-05 03:43:06 - End Time 2025-03-05 06:43:06 [2025-03-05 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611382', 'tblTempUsageDetail_20' ) start [2025-03-05 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611382', 'tblTempUsageDetail_20' ) end [2025-03-05 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611382', 'tblTempVendorCDR_20' ) start [2025-03-05 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611382', 'tblTempVendorCDR_20' ) end [2025-03-05 06:43:18] Production.INFO: ProcessCDR(1,14611382,1,1,2) [2025-03-05 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611382', 'tblTempUsageDetail_20' ) start [2025-03-05 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611382', 'tblTempUsageDetail_20' ) end [2025-03-05 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:43:21] Production.INFO: ==5659== Releasing lock... [2025-03-05 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:43:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:44:05 [end_date_ymd] => 2025-03-05 06:44:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 03:44:05' and `end` < '2025-03-05 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-03-05 06:44:17] Production.INFO: count ==171 [2025-03-05 06:44:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:44:05 - End Time 2025-03-05 06:44:05 [2025-03-05 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611387', 'tblTempUsageDetail_20' ) start [2025-03-05 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611387', 'tblTempUsageDetail_20' ) end [2025-03-05 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611387', 'tblTempVendorCDR_20' ) start [2025-03-05 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611387', 'tblTempVendorCDR_20' ) end [2025-03-05 06:44:17] Production.INFO: ProcessCDR(1,14611387,1,1,2) [2025-03-05 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611387', 'tblTempUsageDetail_20' ) start [2025-03-05 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611387', 'tblTempUsageDetail_20' ) end [2025-03-05 06:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:44:20] Production.INFO: ==5733== Releasing lock... [2025-03-05 06:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:44:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:45:05 [end_date_ymd] => 2025-03-05 06:45:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 03:45:05' and `end` < '2025-03-05 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-03-05 06:45:17] Production.INFO: count ==172 [2025-03-05 06:45:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:45:05 - End Time 2025-03-05 06:45:05 [2025-03-05 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611392', 'tblTempUsageDetail_20' ) start [2025-03-05 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611392', 'tblTempUsageDetail_20' ) end [2025-03-05 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611392', 'tblTempVendorCDR_20' ) start [2025-03-05 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611392', 'tblTempVendorCDR_20' ) end [2025-03-05 06:45:17] Production.INFO: ProcessCDR(1,14611392,1,1,2) [2025-03-05 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611392', 'tblTempUsageDetail_20' ) start [2025-03-05 06:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611392', 'tblTempUsageDetail_20' ) end [2025-03-05 06:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:45:22] Production.INFO: ==5842== Releasing lock... [2025-03-05 06:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:45:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:46:05 [end_date_ymd] => 2025-03-05 06:46:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 03:46:05' and `end` < '2025-03-05 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-03-05 06:46:17] Production.INFO: count ==172 [2025-03-05 06:46:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:46:05 - End Time 2025-03-05 06:46:05 [2025-03-05 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611397', 'tblTempUsageDetail_20' ) start [2025-03-05 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611397', 'tblTempUsageDetail_20' ) end [2025-03-05 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611397', 'tblTempVendorCDR_20' ) start [2025-03-05 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611397', 'tblTempVendorCDR_20' ) end [2025-03-05 06:46:17] Production.INFO: ProcessCDR(1,14611397,1,1,2) [2025-03-05 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611397', 'tblTempUsageDetail_20' ) start [2025-03-05 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611397', 'tblTempUsageDetail_20' ) end [2025-03-05 06:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:46:21] Production.INFO: ==5918== Releasing lock... [2025-03-05 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:46:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:47:05 [end_date_ymd] => 2025-03-05 06:47:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 03:47:05' and `end` < '2025-03-05 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-03-05 06:47:17] Production.INFO: count ==172 [2025-03-05 06:47:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:47:05 - End Time 2025-03-05 06:47:05 [2025-03-05 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611402', 'tblTempUsageDetail_20' ) start [2025-03-05 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611402', 'tblTempUsageDetail_20' ) end [2025-03-05 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611402', 'tblTempVendorCDR_20' ) start [2025-03-05 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611402', 'tblTempVendorCDR_20' ) end [2025-03-05 06:47:17] Production.INFO: ProcessCDR(1,14611402,1,1,2) [2025-03-05 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611402', 'tblTempUsageDetail_20' ) start [2025-03-05 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611402', 'tblTempUsageDetail_20' ) end [2025-03-05 06:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:47:20] Production.INFO: ==5987== Releasing lock... [2025-03-05 06:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:47:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 06:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:48:06 [end_date_ymd] => 2025-03-05 06:48:06 [RateCDR] => 1 ) [2025-03-05 06: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-03-05 03:48:06' and `end` < '2025-03-05 06: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-03-05 06:48:18] Production.INFO: count ==172 [2025-03-05 06:48:18] Production.ERROR: pbx CDR StartTime 2025-03-05 03:48:06 - End Time 2025-03-05 06:48:06 [2025-03-05 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611407', 'tblTempUsageDetail_20' ) start [2025-03-05 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611407', 'tblTempUsageDetail_20' ) end [2025-03-05 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611407', 'tblTempVendorCDR_20' ) start [2025-03-05 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611407', 'tblTempVendorCDR_20' ) end [2025-03-05 06:48:18] Production.INFO: ProcessCDR(1,14611407,1,1,2) [2025-03-05 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611407', 'tblTempUsageDetail_20' ) start [2025-03-05 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611407', 'tblTempUsageDetail_20' ) end [2025-03-05 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:48:21] Production.INFO: ==6060== Releasing lock... [2025-03-05 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:48:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:49:05 [end_date_ymd] => 2025-03-05 06:49:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 03:49:05' and `end` < '2025-03-05 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-03-05 06:49:17] Production.INFO: count ==173 [2025-03-05 06:49:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:49:05 - End Time 2025-03-05 06:49:05 [2025-03-05 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611412', 'tblTempUsageDetail_20' ) start [2025-03-05 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611412', 'tblTempUsageDetail_20' ) end [2025-03-05 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611412', 'tblTempVendorCDR_20' ) start [2025-03-05 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611412', 'tblTempVendorCDR_20' ) end [2025-03-05 06:49:17] Production.INFO: ProcessCDR(1,14611412,1,1,2) [2025-03-05 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611412', 'tblTempUsageDetail_20' ) start [2025-03-05 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611412', 'tblTempUsageDetail_20' ) end [2025-03-05 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:49:21] Production.INFO: ==6144== Releasing lock... [2025-03-05 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:49:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:50:06 [end_date_ymd] => 2025-03-05 06:50:06 [RateCDR] => 1 ) [2025-03-05 06: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-03-05 03:50:06' and `end` < '2025-03-05 06: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-03-05 06:50:18] Production.INFO: count ==173 [2025-03-05 06:50:18] Production.ERROR: pbx CDR StartTime 2025-03-05 03:50:06 - End Time 2025-03-05 06:50:06 [2025-03-05 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611418', 'tblTempUsageDetail_20' ) start [2025-03-05 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611418', 'tblTempUsageDetail_20' ) end [2025-03-05 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611418', 'tblTempVendorCDR_20' ) start [2025-03-05 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611418', 'tblTempVendorCDR_20' ) end [2025-03-05 06:50:18] Production.INFO: ProcessCDR(1,14611418,1,1,2) [2025-03-05 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611418', 'tblTempUsageDetail_20' ) start [2025-03-05 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611418', 'tblTempUsageDetail_20' ) end [2025-03-05 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:50:22] Production.INFO: ==6226== Releasing lock... [2025-03-05 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:50:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:51:05 [end_date_ymd] => 2025-03-05 06:51:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 03:51:05' and `end` < '2025-03-05 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-03-05 06:51:17] Production.INFO: count ==173 [2025-03-05 06:51:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:51:05 - End Time 2025-03-05 06:51:05 [2025-03-05 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611423', 'tblTempUsageDetail_20' ) start [2025-03-05 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611423', 'tblTempUsageDetail_20' ) end [2025-03-05 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611423', 'tblTempVendorCDR_20' ) start [2025-03-05 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611423', 'tblTempVendorCDR_20' ) end [2025-03-05 06:51:17] Production.INFO: ProcessCDR(1,14611423,1,1,2) [2025-03-05 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611423', 'tblTempUsageDetail_20' ) start [2025-03-05 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611423', 'tblTempUsageDetail_20' ) end [2025-03-05 06:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:51:20] Production.INFO: ==6306== Releasing lock... [2025-03-05 06:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:51:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:52:05 [end_date_ymd] => 2025-03-05 06:52:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 03:52:05' and `end` < '2025-03-05 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-03-05 06:52:17] Production.INFO: count ==173 [2025-03-05 06:52:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:52:05 - End Time 2025-03-05 06:52:05 [2025-03-05 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611428', 'tblTempUsageDetail_20' ) start [2025-03-05 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611428', 'tblTempUsageDetail_20' ) end [2025-03-05 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611428', 'tblTempVendorCDR_20' ) start [2025-03-05 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611428', 'tblTempVendorCDR_20' ) end [2025-03-05 06:52:17] Production.INFO: ProcessCDR(1,14611428,1,1,2) [2025-03-05 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611428', 'tblTempUsageDetail_20' ) start [2025-03-05 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611428', 'tblTempUsageDetail_20' ) end [2025-03-05 06:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:52:20] Production.INFO: ==6379== Releasing lock... [2025-03-05 06:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:52:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:53:05 [end_date_ymd] => 2025-03-05 06:53:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 03:53:05' and `end` < '2025-03-05 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-03-05 06:53:17] Production.INFO: count ==173 [2025-03-05 06:53:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:53:05 - End Time 2025-03-05 06:53:05 [2025-03-05 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611433', 'tblTempUsageDetail_20' ) start [2025-03-05 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611433', 'tblTempUsageDetail_20' ) end [2025-03-05 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611433', 'tblTempVendorCDR_20' ) start [2025-03-05 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611433', 'tblTempVendorCDR_20' ) end [2025-03-05 06:53:17] Production.INFO: ProcessCDR(1,14611433,1,1,2) [2025-03-05 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611433', 'tblTempUsageDetail_20' ) start [2025-03-05 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611433', 'tblTempUsageDetail_20' ) end [2025-03-05 06:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:53:20] Production.INFO: ==6454== Releasing lock... [2025-03-05 06:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:53:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:54:05 [end_date_ymd] => 2025-03-05 06:54:05 [RateCDR] => 1 ) [2025-03-05 06: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-03-05 03:54:05' and `end` < '2025-03-05 06: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-03-05 06:54:17] Production.INFO: count ==173 [2025-03-05 06:54:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:54:05 - End Time 2025-03-05 06:54:05 [2025-03-05 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611438', 'tblTempUsageDetail_20' ) start [2025-03-05 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611438', 'tblTempUsageDetail_20' ) end [2025-03-05 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611438', 'tblTempVendorCDR_20' ) start [2025-03-05 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611438', 'tblTempVendorCDR_20' ) end [2025-03-05 06:54:17] Production.INFO: ProcessCDR(1,14611438,1,1,2) [2025-03-05 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611438', 'tblTempUsageDetail_20' ) start [2025-03-05 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611438', 'tblTempUsageDetail_20' ) end [2025-03-05 06:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:54:20] Production.INFO: ==6534== Releasing lock... [2025-03-05 06:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:54:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:55:05 [end_date_ymd] => 2025-03-05 06:55:05 [RateCDR] => 1 ) [2025-03-05 06: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-03-05 03:55:05' and `end` < '2025-03-05 06: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-03-05 06:55:17] Production.INFO: count ==173 [2025-03-05 06:55:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:55:05 - End Time 2025-03-05 06:55:05 [2025-03-05 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611443', 'tblTempUsageDetail_20' ) start [2025-03-05 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611443', 'tblTempUsageDetail_20' ) end [2025-03-05 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611443', 'tblTempVendorCDR_20' ) start [2025-03-05 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611443', 'tblTempVendorCDR_20' ) end [2025-03-05 06:55:17] Production.INFO: ProcessCDR(1,14611443,1,1,2) [2025-03-05 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611443', 'tblTempUsageDetail_20' ) start [2025-03-05 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611443', 'tblTempUsageDetail_20' ) end [2025-03-05 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:55:21] Production.INFO: ==6606== Releasing lock... [2025-03-05 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:55:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:56:05 [end_date_ymd] => 2025-03-05 06:56:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 03:56:05' and `end` < '2025-03-05 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-03-05 06:56:17] Production.INFO: count ==173 [2025-03-05 06:56:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:56:05 - End Time 2025-03-05 06:56:05 [2025-03-05 06:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611448', 'tblTempUsageDetail_20' ) start [2025-03-05 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611448', 'tblTempUsageDetail_20' ) end [2025-03-05 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611448', 'tblTempVendorCDR_20' ) start [2025-03-05 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611448', 'tblTempVendorCDR_20' ) end [2025-03-05 06:56:17] Production.INFO: ProcessCDR(1,14611448,1,1,2) [2025-03-05 06:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611448', 'tblTempUsageDetail_20' ) start [2025-03-05 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611448', 'tblTempUsageDetail_20' ) end [2025-03-05 06:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:56:20] Production.INFO: ==6680== Releasing lock... [2025-03-05 06:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:56:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 06:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:57:06 [end_date_ymd] => 2025-03-05 06:57:06 [RateCDR] => 1 ) [2025-03-05 06:57: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-03-05 03:57:06' and `end` < '2025-03-05 06:57: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-03-05 06:57:18] Production.INFO: count ==173 [2025-03-05 06:57:18] Production.ERROR: pbx CDR StartTime 2025-03-05 03:57:06 - End Time 2025-03-05 06:57:06 [2025-03-05 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611453', 'tblTempUsageDetail_20' ) start [2025-03-05 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611453', 'tblTempUsageDetail_20' ) end [2025-03-05 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611453', 'tblTempVendorCDR_20' ) start [2025-03-05 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611453', 'tblTempVendorCDR_20' ) end [2025-03-05 06:57:18] Production.INFO: ProcessCDR(1,14611453,1,1,2) [2025-03-05 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611453', 'tblTempUsageDetail_20' ) start [2025-03-05 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611453', 'tblTempUsageDetail_20' ) end [2025-03-05 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:57:21] Production.INFO: ==6756== Releasing lock... [2025-03-05 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:57:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:58:05 [end_date_ymd] => 2025-03-05 06:58:05 [RateCDR] => 1 ) [2025-03-05 06: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-03-05 03:58:05' and `end` < '2025-03-05 06: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-03-05 06:58:17] Production.INFO: count ==173 [2025-03-05 06:58:17] Production.ERROR: pbx CDR StartTime 2025-03-05 03:58:05 - End Time 2025-03-05 06:58:05 [2025-03-05 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611458', 'tblTempUsageDetail_20' ) start [2025-03-05 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611458', 'tblTempUsageDetail_20' ) end [2025-03-05 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611458', 'tblTempVendorCDR_20' ) start [2025-03-05 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611458', 'tblTempVendorCDR_20' ) end [2025-03-05 06:58:17] Production.INFO: ProcessCDR(1,14611458,1,1,2) [2025-03-05 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611458', 'tblTempUsageDetail_20' ) start [2025-03-05 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611458', 'tblTempUsageDetail_20' ) end [2025-03-05 06:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:58:20] Production.INFO: ==6833== Releasing lock... [2025-03-05 06:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:58:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 06:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 03:59:06 [end_date_ymd] => 2025-03-05 06:59:06 [RateCDR] => 1 ) [2025-03-05 06: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-03-05 03:59:06' and `end` < '2025-03-05 06: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-03-05 06:59:18] Production.INFO: count ==173 [2025-03-05 06:59:18] Production.ERROR: pbx CDR StartTime 2025-03-05 03:59:06 - End Time 2025-03-05 06:59:06 [2025-03-05 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611463', 'tblTempUsageDetail_20' ) start [2025-03-05 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611463', 'tblTempUsageDetail_20' ) end [2025-03-05 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611463', 'tblTempVendorCDR_20' ) start [2025-03-05 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611463', 'tblTempVendorCDR_20' ) end [2025-03-05 06:59:18] Production.INFO: ProcessCDR(1,14611463,1,1,2) [2025-03-05 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611463', 'tblTempUsageDetail_20' ) start [2025-03-05 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611463', 'tblTempUsageDetail_20' ) end [2025-03-05 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 06:59:21] Production.INFO: ==6908== Releasing lock... [2025-03-05 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 06:59:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:00:06 [end_date_ymd] => 2025-03-05 07:00:06 [RateCDR] => 1 ) [2025-03-05 07: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-03-05 04:00:06' and `end` < '2025-03-05 07: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-03-05 07:00:18] Production.INFO: count ==173 [2025-03-05 07:00:18] Production.ERROR: pbx CDR StartTime 2025-03-05 04:00:06 - End Time 2025-03-05 07:00:06 [2025-03-05 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611469', 'tblTempUsageDetail_20' ) start [2025-03-05 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611469', 'tblTempUsageDetail_20' ) end [2025-03-05 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611469', 'tblTempVendorCDR_20' ) start [2025-03-05 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611469', 'tblTempVendorCDR_20' ) end [2025-03-05 07:00:18] Production.INFO: ProcessCDR(1,14611469,1,1,2) [2025-03-05 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611469', 'tblTempUsageDetail_20' ) start [2025-03-05 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611469', 'tblTempUsageDetail_20' ) end [2025-03-05 07:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:00:21] Production.INFO: ==7026== Releasing lock... [2025-03-05 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:00:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 07:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:01:06 [end_date_ymd] => 2025-03-05 07:01:06 [RateCDR] => 1 ) [2025-03-05 07: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-03-05 04:01:06' and `end` < '2025-03-05 07: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-03-05 07:01:19] Production.INFO: count ==173 [2025-03-05 07:01:19] Production.ERROR: pbx CDR StartTime 2025-03-05 04:01:06 - End Time 2025-03-05 07:01:06 [2025-03-05 07:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611474', 'tblTempUsageDetail_20' ) start [2025-03-05 07:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611474', 'tblTempUsageDetail_20' ) end [2025-03-05 07:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611474', 'tblTempVendorCDR_20' ) start [2025-03-05 07:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611474', 'tblTempVendorCDR_20' ) end [2025-03-05 07:01:19] Production.INFO: ProcessCDR(1,14611474,1,1,2) [2025-03-05 07:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611474', 'tblTempUsageDetail_20' ) start [2025-03-05 07:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611474', 'tblTempUsageDetail_20' ) end [2025-03-05 07:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:01:22] Production.INFO: ==7115== Releasing lock... [2025-03-05 07:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:01:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:02:05 [end_date_ymd] => 2025-03-05 07:02:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:02:05' and `end` < '2025-03-05 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-03-05 07:02:18] Production.INFO: count ==173 [2025-03-05 07:02:18] Production.ERROR: pbx CDR StartTime 2025-03-05 04:02:05 - End Time 2025-03-05 07:02:05 [2025-03-05 07:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611479', 'tblTempUsageDetail_20' ) start [2025-03-05 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611479', 'tblTempUsageDetail_20' ) end [2025-03-05 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611479', 'tblTempVendorCDR_20' ) start [2025-03-05 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611479', 'tblTempVendorCDR_20' ) end [2025-03-05 07:02:18] Production.INFO: ProcessCDR(1,14611479,1,1,2) [2025-03-05 07:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611479', 'tblTempUsageDetail_20' ) start [2025-03-05 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611479', 'tblTempUsageDetail_20' ) end [2025-03-05 07:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:02:21] Production.INFO: ==7261== Releasing lock... [2025-03-05 07:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:02:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:03:05 [end_date_ymd] => 2025-03-05 07:03:05 [RateCDR] => 1 ) [2025-03-05 07: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-03-05 04:03:05' and `end` < '2025-03-05 07: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-03-05 07:03:18] Production.INFO: count ==169 [2025-03-05 07:03:18] Production.ERROR: pbx CDR StartTime 2025-03-05 04:03:05 - End Time 2025-03-05 07:03:05 [2025-03-05 07:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611484', 'tblTempUsageDetail_20' ) start [2025-03-05 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611484', 'tblTempUsageDetail_20' ) end [2025-03-05 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611484', 'tblTempVendorCDR_20' ) start [2025-03-05 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611484', 'tblTempVendorCDR_20' ) end [2025-03-05 07:03:18] Production.INFO: ProcessCDR(1,14611484,1,1,2) [2025-03-05 07:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611484', 'tblTempUsageDetail_20' ) start [2025-03-05 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611484', 'tblTempUsageDetail_20' ) end [2025-03-05 07:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:03:21] Production.INFO: ==7335== Releasing lock... [2025-03-05 07:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:03:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:04:05 [end_date_ymd] => 2025-03-05 07:04:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:04:05' and `end` < '2025-03-05 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-03-05 07:04:18] Production.INFO: count ==169 [2025-03-05 07:04:18] Production.ERROR: pbx CDR StartTime 2025-03-05 04:04:05 - End Time 2025-03-05 07:04:05 [2025-03-05 07:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611489', 'tblTempUsageDetail_20' ) start [2025-03-05 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611489', 'tblTempUsageDetail_20' ) end [2025-03-05 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611489', 'tblTempVendorCDR_20' ) start [2025-03-05 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611489', 'tblTempVendorCDR_20' ) end [2025-03-05 07:04:18] Production.INFO: ProcessCDR(1,14611489,1,1,2) [2025-03-05 07:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611489', 'tblTempUsageDetail_20' ) start [2025-03-05 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611489', 'tblTempUsageDetail_20' ) end [2025-03-05 07:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:04:21] Production.INFO: ==7408== Releasing lock... [2025-03-05 07:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:04:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 07:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:05:06 [end_date_ymd] => 2025-03-05 07:05:06 [RateCDR] => 1 ) [2025-03-05 07:05: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-03-05 04:05:06' and `end` < '2025-03-05 07:05: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-03-05 07:05:18] Production.INFO: count ==169 [2025-03-05 07:05:18] Production.ERROR: pbx CDR StartTime 2025-03-05 04:05:06 - End Time 2025-03-05 07:05:06 [2025-03-05 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611494', 'tblTempUsageDetail_20' ) start [2025-03-05 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611494', 'tblTempUsageDetail_20' ) end [2025-03-05 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611494', 'tblTempVendorCDR_20' ) start [2025-03-05 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611494', 'tblTempVendorCDR_20' ) end [2025-03-05 07:05:18] Production.INFO: ProcessCDR(1,14611494,1,1,2) [2025-03-05 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611494', 'tblTempUsageDetail_20' ) start [2025-03-05 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611494', 'tblTempUsageDetail_20' ) end [2025-03-05 07:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:05:22] Production.INFO: ==7561== Releasing lock... [2025-03-05 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:05:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:06:05 [end_date_ymd] => 2025-03-05 07:06:05 [RateCDR] => 1 ) [2025-03-05 07: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-03-05 04:06:05' and `end` < '2025-03-05 07: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-03-05 07:06:17] Production.INFO: count ==173 [2025-03-05 07:06:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:06:05 - End Time 2025-03-05 07:06:05 [2025-03-05 07:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611499', 'tblTempUsageDetail_20' ) start [2025-03-05 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611499', 'tblTempUsageDetail_20' ) end [2025-03-05 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611499', 'tblTempVendorCDR_20' ) start [2025-03-05 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611499', 'tblTempVendorCDR_20' ) end [2025-03-05 07:06:17] Production.INFO: ProcessCDR(1,14611499,1,1,2) [2025-03-05 07:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611499', 'tblTempUsageDetail_20' ) start [2025-03-05 07:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611499', 'tblTempUsageDetail_20' ) end [2025-03-05 07:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:06:20] Production.INFO: ==7635== Releasing lock... [2025-03-05 07:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:06:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:07:05 [end_date_ymd] => 2025-03-05 07:07:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:07:05' and `end` < '2025-03-05 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-03-05 07:07:17] Production.INFO: count ==173 [2025-03-05 07:07:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:07:05 - End Time 2025-03-05 07:07:05 [2025-03-05 07:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611504', 'tblTempUsageDetail_20' ) start [2025-03-05 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611504', 'tblTempUsageDetail_20' ) end [2025-03-05 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611504', 'tblTempVendorCDR_20' ) start [2025-03-05 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611504', 'tblTempVendorCDR_20' ) end [2025-03-05 07:07:17] Production.INFO: ProcessCDR(1,14611504,1,1,2) [2025-03-05 07:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611504', 'tblTempUsageDetail_20' ) start [2025-03-05 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611504', 'tblTempUsageDetail_20' ) end [2025-03-05 07:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:07:21] Production.INFO: ==7709== Releasing lock... [2025-03-05 07:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:07:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:08:05 [end_date_ymd] => 2025-03-05 07:08:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:08:05' and `end` < '2025-03-05 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-03-05 07:08:19] Production.INFO: count ==173 [2025-03-05 07:08:19] Production.ERROR: pbx CDR StartTime 2025-03-05 04:08:05 - End Time 2025-03-05 07:08:05 [2025-03-05 07:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611509', 'tblTempUsageDetail_20' ) start [2025-03-05 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611509', 'tblTempUsageDetail_20' ) end [2025-03-05 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611509', 'tblTempVendorCDR_20' ) start [2025-03-05 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611509', 'tblTempVendorCDR_20' ) end [2025-03-05 07:08:19] Production.INFO: ProcessCDR(1,14611509,1,1,2) [2025-03-05 07:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611509', 'tblTempUsageDetail_20' ) start [2025-03-05 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611509', 'tblTempUsageDetail_20' ) end [2025-03-05 07:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:08:23] Production.INFO: ==7791== Releasing lock... [2025-03-05 07:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:08:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 07:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:09:06 [end_date_ymd] => 2025-03-05 07:09:06 [RateCDR] => 1 ) [2025-03-05 07: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-03-05 04:09:06' and `end` < '2025-03-05 07: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-03-05 07:09:18] Production.INFO: count ==173 [2025-03-05 07:09:18] Production.ERROR: pbx CDR StartTime 2025-03-05 04:09:06 - End Time 2025-03-05 07:09:06 [2025-03-05 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611514', 'tblTempUsageDetail_20' ) start [2025-03-05 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611514', 'tblTempUsageDetail_20' ) end [2025-03-05 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611514', 'tblTempVendorCDR_20' ) start [2025-03-05 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611514', 'tblTempVendorCDR_20' ) end [2025-03-05 07:09:18] Production.INFO: ProcessCDR(1,14611514,1,1,2) [2025-03-05 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611514', 'tblTempUsageDetail_20' ) start [2025-03-05 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611514', 'tblTempUsageDetail_20' ) end [2025-03-05 07:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:09:21] Production.INFO: ==7931== Releasing lock... [2025-03-05 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:09:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 07:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:10:05 [end_date_ymd] => 2025-03-05 07:10:05 [RateCDR] => 1 ) [2025-03-05 07: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-03-05 04:10:05' and `end` < '2025-03-05 07: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-03-05 07:10:18] Production.INFO: count ==173 [2025-03-05 07:10:18] Production.ERROR: pbx CDR StartTime 2025-03-05 04:10:05 - End Time 2025-03-05 07:10:05 [2025-03-05 07:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611520', 'tblTempUsageDetail_20' ) start [2025-03-05 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611520', 'tblTempUsageDetail_20' ) end [2025-03-05 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611520', 'tblTempVendorCDR_20' ) start [2025-03-05 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611520', 'tblTempVendorCDR_20' ) end [2025-03-05 07:10:18] Production.INFO: ProcessCDR(1,14611520,1,1,2) [2025-03-05 07:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611520', 'tblTempUsageDetail_20' ) start [2025-03-05 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611520', 'tblTempUsageDetail_20' ) end [2025-03-05 07:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:10:21] Production.INFO: ==8010== Releasing lock... [2025-03-05 07:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:10:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 07:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:11:06 [end_date_ymd] => 2025-03-05 07:11:06 [RateCDR] => 1 ) [2025-03-05 07:11: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-03-05 04:11:06' and `end` < '2025-03-05 07:11: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-03-05 07:11:18] Production.INFO: count ==181 [2025-03-05 07:11:18] Production.ERROR: pbx CDR StartTime 2025-03-05 04:11:06 - End Time 2025-03-05 07:11:06 [2025-03-05 07:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611525', 'tblTempUsageDetail_20' ) start [2025-03-05 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611525', 'tblTempUsageDetail_20' ) end [2025-03-05 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611525', 'tblTempVendorCDR_20' ) start [2025-03-05 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611525', 'tblTempVendorCDR_20' ) end [2025-03-05 07:11:18] Production.INFO: ProcessCDR(1,14611525,1,1,2) [2025-03-05 07:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611525', 'tblTempUsageDetail_20' ) start [2025-03-05 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611525', 'tblTempUsageDetail_20' ) end [2025-03-05 07:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:11:21] Production.INFO: ==8090== Releasing lock... [2025-03-05 07:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:11:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:12:05 [end_date_ymd] => 2025-03-05 07:12:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:12:05' and `end` < '2025-03-05 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-03-05 07:12:19] Production.INFO: count ==181 [2025-03-05 07:12:19] Production.ERROR: pbx CDR StartTime 2025-03-05 04:12:05 - End Time 2025-03-05 07:12:05 [2025-03-05 07:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611530', 'tblTempUsageDetail_20' ) start [2025-03-05 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611530', 'tblTempUsageDetail_20' ) end [2025-03-05 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611530', 'tblTempVendorCDR_20' ) start [2025-03-05 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611530', 'tblTempVendorCDR_20' ) end [2025-03-05 07:12:19] Production.INFO: ProcessCDR(1,14611530,1,1,2) [2025-03-05 07:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611530', 'tblTempUsageDetail_20' ) start [2025-03-05 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611530', 'tblTempUsageDetail_20' ) end [2025-03-05 07:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:12:22] Production.INFO: ==8261== Releasing lock... [2025-03-05 07:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:12:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:13:05 [end_date_ymd] => 2025-03-05 07:13:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:13:05' and `end` < '2025-03-05 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-03-05 07:13:17] Production.INFO: count ==181 [2025-03-05 07:13:18] Production.ERROR: pbx CDR StartTime 2025-03-05 04:13:05 - End Time 2025-03-05 07:13:05 [2025-03-05 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611535', 'tblTempUsageDetail_20' ) start [2025-03-05 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611535', 'tblTempUsageDetail_20' ) end [2025-03-05 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611535', 'tblTempVendorCDR_20' ) start [2025-03-05 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611535', 'tblTempVendorCDR_20' ) end [2025-03-05 07:13:18] Production.INFO: ProcessCDR(1,14611535,1,1,2) [2025-03-05 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611535', 'tblTempUsageDetail_20' ) start [2025-03-05 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611535', 'tblTempUsageDetail_20' ) end [2025-03-05 07:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:13:21] Production.INFO: ==8334== Releasing lock... [2025-03-05 07:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:13:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:14:05 [end_date_ymd] => 2025-03-05 07:14:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:14:05' and `end` < '2025-03-05 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-03-05 07:14:17] Production.INFO: count ==181 [2025-03-05 07:14:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:14:05 - End Time 2025-03-05 07:14:05 [2025-03-05 07:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611540', 'tblTempUsageDetail_20' ) start [2025-03-05 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611540', 'tblTempUsageDetail_20' ) end [2025-03-05 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611540', 'tblTempVendorCDR_20' ) start [2025-03-05 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611540', 'tblTempVendorCDR_20' ) end [2025-03-05 07:14:17] Production.INFO: ProcessCDR(1,14611540,1,1,2) [2025-03-05 07:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611540', 'tblTempUsageDetail_20' ) start [2025-03-05 07:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611540', 'tblTempUsageDetail_20' ) end [2025-03-05 07:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:14:20] Production.INFO: ==8406== Releasing lock... [2025-03-05 07:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:14:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:15:05 [end_date_ymd] => 2025-03-05 07:15:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:15:05' and `end` < '2025-03-05 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-03-05 07:15:17] Production.INFO: count ==181 [2025-03-05 07:15:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:15:05 - End Time 2025-03-05 07:15:05 [2025-03-05 07:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611545', 'tblTempUsageDetail_20' ) start [2025-03-05 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611545', 'tblTempUsageDetail_20' ) end [2025-03-05 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611545', 'tblTempVendorCDR_20' ) start [2025-03-05 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611545', 'tblTempVendorCDR_20' ) end [2025-03-05 07:15:17] Production.INFO: ProcessCDR(1,14611545,1,1,2) [2025-03-05 07:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611545', 'tblTempUsageDetail_20' ) start [2025-03-05 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611545', 'tblTempUsageDetail_20' ) end [2025-03-05 07:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:15:21] Production.INFO: ==8481== Releasing lock... [2025-03-05 07:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:15:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 07:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:16:05 [end_date_ymd] => 2025-03-05 07:16:05 [RateCDR] => 1 ) [2025-03-05 07:16: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-03-05 04:16:05' and `end` < '2025-03-05 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-03-05 07:16:17] Production.INFO: count ==181 [2025-03-05 07:16:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:16:05 - End Time 2025-03-05 07:16:05 [2025-03-05 07:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611550', 'tblTempUsageDetail_20' ) start [2025-03-05 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611550', 'tblTempUsageDetail_20' ) end [2025-03-05 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611550', 'tblTempVendorCDR_20' ) start [2025-03-05 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611550', 'tblTempVendorCDR_20' ) end [2025-03-05 07:16:17] Production.INFO: ProcessCDR(1,14611550,1,1,2) [2025-03-05 07:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611550', 'tblTempUsageDetail_20' ) start [2025-03-05 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611550', 'tblTempUsageDetail_20' ) end [2025-03-05 07:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:16:21] Production.INFO: ==8677== Releasing lock... [2025-03-05 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:16:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:17:05 [end_date_ymd] => 2025-03-05 07:17:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:17:05' and `end` < '2025-03-05 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-03-05 07:17:17] Production.INFO: count ==182 [2025-03-05 07:17:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:17:05 - End Time 2025-03-05 07:17:05 [2025-03-05 07:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611555', 'tblTempUsageDetail_20' ) start [2025-03-05 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611555', 'tblTempUsageDetail_20' ) end [2025-03-05 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611555', 'tblTempVendorCDR_20' ) start [2025-03-05 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611555', 'tblTempVendorCDR_20' ) end [2025-03-05 07:17:17] Production.INFO: ProcessCDR(1,14611555,1,1,2) [2025-03-05 07:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611555', 'tblTempUsageDetail_20' ) start [2025-03-05 07:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611555', 'tblTempUsageDetail_20' ) end [2025-03-05 07:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:17:20] Production.INFO: ==8749== Releasing lock... [2025-03-05 07:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:17:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 07:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:18:06 [end_date_ymd] => 2025-03-05 07:18:06 [RateCDR] => 1 ) [2025-03-05 07: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-03-05 04:18:06' and `end` < '2025-03-05 07: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-03-05 07:18:18] Production.INFO: count ==185 [2025-03-05 07:18:19] Production.ERROR: pbx CDR StartTime 2025-03-05 04:18:06 - End Time 2025-03-05 07:18:06 [2025-03-05 07:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611560', 'tblTempUsageDetail_20' ) start [2025-03-05 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611560', 'tblTempUsageDetail_20' ) end [2025-03-05 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611560', 'tblTempVendorCDR_20' ) start [2025-03-05 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611560', 'tblTempVendorCDR_20' ) end [2025-03-05 07:18:19] Production.INFO: ProcessCDR(1,14611560,1,1,2) [2025-03-05 07:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611560', 'tblTempUsageDetail_20' ) start [2025-03-05 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611560', 'tblTempUsageDetail_20' ) end [2025-03-05 07:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:18:22] Production.INFO: ==8820== Releasing lock... [2025-03-05 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:18:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:19:05 [end_date_ymd] => 2025-03-05 07:19:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:19:05' and `end` < '2025-03-05 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-03-05 07:19:17] Production.INFO: count ==185 [2025-03-05 07:19:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:19:05 - End Time 2025-03-05 07:19:05 [2025-03-05 07:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611565', 'tblTempUsageDetail_20' ) start [2025-03-05 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611565', 'tblTempUsageDetail_20' ) end [2025-03-05 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611565', 'tblTempVendorCDR_20' ) start [2025-03-05 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611565', 'tblTempVendorCDR_20' ) end [2025-03-05 07:19:17] Production.INFO: ProcessCDR(1,14611565,1,1,2) [2025-03-05 07:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611565', 'tblTempUsageDetail_20' ) start [2025-03-05 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611565', 'tblTempUsageDetail_20' ) end [2025-03-05 07:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:19:20] Production.INFO: ==8892== Releasing lock... [2025-03-05 07:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:19:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-05 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:20:06 [end_date_ymd] => 2025-03-05 07:20:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:20:06' and `end` < '2025-03-05 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-03-05 07:20:18] Production.INFO: count ==189 [2025-03-05 07:20:18] Production.ERROR: pbx CDR StartTime 2025-03-05 04:20:06 - End Time 2025-03-05 07:20:06 [2025-03-05 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611571', 'tblTempUsageDetail_20' ) start [2025-03-05 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611571', 'tblTempUsageDetail_20' ) end [2025-03-05 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611571', 'tblTempVendorCDR_20' ) start [2025-03-05 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611571', 'tblTempVendorCDR_20' ) end [2025-03-05 07:20:18] Production.INFO: ProcessCDR(1,14611571,1,1,2) [2025-03-05 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611571', 'tblTempUsageDetail_20' ) start [2025-03-05 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611571', 'tblTempUsageDetail_20' ) end [2025-03-05 07:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:20:21] Production.INFO: ==8970== Releasing lock... [2025-03-05 07:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:20:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:21:05 [end_date_ymd] => 2025-03-05 07:21:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:21:05' and `end` < '2025-03-05 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-03-05 07:21:17] Production.INFO: count ==195 [2025-03-05 07:21:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:21:05 - End Time 2025-03-05 07:21:05 [2025-03-05 07:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611576', 'tblTempUsageDetail_20' ) start [2025-03-05 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611576', 'tblTempUsageDetail_20' ) end [2025-03-05 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611576', 'tblTempVendorCDR_20' ) start [2025-03-05 07:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611576', 'tblTempVendorCDR_20' ) end [2025-03-05 07:21:17] Production.INFO: ProcessCDR(1,14611576,1,1,2) [2025-03-05 07:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611576', 'tblTempUsageDetail_20' ) start [2025-03-05 07:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611576', 'tblTempUsageDetail_20' ) end [2025-03-05 07:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:21:20] Production.INFO: ==9045== Releasing lock... [2025-03-05 07:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:21:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:22:05 [end_date_ymd] => 2025-03-05 07:22:05 [RateCDR] => 1 ) [2025-03-05 07: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-03-05 04:22:05' and `end` < '2025-03-05 07: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-03-05 07:22:18] Production.INFO: count ==200 [2025-03-05 07:22:18] Production.ERROR: pbx CDR StartTime 2025-03-05 04:22:05 - End Time 2025-03-05 07:22:05 [2025-03-05 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611581', 'tblTempUsageDetail_20' ) start [2025-03-05 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611581', 'tblTempUsageDetail_20' ) end [2025-03-05 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611581', 'tblTempVendorCDR_20' ) start [2025-03-05 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611581', 'tblTempVendorCDR_20' ) end [2025-03-05 07:22:18] Production.INFO: ProcessCDR(1,14611581,1,1,2) [2025-03-05 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611581', 'tblTempUsageDetail_20' ) start [2025-03-05 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611581', 'tblTempUsageDetail_20' ) end [2025-03-05 07:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:22:21] Production.INFO: ==9119== Releasing lock... [2025-03-05 07:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:22:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:23:05 [end_date_ymd] => 2025-03-05 07:23:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:23:05' and `end` < '2025-03-05 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-03-05 07:23:17] Production.INFO: count ==200 [2025-03-05 07:23:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:23:05 - End Time 2025-03-05 07:23:05 [2025-03-05 07:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611586', 'tblTempUsageDetail_20' ) start [2025-03-05 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611586', 'tblTempUsageDetail_20' ) end [2025-03-05 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611586', 'tblTempVendorCDR_20' ) start [2025-03-05 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611586', 'tblTempVendorCDR_20' ) end [2025-03-05 07:23:18] Production.INFO: ProcessCDR(1,14611586,1,1,2) [2025-03-05 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611586', 'tblTempUsageDetail_20' ) start [2025-03-05 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611586', 'tblTempUsageDetail_20' ) end [2025-03-05 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:23:21] Production.INFO: ==9193== Releasing lock... [2025-03-05 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:23:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:24:05 [end_date_ymd] => 2025-03-05 07:24:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:24:05' and `end` < '2025-03-05 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-03-05 07:24:17] Production.INFO: count ==200 [2025-03-05 07:24:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:24:05 - End Time 2025-03-05 07:24:05 [2025-03-05 07:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611591', 'tblTempUsageDetail_20' ) start [2025-03-05 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611591', 'tblTempUsageDetail_20' ) end [2025-03-05 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611591', 'tblTempVendorCDR_20' ) start [2025-03-05 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611591', 'tblTempVendorCDR_20' ) end [2025-03-05 07:24:17] Production.INFO: ProcessCDR(1,14611591,1,1,2) [2025-03-05 07:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611591', 'tblTempUsageDetail_20' ) start [2025-03-05 07:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611591', 'tblTempUsageDetail_20' ) end [2025-03-05 07:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:24:20] Production.INFO: ==9264== Releasing lock... [2025-03-05 07:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:24:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:25:05 [end_date_ymd] => 2025-03-05 07:25:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:25:05' and `end` < '2025-03-05 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-03-05 07:25:17] Production.INFO: count ==200 [2025-03-05 07:25:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:25:05 - End Time 2025-03-05 07:25:05 [2025-03-05 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611596', 'tblTempUsageDetail_20' ) start [2025-03-05 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611596', 'tblTempUsageDetail_20' ) end [2025-03-05 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611596', 'tblTempVendorCDR_20' ) start [2025-03-05 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611596', 'tblTempVendorCDR_20' ) end [2025-03-05 07:25:17] Production.INFO: ProcessCDR(1,14611596,1,1,2) [2025-03-05 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611596', 'tblTempUsageDetail_20' ) start [2025-03-05 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611596', 'tblTempUsageDetail_20' ) end [2025-03-05 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:25:21] Production.INFO: ==9338== Releasing lock... [2025-03-05 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:25:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:26:05 [end_date_ymd] => 2025-03-05 07:26:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:26:05' and `end` < '2025-03-05 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-03-05 07:26:17] Production.INFO: count ==200 [2025-03-05 07:26:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:26:05 - End Time 2025-03-05 07:26:05 [2025-03-05 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611601', 'tblTempUsageDetail_20' ) start [2025-03-05 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611601', 'tblTempUsageDetail_20' ) end [2025-03-05 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611601', 'tblTempVendorCDR_20' ) start [2025-03-05 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611601', 'tblTempVendorCDR_20' ) end [2025-03-05 07:26:17] Production.INFO: ProcessCDR(1,14611601,1,1,2) [2025-03-05 07:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611601', 'tblTempUsageDetail_20' ) start [2025-03-05 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611601', 'tblTempUsageDetail_20' ) end [2025-03-05 07:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:26:20] Production.INFO: ==9417== Releasing lock... [2025-03-05 07:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:26:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-05 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:27:05 [end_date_ymd] => 2025-03-05 07:27:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:27:05' and `end` < '2025-03-05 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-03-05 07:27:17] Production.INFO: count ==205 [2025-03-05 07:27:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:27:05 - End Time 2025-03-05 07:27:05 [2025-03-05 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611606', 'tblTempUsageDetail_20' ) start [2025-03-05 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611606', 'tblTempUsageDetail_20' ) end [2025-03-05 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611606', 'tblTempVendorCDR_20' ) start [2025-03-05 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611606', 'tblTempVendorCDR_20' ) end [2025-03-05 07:27:17] Production.INFO: ProcessCDR(1,14611606,1,1,2) [2025-03-05 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611606', 'tblTempUsageDetail_20' ) start [2025-03-05 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611606', 'tblTempUsageDetail_20' ) end [2025-03-05 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:27:21] Production.INFO: ==9493== Releasing lock... [2025-03-05 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:27:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:28:05 [end_date_ymd] => 2025-03-05 07:28:05 [RateCDR] => 1 ) [2025-03-05 07: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-03-05 04:28:05' and `end` < '2025-03-05 07: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-03-05 07:28:17] Production.INFO: count ==205 [2025-03-05 07:28:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:28:05 - End Time 2025-03-05 07:28:05 [2025-03-05 07:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611611', 'tblTempUsageDetail_20' ) start [2025-03-05 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611611', 'tblTempUsageDetail_20' ) end [2025-03-05 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611611', 'tblTempVendorCDR_20' ) start [2025-03-05 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611611', 'tblTempVendorCDR_20' ) end [2025-03-05 07:28:17] Production.INFO: ProcessCDR(1,14611611,1,1,2) [2025-03-05 07:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611611', 'tblTempUsageDetail_20' ) start [2025-03-05 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611611', 'tblTempUsageDetail_20' ) end [2025-03-05 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:28:21] Production.INFO: ==9567== Releasing lock... [2025-03-05 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:28:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 07:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:29:06 [end_date_ymd] => 2025-03-05 07:29:06 [RateCDR] => 1 ) [2025-03-05 07:29: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-03-05 04:29:06' and `end` < '2025-03-05 07:29: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-03-05 07:29:18] Production.INFO: count ==205 [2025-03-05 07:29:18] Production.ERROR: pbx CDR StartTime 2025-03-05 04:29:06 - End Time 2025-03-05 07:29:06 [2025-03-05 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611616', 'tblTempUsageDetail_20' ) start [2025-03-05 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611616', 'tblTempUsageDetail_20' ) end [2025-03-05 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611616', 'tblTempVendorCDR_20' ) start [2025-03-05 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611616', 'tblTempVendorCDR_20' ) end [2025-03-05 07:29:18] Production.INFO: ProcessCDR(1,14611616,1,1,2) [2025-03-05 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611616', 'tblTempUsageDetail_20' ) start [2025-03-05 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611616', 'tblTempUsageDetail_20' ) end [2025-03-05 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:29:21] Production.INFO: ==9638== Releasing lock... [2025-03-05 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:29:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:30:06 [end_date_ymd] => 2025-03-05 07:30:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:30:06' and `end` < '2025-03-05 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-03-05 07:30:18] Production.INFO: count ==207 [2025-03-05 07:30:18] Production.ERROR: pbx CDR StartTime 2025-03-05 04:30:06 - End Time 2025-03-05 07:30:06 [2025-03-05 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611622', 'tblTempUsageDetail_20' ) start [2025-03-05 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611622', 'tblTempUsageDetail_20' ) end [2025-03-05 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611622', 'tblTempVendorCDR_20' ) start [2025-03-05 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611622', 'tblTempVendorCDR_20' ) end [2025-03-05 07:30:18] Production.INFO: ProcessCDR(1,14611622,1,1,2) [2025-03-05 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611622', 'tblTempUsageDetail_20' ) start [2025-03-05 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611622', 'tblTempUsageDetail_20' ) end [2025-03-05 07:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:30:21] Production.INFO: ==9713== Releasing lock... [2025-03-05 07:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:30:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:31:05 [end_date_ymd] => 2025-03-05 07:31:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:31:05' and `end` < '2025-03-05 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-03-05 07:31:17] Production.INFO: count ==218 [2025-03-05 07:31:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:31:05 - End Time 2025-03-05 07:31:05 [2025-03-05 07:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611627', 'tblTempUsageDetail_20' ) start [2025-03-05 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611627', 'tblTempUsageDetail_20' ) end [2025-03-05 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611627', 'tblTempVendorCDR_20' ) start [2025-03-05 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611627', 'tblTempVendorCDR_20' ) end [2025-03-05 07:31:17] Production.INFO: ProcessCDR(1,14611627,1,1,2) [2025-03-05 07:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611627', 'tblTempUsageDetail_20' ) start [2025-03-05 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611627', 'tblTempUsageDetail_20' ) end [2025-03-05 07:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:31:22] Production.INFO: ==9831== Releasing lock... [2025-03-05 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:31:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:32:05 [end_date_ymd] => 2025-03-05 07:32:05 [RateCDR] => 1 ) [2025-03-05 07: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-03-05 04:32:05' and `end` < '2025-03-05 07: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-03-05 07:32:17] Production.INFO: count ==218 [2025-03-05 07:32:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:32:05 - End Time 2025-03-05 07:32:05 [2025-03-05 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611632', 'tblTempUsageDetail_20' ) start [2025-03-05 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611632', 'tblTempUsageDetail_20' ) end [2025-03-05 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611632', 'tblTempVendorCDR_20' ) start [2025-03-05 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611632', 'tblTempVendorCDR_20' ) end [2025-03-05 07:32:17] Production.INFO: ProcessCDR(1,14611632,1,1,2) [2025-03-05 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611632', 'tblTempUsageDetail_20' ) start [2025-03-05 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611632', 'tblTempUsageDetail_20' ) end [2025-03-05 07:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:32:20] Production.INFO: ==9920== Releasing lock... [2025-03-05 07:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:32:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:33:05 [end_date_ymd] => 2025-03-05 07:33:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:33:05' and `end` < '2025-03-05 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-03-05 07:33:17] Production.INFO: count ==238 [2025-03-05 07:33:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:33:05 - End Time 2025-03-05 07:33:05 [2025-03-05 07:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611637', 'tblTempUsageDetail_20' ) start [2025-03-05 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611637', 'tblTempUsageDetail_20' ) end [2025-03-05 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611637', 'tblTempVendorCDR_20' ) start [2025-03-05 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611637', 'tblTempVendorCDR_20' ) end [2025-03-05 07:33:17] Production.INFO: ProcessCDR(1,14611637,1,1,2) [2025-03-05 07:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611637', 'tblTempUsageDetail_20' ) start [2025-03-05 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611637', 'tblTempUsageDetail_20' ) end [2025-03-05 07:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:33:20] Production.INFO: ==9992== Releasing lock... [2025-03-05 07:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:33:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:34:05 [end_date_ymd] => 2025-03-05 07:34:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:34:05' and `end` < '2025-03-05 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-03-05 07:34:17] Production.INFO: count ==238 [2025-03-05 07:34:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:34:05 - End Time 2025-03-05 07:34:05 [2025-03-05 07:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611642', 'tblTempUsageDetail_20' ) start [2025-03-05 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611642', 'tblTempUsageDetail_20' ) end [2025-03-05 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611642', 'tblTempVendorCDR_20' ) start [2025-03-05 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611642', 'tblTempVendorCDR_20' ) end [2025-03-05 07:34:17] Production.INFO: ProcessCDR(1,14611642,1,1,2) [2025-03-05 07:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611642', 'tblTempUsageDetail_20' ) start [2025-03-05 07:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611642', 'tblTempUsageDetail_20' ) end [2025-03-05 07:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:34:20] Production.INFO: ==10066== Releasing lock... [2025-03-05 07:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:34:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 07:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:35:04 [end_date_ymd] => 2025-03-05 07:35:04 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:35:04' and `end` < '2025-03-05 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-03-05 07:35:17] Production.INFO: count ==238 [2025-03-05 07:35:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:35:04 - End Time 2025-03-05 07:35:04 [2025-03-05 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611647', 'tblTempUsageDetail_20' ) start [2025-03-05 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611647', 'tblTempUsageDetail_20' ) end [2025-03-05 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611647', 'tblTempVendorCDR_20' ) start [2025-03-05 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611647', 'tblTempVendorCDR_20' ) end [2025-03-05 07:35:17] Production.INFO: ProcessCDR(1,14611647,1,1,2) [2025-03-05 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611647', 'tblTempUsageDetail_20' ) start [2025-03-05 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611647', 'tblTempUsageDetail_20' ) end [2025-03-05 07:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:35:20] Production.INFO: ==10137== Releasing lock... [2025-03-05 07:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:35:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:36:05 [end_date_ymd] => 2025-03-05 07:36:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:36:05' and `end` < '2025-03-05 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-03-05 07:36:17] Production.INFO: count ==238 [2025-03-05 07:36:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:36:05 - End Time 2025-03-05 07:36:05 [2025-03-05 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611652', 'tblTempUsageDetail_20' ) start [2025-03-05 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611652', 'tblTempUsageDetail_20' ) end [2025-03-05 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611652', 'tblTempVendorCDR_20' ) start [2025-03-05 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611652', 'tblTempVendorCDR_20' ) end [2025-03-05 07:36:17] Production.INFO: ProcessCDR(1,14611652,1,1,2) [2025-03-05 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611652', 'tblTempUsageDetail_20' ) start [2025-03-05 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611652', 'tblTempUsageDetail_20' ) end [2025-03-05 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:36:21] Production.INFO: ==10212== Releasing lock... [2025-03-05 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:36:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:37:05 [end_date_ymd] => 2025-03-05 07:37:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:37:05' and `end` < '2025-03-05 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-03-05 07:37:17] Production.INFO: count ==238 [2025-03-05 07:37:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:37:05 - End Time 2025-03-05 07:37:05 [2025-03-05 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611657', 'tblTempUsageDetail_20' ) start [2025-03-05 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611657', 'tblTempUsageDetail_20' ) end [2025-03-05 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611657', 'tblTempVendorCDR_20' ) start [2025-03-05 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611657', 'tblTempVendorCDR_20' ) end [2025-03-05 07:37:17] Production.INFO: ProcessCDR(1,14611657,1,1,2) [2025-03-05 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611657', 'tblTempUsageDetail_20' ) start [2025-03-05 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611657', 'tblTempUsageDetail_20' ) end [2025-03-05 07:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:37:20] Production.INFO: ==10283== Releasing lock... [2025-03-05 07:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:37:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:38:05 [end_date_ymd] => 2025-03-05 07:38:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:38:05' and `end` < '2025-03-05 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-03-05 07:38:17] Production.INFO: count ==238 [2025-03-05 07:38:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:38:05 - End Time 2025-03-05 07:38:05 [2025-03-05 07:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611662', 'tblTempUsageDetail_20' ) start [2025-03-05 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611662', 'tblTempUsageDetail_20' ) end [2025-03-05 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611662', 'tblTempVendorCDR_20' ) start [2025-03-05 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611662', 'tblTempVendorCDR_20' ) end [2025-03-05 07:38:17] Production.INFO: ProcessCDR(1,14611662,1,1,2) [2025-03-05 07:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611662', 'tblTempUsageDetail_20' ) start [2025-03-05 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611662', 'tblTempUsageDetail_20' ) end [2025-03-05 07:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:38:20] Production.INFO: ==10358== Releasing lock... [2025-03-05 07:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:38:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:39:05 [end_date_ymd] => 2025-03-05 07:39:05 [RateCDR] => 1 ) [2025-03-05 07:39: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-03-05 04:39:05' and `end` < '2025-03-05 07: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-03-05 07:39:18] Production.INFO: count ==238 [2025-03-05 07:39:18] Production.ERROR: pbx CDR StartTime 2025-03-05 04:39:05 - End Time 2025-03-05 07:39:05 [2025-03-05 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611667', 'tblTempUsageDetail_20' ) start [2025-03-05 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611667', 'tblTempUsageDetail_20' ) end [2025-03-05 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611667', 'tblTempVendorCDR_20' ) start [2025-03-05 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611667', 'tblTempVendorCDR_20' ) end [2025-03-05 07:39:18] Production.INFO: ProcessCDR(1,14611667,1,1,2) [2025-03-05 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611667', 'tblTempUsageDetail_20' ) start [2025-03-05 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611667', 'tblTempUsageDetail_20' ) end [2025-03-05 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:39:21] Production.INFO: ==10431== Releasing lock... [2025-03-05 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:39:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:40:06 [end_date_ymd] => 2025-03-05 07:40:06 [RateCDR] => 1 ) [2025-03-05 07: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-03-05 04:40:06' and `end` < '2025-03-05 07: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-03-05 07:40:18] Production.INFO: count ==236 [2025-03-05 07:40:18] Production.ERROR: pbx CDR StartTime 2025-03-05 04:40:06 - End Time 2025-03-05 07:40:06 [2025-03-05 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611672', 'tblTempUsageDetail_20' ) start [2025-03-05 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611672', 'tblTempUsageDetail_20' ) end [2025-03-05 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611672', 'tblTempVendorCDR_20' ) start [2025-03-05 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611672', 'tblTempVendorCDR_20' ) end [2025-03-05 07:40:18] Production.INFO: ProcessCDR(1,14611672,1,1,2) [2025-03-05 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611672', 'tblTempUsageDetail_20' ) start [2025-03-05 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611672', 'tblTempUsageDetail_20' ) end [2025-03-05 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:40:22] Production.INFO: ==10509== Releasing lock... [2025-03-05 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:40:22] Production.INFO: 30 MB #Memory Used# [2025-03-05 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:41:05 [end_date_ymd] => 2025-03-05 07:41:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:41:05' and `end` < '2025-03-05 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-03-05 07:41:17] Production.INFO: count ==236 [2025-03-05 07:41:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:41:05 - End Time 2025-03-05 07:41:05 [2025-03-05 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611678', 'tblTempUsageDetail_20' ) start [2025-03-05 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611678', 'tblTempUsageDetail_20' ) end [2025-03-05 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611678', 'tblTempVendorCDR_20' ) start [2025-03-05 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611678', 'tblTempVendorCDR_20' ) end [2025-03-05 07:41:17] Production.INFO: ProcessCDR(1,14611678,1,1,2) [2025-03-05 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611678', 'tblTempUsageDetail_20' ) start [2025-03-05 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611678', 'tblTempUsageDetail_20' ) end [2025-03-05 07:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:41:20] Production.INFO: ==10586== Releasing lock... [2025-03-05 07:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:41:20] Production.INFO: 30 MB #Memory Used# [2025-03-05 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:42:05 [end_date_ymd] => 2025-03-05 07:42:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:42:05' and `end` < '2025-03-05 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-03-05 07:42:17] Production.INFO: count ==237 [2025-03-05 07:42:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:42:05 - End Time 2025-03-05 07:42:05 [2025-03-05 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611683', 'tblTempUsageDetail_20' ) start [2025-03-05 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611683', 'tblTempUsageDetail_20' ) end [2025-03-05 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611683', 'tblTempVendorCDR_20' ) start [2025-03-05 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611683', 'tblTempVendorCDR_20' ) end [2025-03-05 07:42:17] Production.INFO: ProcessCDR(1,14611683,1,1,2) [2025-03-05 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611683', 'tblTempUsageDetail_20' ) start [2025-03-05 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611683', 'tblTempUsageDetail_20' ) end [2025-03-05 07:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:42:22] Production.INFO: ==10656== Releasing lock... [2025-03-05 07:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:42:22] Production.INFO: 30 MB #Memory Used# [2025-03-05 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:43:05 [end_date_ymd] => 2025-03-05 07:43:05 [RateCDR] => 1 ) [2025-03-05 07: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-03-05 04:43:05' and `end` < '2025-03-05 07: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-03-05 07:43:16] Production.INFO: count ==242 [2025-03-05 07:43:16] Production.ERROR: pbx CDR StartTime 2025-03-05 04:43:05 - End Time 2025-03-05 07:43:05 [2025-03-05 07:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611688', 'tblTempUsageDetail_20' ) start [2025-03-05 07:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611688', 'tblTempUsageDetail_20' ) end [2025-03-05 07:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611688', 'tblTempVendorCDR_20' ) start [2025-03-05 07:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611688', 'tblTempVendorCDR_20' ) end [2025-03-05 07:43:16] Production.INFO: ProcessCDR(1,14611688,1,1,2) [2025-03-05 07:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:43:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:43:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611688', 'tblTempUsageDetail_20' ) start [2025-03-05 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611688', 'tblTempUsageDetail_20' ) end [2025-03-05 07:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:43:20] Production.INFO: ==10728== Releasing lock... [2025-03-05 07:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:43:20] Production.INFO: 30 MB #Memory Used# [2025-03-05 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:44:05 [end_date_ymd] => 2025-03-05 07:44:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:44:05' and `end` < '2025-03-05 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-03-05 07:44:17] Production.INFO: count ==243 [2025-03-05 07:44:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:44:05 - End Time 2025-03-05 07:44:05 [2025-03-05 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611693', 'tblTempUsageDetail_20' ) start [2025-03-05 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611693', 'tblTempUsageDetail_20' ) end [2025-03-05 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611693', 'tblTempVendorCDR_20' ) start [2025-03-05 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611693', 'tblTempVendorCDR_20' ) end [2025-03-05 07:44:17] Production.INFO: ProcessCDR(1,14611693,1,1,2) [2025-03-05 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611693', 'tblTempUsageDetail_20' ) start [2025-03-05 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611693', 'tblTempUsageDetail_20' ) end [2025-03-05 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:44:21] Production.INFO: ==10799== Releasing lock... [2025-03-05 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:44:21] Production.INFO: 30 MB #Memory Used# [2025-03-05 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:45:05 [end_date_ymd] => 2025-03-05 07:45:05 [RateCDR] => 1 ) [2025-03-05 07: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-03-05 04:45:05' and `end` < '2025-03-05 07: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-03-05 07:45:17] Production.INFO: count ==243 [2025-03-05 07:45:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:45:05 - End Time 2025-03-05 07:45:05 [2025-03-05 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611698', 'tblTempUsageDetail_20' ) start [2025-03-05 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611698', 'tblTempUsageDetail_20' ) end [2025-03-05 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611698', 'tblTempVendorCDR_20' ) start [2025-03-05 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611698', 'tblTempVendorCDR_20' ) end [2025-03-05 07:45:17] Production.INFO: ProcessCDR(1,14611698,1,1,2) [2025-03-05 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611698', 'tblTempUsageDetail_20' ) start [2025-03-05 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611698', 'tblTempUsageDetail_20' ) end [2025-03-05 07:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:45:20] Production.INFO: ==10872== Releasing lock... [2025-03-05 07:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:45:20] Production.INFO: 30 MB #Memory Used# [2025-03-05 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:46:05 [end_date_ymd] => 2025-03-05 07:46:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:46:05' and `end` < '2025-03-05 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-03-05 07:46:17] Production.INFO: count ==243 [2025-03-05 07:46:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:46:05 - End Time 2025-03-05 07:46:05 [2025-03-05 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611703', 'tblTempUsageDetail_20' ) start [2025-03-05 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611703', 'tblTempUsageDetail_20' ) end [2025-03-05 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611703', 'tblTempVendorCDR_20' ) start [2025-03-05 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611703', 'tblTempVendorCDR_20' ) end [2025-03-05 07:46:17] Production.INFO: ProcessCDR(1,14611703,1,1,2) [2025-03-05 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611703', 'tblTempUsageDetail_20' ) start [2025-03-05 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611703', 'tblTempUsageDetail_20' ) end [2025-03-05 07:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:46:20] Production.INFO: ==10946== Releasing lock... [2025-03-05 07:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:46:20] Production.INFO: 30 MB #Memory Used# [2025-03-05 07:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:47:06 [end_date_ymd] => 2025-03-05 07:47:06 [RateCDR] => 1 ) [2025-03-05 07:47: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-03-05 04:47:06' and `end` < '2025-03-05 07:47: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-03-05 07:47:18] Production.INFO: count ==243 [2025-03-05 07:47:18] Production.ERROR: pbx CDR StartTime 2025-03-05 04:47:06 - End Time 2025-03-05 07:47:06 [2025-03-05 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611708', 'tblTempUsageDetail_20' ) start [2025-03-05 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611708', 'tblTempUsageDetail_20' ) end [2025-03-05 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611708', 'tblTempVendorCDR_20' ) start [2025-03-05 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611708', 'tblTempVendorCDR_20' ) end [2025-03-05 07:47:18] Production.INFO: ProcessCDR(1,14611708,1,1,2) [2025-03-05 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611708', 'tblTempUsageDetail_20' ) start [2025-03-05 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611708', 'tblTempUsageDetail_20' ) end [2025-03-05 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:47:21] Production.INFO: ==11056== Releasing lock... [2025-03-05 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:47:21] Production.INFO: 30 MB #Memory Used# [2025-03-05 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:48:05 [end_date_ymd] => 2025-03-05 07:48:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:48:05' and `end` < '2025-03-05 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-03-05 07:48:17] Production.INFO: count ==243 [2025-03-05 07:48:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:48:05 - End Time 2025-03-05 07:48:05 [2025-03-05 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611713', 'tblTempUsageDetail_20' ) start [2025-03-05 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611713', 'tblTempUsageDetail_20' ) end [2025-03-05 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611713', 'tblTempVendorCDR_20' ) start [2025-03-05 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611713', 'tblTempVendorCDR_20' ) end [2025-03-05 07:48:17] Production.INFO: ProcessCDR(1,14611713,1,1,2) [2025-03-05 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611713', 'tblTempUsageDetail_20' ) start [2025-03-05 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611713', 'tblTempUsageDetail_20' ) end [2025-03-05 07:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:48:20] Production.INFO: ==11129== Releasing lock... [2025-03-05 07:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:48:20] Production.INFO: 30 MB #Memory Used# [2025-03-05 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:49:05 [end_date_ymd] => 2025-03-05 07:49:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:49:05' and `end` < '2025-03-05 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-03-05 07:49:17] Production.INFO: count ==243 [2025-03-05 07:49:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:49:05 - End Time 2025-03-05 07:49:05 [2025-03-05 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611718', 'tblTempUsageDetail_20' ) start [2025-03-05 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611718', 'tblTempUsageDetail_20' ) end [2025-03-05 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611718', 'tblTempVendorCDR_20' ) start [2025-03-05 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611718', 'tblTempVendorCDR_20' ) end [2025-03-05 07:49:17] Production.INFO: ProcessCDR(1,14611718,1,1,2) [2025-03-05 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611718', 'tblTempUsageDetail_20' ) start [2025-03-05 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611718', 'tblTempUsageDetail_20' ) end [2025-03-05 07:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:49:20] Production.INFO: ==11202== Releasing lock... [2025-03-05 07:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:49:20] Production.INFO: 30 MB #Memory Used# [2025-03-05 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:50:05 [end_date_ymd] => 2025-03-05 07:50:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:50:05' and `end` < '2025-03-05 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-03-05 07:50:17] Production.INFO: count ==243 [2025-03-05 07:50:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:50:05 - End Time 2025-03-05 07:50:05 [2025-03-05 07:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611724', 'tblTempUsageDetail_20' ) start [2025-03-05 07:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611724', 'tblTempUsageDetail_20' ) end [2025-03-05 07:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611724', 'tblTempVendorCDR_20' ) start [2025-03-05 07:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611724', 'tblTempVendorCDR_20' ) end [2025-03-05 07:50:17] Production.INFO: ProcessCDR(1,14611724,1,1,2) [2025-03-05 07:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611724', 'tblTempUsageDetail_20' ) start [2025-03-05 07:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611724', 'tblTempUsageDetail_20' ) end [2025-03-05 07:50:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:50:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:50:20] Production.INFO: ==11275== Releasing lock... [2025-03-05 07:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:50:20] Production.INFO: 30 MB #Memory Used# [2025-03-05 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:51:05 [end_date_ymd] => 2025-03-05 07:51:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:51:05' and `end` < '2025-03-05 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-03-05 07:51:17] Production.INFO: count ==243 [2025-03-05 07:51:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:51:05 - End Time 2025-03-05 07:51:05 [2025-03-05 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611729', 'tblTempUsageDetail_20' ) start [2025-03-05 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611729', 'tblTempUsageDetail_20' ) end [2025-03-05 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611729', 'tblTempVendorCDR_20' ) start [2025-03-05 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611729', 'tblTempVendorCDR_20' ) end [2025-03-05 07:51:17] Production.INFO: ProcessCDR(1,14611729,1,1,2) [2025-03-05 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611729', 'tblTempUsageDetail_20' ) start [2025-03-05 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611729', 'tblTempUsageDetail_20' ) end [2025-03-05 07:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:51:20] Production.INFO: ==11348== Releasing lock... [2025-03-05 07:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:51:20] Production.INFO: 30 MB #Memory Used# [2025-03-05 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:52:05 [end_date_ymd] => 2025-03-05 07:52:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:52:05' and `end` < '2025-03-05 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-03-05 07:52:17] Production.INFO: count ==243 [2025-03-05 07:52:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:52:05 - End Time 2025-03-05 07:52:05 [2025-03-05 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611734', 'tblTempUsageDetail_20' ) start [2025-03-05 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611734', 'tblTempUsageDetail_20' ) end [2025-03-05 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611734', 'tblTempVendorCDR_20' ) start [2025-03-05 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611734', 'tblTempVendorCDR_20' ) end [2025-03-05 07:52:17] Production.INFO: ProcessCDR(1,14611734,1,1,2) [2025-03-05 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611734', 'tblTempUsageDetail_20' ) start [2025-03-05 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611734', 'tblTempUsageDetail_20' ) end [2025-03-05 07:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:52:21] Production.INFO: ==11433== Releasing lock... [2025-03-05 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:52:21] Production.INFO: 30 MB #Memory Used# [2025-03-05 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:53:05 [end_date_ymd] => 2025-03-05 07:53:05 [RateCDR] => 1 ) [2025-03-05 07: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-03-05 04:53:05' and `end` < '2025-03-05 07: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-03-05 07:53:17] Production.INFO: count ==239 [2025-03-05 07:53:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:53:05 - End Time 2025-03-05 07:53:05 [2025-03-05 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611739', 'tblTempUsageDetail_20' ) start [2025-03-05 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611739', 'tblTempUsageDetail_20' ) end [2025-03-05 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611739', 'tblTempVendorCDR_20' ) start [2025-03-05 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611739', 'tblTempVendorCDR_20' ) end [2025-03-05 07:53:17] Production.INFO: ProcessCDR(1,14611739,1,1,2) [2025-03-05 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611739', 'tblTempUsageDetail_20' ) start [2025-03-05 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611739', 'tblTempUsageDetail_20' ) end [2025-03-05 07:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:53:20] Production.INFO: ==11524== Releasing lock... [2025-03-05 07:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:53:20] Production.INFO: 30 MB #Memory Used# [2025-03-05 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:54:05 [end_date_ymd] => 2025-03-05 07:54:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:54:05' and `end` < '2025-03-05 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-03-05 07:54:17] Production.INFO: count ==239 [2025-03-05 07:54:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:54:05 - End Time 2025-03-05 07:54:05 [2025-03-05 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611744', 'tblTempUsageDetail_20' ) start [2025-03-05 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611744', 'tblTempUsageDetail_20' ) end [2025-03-05 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611744', 'tblTempVendorCDR_20' ) start [2025-03-05 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611744', 'tblTempVendorCDR_20' ) end [2025-03-05 07:54:17] Production.INFO: ProcessCDR(1,14611744,1,1,2) [2025-03-05 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611744', 'tblTempUsageDetail_20' ) start [2025-03-05 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611744', 'tblTempUsageDetail_20' ) end [2025-03-05 07:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:54:20] Production.INFO: ==11603== Releasing lock... [2025-03-05 07:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:54:20] Production.INFO: 30 MB #Memory Used# [2025-03-05 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:55:05 [end_date_ymd] => 2025-03-05 07:55:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:55:05' and `end` < '2025-03-05 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-03-05 07:55:17] Production.INFO: count ==246 [2025-03-05 07:55:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:55:05 - End Time 2025-03-05 07:55:05 [2025-03-05 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611749', 'tblTempUsageDetail_20' ) start [2025-03-05 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611749', 'tblTempUsageDetail_20' ) end [2025-03-05 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611749', 'tblTempVendorCDR_20' ) start [2025-03-05 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611749', 'tblTempVendorCDR_20' ) end [2025-03-05 07:55:17] Production.INFO: ProcessCDR(1,14611749,1,1,2) [2025-03-05 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611749', 'tblTempUsageDetail_20' ) start [2025-03-05 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611749', 'tblTempUsageDetail_20' ) end [2025-03-05 07:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:55:20] Production.INFO: ==11684== Releasing lock... [2025-03-05 07:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:55:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:56:05 [end_date_ymd] => 2025-03-05 07:56:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:56:05' and `end` < '2025-03-05 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-03-05 07:56:17] Production.INFO: count ==246 [2025-03-05 07:56:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:56:05 - End Time 2025-03-05 07:56:05 [2025-03-05 07:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611754', 'tblTempUsageDetail_20' ) start [2025-03-05 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611754', 'tblTempUsageDetail_20' ) end [2025-03-05 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611754', 'tblTempVendorCDR_20' ) start [2025-03-05 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611754', 'tblTempVendorCDR_20' ) end [2025-03-05 07:56:17] Production.INFO: ProcessCDR(1,14611754,1,1,2) [2025-03-05 07:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611754', 'tblTempUsageDetail_20' ) start [2025-03-05 07:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611754', 'tblTempUsageDetail_20' ) end [2025-03-05 07:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:56:20] Production.INFO: ==11760== Releasing lock... [2025-03-05 07:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:56:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-05 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:57:05 [end_date_ymd] => 2025-03-05 07:57:05 [RateCDR] => 1 ) [2025-03-05 07: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-03-05 04:57:05' and `end` < '2025-03-05 07: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-03-05 07:57:17] Production.INFO: count ==257 [2025-03-05 07:57:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:57:05 - End Time 2025-03-05 07:57:05 [2025-03-05 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611759', 'tblTempUsageDetail_20' ) start [2025-03-05 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611759', 'tblTempUsageDetail_20' ) end [2025-03-05 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611759', 'tblTempVendorCDR_20' ) start [2025-03-05 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611759', 'tblTempVendorCDR_20' ) end [2025-03-05 07:57:17] Production.INFO: ProcessCDR(1,14611759,1,1,2) [2025-03-05 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611759', 'tblTempUsageDetail_20' ) start [2025-03-05 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611759', 'tblTempUsageDetail_20' ) end [2025-03-05 07:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:57:20] Production.INFO: ==11841== Releasing lock... [2025-03-05 07:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:57:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-05 07:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:58:06 [end_date_ymd] => 2025-03-05 07:58:06 [RateCDR] => 1 ) [2025-03-05 07: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-03-05 04:58:06' and `end` < '2025-03-05 07: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-03-05 07:58:18] Production.INFO: count ==257 [2025-03-05 07:58:18] Production.ERROR: pbx CDR StartTime 2025-03-05 04:58:06 - End Time 2025-03-05 07:58:06 [2025-03-05 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611764', 'tblTempUsageDetail_20' ) start [2025-03-05 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611764', 'tblTempUsageDetail_20' ) end [2025-03-05 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611764', 'tblTempVendorCDR_20' ) start [2025-03-05 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611764', 'tblTempVendorCDR_20' ) end [2025-03-05 07:58:18] Production.INFO: ProcessCDR(1,14611764,1,1,2) [2025-03-05 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611764', 'tblTempUsageDetail_20' ) start [2025-03-05 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611764', 'tblTempUsageDetail_20' ) end [2025-03-05 07:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:58:21] Production.INFO: ==11918== Releasing lock... [2025-03-05 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:58:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-05 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 04:59:05 [end_date_ymd] => 2025-03-05 07:59:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 04:59:05' and `end` < '2025-03-05 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-03-05 07:59:17] Production.INFO: count ==262 [2025-03-05 07:59:17] Production.ERROR: pbx CDR StartTime 2025-03-05 04:59:05 - End Time 2025-03-05 07:59:05 [2025-03-05 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611769', 'tblTempUsageDetail_20' ) start [2025-03-05 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611769', 'tblTempUsageDetail_20' ) end [2025-03-05 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611769', 'tblTempVendorCDR_20' ) start [2025-03-05 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611769', 'tblTempVendorCDR_20' ) end [2025-03-05 07:59:17] Production.INFO: ProcessCDR(1,14611769,1,1,2) [2025-03-05 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 07:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611769', 'tblTempUsageDetail_20' ) start [2025-03-05 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611769', 'tblTempUsageDetail_20' ) end [2025-03-05 07:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 07:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 07:59:20] Production.INFO: ==11994== Releasing lock... [2025-03-05 07:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 07:59:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-05 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:00:06 [end_date_ymd] => 2025-03-05 08:00:06 [RateCDR] => 1 ) [2025-03-05 08: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-03-05 05:00:06' and `end` < '2025-03-05 08: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-03-05 08:00:18] Production.INFO: count ==260 [2025-03-05 08:00:18] Production.ERROR: pbx CDR StartTime 2025-03-05 05:00:06 - End Time 2025-03-05 08:00:06 [2025-03-05 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611775', 'tblTempUsageDetail_20' ) start [2025-03-05 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611775', 'tblTempUsageDetail_20' ) end [2025-03-05 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611775', 'tblTempVendorCDR_20' ) start [2025-03-05 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611775', 'tblTempVendorCDR_20' ) end [2025-03-05 08:00:18] Production.INFO: ProcessCDR(1,14611775,1,1,2) [2025-03-05 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611775', 'tblTempUsageDetail_20' ) start [2025-03-05 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611775', 'tblTempUsageDetail_20' ) end [2025-03-05 08:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:00:21] Production.INFO: ==12073== Releasing lock... [2025-03-05 08:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:00:21] Production.INFO: 30 MB #Memory Used# [2025-03-05 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:01:05 [end_date_ymd] => 2025-03-05 08:01:05 [RateCDR] => 1 ) [2025-03-05 08: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-03-05 05:01:05' and `end` < '2025-03-05 08: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-03-05 08:01:17] Production.INFO: count ==275 [2025-03-05 08:01:17] Production.ERROR: pbx CDR StartTime 2025-03-05 05:01:05 - End Time 2025-03-05 08:01:05 [2025-03-05 08:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611780', 'tblTempUsageDetail_20' ) start [2025-03-05 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611780', 'tblTempUsageDetail_20' ) end [2025-03-05 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611780', 'tblTempVendorCDR_20' ) start [2025-03-05 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611780', 'tblTempVendorCDR_20' ) end [2025-03-05 08:01:17] Production.INFO: ProcessCDR(1,14611780,1,1,2) [2025-03-05 08:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611780', 'tblTempUsageDetail_20' ) start [2025-03-05 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611780', 'tblTempUsageDetail_20' ) end [2025-03-05 08:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:01:20] Production.INFO: ==12163== Releasing lock... [2025-03-05 08:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:01:20] Production.INFO: 30 MB #Memory Used# [2025-03-05 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:02:05 [end_date_ymd] => 2025-03-05 08:02:05 [RateCDR] => 1 ) [2025-03-05 08: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-03-05 05:02:05' and `end` < '2025-03-05 08: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-03-05 08:02:17] Production.INFO: count ==277 [2025-03-05 08:02:17] Production.ERROR: pbx CDR StartTime 2025-03-05 05:02:05 - End Time 2025-03-05 08:02:05 [2025-03-05 08:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611785', 'tblTempUsageDetail_20' ) start [2025-03-05 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611785', 'tblTempUsageDetail_20' ) end [2025-03-05 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611785', 'tblTempVendorCDR_20' ) start [2025-03-05 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611785', 'tblTempVendorCDR_20' ) end [2025-03-05 08:02:17] Production.INFO: ProcessCDR(1,14611785,1,1,2) [2025-03-05 08:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611785', 'tblTempUsageDetail_20' ) start [2025-03-05 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611785', 'tblTempUsageDetail_20' ) end [2025-03-05 08:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:02:22] Production.INFO: ==12281== Releasing lock... [2025-03-05 08:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:02:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 08:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:03:06 [end_date_ymd] => 2025-03-05 08:03:06 [RateCDR] => 1 ) [2025-03-05 08: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-03-05 05:03:06' and `end` < '2025-03-05 08: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-03-05 08:03:18] Production.INFO: count ==277 [2025-03-05 08:03:18] Production.ERROR: pbx CDR StartTime 2025-03-05 05:03:06 - End Time 2025-03-05 08:03:06 [2025-03-05 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611790', 'tblTempUsageDetail_20' ) start [2025-03-05 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611790', 'tblTempUsageDetail_20' ) end [2025-03-05 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611790', 'tblTempVendorCDR_20' ) start [2025-03-05 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611790', 'tblTempVendorCDR_20' ) end [2025-03-05 08:03:18] Production.INFO: ProcessCDR(1,14611790,1,1,2) [2025-03-05 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611790', 'tblTempUsageDetail_20' ) start [2025-03-05 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611790', 'tblTempUsageDetail_20' ) end [2025-03-05 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:03:21] Production.INFO: ==12362== Releasing lock... [2025-03-05 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:03:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:04:05 [end_date_ymd] => 2025-03-05 08:04:05 [RateCDR] => 1 ) [2025-03-05 08: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-03-05 05:04:05' and `end` < '2025-03-05 08: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-03-05 08:04:18] Production.INFO: count ==277 [2025-03-05 08:04:18] Production.ERROR: pbx CDR StartTime 2025-03-05 05:04:05 - End Time 2025-03-05 08:04:05 [2025-03-05 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611795', 'tblTempUsageDetail_20' ) start [2025-03-05 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611795', 'tblTempUsageDetail_20' ) end [2025-03-05 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611795', 'tblTempVendorCDR_20' ) start [2025-03-05 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611795', 'tblTempVendorCDR_20' ) end [2025-03-05 08:04:18] Production.INFO: ProcessCDR(1,14611795,1,1,2) [2025-03-05 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611795', 'tblTempUsageDetail_20' ) start [2025-03-05 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611795', 'tblTempUsageDetail_20' ) end [2025-03-05 08:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:04:21] Production.INFO: ==12437== Releasing lock... [2025-03-05 08:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:04:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 08:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:05:06 [end_date_ymd] => 2025-03-05 08:05:06 [RateCDR] => 1 ) [2025-03-05 08:05: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-03-05 05:05:06' and `end` < '2025-03-05 08:05: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-03-05 08:05:18] Production.INFO: count ==277 [2025-03-05 08:05:18] Production.ERROR: pbx CDR StartTime 2025-03-05 05:05:06 - End Time 2025-03-05 08:05:06 [2025-03-05 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611800', 'tblTempUsageDetail_20' ) start [2025-03-05 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611800', 'tblTempUsageDetail_20' ) end [2025-03-05 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611800', 'tblTempVendorCDR_20' ) start [2025-03-05 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611800', 'tblTempVendorCDR_20' ) end [2025-03-05 08:05:18] Production.INFO: ProcessCDR(1,14611800,1,1,2) [2025-03-05 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611800', 'tblTempUsageDetail_20' ) start [2025-03-05 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611800', 'tblTempUsageDetail_20' ) end [2025-03-05 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:05:21] Production.INFO: ==12515== Releasing lock... [2025-03-05 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:05:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:06:05 [end_date_ymd] => 2025-03-05 08:06:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 05:06:05' and `end` < '2025-03-05 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-03-05 08:06:17] Production.INFO: count ==282 [2025-03-05 08:06:17] Production.ERROR: pbx CDR StartTime 2025-03-05 05:06:05 - End Time 2025-03-05 08:06:05 [2025-03-05 08:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611805', 'tblTempUsageDetail_20' ) start [2025-03-05 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611805', 'tblTempUsageDetail_20' ) end [2025-03-05 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611805', 'tblTempVendorCDR_20' ) start [2025-03-05 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611805', 'tblTempVendorCDR_20' ) end [2025-03-05 08:06:17] Production.INFO: ProcessCDR(1,14611805,1,1,2) [2025-03-05 08:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611805', 'tblTempUsageDetail_20' ) start [2025-03-05 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611805', 'tblTempUsageDetail_20' ) end [2025-03-05 08:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:06:20] Production.INFO: ==12593== Releasing lock... [2025-03-05 08:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:06:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:07:05 [end_date_ymd] => 2025-03-05 08:07:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 05:07:05' and `end` < '2025-03-05 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-03-05 08:07:17] Production.INFO: count ==288 [2025-03-05 08:07:17] Production.ERROR: pbx CDR StartTime 2025-03-05 05:07:05 - End Time 2025-03-05 08:07:05 [2025-03-05 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611810', 'tblTempUsageDetail_20' ) start [2025-03-05 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611810', 'tblTempUsageDetail_20' ) end [2025-03-05 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611810', 'tblTempVendorCDR_20' ) start [2025-03-05 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611810', 'tblTempVendorCDR_20' ) end [2025-03-05 08:07:17] Production.INFO: ProcessCDR(1,14611810,1,1,2) [2025-03-05 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611810', 'tblTempUsageDetail_20' ) start [2025-03-05 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611810', 'tblTempUsageDetail_20' ) end [2025-03-05 08:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:07:22] Production.INFO: ==12669== Releasing lock... [2025-03-05 08:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:07:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:08:05 [end_date_ymd] => 2025-03-05 08:08:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 05:08:05' and `end` < '2025-03-05 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-03-05 08:08:17] Production.INFO: count ==318 [2025-03-05 08:08:17] Production.ERROR: pbx CDR StartTime 2025-03-05 05:08:05 - End Time 2025-03-05 08:08:05 [2025-03-05 08:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611815', 'tblTempUsageDetail_20' ) start [2025-03-05 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611815', 'tblTempUsageDetail_20' ) end [2025-03-05 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611815', 'tblTempVendorCDR_20' ) start [2025-03-05 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611815', 'tblTempVendorCDR_20' ) end [2025-03-05 08:08:17] Production.INFO: ProcessCDR(1,14611815,1,1,2) [2025-03-05 08:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611815', 'tblTempUsageDetail_20' ) start [2025-03-05 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611815', 'tblTempUsageDetail_20' ) end [2025-03-05 08:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:08:22] Production.INFO: ==12750== Releasing lock... [2025-03-05 08:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:08:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-05 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:09:05 [end_date_ymd] => 2025-03-05 08:09:05 [RateCDR] => 1 ) [2025-03-05 08: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-03-05 05:09:05' and `end` < '2025-03-05 08: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-03-05 08:09:17] Production.INFO: count ==325 [2025-03-05 08:09:17] Production.ERROR: pbx CDR StartTime 2025-03-05 05:09:05 - End Time 2025-03-05 08:09:05 [2025-03-05 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611820', 'tblTempUsageDetail_20' ) start [2025-03-05 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611820', 'tblTempUsageDetail_20' ) end [2025-03-05 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611820', 'tblTempVendorCDR_20' ) start [2025-03-05 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611820', 'tblTempVendorCDR_20' ) end [2025-03-05 08:09:17] Production.INFO: ProcessCDR(1,14611820,1,1,2) [2025-03-05 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611820', 'tblTempUsageDetail_20' ) start [2025-03-05 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611820', 'tblTempUsageDetail_20' ) end [2025-03-05 08:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:09:22] Production.INFO: ==12824== Releasing lock... [2025-03-05 08:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:09:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:10:05 [end_date_ymd] => 2025-03-05 08:10:05 [RateCDR] => 1 ) [2025-03-05 08: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-03-05 05:10:05' and `end` < '2025-03-05 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-03-05 08:10:17] Production.INFO: count ==325 [2025-03-05 08:10:17] Production.ERROR: pbx CDR StartTime 2025-03-05 05:10:05 - End Time 2025-03-05 08:10:05 [2025-03-05 08:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611826', 'tblTempUsageDetail_20' ) start [2025-03-05 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611826', 'tblTempUsageDetail_20' ) end [2025-03-05 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611826', 'tblTempVendorCDR_20' ) start [2025-03-05 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611826', 'tblTempVendorCDR_20' ) end [2025-03-05 08:10:17] Production.INFO: ProcessCDR(1,14611826,1,1,2) [2025-03-05 08:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611826', 'tblTempUsageDetail_20' ) start [2025-03-05 08:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611826', 'tblTempUsageDetail_20' ) end [2025-03-05 08:10:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:10:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:10:20] Production.INFO: ==12901== Releasing lock... [2025-03-05 08:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:10:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:11:05 [end_date_ymd] => 2025-03-05 08:11:05 [RateCDR] => 1 ) [2025-03-05 08: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-03-05 05:11:05' and `end` < '2025-03-05 08: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-03-05 08:11:18] Production.INFO: count ==340 [2025-03-05 08:11:18] Production.ERROR: pbx CDR StartTime 2025-03-05 05:11:05 - End Time 2025-03-05 08:11:05 [2025-03-05 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611831', 'tblTempUsageDetail_20' ) start [2025-03-05 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611831', 'tblTempUsageDetail_20' ) end [2025-03-05 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611831', 'tblTempVendorCDR_20' ) start [2025-03-05 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611831', 'tblTempVendorCDR_20' ) end [2025-03-05 08:11:18] Production.INFO: ProcessCDR(1,14611831,1,1,2) [2025-03-05 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611831', 'tblTempUsageDetail_20' ) start [2025-03-05 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611831', 'tblTempUsageDetail_20' ) end [2025-03-05 08:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:11:22] Production.INFO: ==12983== Releasing lock... [2025-03-05 08:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:11:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-05 08:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:12:06 [end_date_ymd] => 2025-03-05 08:12:06 [RateCDR] => 1 ) [2025-03-05 08:12: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-03-05 05:12:06' and `end` < '2025-03-05 08:12: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-03-05 08:12:18] Production.INFO: count ==341 [2025-03-05 08:12:18] Production.ERROR: pbx CDR StartTime 2025-03-05 05:12:06 - End Time 2025-03-05 08:12:06 [2025-03-05 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611836', 'tblTempUsageDetail_20' ) start [2025-03-05 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611836', 'tblTempUsageDetail_20' ) end [2025-03-05 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611836', 'tblTempVendorCDR_20' ) start [2025-03-05 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611836', 'tblTempVendorCDR_20' ) end [2025-03-05 08:12:18] Production.INFO: ProcessCDR(1,14611836,1,1,2) [2025-03-05 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611836', 'tblTempUsageDetail_20' ) start [2025-03-05 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611836', 'tblTempUsageDetail_20' ) end [2025-03-05 08:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:12:22] Production.INFO: ==13059== Releasing lock... [2025-03-05 08:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:12:22] Production.INFO: 31 MB #Memory Used# [2025-03-05 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:13:05 [end_date_ymd] => 2025-03-05 08:13:05 [RateCDR] => 1 ) [2025-03-05 08: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-03-05 05:13:05' and `end` < '2025-03-05 08: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-03-05 08:13:17] Production.INFO: count ==346 [2025-03-05 08:13:17] Production.ERROR: pbx CDR StartTime 2025-03-05 05:13:05 - End Time 2025-03-05 08:13:05 [2025-03-05 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611841', 'tblTempUsageDetail_20' ) start [2025-03-05 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611841', 'tblTempUsageDetail_20' ) end [2025-03-05 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611841', 'tblTempVendorCDR_20' ) start [2025-03-05 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611841', 'tblTempVendorCDR_20' ) end [2025-03-05 08:13:17] Production.INFO: ProcessCDR(1,14611841,1,1,2) [2025-03-05 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611841', 'tblTempUsageDetail_20' ) start [2025-03-05 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611841', 'tblTempUsageDetail_20' ) end [2025-03-05 08:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:13:22] Production.INFO: ==13145== Releasing lock... [2025-03-05 08:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:13:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-05 08:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:14:06 [end_date_ymd] => 2025-03-05 08:14:06 [RateCDR] => 1 ) [2025-03-05 08:14: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-03-05 05:14:06' and `end` < '2025-03-05 08:14: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-03-05 08:14:18] Production.INFO: count ==352 [2025-03-05 08:14:18] Production.ERROR: pbx CDR StartTime 2025-03-05 05:14:06 - End Time 2025-03-05 08:14:06 [2025-03-05 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611846', 'tblTempUsageDetail_20' ) start [2025-03-05 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611846', 'tblTempUsageDetail_20' ) end [2025-03-05 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611846', 'tblTempVendorCDR_20' ) start [2025-03-05 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611846', 'tblTempVendorCDR_20' ) end [2025-03-05 08:14:18] Production.INFO: ProcessCDR(1,14611846,1,1,2) [2025-03-05 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611846', 'tblTempUsageDetail_20' ) start [2025-03-05 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611846', 'tblTempUsageDetail_20' ) end [2025-03-05 08:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:14:22] Production.INFO: ==13233== Releasing lock... [2025-03-05 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:14:22] Production.INFO: 31 MB #Memory Used# [2025-03-05 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:15:05 [end_date_ymd] => 2025-03-05 08:15:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 05:15:05' and `end` < '2025-03-05 08: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-03-05 08:15:17] Production.INFO: count ==353 [2025-03-05 08:15:17] Production.ERROR: pbx CDR StartTime 2025-03-05 05:15:05 - End Time 2025-03-05 08:15:05 [2025-03-05 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611851', 'tblTempUsageDetail_20' ) start [2025-03-05 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611851', 'tblTempUsageDetail_20' ) end [2025-03-05 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611851', 'tblTempVendorCDR_20' ) start [2025-03-05 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611851', 'tblTempVendorCDR_20' ) end [2025-03-05 08:15:17] Production.INFO: ProcessCDR(1,14611851,1,1,2) [2025-03-05 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611851', 'tblTempUsageDetail_20' ) start [2025-03-05 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611851', 'tblTempUsageDetail_20' ) end [2025-03-05 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:15:21] Production.INFO: ==13314== Releasing lock... [2025-03-05 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:15:21] Production.INFO: 31 MB #Memory Used# [2025-03-05 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:16:05 [end_date_ymd] => 2025-03-05 08:16:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 05:16:05' and `end` < '2025-03-05 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-03-05 08:16:17] Production.INFO: count ==356 [2025-03-05 08:16:17] Production.ERROR: pbx CDR StartTime 2025-03-05 05:16:05 - End Time 2025-03-05 08:16:05 [2025-03-05 08:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611856', 'tblTempUsageDetail_20' ) start [2025-03-05 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611856', 'tblTempUsageDetail_20' ) end [2025-03-05 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611856', 'tblTempVendorCDR_20' ) start [2025-03-05 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611856', 'tblTempVendorCDR_20' ) end [2025-03-05 08:16:18] Production.INFO: ProcessCDR(1,14611856,1,1,2) [2025-03-05 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611856', 'tblTempUsageDetail_20' ) start [2025-03-05 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611856', 'tblTempUsageDetail_20' ) end [2025-03-05 08:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:16:23] Production.INFO: ==13394== Releasing lock... [2025-03-05 08:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:16:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-05 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:17:05 [end_date_ymd] => 2025-03-05 08:17:05 [RateCDR] => 1 ) [2025-03-05 08: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-03-05 05:17:05' and `end` < '2025-03-05 08: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-03-05 08:17:17] Production.INFO: count ==366 [2025-03-05 08:17:17] Production.ERROR: pbx CDR StartTime 2025-03-05 05:17:05 - End Time 2025-03-05 08:17:05 [2025-03-05 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611861', 'tblTempUsageDetail_20' ) start [2025-03-05 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611861', 'tblTempUsageDetail_20' ) end [2025-03-05 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611861', 'tblTempVendorCDR_20' ) start [2025-03-05 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611861', 'tblTempVendorCDR_20' ) end [2025-03-05 08:17:17] Production.INFO: ProcessCDR(1,14611861,1,1,2) [2025-03-05 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611861', 'tblTempUsageDetail_20' ) start [2025-03-05 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611861', 'tblTempUsageDetail_20' ) end [2025-03-05 08:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:17:22] Production.INFO: ==13471== Releasing lock... [2025-03-05 08:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:17:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-05 08:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:18:06 [end_date_ymd] => 2025-03-05 08:18:06 [RateCDR] => 1 ) [2025-03-05 08: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-03-05 05:18:06' and `end` < '2025-03-05 08: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-03-05 08:18:18] Production.INFO: count ==370 [2025-03-05 08:18:18] Production.ERROR: pbx CDR StartTime 2025-03-05 05:18:06 - End Time 2025-03-05 08:18:06 [2025-03-05 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611866', 'tblTempUsageDetail_20' ) start [2025-03-05 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611866', 'tblTempUsageDetail_20' ) end [2025-03-05 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611866', 'tblTempVendorCDR_20' ) start [2025-03-05 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611866', 'tblTempVendorCDR_20' ) end [2025-03-05 08:18:18] Production.INFO: ProcessCDR(1,14611866,1,1,2) [2025-03-05 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611866', 'tblTempUsageDetail_20' ) start [2025-03-05 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611866', 'tblTempUsageDetail_20' ) end [2025-03-05 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:18:21] Production.INFO: ==13596== Releasing lock... [2025-03-05 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:18:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-05 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:19:05 [end_date_ymd] => 2025-03-05 08:19:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 05:19:05' and `end` < '2025-03-05 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-03-05 08:19:18] Production.INFO: count ==375 [2025-03-05 08:19:18] Production.ERROR: pbx CDR StartTime 2025-03-05 05:19:05 - End Time 2025-03-05 08:19:05 [2025-03-05 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611871', 'tblTempUsageDetail_20' ) start [2025-03-05 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611871', 'tblTempUsageDetail_20' ) end [2025-03-05 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611871', 'tblTempVendorCDR_20' ) start [2025-03-05 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611871', 'tblTempVendorCDR_20' ) end [2025-03-05 08:19:18] Production.INFO: ProcessCDR(1,14611871,1,1,2) [2025-03-05 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611871', 'tblTempUsageDetail_20' ) start [2025-03-05 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611871', 'tblTempUsageDetail_20' ) end [2025-03-05 08:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:19:21] Production.INFO: ==13675== Releasing lock... [2025-03-05 08:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:19:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-05 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:20:06 [end_date_ymd] => 2025-03-05 08:20:06 [RateCDR] => 1 ) [2025-03-05 08: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-03-05 05:20:06' and `end` < '2025-03-05 08: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-03-05 08:20:18] Production.INFO: count ==379 [2025-03-05 08:20:18] Production.ERROR: pbx CDR StartTime 2025-03-05 05:20:06 - End Time 2025-03-05 08:20:06 [2025-03-05 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611877', 'tblTempUsageDetail_20' ) start [2025-03-05 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611877', 'tblTempUsageDetail_20' ) end [2025-03-05 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611877', 'tblTempVendorCDR_20' ) start [2025-03-05 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611877', 'tblTempVendorCDR_20' ) end [2025-03-05 08:20:18] Production.INFO: ProcessCDR(1,14611877,1,1,2) [2025-03-05 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611877', 'tblTempUsageDetail_20' ) start [2025-03-05 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611877', 'tblTempUsageDetail_20' ) end [2025-03-05 08:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:20:21] Production.INFO: ==13750== Releasing lock... [2025-03-05 08:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:20:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-05 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:21:05 [end_date_ymd] => 2025-03-05 08:21:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 05:21:05' and `end` < '2025-03-05 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-03-05 08:21:18] Production.INFO: count ==383 [2025-03-05 08:21:18] Production.ERROR: pbx CDR StartTime 2025-03-05 05:21:05 - End Time 2025-03-05 08:21:05 [2025-03-05 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611882', 'tblTempUsageDetail_20' ) start [2025-03-05 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611882', 'tblTempUsageDetail_20' ) end [2025-03-05 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611882', 'tblTempVendorCDR_20' ) start [2025-03-05 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611882', 'tblTempVendorCDR_20' ) end [2025-03-05 08:21:18] Production.INFO: ProcessCDR(1,14611882,1,1,2) [2025-03-05 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611882', 'tblTempUsageDetail_20' ) start [2025-03-05 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611882', 'tblTempUsageDetail_20' ) end [2025-03-05 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:21:21] Production.INFO: ==13831== Releasing lock... [2025-03-05 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:21:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-05 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:22:05 [end_date_ymd] => 2025-03-05 08:22:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 05:22:05' and `end` < '2025-03-05 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-03-05 08:22:17] Production.INFO: count ==383 [2025-03-05 08:22:17] Production.ERROR: pbx CDR StartTime 2025-03-05 05:22:05 - End Time 2025-03-05 08:22:05 [2025-03-05 08:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611887', 'tblTempUsageDetail_20' ) start [2025-03-05 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611887', 'tblTempUsageDetail_20' ) end [2025-03-05 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611887', 'tblTempVendorCDR_20' ) start [2025-03-05 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611887', 'tblTempVendorCDR_20' ) end [2025-03-05 08:22:17] Production.INFO: ProcessCDR(1,14611887,1,1,2) [2025-03-05 08:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611887', 'tblTempUsageDetail_20' ) start [2025-03-05 08:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611887', 'tblTempUsageDetail_20' ) end [2025-03-05 08:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:22:20] Production.INFO: ==13911== Releasing lock... [2025-03-05 08:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:22:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-05 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:23:05 [end_date_ymd] => 2025-03-05 08:23:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 05:23:05' and `end` < '2025-03-05 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-03-05 08:23:17] Production.INFO: count ==385 [2025-03-05 08:23:17] Production.ERROR: pbx CDR StartTime 2025-03-05 05:23:05 - End Time 2025-03-05 08:23:05 [2025-03-05 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611892', 'tblTempUsageDetail_20' ) start [2025-03-05 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611892', 'tblTempUsageDetail_20' ) end [2025-03-05 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611892', 'tblTempVendorCDR_20' ) start [2025-03-05 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611892', 'tblTempVendorCDR_20' ) end [2025-03-05 08:23:17] Production.INFO: ProcessCDR(1,14611892,1,1,2) [2025-03-05 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611892', 'tblTempUsageDetail_20' ) start [2025-03-05 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611892', 'tblTempUsageDetail_20' ) end [2025-03-05 08:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:23:21] Production.INFO: ==13987== Releasing lock... [2025-03-05 08:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:23:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-05 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:24:05 [end_date_ymd] => 2025-03-05 08:24:05 [RateCDR] => 1 ) [2025-03-05 08: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-03-05 05:24:05' and `end` < '2025-03-05 08: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-03-05 08:24:17] Production.INFO: count ==390 [2025-03-05 08:24:17] Production.ERROR: pbx CDR StartTime 2025-03-05 05:24:05 - End Time 2025-03-05 08:24:05 [2025-03-05 08:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611897', 'tblTempUsageDetail_20' ) start [2025-03-05 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611897', 'tblTempUsageDetail_20' ) end [2025-03-05 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611897', 'tblTempVendorCDR_20' ) start [2025-03-05 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611897', 'tblTempVendorCDR_20' ) end [2025-03-05 08:24:17] Production.INFO: ProcessCDR(1,14611897,1,1,2) [2025-03-05 08:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611897', 'tblTempUsageDetail_20' ) start [2025-03-05 08:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611897', 'tblTempUsageDetail_20' ) end [2025-03-05 08:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:24:20] Production.INFO: ==14067== Releasing lock... [2025-03-05 08:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:24:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-05 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:25:05 [end_date_ymd] => 2025-03-05 08:25:05 [RateCDR] => 1 ) [2025-03-05 08: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-03-05 05:25:05' and `end` < '2025-03-05 08: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-03-05 08:25:17] Production.INFO: count ==390 [2025-03-05 08:25:17] Production.ERROR: pbx CDR StartTime 2025-03-05 05:25:05 - End Time 2025-03-05 08:25:05 [2025-03-05 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611902', 'tblTempUsageDetail_20' ) start [2025-03-05 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611902', 'tblTempUsageDetail_20' ) end [2025-03-05 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611902', 'tblTempVendorCDR_20' ) start [2025-03-05 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611902', 'tblTempVendorCDR_20' ) end [2025-03-05 08:25:17] Production.INFO: ProcessCDR(1,14611902,1,1,2) [2025-03-05 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611902', 'tblTempUsageDetail_20' ) start [2025-03-05 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611902', 'tblTempUsageDetail_20' ) end [2025-03-05 08:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:25:20] Production.INFO: ==14145== Releasing lock... [2025-03-05 08:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:25:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-05 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:26:05 [end_date_ymd] => 2025-03-05 08:26:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 05:26:05' and `end` < '2025-03-05 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-03-05 08:26:17] Production.INFO: count ==395 [2025-03-05 08:26:17] Production.ERROR: pbx CDR StartTime 2025-03-05 05:26:05 - End Time 2025-03-05 08:26:05 [2025-03-05 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611907', 'tblTempUsageDetail_20' ) start [2025-03-05 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611907', 'tblTempUsageDetail_20' ) end [2025-03-05 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611907', 'tblTempVendorCDR_20' ) start [2025-03-05 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611907', 'tblTempVendorCDR_20' ) end [2025-03-05 08:26:17] Production.INFO: ProcessCDR(1,14611907,1,1,2) [2025-03-05 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611907', 'tblTempUsageDetail_20' ) start [2025-03-05 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611907', 'tblTempUsageDetail_20' ) end [2025-03-05 08:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:26:20] Production.INFO: ==14224== Releasing lock... [2025-03-05 08:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:26:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-05 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:27:05 [end_date_ymd] => 2025-03-05 08:27:05 [RateCDR] => 1 ) [2025-03-05 08: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-03-05 05:27:05' and `end` < '2025-03-05 08: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-03-05 08:27:17] Production.INFO: count ==405 [2025-03-05 08:27:17] Production.ERROR: pbx CDR StartTime 2025-03-05 05:27:05 - End Time 2025-03-05 08:27:05 [2025-03-05 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611912', 'tblTempUsageDetail_20' ) start [2025-03-05 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611912', 'tblTempUsageDetail_20' ) end [2025-03-05 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611912', 'tblTempVendorCDR_20' ) start [2025-03-05 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611912', 'tblTempVendorCDR_20' ) end [2025-03-05 08:27:18] Production.INFO: ProcessCDR(1,14611912,1,1,2) [2025-03-05 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611912', 'tblTempUsageDetail_20' ) start [2025-03-05 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611912', 'tblTempUsageDetail_20' ) end [2025-03-05 08:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:27:22] Production.INFO: ==14301== Releasing lock... [2025-03-05 08:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:27:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-05 08:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:28:06 [end_date_ymd] => 2025-03-05 08:28:06 [RateCDR] => 1 ) [2025-03-05 08: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-03-05 05:28:06' and `end` < '2025-03-05 08: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-03-05 08:28:18] Production.INFO: count ==411 [2025-03-05 08:28:18] Production.ERROR: pbx CDR StartTime 2025-03-05 05:28:06 - End Time 2025-03-05 08:28:06 [2025-03-05 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611917', 'tblTempUsageDetail_20' ) start [2025-03-05 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611917', 'tblTempUsageDetail_20' ) end [2025-03-05 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611917', 'tblTempVendorCDR_20' ) start [2025-03-05 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611917', 'tblTempVendorCDR_20' ) end [2025-03-05 08:28:18] Production.INFO: ProcessCDR(1,14611917,1,1,2) [2025-03-05 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611917', 'tblTempUsageDetail_20' ) start [2025-03-05 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611917', 'tblTempUsageDetail_20' ) end [2025-03-05 08:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:28:22] Production.INFO: ==14376== Releasing lock... [2025-03-05 08:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:28:22] Production.INFO: 32 MB #Memory Used# [2025-03-05 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:29:05 [end_date_ymd] => 2025-03-05 08:29:05 [RateCDR] => 1 ) [2025-03-05 08: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-03-05 05:29:05' and `end` < '2025-03-05 08: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-03-05 08:29:17] Production.INFO: count ==417 [2025-03-05 08:29:18] Production.ERROR: pbx CDR StartTime 2025-03-05 05:29:05 - End Time 2025-03-05 08:29:05 [2025-03-05 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611922', 'tblTempUsageDetail_20' ) start [2025-03-05 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611922', 'tblTempUsageDetail_20' ) end [2025-03-05 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611922', 'tblTempVendorCDR_20' ) start [2025-03-05 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611922', 'tblTempVendorCDR_20' ) end [2025-03-05 08:29:18] Production.INFO: ProcessCDR(1,14611922,1,1,2) [2025-03-05 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611922', 'tblTempUsageDetail_20' ) start [2025-03-05 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611922', 'tblTempUsageDetail_20' ) end [2025-03-05 08:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:29:22] Production.INFO: ==14454== Releasing lock... [2025-03-05 08:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:29:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-05 08:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:30:07 [end_date_ymd] => 2025-03-05 08:30:07 [RateCDR] => 1 ) [2025-03-05 08:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 05:30:07' and `end` < '2025-03-05 08:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-05 08:30:19] Production.INFO: count ==426 [2025-03-05 08:30:19] Production.ERROR: pbx CDR StartTime 2025-03-05 05:30:07 - End Time 2025-03-05 08:30:07 [2025-03-05 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611928', 'tblTempUsageDetail_20' ) start [2025-03-05 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611928', 'tblTempUsageDetail_20' ) end [2025-03-05 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611928', 'tblTempVendorCDR_20' ) start [2025-03-05 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611928', 'tblTempVendorCDR_20' ) end [2025-03-05 08:30:19] Production.INFO: ProcessCDR(1,14611928,1,1,2) [2025-03-05 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611928', 'tblTempUsageDetail_20' ) start [2025-03-05 08:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611928', 'tblTempUsageDetail_20' ) end [2025-03-05 08:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:30:24] Production.INFO: ==14538== Releasing lock... [2025-03-05 08:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:30:24] Production.INFO: 31.5 MB #Memory Used# [2025-03-05 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:31:05 [end_date_ymd] => 2025-03-05 08:31:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 05:31:05' and `end` < '2025-03-05 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-03-05 08:31:17] Production.INFO: count ==443 [2025-03-05 08:31:17] Production.ERROR: pbx CDR StartTime 2025-03-05 05:31:05 - End Time 2025-03-05 08:31:05 [2025-03-05 08:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611933', 'tblTempUsageDetail_20' ) start [2025-03-05 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611933', 'tblTempUsageDetail_20' ) end [2025-03-05 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611933', 'tblTempVendorCDR_20' ) start [2025-03-05 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611933', 'tblTempVendorCDR_20' ) end [2025-03-05 08:31:17] Production.INFO: ProcessCDR(1,14611933,1,1,2) [2025-03-05 08:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611933', 'tblTempUsageDetail_20' ) start [2025-03-05 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611933', 'tblTempUsageDetail_20' ) end [2025-03-05 08:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:31:21] Production.INFO: ==14617== Releasing lock... [2025-03-05 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:31:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-05 08:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:32:06 [end_date_ymd] => 2025-03-05 08:32:06 [RateCDR] => 1 ) [2025-03-05 08: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-03-05 05:32:06' and `end` < '2025-03-05 08: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-03-05 08:32:18] Production.INFO: count ==453 [2025-03-05 08:32:18] Production.ERROR: pbx CDR StartTime 2025-03-05 05:32:06 - End Time 2025-03-05 08:32:06 [2025-03-05 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611938', 'tblTempUsageDetail_20' ) start [2025-03-05 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611938', 'tblTempUsageDetail_20' ) end [2025-03-05 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611938', 'tblTempVendorCDR_20' ) start [2025-03-05 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611938', 'tblTempVendorCDR_20' ) end [2025-03-05 08:32:18] Production.INFO: ProcessCDR(1,14611938,1,1,2) [2025-03-05 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611938', 'tblTempUsageDetail_20' ) start [2025-03-05 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611938', 'tblTempUsageDetail_20' ) end [2025-03-05 08:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:32:21] Production.INFO: ==14690== Releasing lock... [2025-03-05 08:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:32:21] Production.INFO: 32 MB #Memory Used# [2025-03-05 08:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:33:04 [end_date_ymd] => 2025-03-05 08:33:04 [RateCDR] => 1 ) [2025-03-05 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-03-05 05:33:04' and `end` < '2025-03-05 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-03-05 08:33:16] Production.INFO: count ==459 [2025-03-05 08:33:17] Production.ERROR: pbx CDR StartTime 2025-03-05 05:33:04 - End Time 2025-03-05 08:33:04 [2025-03-05 08:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611943', 'tblTempUsageDetail_20' ) start [2025-03-05 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611943', 'tblTempUsageDetail_20' ) end [2025-03-05 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611943', 'tblTempVendorCDR_20' ) start [2025-03-05 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611943', 'tblTempVendorCDR_20' ) end [2025-03-05 08:33:17] Production.INFO: ProcessCDR(1,14611943,1,1,2) [2025-03-05 08:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611943', 'tblTempUsageDetail_20' ) start [2025-03-05 08:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611943', 'tblTempUsageDetail_20' ) end [2025-03-05 08:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:33:20] Production.INFO: ==14806== Releasing lock... [2025-03-05 08:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:33:20] Production.INFO: 32 MB #Memory Used# [2025-03-05 08:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:34:06 [end_date_ymd] => 2025-03-05 08:34:06 [RateCDR] => 1 ) [2025-03-05 08: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-03-05 05:34:06' and `end` < '2025-03-05 08: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-03-05 08:34:18] Production.INFO: count ==459 [2025-03-05 08:34:18] Production.ERROR: pbx CDR StartTime 2025-03-05 05:34:06 - End Time 2025-03-05 08:34:06 [2025-03-05 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611948', 'tblTempUsageDetail_20' ) start [2025-03-05 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611948', 'tblTempUsageDetail_20' ) end [2025-03-05 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611948', 'tblTempVendorCDR_20' ) start [2025-03-05 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611948', 'tblTempVendorCDR_20' ) end [2025-03-05 08:34:18] Production.INFO: ProcessCDR(1,14611948,1,1,2) [2025-03-05 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611948', 'tblTempUsageDetail_20' ) start [2025-03-05 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611948', 'tblTempUsageDetail_20' ) end [2025-03-05 08:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:34:22] Production.INFO: ==14904== Releasing lock... [2025-03-05 08:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:34:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-05 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:35:05 [end_date_ymd] => 2025-03-05 08:35:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 05:35:05' and `end` < '2025-03-05 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-03-05 08:35:17] Production.INFO: count ==463 [2025-03-05 08:35:17] Production.ERROR: pbx CDR StartTime 2025-03-05 05:35:05 - End Time 2025-03-05 08:35:05 [2025-03-05 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611953', 'tblTempUsageDetail_20' ) start [2025-03-05 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611953', 'tblTempUsageDetail_20' ) end [2025-03-05 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611953', 'tblTempVendorCDR_20' ) start [2025-03-05 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611953', 'tblTempVendorCDR_20' ) end [2025-03-05 08:35:17] Production.INFO: ProcessCDR(1,14611953,1,1,2) [2025-03-05 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611953', 'tblTempUsageDetail_20' ) start [2025-03-05 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611953', 'tblTempUsageDetail_20' ) end [2025-03-05 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:35:21] Production.INFO: ==14979== Releasing lock... [2025-03-05 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:35:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-05 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:36:05 [end_date_ymd] => 2025-03-05 08:36:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 05:36:05' and `end` < '2025-03-05 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-03-05 08:36:17] Production.INFO: count ==477 [2025-03-05 08:36:17] Production.ERROR: pbx CDR StartTime 2025-03-05 05:36:05 - End Time 2025-03-05 08:36:05 [2025-03-05 08:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611958', 'tblTempUsageDetail_20' ) start [2025-03-05 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611958', 'tblTempUsageDetail_20' ) end [2025-03-05 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611958', 'tblTempVendorCDR_20' ) start [2025-03-05 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611958', 'tblTempVendorCDR_20' ) end [2025-03-05 08:36:17] Production.INFO: ProcessCDR(1,14611958,1,1,2) [2025-03-05 08:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611958', 'tblTempUsageDetail_20' ) start [2025-03-05 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611958', 'tblTempUsageDetail_20' ) end [2025-03-05 08:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:36:22] Production.INFO: ==15054== Releasing lock... [2025-03-05 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:36:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-05 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:37:05 [end_date_ymd] => 2025-03-05 08:37:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 05:37:05' and `end` < '2025-03-05 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-03-05 08:37:17] Production.INFO: count ==484 [2025-03-05 08:37:18] Production.ERROR: pbx CDR StartTime 2025-03-05 05:37:05 - End Time 2025-03-05 08:37:05 [2025-03-05 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611963', 'tblTempUsageDetail_20' ) start [2025-03-05 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611963', 'tblTempUsageDetail_20' ) end [2025-03-05 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611963', 'tblTempVendorCDR_20' ) start [2025-03-05 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611963', 'tblTempVendorCDR_20' ) end [2025-03-05 08:37:18] Production.INFO: ProcessCDR(1,14611963,1,1,2) [2025-03-05 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611963', 'tblTempUsageDetail_20' ) start [2025-03-05 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611963', 'tblTempUsageDetail_20' ) end [2025-03-05 08:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:37:22] Production.INFO: ==15129== Releasing lock... [2025-03-05 08:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:37:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-05 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:38:05 [end_date_ymd] => 2025-03-05 08:38:05 [RateCDR] => 1 ) [2025-03-05 08: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-03-05 05:38:05' and `end` < '2025-03-05 08: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-03-05 08:38:17] Production.INFO: count ==484 [2025-03-05 08:38:17] Production.ERROR: pbx CDR StartTime 2025-03-05 05:38:05 - End Time 2025-03-05 08:38:05 [2025-03-05 08:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611968', 'tblTempUsageDetail_20' ) start [2025-03-05 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611968', 'tblTempUsageDetail_20' ) end [2025-03-05 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611968', 'tblTempVendorCDR_20' ) start [2025-03-05 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611968', 'tblTempVendorCDR_20' ) end [2025-03-05 08:38:17] Production.INFO: ProcessCDR(1,14611968,1,1,2) [2025-03-05 08:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611968', 'tblTempUsageDetail_20' ) start [2025-03-05 08:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611968', 'tblTempUsageDetail_20' ) end [2025-03-05 08:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:38:20] Production.INFO: ==15202== Releasing lock... [2025-03-05 08:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:38:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-05 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:39:05 [end_date_ymd] => 2025-03-05 08:39:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 05:39:05' and `end` < '2025-03-05 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-03-05 08:39:17] Production.INFO: count ==486 [2025-03-05 08:39:17] Production.ERROR: pbx CDR StartTime 2025-03-05 05:39:05 - End Time 2025-03-05 08:39:05 [2025-03-05 08:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611973', 'tblTempUsageDetail_20' ) start [2025-03-05 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611973', 'tblTempUsageDetail_20' ) end [2025-03-05 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611973', 'tblTempVendorCDR_20' ) start [2025-03-05 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611973', 'tblTempVendorCDR_20' ) end [2025-03-05 08:39:17] Production.INFO: ProcessCDR(1,14611973,1,1,2) [2025-03-05 08:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611973', 'tblTempUsageDetail_20' ) start [2025-03-05 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611973', 'tblTempUsageDetail_20' ) end [2025-03-05 08:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:39:22] Production.INFO: ==15277== Releasing lock... [2025-03-05 08:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:39:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-05 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:40:06 [end_date_ymd] => 2025-03-05 08:40:06 [RateCDR] => 1 ) [2025-03-05 08: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-03-05 05:40:06' and `end` < '2025-03-05 08: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-03-05 08:40:18] Production.INFO: count ==491 [2025-03-05 08:40:18] Production.ERROR: pbx CDR StartTime 2025-03-05 05:40:06 - End Time 2025-03-05 08:40:06 [2025-03-05 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611979', 'tblTempUsageDetail_20' ) start [2025-03-05 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611979', 'tblTempUsageDetail_20' ) end [2025-03-05 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611979', 'tblTempVendorCDR_20' ) start [2025-03-05 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611979', 'tblTempVendorCDR_20' ) end [2025-03-05 08:40:18] Production.INFO: ProcessCDR(1,14611979,1,1,2) [2025-03-05 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611979', 'tblTempUsageDetail_20' ) start [2025-03-05 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611979', 'tblTempUsageDetail_20' ) end [2025-03-05 08:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:40:23] Production.INFO: ==15353== Releasing lock... [2025-03-05 08:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:40:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-05 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:41:05 [end_date_ymd] => 2025-03-05 08:41:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 05:41:05' and `end` < '2025-03-05 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-03-05 08:41:18] Production.INFO: count ==537 [2025-03-05 08:41:18] Production.ERROR: pbx CDR StartTime 2025-03-05 05:41:05 - End Time 2025-03-05 08:41:05 [2025-03-05 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611984', 'tblTempUsageDetail_20' ) start [2025-03-05 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611984', 'tblTempUsageDetail_20' ) end [2025-03-05 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611984', 'tblTempVendorCDR_20' ) start [2025-03-05 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611984', 'tblTempVendorCDR_20' ) end [2025-03-05 08:41:18] Production.INFO: ProcessCDR(1,14611984,1,1,2) [2025-03-05 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611984', 'tblTempUsageDetail_20' ) start [2025-03-05 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611984', 'tblTempUsageDetail_20' ) end [2025-03-05 08:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:41:23] Production.INFO: ==15430== Releasing lock... [2025-03-05 08:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:41:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-05 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:42:05 [end_date_ymd] => 2025-03-05 08:42:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 05:42:05' and `end` < '2025-03-05 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-03-05 08:42:17] Production.INFO: count ==542 [2025-03-05 08:42:17] Production.ERROR: pbx CDR StartTime 2025-03-05 05:42:05 - End Time 2025-03-05 08:42:05 [2025-03-05 08:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611989', 'tblTempUsageDetail_20' ) start [2025-03-05 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611989', 'tblTempUsageDetail_20' ) end [2025-03-05 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611989', 'tblTempVendorCDR_20' ) start [2025-03-05 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611989', 'tblTempVendorCDR_20' ) end [2025-03-05 08:42:17] Production.INFO: ProcessCDR(1,14611989,1,1,2) [2025-03-05 08:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611989', 'tblTempUsageDetail_20' ) start [2025-03-05 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611989', 'tblTempUsageDetail_20' ) end [2025-03-05 08:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:42:21] Production.INFO: ==15500== Releasing lock... [2025-03-05 08:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:42:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-05 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:43:05 [end_date_ymd] => 2025-03-05 08:43:05 [RateCDR] => 1 ) [2025-03-05 08: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-03-05 05:43:05' and `end` < '2025-03-05 08: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-03-05 08:43:17] Production.INFO: count ==542 [2025-03-05 08:43:17] Production.ERROR: pbx CDR StartTime 2025-03-05 05:43:05 - End Time 2025-03-05 08:43:05 [2025-03-05 08:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611994', 'tblTempUsageDetail_20' ) start [2025-03-05 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611994', 'tblTempUsageDetail_20' ) end [2025-03-05 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611994', 'tblTempVendorCDR_20' ) start [2025-03-05 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611994', 'tblTempVendorCDR_20' ) end [2025-03-05 08:43:17] Production.INFO: ProcessCDR(1,14611994,1,1,2) [2025-03-05 08:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611994', 'tblTempUsageDetail_20' ) start [2025-03-05 08:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611994', 'tblTempUsageDetail_20' ) end [2025-03-05 08:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:43:20] Production.INFO: ==15572== Releasing lock... [2025-03-05 08:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:43:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-05 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:44:05 [end_date_ymd] => 2025-03-05 08:44:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 05:44:05' and `end` < '2025-03-05 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-03-05 08:44:17] Production.INFO: count ==548 [2025-03-05 08:44:17] Production.ERROR: pbx CDR StartTime 2025-03-05 05:44:05 - End Time 2025-03-05 08:44:05 [2025-03-05 08:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611999', 'tblTempUsageDetail_20' ) start [2025-03-05 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14611999', 'tblTempUsageDetail_20' ) end [2025-03-05 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611999', 'tblTempVendorCDR_20' ) start [2025-03-05 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14611999', 'tblTempVendorCDR_20' ) end [2025-03-05 08:44:17] Production.INFO: ProcessCDR(1,14611999,1,1,2) [2025-03-05 08:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14611999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14611999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14611999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14611999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611999', 'tblTempUsageDetail_20' ) start [2025-03-05 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14611999', 'tblTempUsageDetail_20' ) end [2025-03-05 08:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:44:22] Production.INFO: ==15649== Releasing lock... [2025-03-05 08:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:44:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-05 08:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:45:04 [end_date_ymd] => 2025-03-05 08:45:04 [RateCDR] => 1 ) [2025-03-05 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-03-05 05:45:04' and `end` < '2025-03-05 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-03-05 08:45:17] Production.INFO: count ==564 [2025-03-05 08:45:17] Production.ERROR: pbx CDR StartTime 2025-03-05 05:45:04 - End Time 2025-03-05 08:45:04 [2025-03-05 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612000', 'tblTempUsageDetail_20' ) start [2025-03-05 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612000', 'tblTempUsageDetail_20' ) end [2025-03-05 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612000', 'tblTempVendorCDR_20' ) start [2025-03-05 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612000', 'tblTempVendorCDR_20' ) end [2025-03-05 08:45:17] Production.INFO: ProcessCDR(1,14612000,1,1,2) [2025-03-05 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612000', 'tblTempUsageDetail_20' ) start [2025-03-05 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612000', 'tblTempUsageDetail_20' ) end [2025-03-05 08:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:45:20] Production.INFO: ==15726== Releasing lock... [2025-03-05 08:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:45:20] Production.INFO: 33 MB #Memory Used# [2025-03-05 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:46:05 [end_date_ymd] => 2025-03-05 08:46:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 05:46:05' and `end` < '2025-03-05 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-03-05 08:46:17] Production.INFO: count ==575 [2025-03-05 08:46:17] Production.ERROR: pbx CDR StartTime 2025-03-05 05:46:05 - End Time 2025-03-05 08:46:05 [2025-03-05 08:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612009', 'tblTempUsageDetail_20' ) start [2025-03-05 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612009', 'tblTempUsageDetail_20' ) end [2025-03-05 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612009', 'tblTempVendorCDR_20' ) start [2025-03-05 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612009', 'tblTempVendorCDR_20' ) end [2025-03-05 08:46:17] Production.INFO: ProcessCDR(1,14612009,1,1,2) [2025-03-05 08:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612009', 'tblTempUsageDetail_20' ) start [2025-03-05 08:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612009', 'tblTempUsageDetail_20' ) end [2025-03-05 08:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:46:20] Production.INFO: ==15797== Releasing lock... [2025-03-05 08:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:46:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-05 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:47:05 [end_date_ymd] => 2025-03-05 08:47:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 05:47:05' and `end` < '2025-03-05 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-03-05 08:47:17] Production.INFO: count ==580 [2025-03-05 08:47:17] Production.ERROR: pbx CDR StartTime 2025-03-05 05:47:05 - End Time 2025-03-05 08:47:05 [2025-03-05 08:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612014', 'tblTempUsageDetail_20' ) start [2025-03-05 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612014', 'tblTempUsageDetail_20' ) end [2025-03-05 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612014', 'tblTempVendorCDR_20' ) start [2025-03-05 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612014', 'tblTempVendorCDR_20' ) end [2025-03-05 08:47:17] Production.INFO: ProcessCDR(1,14612014,1,1,2) [2025-03-05 08:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612014', 'tblTempUsageDetail_20' ) start [2025-03-05 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612014', 'tblTempUsageDetail_20' ) end [2025-03-05 08:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:47:22] Production.INFO: ==15869== Releasing lock... [2025-03-05 08:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:47:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-05 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:48:05 [end_date_ymd] => 2025-03-05 08:48:05 [RateCDR] => 1 ) [2025-03-05 08: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-03-05 05:48:05' and `end` < '2025-03-05 08: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-03-05 08:48:17] Production.INFO: count ==581 [2025-03-05 08:48:17] Production.ERROR: pbx CDR StartTime 2025-03-05 05:48:05 - End Time 2025-03-05 08:48:05 [2025-03-05 08:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612019', 'tblTempUsageDetail_20' ) start [2025-03-05 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612019', 'tblTempUsageDetail_20' ) end [2025-03-05 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612019', 'tblTempVendorCDR_20' ) start [2025-03-05 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612019', 'tblTempVendorCDR_20' ) end [2025-03-05 08:48:17] Production.INFO: ProcessCDR(1,14612019,1,1,2) [2025-03-05 08:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612019', 'tblTempUsageDetail_20' ) start [2025-03-05 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612019', 'tblTempUsageDetail_20' ) end [2025-03-05 08:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:48:22] Production.INFO: ==15942== Releasing lock... [2025-03-05 08:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:48:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-05 08:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:49:06 [end_date_ymd] => 2025-03-05 08:49:06 [RateCDR] => 1 ) [2025-03-05 08:49: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-03-05 05:49:06' and `end` < '2025-03-05 08:49: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-03-05 08:49:18] Production.INFO: count ==597 [2025-03-05 08:49:18] Production.ERROR: pbx CDR StartTime 2025-03-05 05:49:06 - End Time 2025-03-05 08:49:06 [2025-03-05 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612024', 'tblTempUsageDetail_20' ) start [2025-03-05 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612024', 'tblTempUsageDetail_20' ) end [2025-03-05 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612024', 'tblTempVendorCDR_20' ) start [2025-03-05 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612024', 'tblTempVendorCDR_20' ) end [2025-03-05 08:49:18] Production.INFO: ProcessCDR(1,14612024,1,1,2) [2025-03-05 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612024', 'tblTempUsageDetail_20' ) start [2025-03-05 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612024', 'tblTempUsageDetail_20' ) end [2025-03-05 08:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:49:23] Production.INFO: ==16056== Releasing lock... [2025-03-05 08:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:49:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-05 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:50:06 [end_date_ymd] => 2025-03-05 08:50:06 [RateCDR] => 1 ) [2025-03-05 08: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-03-05 05:50:06' and `end` < '2025-03-05 08: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-03-05 08:50:18] Production.INFO: count ==600 [2025-03-05 08:50:18] Production.ERROR: pbx CDR StartTime 2025-03-05 05:50:06 - End Time 2025-03-05 08:50:06 [2025-03-05 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612030', 'tblTempUsageDetail_20' ) start [2025-03-05 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612030', 'tblTempUsageDetail_20' ) end [2025-03-05 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612030', 'tblTempVendorCDR_20' ) start [2025-03-05 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612030', 'tblTempVendorCDR_20' ) end [2025-03-05 08:50:18] Production.INFO: ProcessCDR(1,14612030,1,1,2) [2025-03-05 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612030', 'tblTempUsageDetail_20' ) start [2025-03-05 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612030', 'tblTempUsageDetail_20' ) end [2025-03-05 08:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:50:21] Production.INFO: ==16129== Releasing lock... [2025-03-05 08:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:50:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-05 08:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:51:06 [end_date_ymd] => 2025-03-05 08:51:06 [RateCDR] => 1 ) [2025-03-05 08: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-03-05 05:51:06' and `end` < '2025-03-05 08: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-03-05 08:51:18] Production.INFO: count ==628 [2025-03-05 08:51:18] Production.ERROR: pbx CDR StartTime 2025-03-05 05:51:06 - End Time 2025-03-05 08:51:06 [2025-03-05 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612035', 'tblTempUsageDetail_20' ) start [2025-03-05 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612035', 'tblTempUsageDetail_20' ) end [2025-03-05 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612035', 'tblTempVendorCDR_20' ) start [2025-03-05 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612035', 'tblTempVendorCDR_20' ) end [2025-03-05 08:51:18] Production.INFO: ProcessCDR(1,14612035,1,1,2) [2025-03-05 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612035', 'tblTempUsageDetail_20' ) start [2025-03-05 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612035', 'tblTempUsageDetail_20' ) end [2025-03-05 08:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:51:21] Production.INFO: ==16208== Releasing lock... [2025-03-05 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:51:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-05 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:52:05 [end_date_ymd] => 2025-03-05 08:52:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 05:52:05' and `end` < '2025-03-05 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-03-05 08:52:17] Production.INFO: count ==634 [2025-03-05 08:52:17] Production.ERROR: pbx CDR StartTime 2025-03-05 05:52:05 - End Time 2025-03-05 08:52:05 [2025-03-05 08:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612040', 'tblTempUsageDetail_20' ) start [2025-03-05 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612040', 'tblTempUsageDetail_20' ) end [2025-03-05 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612040', 'tblTempVendorCDR_20' ) start [2025-03-05 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612040', 'tblTempVendorCDR_20' ) end [2025-03-05 08:52:17] Production.INFO: ProcessCDR(1,14612040,1,1,2) [2025-03-05 08:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612040', 'tblTempUsageDetail_20' ) start [2025-03-05 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612040', 'tblTempUsageDetail_20' ) end [2025-03-05 08:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:52:22] Production.INFO: ==16277== Releasing lock... [2025-03-05 08:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:52:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-05 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:53:05 [end_date_ymd] => 2025-03-05 08:53:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 05:53:05' and `end` < '2025-03-05 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-03-05 08:53:17] Production.INFO: count ==634 [2025-03-05 08:53:18] Production.ERROR: pbx CDR StartTime 2025-03-05 05:53:05 - End Time 2025-03-05 08:53:05 [2025-03-05 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612045', 'tblTempUsageDetail_20' ) start [2025-03-05 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612045', 'tblTempUsageDetail_20' ) end [2025-03-05 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612045', 'tblTempVendorCDR_20' ) start [2025-03-05 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612045', 'tblTempVendorCDR_20' ) end [2025-03-05 08:53:18] Production.INFO: ProcessCDR(1,14612045,1,1,2) [2025-03-05 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612045', 'tblTempUsageDetail_20' ) start [2025-03-05 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612045', 'tblTempUsageDetail_20' ) end [2025-03-05 08:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:53:22] Production.INFO: ==16356== Releasing lock... [2025-03-05 08:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:53:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-05 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:54:05 [end_date_ymd] => 2025-03-05 08:54:05 [RateCDR] => 1 ) [2025-03-05 08: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-03-05 05:54:05' and `end` < '2025-03-05 08: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-03-05 08:54:17] Production.INFO: count ==658 [2025-03-05 08:54:17] Production.ERROR: pbx CDR StartTime 2025-03-05 05:54:05 - End Time 2025-03-05 08:54:05 [2025-03-05 08:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612050', 'tblTempUsageDetail_20' ) start [2025-03-05 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612050', 'tblTempUsageDetail_20' ) end [2025-03-05 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612050', 'tblTempVendorCDR_20' ) start [2025-03-05 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612050', 'tblTempVendorCDR_20' ) end [2025-03-05 08:54:17] Production.INFO: ProcessCDR(1,14612050,1,1,2) [2025-03-05 08:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612050', 'tblTempUsageDetail_20' ) start [2025-03-05 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612050', 'tblTempUsageDetail_20' ) end [2025-03-05 08:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:54:22] Production.INFO: ==16448== Releasing lock... [2025-03-05 08:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:54:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-05 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:55:05 [end_date_ymd] => 2025-03-05 08:55:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 05:55:05' and `end` < '2025-03-05 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-03-05 08:55:18] Production.INFO: count ==679 [2025-03-05 08:55:18] Production.ERROR: pbx CDR StartTime 2025-03-05 05:55:05 - End Time 2025-03-05 08:55:05 [2025-03-05 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612055', 'tblTempUsageDetail_20' ) start [2025-03-05 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612055', 'tblTempUsageDetail_20' ) end [2025-03-05 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612055', 'tblTempVendorCDR_20' ) start [2025-03-05 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612055', 'tblTempVendorCDR_20' ) end [2025-03-05 08:55:18] Production.INFO: ProcessCDR(1,14612055,1,1,2) [2025-03-05 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612055', 'tblTempUsageDetail_20' ) start [2025-03-05 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612055', 'tblTempUsageDetail_20' ) end [2025-03-05 08:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:55:21] Production.INFO: ==16524== Releasing lock... [2025-03-05 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:55:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-05 08:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:56:06 [end_date_ymd] => 2025-03-05 08:56:06 [RateCDR] => 1 ) [2025-03-05 08: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-03-05 05:56:06' and `end` < '2025-03-05 08: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-03-05 08:56:18] Production.INFO: count ==677 [2025-03-05 08:56:18] Production.ERROR: pbx CDR StartTime 2025-03-05 05:56:06 - End Time 2025-03-05 08:56:06 [2025-03-05 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612060', 'tblTempUsageDetail_20' ) start [2025-03-05 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612060', 'tblTempUsageDetail_20' ) end [2025-03-05 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612060', 'tblTempVendorCDR_20' ) start [2025-03-05 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612060', 'tblTempVendorCDR_20' ) end [2025-03-05 08:56:18] Production.INFO: ProcessCDR(1,14612060,1,1,2) [2025-03-05 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612060', 'tblTempUsageDetail_20' ) start [2025-03-05 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612060', 'tblTempUsageDetail_20' ) end [2025-03-05 08:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:56:23] Production.INFO: ==16596== Releasing lock... [2025-03-05 08:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:56:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-05 08:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:57:06 [end_date_ymd] => 2025-03-05 08:57:06 [RateCDR] => 1 ) [2025-03-05 08:57: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-03-05 05:57:06' and `end` < '2025-03-05 08:57: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-03-05 08:57:18] Production.INFO: count ==678 [2025-03-05 08:57:18] Production.ERROR: pbx CDR StartTime 2025-03-05 05:57:06 - End Time 2025-03-05 08:57:06 [2025-03-05 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612065', 'tblTempUsageDetail_20' ) start [2025-03-05 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612065', 'tblTempUsageDetail_20' ) end [2025-03-05 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612065', 'tblTempVendorCDR_20' ) start [2025-03-05 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612065', 'tblTempVendorCDR_20' ) end [2025-03-05 08:57:18] Production.INFO: ProcessCDR(1,14612065,1,1,2) [2025-03-05 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612065', 'tblTempUsageDetail_20' ) start [2025-03-05 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612065', 'tblTempUsageDetail_20' ) end [2025-03-05 08:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:57:23] Production.INFO: ==16671== Releasing lock... [2025-03-05 08:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:57:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-05 08:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:58:06 [end_date_ymd] => 2025-03-05 08:58:06 [RateCDR] => 1 ) [2025-03-05 08: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-03-05 05:58:06' and `end` < '2025-03-05 08: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-03-05 08:58:18] Production.INFO: count ==691 [2025-03-05 08:58:18] Production.ERROR: pbx CDR StartTime 2025-03-05 05:58:06 - End Time 2025-03-05 08:58:06 [2025-03-05 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612070', 'tblTempUsageDetail_20' ) start [2025-03-05 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612070', 'tblTempUsageDetail_20' ) end [2025-03-05 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612070', 'tblTempVendorCDR_20' ) start [2025-03-05 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612070', 'tblTempVendorCDR_20' ) end [2025-03-05 08:58:18] Production.INFO: ProcessCDR(1,14612070,1,1,2) [2025-03-05 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612070', 'tblTempUsageDetail_20' ) start [2025-03-05 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612070', 'tblTempUsageDetail_20' ) end [2025-03-05 08:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:58:23] Production.INFO: ==16743== Releasing lock... [2025-03-05 08:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:58:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-05 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 05:59:05 [end_date_ymd] => 2025-03-05 08:59:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 05:59:05' and `end` < '2025-03-05 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-03-05 08:59:17] Production.INFO: count ==705 [2025-03-05 08:59:17] Production.ERROR: pbx CDR StartTime 2025-03-05 05:59:05 - End Time 2025-03-05 08:59:05 [2025-03-05 08:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612074', 'tblTempUsageDetail_20' ) start [2025-03-05 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612074', 'tblTempUsageDetail_20' ) end [2025-03-05 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612074', 'tblTempVendorCDR_20' ) start [2025-03-05 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612074', 'tblTempVendorCDR_20' ) end [2025-03-05 08:59:17] Production.INFO: ProcessCDR(1,14612074,1,1,2) [2025-03-05 08:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612074', 'tblTempUsageDetail_20' ) start [2025-03-05 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612074', 'tblTempUsageDetail_20' ) end [2025-03-05 08:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 08:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 08:59:22] Production.INFO: ==16819== Releasing lock... [2025-03-05 08:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 08:59:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-05 09:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:00:07 [end_date_ymd] => 2025-03-05 09:00:07 [RateCDR] => 1 ) [2025-03-05 09:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 06:00:07' and `end` < '2025-03-05 09:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-05 09:00:19] Production.INFO: count ==719 [2025-03-05 09:00:19] Production.ERROR: pbx CDR StartTime 2025-03-05 06:00:07 - End Time 2025-03-05 09:00:07 [2025-03-05 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612081', 'tblTempUsageDetail_20' ) start [2025-03-05 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612081', 'tblTempUsageDetail_20' ) end [2025-03-05 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612081', 'tblTempVendorCDR_20' ) start [2025-03-05 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612081', 'tblTempVendorCDR_20' ) end [2025-03-05 09:00:19] Production.INFO: ProcessCDR(1,14612081,1,1,2) [2025-03-05 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612081', 'tblTempUsageDetail_20' ) start [2025-03-05 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612081', 'tblTempUsageDetail_20' ) end [2025-03-05 09:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:00:24] Production.INFO: ==16894== Releasing lock... [2025-03-05 09:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:00:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-05 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:01:05 [end_date_ymd] => 2025-03-05 09:01:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 06:01:05' and `end` < '2025-03-05 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-03-05 09:01:17] Production.INFO: count ==755 [2025-03-05 09:01:17] Production.ERROR: pbx CDR StartTime 2025-03-05 06:01:05 - End Time 2025-03-05 09:01:05 [2025-03-05 09:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612086', 'tblTempUsageDetail_20' ) start [2025-03-05 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612086', 'tblTempUsageDetail_20' ) end [2025-03-05 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612086', 'tblTempVendorCDR_20' ) start [2025-03-05 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612086', 'tblTempVendorCDR_20' ) end [2025-03-05 09:01:17] Production.INFO: ProcessCDR(1,14612086,1,1,2) [2025-03-05 09:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612086', 'tblTempUsageDetail_20' ) start [2025-03-05 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612086', 'tblTempUsageDetail_20' ) end [2025-03-05 09:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:01:22] Production.INFO: ==16982== Releasing lock... [2025-03-05 09:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:01:22] Production.INFO: 34 MB #Memory Used# [2025-03-05 09:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:02:06 [end_date_ymd] => 2025-03-05 09:02:06 [RateCDR] => 1 ) [2025-03-05 09:02: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-03-05 06:02:06' and `end` < '2025-03-05 09:02: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-03-05 09:02:18] Production.INFO: count ==770 [2025-03-05 09:02:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:02:06 - End Time 2025-03-05 09:02:06 [2025-03-05 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612091', 'tblTempUsageDetail_20' ) start [2025-03-05 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612091', 'tblTempUsageDetail_20' ) end [2025-03-05 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612091', 'tblTempVendorCDR_20' ) start [2025-03-05 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612091', 'tblTempVendorCDR_20' ) end [2025-03-05 09:02:18] Production.INFO: ProcessCDR(1,14612091,1,1,2) [2025-03-05 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612091', 'tblTempUsageDetail_20' ) start [2025-03-05 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612091', 'tblTempUsageDetail_20' ) end [2025-03-05 09:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:02:22] Production.INFO: ==17059== Releasing lock... [2025-03-05 09:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:02:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-05 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:03:05 [end_date_ymd] => 2025-03-05 09:03:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 06:03:05' and `end` < '2025-03-05 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-03-05 09:03:17] Production.INFO: count ==783 [2025-03-05 09:03:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:03:05 - End Time 2025-03-05 09:03:05 [2025-03-05 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612096', 'tblTempUsageDetail_20' ) start [2025-03-05 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612096', 'tblTempUsageDetail_20' ) end [2025-03-05 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612096', 'tblTempVendorCDR_20' ) start [2025-03-05 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612096', 'tblTempVendorCDR_20' ) end [2025-03-05 09:03:18] Production.INFO: ProcessCDR(1,14612096,1,1,2) [2025-03-05 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612096', 'tblTempUsageDetail_20' ) start [2025-03-05 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612096', 'tblTempUsageDetail_20' ) end [2025-03-05 09:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:03:23] Production.INFO: ==17131== Releasing lock... [2025-03-05 09:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:03:23] Production.INFO: 34 MB #Memory Used# [2025-03-05 09:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:04:06 [end_date_ymd] => 2025-03-05 09:04:06 [RateCDR] => 1 ) [2025-03-05 09:04: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-03-05 06:04:06' and `end` < '2025-03-05 09:04: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-03-05 09:04:18] Production.INFO: count ==803 [2025-03-05 09:04:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:04:06 - End Time 2025-03-05 09:04:06 [2025-03-05 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612101', 'tblTempUsageDetail_20' ) start [2025-03-05 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612101', 'tblTempUsageDetail_20' ) end [2025-03-05 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612101', 'tblTempVendorCDR_20' ) start [2025-03-05 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612101', 'tblTempVendorCDR_20' ) end [2025-03-05 09:04:18] Production.INFO: ProcessCDR(1,14612101,1,1,2) [2025-03-05 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612101', 'tblTempUsageDetail_20' ) start [2025-03-05 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612101', 'tblTempUsageDetail_20' ) end [2025-03-05 09:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:04:23] Production.INFO: ==17243== Releasing lock... [2025-03-05 09:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:04:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-05 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:05:05 [end_date_ymd] => 2025-03-05 09:05:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 06:05:05' and `end` < '2025-03-05 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-03-05 09:05:17] Production.INFO: count ==817 [2025-03-05 09:05:17] Production.ERROR: pbx CDR StartTime 2025-03-05 06:05:05 - End Time 2025-03-05 09:05:05 [2025-03-05 09:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612106', 'tblTempUsageDetail_20' ) start [2025-03-05 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612106', 'tblTempUsageDetail_20' ) end [2025-03-05 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612106', 'tblTempVendorCDR_20' ) start [2025-03-05 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612106', 'tblTempVendorCDR_20' ) end [2025-03-05 09:05:18] Production.INFO: ProcessCDR(1,14612106,1,1,2) [2025-03-05 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612106', 'tblTempUsageDetail_20' ) start [2025-03-05 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612106', 'tblTempUsageDetail_20' ) end [2025-03-05 09:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:05:22] Production.INFO: ==17318== Releasing lock... [2025-03-05 09:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:05:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-05 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:06:05 [end_date_ymd] => 2025-03-05 09:06:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 06:06:05' and `end` < '2025-03-05 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-03-05 09:06:18] Production.INFO: count ==836 [2025-03-05 09:06:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:06:05 - End Time 2025-03-05 09:06:05 [2025-03-05 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612111', 'tblTempUsageDetail_20' ) start [2025-03-05 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612111', 'tblTempUsageDetail_20' ) end [2025-03-05 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612111', 'tblTempVendorCDR_20' ) start [2025-03-05 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612111', 'tblTempVendorCDR_20' ) end [2025-03-05 09:06:18] Production.INFO: ProcessCDR(1,14612111,1,1,2) [2025-03-05 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612111', 'tblTempUsageDetail_20' ) start [2025-03-05 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612111', 'tblTempUsageDetail_20' ) end [2025-03-05 09:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:06:22] Production.INFO: ==17394== Releasing lock... [2025-03-05 09:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:06:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-05 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:07:05 [end_date_ymd] => 2025-03-05 09:07:05 [RateCDR] => 1 ) [2025-03-05 09: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-03-05 06:07:05' and `end` < '2025-03-05 09: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-03-05 09:07:17] Production.INFO: count ==901 [2025-03-05 09:07:17] Production.ERROR: pbx CDR StartTime 2025-03-05 06:07:05 - End Time 2025-03-05 09:07:05 [2025-03-05 09:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612116', 'tblTempUsageDetail_20' ) start [2025-03-05 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612116', 'tblTempUsageDetail_20' ) end [2025-03-05 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612116', 'tblTempVendorCDR_20' ) start [2025-03-05 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612116', 'tblTempVendorCDR_20' ) end [2025-03-05 09:07:17] Production.INFO: ProcessCDR(1,14612116,1,1,2) [2025-03-05 09:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612116', 'tblTempUsageDetail_20' ) start [2025-03-05 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612116', 'tblTempUsageDetail_20' ) end [2025-03-05 09:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:07:22] Production.INFO: ==17464== Releasing lock... [2025-03-05 09:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:07:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-05 09:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:08:06 [end_date_ymd] => 2025-03-05 09:08:06 [RateCDR] => 1 ) [2025-03-05 09:08: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-03-05 06:08:06' and `end` < '2025-03-05 09:08: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-03-05 09:08:18] Production.INFO: count ==947 [2025-03-05 09:08:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:08:06 - End Time 2025-03-05 09:08:06 [2025-03-05 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612121', 'tblTempUsageDetail_20' ) start [2025-03-05 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612121', 'tblTempUsageDetail_20' ) end [2025-03-05 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612121', 'tblTempVendorCDR_20' ) start [2025-03-05 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612121', 'tblTempVendorCDR_20' ) end [2025-03-05 09:08:18] Production.INFO: ProcessCDR(1,14612121,1,1,2) [2025-03-05 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612121', 'tblTempUsageDetail_20' ) start [2025-03-05 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612121', 'tblTempUsageDetail_20' ) end [2025-03-05 09:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:08:23] Production.INFO: ==17537== Releasing lock... [2025-03-05 09:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:08:23] Production.INFO: 35 MB #Memory Used# [2025-03-05 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:09:05 [end_date_ymd] => 2025-03-05 09:09:05 [RateCDR] => 1 ) [2025-03-05 09: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-03-05 06:09:05' and `end` < '2025-03-05 09: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-03-05 09:09:17] Production.INFO: count ==960 [2025-03-05 09:09:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:09:05 - End Time 2025-03-05 09:09:05 [2025-03-05 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612126', 'tblTempUsageDetail_20' ) start [2025-03-05 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612126', 'tblTempUsageDetail_20' ) end [2025-03-05 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612126', 'tblTempVendorCDR_20' ) start [2025-03-05 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612126', 'tblTempVendorCDR_20' ) end [2025-03-05 09:09:18] Production.INFO: ProcessCDR(1,14612126,1,1,2) [2025-03-05 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612126', 'tblTempUsageDetail_20' ) start [2025-03-05 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612126', 'tblTempUsageDetail_20' ) end [2025-03-05 09:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:09:22] Production.INFO: ==17607== Releasing lock... [2025-03-05 09:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:09:22] Production.INFO: 36 MB #Memory Used# [2025-03-05 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:10:06 [end_date_ymd] => 2025-03-05 09:10:06 [RateCDR] => 1 ) [2025-03-05 09: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-03-05 06:10:06' and `end` < '2025-03-05 09: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-03-05 09:10:19] Production.INFO: count ==971 [2025-03-05 09:10:19] Production.ERROR: pbx CDR StartTime 2025-03-05 06:10:06 - End Time 2025-03-05 09:10:06 [2025-03-05 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612132', 'tblTempUsageDetail_20' ) start [2025-03-05 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612132', 'tblTempUsageDetail_20' ) end [2025-03-05 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612132', 'tblTempVendorCDR_20' ) start [2025-03-05 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612132', 'tblTempVendorCDR_20' ) end [2025-03-05 09:10:19] Production.INFO: ProcessCDR(1,14612132,1,1,2) [2025-03-05 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612132', 'tblTempUsageDetail_20' ) start [2025-03-05 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612132', 'tblTempUsageDetail_20' ) end [2025-03-05 09:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:10:24] Production.INFO: ==17683== Releasing lock... [2025-03-05 09:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:10:24] Production.INFO: 35.5 MB #Memory Used# [2025-03-05 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:11:05 [end_date_ymd] => 2025-03-05 09:11:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 06:11:05' and `end` < '2025-03-05 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-03-05 09:11:17] Production.INFO: count ==1047 [2025-03-05 09:11:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:11:05 - End Time 2025-03-05 09:11:05 [2025-03-05 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612137', 'tblTempUsageDetail_20' ) start [2025-03-05 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612137', 'tblTempUsageDetail_20' ) end [2025-03-05 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612137', 'tblTempVendorCDR_20' ) start [2025-03-05 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612137', 'tblTempVendorCDR_20' ) end [2025-03-05 09:11:18] Production.INFO: ProcessCDR(1,14612137,1,1,2) [2025-03-05 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612137', 'tblTempUsageDetail_20' ) start [2025-03-05 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612137', 'tblTempUsageDetail_20' ) end [2025-03-05 09:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:11:22] Production.INFO: ==17758== Releasing lock... [2025-03-05 09:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:11:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-05 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:12:06 [end_date_ymd] => 2025-03-05 09:12:06 [RateCDR] => 1 ) [2025-03-05 09:12: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-03-05 06:12:06' and `end` < '2025-03-05 09:12: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-03-05 09:12:18] Production.INFO: count ==1065 [2025-03-05 09:12:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:12:06 - End Time 2025-03-05 09:12:06 [2025-03-05 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612142', 'tblTempUsageDetail_20' ) start [2025-03-05 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612142', 'tblTempUsageDetail_20' ) end [2025-03-05 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612142', 'tblTempVendorCDR_20' ) start [2025-03-05 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612142', 'tblTempVendorCDR_20' ) end [2025-03-05 09:12:18] Production.INFO: ProcessCDR(1,14612142,1,1,2) [2025-03-05 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612142', 'tblTempUsageDetail_20' ) start [2025-03-05 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612142', 'tblTempUsageDetail_20' ) end [2025-03-05 09:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:12:23] Production.INFO: ==17833== Releasing lock... [2025-03-05 09:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:12:23] Production.INFO: 36 MB #Memory Used# [2025-03-05 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:13:05 [end_date_ymd] => 2025-03-05 09:13:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 06:13:05' and `end` < '2025-03-05 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-03-05 09:13:17] Production.INFO: count ==1088 [2025-03-05 09:13:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:13:05 - End Time 2025-03-05 09:13:05 [2025-03-05 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612147', 'tblTempUsageDetail_20' ) start [2025-03-05 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612147', 'tblTempUsageDetail_20' ) end [2025-03-05 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612147', 'tblTempVendorCDR_20' ) start [2025-03-05 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612147', 'tblTempVendorCDR_20' ) end [2025-03-05 09:13:18] Production.INFO: ProcessCDR(1,14612147,1,1,2) [2025-03-05 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612147', 'tblTempUsageDetail_20' ) start [2025-03-05 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612147', 'tblTempUsageDetail_20' ) end [2025-03-05 09:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:13:22] Production.INFO: ==17910== Releasing lock... [2025-03-05 09:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:13:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-05 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:14:05 [end_date_ymd] => 2025-03-05 09:14:05 [RateCDR] => 1 ) [2025-03-05 09: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-03-05 06:14:05' and `end` < '2025-03-05 09: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-03-05 09:14:17] Production.INFO: count ==1096 [2025-03-05 09:14:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:14:05 - End Time 2025-03-05 09:14:05 [2025-03-05 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612152', 'tblTempUsageDetail_20' ) start [2025-03-05 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612152', 'tblTempUsageDetail_20' ) end [2025-03-05 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612152', 'tblTempVendorCDR_20' ) start [2025-03-05 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612152', 'tblTempVendorCDR_20' ) end [2025-03-05 09:14:18] Production.INFO: ProcessCDR(1,14612152,1,1,2) [2025-03-05 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612152', 'tblTempUsageDetail_20' ) start [2025-03-05 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612152', 'tblTempUsageDetail_20' ) end [2025-03-05 09:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:14:22] Production.INFO: ==17991== Releasing lock... [2025-03-05 09:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:14:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-05 09:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:15:06 [end_date_ymd] => 2025-03-05 09:15:06 [RateCDR] => 1 ) [2025-03-05 09: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-03-05 06:15:06' and `end` < '2025-03-05 09: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-03-05 09:15:18] Production.INFO: count ==1113 [2025-03-05 09:15:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:15:06 - End Time 2025-03-05 09:15:06 [2025-03-05 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612157', 'tblTempUsageDetail_20' ) start [2025-03-05 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612157', 'tblTempUsageDetail_20' ) end [2025-03-05 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612157', 'tblTempVendorCDR_20' ) start [2025-03-05 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612157', 'tblTempVendorCDR_20' ) end [2025-03-05 09:15:18] Production.INFO: ProcessCDR(1,14612157,1,1,2) [2025-03-05 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612157', 'tblTempUsageDetail_20' ) start [2025-03-05 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612157', 'tblTempUsageDetail_20' ) end [2025-03-05 09:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:15:23] Production.INFO: ==18067== Releasing lock... [2025-03-05 09:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:15:23] Production.INFO: 37 MB #Memory Used# [2025-03-05 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:16:05 [end_date_ymd] => 2025-03-05 09:16:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 06:16:05' and `end` < '2025-03-05 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-03-05 09:16:18] Production.INFO: count ==1115 [2025-03-05 09:16:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:16:05 - End Time 2025-03-05 09:16:05 [2025-03-05 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612162', 'tblTempUsageDetail_20' ) start [2025-03-05 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612162', 'tblTempUsageDetail_20' ) end [2025-03-05 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612162', 'tblTempVendorCDR_20' ) start [2025-03-05 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612162', 'tblTempVendorCDR_20' ) end [2025-03-05 09:16:18] Production.INFO: ProcessCDR(1,14612162,1,1,2) [2025-03-05 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612162', 'tblTempUsageDetail_20' ) start [2025-03-05 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612162', 'tblTempUsageDetail_20' ) end [2025-03-05 09:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:16:23] Production.INFO: ==18148== Releasing lock... [2025-03-05 09:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:16:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-05 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:17:05 [end_date_ymd] => 2025-03-05 09:17:05 [RateCDR] => 1 ) [2025-03-05 09: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-03-05 06:17:05' and `end` < '2025-03-05 09: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-03-05 09:17:17] Production.INFO: count ==1116 [2025-03-05 09:17:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:17:05 - End Time 2025-03-05 09:17:05 [2025-03-05 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612167', 'tblTempUsageDetail_20' ) start [2025-03-05 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612167', 'tblTempUsageDetail_20' ) end [2025-03-05 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612167', 'tblTempVendorCDR_20' ) start [2025-03-05 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612167', 'tblTempVendorCDR_20' ) end [2025-03-05 09:17:18] Production.INFO: ProcessCDR(1,14612167,1,1,2) [2025-03-05 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612167', 'tblTempUsageDetail_20' ) start [2025-03-05 09:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612167', 'tblTempUsageDetail_20' ) end [2025-03-05 09:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:17:21] Production.INFO: ==18220== Releasing lock... [2025-03-05 09:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:17:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-05 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:18:05 [end_date_ymd] => 2025-03-05 09:18:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 06:18:05' and `end` < '2025-03-05 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-03-05 09:18:17] Production.INFO: count ==1132 [2025-03-05 09:18:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:18:05 - End Time 2025-03-05 09:18:05 [2025-03-05 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612172', 'tblTempUsageDetail_20' ) start [2025-03-05 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612172', 'tblTempUsageDetail_20' ) end [2025-03-05 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612172', 'tblTempVendorCDR_20' ) start [2025-03-05 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612172', 'tblTempVendorCDR_20' ) end [2025-03-05 09:18:18] Production.INFO: ProcessCDR(1,14612172,1,1,2) [2025-03-05 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612172', 'tblTempUsageDetail_20' ) start [2025-03-05 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612172', 'tblTempUsageDetail_20' ) end [2025-03-05 09:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:18:22] Production.INFO: ==18291== Releasing lock... [2025-03-05 09:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:18:22] Production.INFO: 37 MB #Memory Used# [2025-03-05 09:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:19:06 [end_date_ymd] => 2025-03-05 09:19:06 [RateCDR] => 1 ) [2025-03-05 09:19: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-03-05 06:19:06' and `end` < '2025-03-05 09:19: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-03-05 09:19:18] Production.INFO: count ==1143 [2025-03-05 09:19:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:19:06 - End Time 2025-03-05 09:19:06 [2025-03-05 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612177', 'tblTempUsageDetail_20' ) start [2025-03-05 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612177', 'tblTempUsageDetail_20' ) end [2025-03-05 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612177', 'tblTempVendorCDR_20' ) start [2025-03-05 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612177', 'tblTempVendorCDR_20' ) end [2025-03-05 09:19:18] Production.INFO: ProcessCDR(1,14612177,1,1,2) [2025-03-05 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612177', 'tblTempUsageDetail_20' ) start [2025-03-05 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612177', 'tblTempUsageDetail_20' ) end [2025-03-05 09:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:19:23] Production.INFO: ==18368== Releasing lock... [2025-03-05 09:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:19:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-05 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:20:06 [end_date_ymd] => 2025-03-05 09:20:06 [RateCDR] => 1 ) [2025-03-05 09: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-03-05 06:20:06' and `end` < '2025-03-05 09: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-03-05 09:20:18] Production.INFO: count ==1163 [2025-03-05 09:20:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:20:06 - End Time 2025-03-05 09:20:06 [2025-03-05 09:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612183', 'tblTempUsageDetail_20' ) start [2025-03-05 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612183', 'tblTempUsageDetail_20' ) end [2025-03-05 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612183', 'tblTempVendorCDR_20' ) start [2025-03-05 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612183', 'tblTempVendorCDR_20' ) end [2025-03-05 09:20:18] Production.INFO: ProcessCDR(1,14612183,1,1,2) [2025-03-05 09:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612183', 'tblTempUsageDetail_20' ) start [2025-03-05 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612183', 'tblTempUsageDetail_20' ) end [2025-03-05 09:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:20:23] Production.INFO: ==18480== Releasing lock... [2025-03-05 09:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:20:23] Production.INFO: 37 MB #Memory Used# [2025-03-05 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:21:05 [end_date_ymd] => 2025-03-05 09:21:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 06:21:05' and `end` < '2025-03-05 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-03-05 09:21:17] Production.INFO: count ==1226 [2025-03-05 09:21:17] Production.ERROR: pbx CDR StartTime 2025-03-05 06:21:05 - End Time 2025-03-05 09:21:05 [2025-03-05 09:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612188', 'tblTempUsageDetail_20' ) start [2025-03-05 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612188', 'tblTempUsageDetail_20' ) end [2025-03-05 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612188', 'tblTempVendorCDR_20' ) start [2025-03-05 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612188', 'tblTempVendorCDR_20' ) end [2025-03-05 09:21:18] Production.INFO: ProcessCDR(1,14612188,1,1,2) [2025-03-05 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612188', 'tblTempUsageDetail_20' ) start [2025-03-05 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612188', 'tblTempUsageDetail_20' ) end [2025-03-05 09:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:21:22] Production.INFO: ==18555== Releasing lock... [2025-03-05 09:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:21:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-05 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:22:05 [end_date_ymd] => 2025-03-05 09:22:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 06:22:05' and `end` < '2025-03-05 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-03-05 09:22:17] Production.INFO: count ==1230 [2025-03-05 09:22:17] Production.ERROR: pbx CDR StartTime 2025-03-05 06:22:05 - End Time 2025-03-05 09:22:05 [2025-03-05 09:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612193', 'tblTempUsageDetail_20' ) start [2025-03-05 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612193', 'tblTempUsageDetail_20' ) end [2025-03-05 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612193', 'tblTempVendorCDR_20' ) start [2025-03-05 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612193', 'tblTempVendorCDR_20' ) end [2025-03-05 09:22:17] Production.INFO: ProcessCDR(1,14612193,1,1,2) [2025-03-05 09:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612193', 'tblTempUsageDetail_20' ) start [2025-03-05 09:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612193', 'tblTempUsageDetail_20' ) end [2025-03-05 09:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:22:22] Production.INFO: ==18631== Releasing lock... [2025-03-05 09:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:22:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-05 09:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:23:06 [end_date_ymd] => 2025-03-05 09:23:06 [RateCDR] => 1 ) [2025-03-05 09:23: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-03-05 06:23:06' and `end` < '2025-03-05 09:23: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-03-05 09:23:18] Production.INFO: count ==1243 [2025-03-05 09:23:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:23:06 - End Time 2025-03-05 09:23:06 [2025-03-05 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612198', 'tblTempUsageDetail_20' ) start [2025-03-05 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612198', 'tblTempUsageDetail_20' ) end [2025-03-05 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612198', 'tblTempVendorCDR_20' ) start [2025-03-05 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612198', 'tblTempVendorCDR_20' ) end [2025-03-05 09:23:18] Production.INFO: ProcessCDR(1,14612198,1,1,2) [2025-03-05 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612198', 'tblTempUsageDetail_20' ) start [2025-03-05 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612198', 'tblTempUsageDetail_20' ) end [2025-03-05 09:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:23:23] Production.INFO: ==18705== Releasing lock... [2025-03-05 09:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:23:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-05 09:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:24:06 [end_date_ymd] => 2025-03-05 09:24:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 06:24:06' and `end` < '2025-03-05 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-03-05 09:24:18] Production.INFO: count ==1248 [2025-03-05 09:24:19] Production.ERROR: pbx CDR StartTime 2025-03-05 06:24:06 - End Time 2025-03-05 09:24:06 [2025-03-05 09:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612203', 'tblTempUsageDetail_20' ) start [2025-03-05 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612203', 'tblTempUsageDetail_20' ) end [2025-03-05 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612203', 'tblTempVendorCDR_20' ) start [2025-03-05 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612203', 'tblTempVendorCDR_20' ) end [2025-03-05 09:24:19] Production.INFO: ProcessCDR(1,14612203,1,1,2) [2025-03-05 09:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612203', 'tblTempUsageDetail_20' ) start [2025-03-05 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612203', 'tblTempUsageDetail_20' ) end [2025-03-05 09:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:24:24] Production.INFO: ==18777== Releasing lock... [2025-03-05 09:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:24:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-05 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:25:05 [end_date_ymd] => 2025-03-05 09:25:05 [RateCDR] => 1 ) [2025-03-05 09: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-03-05 06:25:05' and `end` < '2025-03-05 09: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-03-05 09:25:18] Production.INFO: count ==1249 [2025-03-05 09:25:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:25:05 - End Time 2025-03-05 09:25:05 [2025-03-05 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612208', 'tblTempUsageDetail_20' ) start [2025-03-05 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612208', 'tblTempUsageDetail_20' ) end [2025-03-05 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612208', 'tblTempVendorCDR_20' ) start [2025-03-05 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612208', 'tblTempVendorCDR_20' ) end [2025-03-05 09:25:18] Production.INFO: ProcessCDR(1,14612208,1,1,2) [2025-03-05 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612208', 'tblTempUsageDetail_20' ) start [2025-03-05 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612208', 'tblTempUsageDetail_20' ) end [2025-03-05 09:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:25:21] Production.INFO: ==18849== Releasing lock... [2025-03-05 09:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:25:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-05 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:26:05 [end_date_ymd] => 2025-03-05 09:26:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 06:26:05' and `end` < '2025-03-05 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-03-05 09:26:18] Production.INFO: count ==1273 [2025-03-05 09:26:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:26:05 - End Time 2025-03-05 09:26:05 [2025-03-05 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612213', 'tblTempUsageDetail_20' ) start [2025-03-05 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612213', 'tblTempUsageDetail_20' ) end [2025-03-05 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612213', 'tblTempVendorCDR_20' ) start [2025-03-05 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612213', 'tblTempVendorCDR_20' ) end [2025-03-05 09:26:18] Production.INFO: ProcessCDR(1,14612213,1,1,2) [2025-03-05 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612213', 'tblTempUsageDetail_20' ) start [2025-03-05 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612213', 'tblTempUsageDetail_20' ) end [2025-03-05 09:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:26:23] Production.INFO: ==18922== Releasing lock... [2025-03-05 09:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:26:23] Production.INFO: 38 MB #Memory Used# [2025-03-05 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:27:05 [end_date_ymd] => 2025-03-05 09:27:05 [RateCDR] => 1 ) [2025-03-05 09: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-03-05 06:27:05' and `end` < '2025-03-05 09: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-03-05 09:27:17] Production.INFO: count ==1298 [2025-03-05 09:27:17] Production.ERROR: pbx CDR StartTime 2025-03-05 06:27:05 - End Time 2025-03-05 09:27:05 [2025-03-05 09:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612218', 'tblTempUsageDetail_20' ) start [2025-03-05 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612218', 'tblTempUsageDetail_20' ) end [2025-03-05 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612218', 'tblTempVendorCDR_20' ) start [2025-03-05 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612218', 'tblTempVendorCDR_20' ) end [2025-03-05 09:27:17] Production.INFO: ProcessCDR(1,14612218,1,1,2) [2025-03-05 09:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612218', 'tblTempUsageDetail_20' ) start [2025-03-05 09:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612218', 'tblTempUsageDetail_20' ) end [2025-03-05 09:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:27:22] Production.INFO: ==18997== Releasing lock... [2025-03-05 09:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:27:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-05 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:28:05 [end_date_ymd] => 2025-03-05 09:28:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 06:28:05' and `end` < '2025-03-05 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-03-05 09:28:18] Production.INFO: count ==1313 [2025-03-05 09:28:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:28:05 - End Time 2025-03-05 09:28:05 [2025-03-05 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612223', 'tblTempUsageDetail_20' ) start [2025-03-05 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612223', 'tblTempUsageDetail_20' ) end [2025-03-05 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612223', 'tblTempVendorCDR_20' ) start [2025-03-05 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612223', 'tblTempVendorCDR_20' ) end [2025-03-05 09:28:18] Production.INFO: ProcessCDR(1,14612223,1,1,2) [2025-03-05 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612223', 'tblTempUsageDetail_20' ) start [2025-03-05 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612223', 'tblTempUsageDetail_20' ) end [2025-03-05 09:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:28:23] Production.INFO: ==19067== Releasing lock... [2025-03-05 09:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:28:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-05 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:29:05 [end_date_ymd] => 2025-03-05 09:29:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 06:29:05' and `end` < '2025-03-05 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-03-05 09:29:17] Production.INFO: count ==1332 [2025-03-05 09:29:17] Production.ERROR: pbx CDR StartTime 2025-03-05 06:29:05 - End Time 2025-03-05 09:29:05 [2025-03-05 09:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612228', 'tblTempUsageDetail_20' ) start [2025-03-05 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612228', 'tblTempUsageDetail_20' ) end [2025-03-05 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612228', 'tblTempVendorCDR_20' ) start [2025-03-05 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612228', 'tblTempVendorCDR_20' ) end [2025-03-05 09:29:17] Production.INFO: ProcessCDR(1,14612228,1,1,2) [2025-03-05 09:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612228', 'tblTempUsageDetail_20' ) start [2025-03-05 09:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612228', 'tblTempUsageDetail_20' ) end [2025-03-05 09:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:29:22] Production.INFO: ==19145== Releasing lock... [2025-03-05 09:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:29:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-05 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:30:06 [end_date_ymd] => 2025-03-05 09:30:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 06:30:06' and `end` < '2025-03-05 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-03-05 09:30:18] Production.INFO: count ==1352 [2025-03-05 09:30:19] Production.ERROR: pbx CDR StartTime 2025-03-05 06:30:06 - End Time 2025-03-05 09:30:06 [2025-03-05 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612233', 'tblTempUsageDetail_20' ) start [2025-03-05 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612233', 'tblTempUsageDetail_20' ) end [2025-03-05 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612233', 'tblTempVendorCDR_20' ) start [2025-03-05 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612233', 'tblTempVendorCDR_20' ) end [2025-03-05 09:30:19] Production.INFO: ProcessCDR(1,14612233,1,1,2) [2025-03-05 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612233', 'tblTempUsageDetail_20' ) start [2025-03-05 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612233', 'tblTempUsageDetail_20' ) end [2025-03-05 09:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:30:24] Production.INFO: ==19220== Releasing lock... [2025-03-05 09:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:30:24] Production.INFO: 38.25 MB #Memory Used# [2025-03-05 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:31:05 [end_date_ymd] => 2025-03-05 09:31:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 06:31:05' and `end` < '2025-03-05 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-03-05 09:31:17] Production.INFO: count ==1418 [2025-03-05 09:31:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:31:05 - End Time 2025-03-05 09:31:05 [2025-03-05 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612239', 'tblTempUsageDetail_20' ) start [2025-03-05 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612239', 'tblTempUsageDetail_20' ) end [2025-03-05 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612239', 'tblTempVendorCDR_20' ) start [2025-03-05 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612239', 'tblTempVendorCDR_20' ) end [2025-03-05 09:31:18] Production.INFO: ProcessCDR(1,14612239,1,1,2) [2025-03-05 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612239', 'tblTempUsageDetail_20' ) start [2025-03-05 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612239', 'tblTempUsageDetail_20' ) end [2025-03-05 09:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:31:23] Production.INFO: ==19295== Releasing lock... [2025-03-05 09:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:31:23] Production.INFO: 39 MB #Memory Used# [2025-03-05 09:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:32:06 [end_date_ymd] => 2025-03-05 09:32:06 [RateCDR] => 1 ) [2025-03-05 09: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-03-05 06:32:06' and `end` < '2025-03-05 09: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-03-05 09:32:18] Production.INFO: count ==1435 [2025-03-05 09:32:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:32:06 - End Time 2025-03-05 09:32:06 [2025-03-05 09:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612244', 'tblTempUsageDetail_20' ) start [2025-03-05 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612244', 'tblTempUsageDetail_20' ) end [2025-03-05 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612244', 'tblTempVendorCDR_20' ) start [2025-03-05 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612244', 'tblTempVendorCDR_20' ) end [2025-03-05 09:32:18] Production.INFO: ProcessCDR(1,14612244,1,1,2) [2025-03-05 09:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612244', 'tblTempUsageDetail_20' ) start [2025-03-05 09:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612244', 'tblTempUsageDetail_20' ) end [2025-03-05 09:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:32:23] Production.INFO: ==19373== Releasing lock... [2025-03-05 09:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:32:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-05 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:33:05 [end_date_ymd] => 2025-03-05 09:33:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 06:33:05' and `end` < '2025-03-05 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-03-05 09:33:17] Production.INFO: count ==1439 [2025-03-05 09:33:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:33:05 - End Time 2025-03-05 09:33:05 [2025-03-05 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612249', 'tblTempUsageDetail_20' ) start [2025-03-05 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612249', 'tblTempUsageDetail_20' ) end [2025-03-05 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612249', 'tblTempVendorCDR_20' ) start [2025-03-05 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612249', 'tblTempVendorCDR_20' ) end [2025-03-05 09:33:18] Production.INFO: ProcessCDR(1,14612249,1,1,2) [2025-03-05 09:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612249', 'tblTempUsageDetail_20' ) start [2025-03-05 09:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612249', 'tblTempUsageDetail_20' ) end [2025-03-05 09:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:33:21] Production.INFO: ==19447== Releasing lock... [2025-03-05 09:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:33:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-05 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:34:05 [end_date_ymd] => 2025-03-05 09:34:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 06:34:05' and `end` < '2025-03-05 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-03-05 09:34:17] Production.INFO: count ==1449 [2025-03-05 09:34:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:34:05 - End Time 2025-03-05 09:34:05 [2025-03-05 09:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612254', 'tblTempUsageDetail_20' ) start [2025-03-05 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612254', 'tblTempUsageDetail_20' ) end [2025-03-05 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612254', 'tblTempVendorCDR_20' ) start [2025-03-05 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612254', 'tblTempVendorCDR_20' ) end [2025-03-05 09:34:18] Production.INFO: ProcessCDR(1,14612254,1,1,2) [2025-03-05 09:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612254', 'tblTempUsageDetail_20' ) start [2025-03-05 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612254', 'tblTempUsageDetail_20' ) end [2025-03-05 09:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:34:22] Production.INFO: ==19521== Releasing lock... [2025-03-05 09:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:34:22] Production.INFO: 39 MB #Memory Used# [2025-03-05 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:35:05 [end_date_ymd] => 2025-03-05 09:35:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 06:35:05' and `end` < '2025-03-05 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-03-05 09:35:17] Production.INFO: count ==1456 [2025-03-05 09:35:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:35:05 - End Time 2025-03-05 09:35:05 [2025-03-05 09:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612259', 'tblTempUsageDetail_20' ) start [2025-03-05 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612259', 'tblTempUsageDetail_20' ) end [2025-03-05 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612259', 'tblTempVendorCDR_20' ) start [2025-03-05 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612259', 'tblTempVendorCDR_20' ) end [2025-03-05 09:35:18] Production.INFO: ProcessCDR(1,14612259,1,1,2) [2025-03-05 09:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612259', 'tblTempUsageDetail_20' ) start [2025-03-05 09:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612259', 'tblTempUsageDetail_20' ) end [2025-03-05 09:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:35:22] Production.INFO: ==19641== Releasing lock... [2025-03-05 09:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:35:22] Production.INFO: 39 MB #Memory Used# [2025-03-05 09:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:36:06 [end_date_ymd] => 2025-03-05 09:36:06 [RateCDR] => 1 ) [2025-03-05 09:36: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-03-05 06:36:06' and `end` < '2025-03-05 09:36: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-03-05 09:36:18] Production.INFO: count ==1462 [2025-03-05 09:36:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:36:06 - End Time 2025-03-05 09:36:06 [2025-03-05 09:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612264', 'tblTempUsageDetail_20' ) start [2025-03-05 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612264', 'tblTempUsageDetail_20' ) end [2025-03-05 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612264', 'tblTempVendorCDR_20' ) start [2025-03-05 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612264', 'tblTempVendorCDR_20' ) end [2025-03-05 09:36:18] Production.INFO: ProcessCDR(1,14612264,1,1,2) [2025-03-05 09:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612264', 'tblTempUsageDetail_20' ) start [2025-03-05 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612264', 'tblTempUsageDetail_20' ) end [2025-03-05 09:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:36:23] Production.INFO: ==19727== Releasing lock... [2025-03-05 09:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:36:23] Production.INFO: 39 MB #Memory Used# [2025-03-05 09:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:37:04 [end_date_ymd] => 2025-03-05 09:37:04 [RateCDR] => 1 ) [2025-03-05 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-03-05 06:37:04' and `end` < '2025-03-05 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-03-05 09:37:17] Production.INFO: count ==1470 [2025-03-05 09:37:17] Production.ERROR: pbx CDR StartTime 2025-03-05 06:37:04 - End Time 2025-03-05 09:37:04 [2025-03-05 09:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612269', 'tblTempUsageDetail_20' ) start [2025-03-05 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612269', 'tblTempUsageDetail_20' ) end [2025-03-05 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612269', 'tblTempVendorCDR_20' ) start [2025-03-05 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612269', 'tblTempVendorCDR_20' ) end [2025-03-05 09:37:17] Production.INFO: ProcessCDR(1,14612269,1,1,2) [2025-03-05 09:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612269', 'tblTempUsageDetail_20' ) start [2025-03-05 09:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612269', 'tblTempUsageDetail_20' ) end [2025-03-05 09:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:37:22] Production.INFO: ==19808== Releasing lock... [2025-03-05 09:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:37:22] Production.INFO: 39 MB #Memory Used# [2025-03-05 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:38:05 [end_date_ymd] => 2025-03-05 09:38:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 06:38:05' and `end` < '2025-03-05 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-03-05 09:38:17] Production.INFO: count ==1485 [2025-03-05 09:38:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:38:05 - End Time 2025-03-05 09:38:05 [2025-03-05 09:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612274', 'tblTempUsageDetail_20' ) start [2025-03-05 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612274', 'tblTempUsageDetail_20' ) end [2025-03-05 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612274', 'tblTempVendorCDR_20' ) start [2025-03-05 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612274', 'tblTempVendorCDR_20' ) end [2025-03-05 09:38:18] Production.INFO: ProcessCDR(1,14612274,1,1,2) [2025-03-05 09:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612274', 'tblTempUsageDetail_20' ) start [2025-03-05 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612274', 'tblTempUsageDetail_20' ) end [2025-03-05 09:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:38:23] Production.INFO: ==19880== Releasing lock... [2025-03-05 09:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:38:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-05 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:39:05 [end_date_ymd] => 2025-03-05 09:39:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 06:39:05' and `end` < '2025-03-05 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-03-05 09:39:18] Production.INFO: count ==1496 [2025-03-05 09:39:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:39:05 - End Time 2025-03-05 09:39:05 [2025-03-05 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612279', 'tblTempUsageDetail_20' ) start [2025-03-05 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612279', 'tblTempUsageDetail_20' ) end [2025-03-05 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612279', 'tblTempVendorCDR_20' ) start [2025-03-05 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612279', 'tblTempVendorCDR_20' ) end [2025-03-05 09:39:18] Production.INFO: ProcessCDR(1,14612279,1,1,2) [2025-03-05 09:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612279', 'tblTempUsageDetail_20' ) start [2025-03-05 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612279', 'tblTempUsageDetail_20' ) end [2025-03-05 09:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:39:23] Production.INFO: ==19956== Releasing lock... [2025-03-05 09:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:39:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-05 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:40:06 [end_date_ymd] => 2025-03-05 09:40:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 06:40:06' and `end` < '2025-03-05 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-03-05 09:40:18] Production.INFO: count ==1506 [2025-03-05 09:40:19] Production.ERROR: pbx CDR StartTime 2025-03-05 06:40:06 - End Time 2025-03-05 09:40:06 [2025-03-05 09:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612285', 'tblTempUsageDetail_20' ) start [2025-03-05 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612285', 'tblTempUsageDetail_20' ) end [2025-03-05 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612285', 'tblTempVendorCDR_20' ) start [2025-03-05 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612285', 'tblTempVendorCDR_20' ) end [2025-03-05 09:40:19] Production.INFO: ProcessCDR(1,14612285,1,1,2) [2025-03-05 09:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612285', 'tblTempUsageDetail_20' ) start [2025-03-05 09:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612285', 'tblTempUsageDetail_20' ) end [2025-03-05 09:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:40:23] Production.INFO: ==20031== Releasing lock... [2025-03-05 09:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:40:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-05 09:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:41:06 [end_date_ymd] => 2025-03-05 09:41:06 [RateCDR] => 1 ) [2025-03-05 09:41: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-03-05 06:41:06' and `end` < '2025-03-05 09:41: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-03-05 09:41:18] Production.INFO: count ==1575 [2025-03-05 09:41:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:41:06 - End Time 2025-03-05 09:41:06 [2025-03-05 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612290', 'tblTempUsageDetail_20' ) start [2025-03-05 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612290', 'tblTempUsageDetail_20' ) end [2025-03-05 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612290', 'tblTempVendorCDR_20' ) start [2025-03-05 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612290', 'tblTempVendorCDR_20' ) end [2025-03-05 09:41:19] Production.INFO: ProcessCDR(1,14612290,1,1,2) [2025-03-05 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612290', 'tblTempUsageDetail_20' ) start [2025-03-05 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612290', 'tblTempUsageDetail_20' ) end [2025-03-05 09:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:41:24] Production.INFO: ==20110== Releasing lock... [2025-03-05 09:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:41:24] Production.INFO: 40 MB #Memory Used# [2025-03-05 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:42:05 [end_date_ymd] => 2025-03-05 09:42:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 06:42:05' and `end` < '2025-03-05 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-03-05 09:42:17] Production.INFO: count ==1581 [2025-03-05 09:42:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:42:05 - End Time 2025-03-05 09:42:05 [2025-03-05 09:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612295', 'tblTempUsageDetail_20' ) start [2025-03-05 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612295', 'tblTempUsageDetail_20' ) end [2025-03-05 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612295', 'tblTempVendorCDR_20' ) start [2025-03-05 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612295', 'tblTempVendorCDR_20' ) end [2025-03-05 09:42:18] Production.INFO: ProcessCDR(1,14612295,1,1,2) [2025-03-05 09:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612295', 'tblTempUsageDetail_20' ) start [2025-03-05 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612295', 'tblTempUsageDetail_20' ) end [2025-03-05 09:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:42:23] Production.INFO: ==20181== Releasing lock... [2025-03-05 09:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:42:23] Production.INFO: 40 MB #Memory Used# [2025-03-05 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:43:05 [end_date_ymd] => 2025-03-05 09:43:05 [RateCDR] => 1 ) [2025-03-05 09: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-03-05 06:43:05' and `end` < '2025-03-05 09: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-03-05 09:43:18] Production.INFO: count ==1601 [2025-03-05 09:43:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:43:05 - End Time 2025-03-05 09:43:05 [2025-03-05 09:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612300', 'tblTempUsageDetail_20' ) start [2025-03-05 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612300', 'tblTempUsageDetail_20' ) end [2025-03-05 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612300', 'tblTempVendorCDR_20' ) start [2025-03-05 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612300', 'tblTempVendorCDR_20' ) end [2025-03-05 09:43:18] Production.INFO: ProcessCDR(1,14612300,1,1,2) [2025-03-05 09:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612300', 'tblTempUsageDetail_20' ) start [2025-03-05 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612300', 'tblTempUsageDetail_20' ) end [2025-03-05 09:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:43:23] Production.INFO: ==20256== Releasing lock... [2025-03-05 09:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:43:23] Production.INFO: 40 MB #Memory Used# [2025-03-05 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:44:05 [end_date_ymd] => 2025-03-05 09:44:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 06:44:05' and `end` < '2025-03-05 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-03-05 09:44:17] Production.INFO: count ==1627 [2025-03-05 09:44:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:44:05 - End Time 2025-03-05 09:44:05 [2025-03-05 09:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612305', 'tblTempUsageDetail_20' ) start [2025-03-05 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612305', 'tblTempUsageDetail_20' ) end [2025-03-05 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612305', 'tblTempVendorCDR_20' ) start [2025-03-05 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612305', 'tblTempVendorCDR_20' ) end [2025-03-05 09:44:18] Production.INFO: ProcessCDR(1,14612305,1,1,2) [2025-03-05 09:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612305', 'tblTempUsageDetail_20' ) start [2025-03-05 09:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612305', 'tblTempUsageDetail_20' ) end [2025-03-05 09:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:44:23] Production.INFO: ==20326== Releasing lock... [2025-03-05 09:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:44:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-05 09:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:45:06 [end_date_ymd] => 2025-03-05 09:45:06 [RateCDR] => 1 ) [2025-03-05 09: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-03-05 06:45:06' and `end` < '2025-03-05 09: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-03-05 09:45:18] Production.INFO: count ==1645 [2025-03-05 09:45:19] Production.ERROR: pbx CDR StartTime 2025-03-05 06:45:06 - End Time 2025-03-05 09:45:06 [2025-03-05 09:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612310', 'tblTempUsageDetail_20' ) start [2025-03-05 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612310', 'tblTempUsageDetail_20' ) end [2025-03-05 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612310', 'tblTempVendorCDR_20' ) start [2025-03-05 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612310', 'tblTempVendorCDR_20' ) end [2025-03-05 09:45:19] Production.INFO: ProcessCDR(1,14612310,1,1,2) [2025-03-05 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612310', 'tblTempUsageDetail_20' ) start [2025-03-05 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612310', 'tblTempUsageDetail_20' ) end [2025-03-05 09:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:45:24] Production.INFO: ==20403== Releasing lock... [2025-03-05 09:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:45:24] Production.INFO: 40.75 MB #Memory Used# [2025-03-05 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:46:05 [end_date_ymd] => 2025-03-05 09:46:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 06:46:05' and `end` < '2025-03-05 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-03-05 09:46:17] Production.INFO: count ==1668 [2025-03-05 09:46:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:46:05 - End Time 2025-03-05 09:46:05 [2025-03-05 09:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612315', 'tblTempUsageDetail_20' ) start [2025-03-05 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612315', 'tblTempUsageDetail_20' ) end [2025-03-05 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612315', 'tblTempVendorCDR_20' ) start [2025-03-05 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612315', 'tblTempVendorCDR_20' ) end [2025-03-05 09:46:18] Production.INFO: ProcessCDR(1,14612315,1,1,2) [2025-03-05 09:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612315', 'tblTempUsageDetail_20' ) start [2025-03-05 09:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612315', 'tblTempUsageDetail_20' ) end [2025-03-05 09:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:46:23] Production.INFO: ==20474== Releasing lock... [2025-03-05 09:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:46:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-05 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:47:05 [end_date_ymd] => 2025-03-05 09:47:05 [RateCDR] => 1 ) [2025-03-05 09: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-03-05 06:47:05' and `end` < '2025-03-05 09: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-03-05 09:47:18] Production.INFO: count ==1677 [2025-03-05 09:47:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:47:05 - End Time 2025-03-05 09:47:05 [2025-03-05 09:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612320', 'tblTempUsageDetail_20' ) start [2025-03-05 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612320', 'tblTempUsageDetail_20' ) end [2025-03-05 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612320', 'tblTempVendorCDR_20' ) start [2025-03-05 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612320', 'tblTempVendorCDR_20' ) end [2025-03-05 09:47:18] Production.INFO: ProcessCDR(1,14612320,1,1,2) [2025-03-05 09:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612320', 'tblTempUsageDetail_20' ) start [2025-03-05 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612320', 'tblTempUsageDetail_20' ) end [2025-03-05 09:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:47:23] Production.INFO: ==20549== Releasing lock... [2025-03-05 09:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:47:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-05 09:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:48:04 [end_date_ymd] => 2025-03-05 09:48:04 [RateCDR] => 1 ) [2025-03-05 09: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-03-05 06:48:04' and `end` < '2025-03-05 09: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-03-05 09:48:17] Production.INFO: count ==1700 [2025-03-05 09:48:17] Production.ERROR: pbx CDR StartTime 2025-03-05 06:48:04 - End Time 2025-03-05 09:48:04 [2025-03-05 09:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612325', 'tblTempUsageDetail_20' ) start [2025-03-05 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612325', 'tblTempUsageDetail_20' ) end [2025-03-05 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612325', 'tblTempVendorCDR_20' ) start [2025-03-05 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612325', 'tblTempVendorCDR_20' ) end [2025-03-05 09:48:17] Production.INFO: ProcessCDR(1,14612325,1,1,2) [2025-03-05 09:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612325', 'tblTempUsageDetail_20' ) start [2025-03-05 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612325', 'tblTempUsageDetail_20' ) end [2025-03-05 09:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:48:22] Production.INFO: ==20621== Releasing lock... [2025-03-05 09:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:48:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-05 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:49:05 [end_date_ymd] => 2025-03-05 09:49:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 06:49:05' and `end` < '2025-03-05 09: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-03-05 09:49:17] Production.INFO: count ==1718 [2025-03-05 09:49:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:49:05 - End Time 2025-03-05 09:49:05 [2025-03-05 09:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612330', 'tblTempUsageDetail_20' ) start [2025-03-05 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612330', 'tblTempUsageDetail_20' ) end [2025-03-05 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612330', 'tblTempVendorCDR_20' ) start [2025-03-05 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612330', 'tblTempVendorCDR_20' ) end [2025-03-05 09:49:18] Production.INFO: ProcessCDR(1,14612330,1,1,2) [2025-03-05 09:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612330', 'tblTempUsageDetail_20' ) start [2025-03-05 09:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612330', 'tblTempUsageDetail_20' ) end [2025-03-05 09:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:49:22] Production.INFO: ==20696== Releasing lock... [2025-03-05 09:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:49:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-05 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:50:06 [end_date_ymd] => 2025-03-05 09:50:06 [RateCDR] => 1 ) [2025-03-05 09: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-03-05 06:50:06' and `end` < '2025-03-05 09: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-03-05 09:50:18] Production.INFO: count ==1732 [2025-03-05 09:50:19] Production.ERROR: pbx CDR StartTime 2025-03-05 06:50:06 - End Time 2025-03-05 09:50:06 [2025-03-05 09:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612336', 'tblTempUsageDetail_20' ) start [2025-03-05 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612336', 'tblTempUsageDetail_20' ) end [2025-03-05 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612336', 'tblTempVendorCDR_20' ) start [2025-03-05 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612336', 'tblTempVendorCDR_20' ) end [2025-03-05 09:50:19] Production.INFO: ProcessCDR(1,14612336,1,1,2) [2025-03-05 09:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612336', 'tblTempUsageDetail_20' ) start [2025-03-05 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612336', 'tblTempUsageDetail_20' ) end [2025-03-05 09:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:50:25] Production.INFO: ==20811== Releasing lock... [2025-03-05 09:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:50:25] Production.INFO: 41 MB #Memory Used# [2025-03-05 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:51:05 [end_date_ymd] => 2025-03-05 09:51:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 06:51:05' and `end` < '2025-03-05 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-03-05 09:51:17] Production.INFO: count ==1815 [2025-03-05 09:51:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:51:05 - End Time 2025-03-05 09:51:05 [2025-03-05 09:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612341', 'tblTempUsageDetail_20' ) start [2025-03-05 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612341', 'tblTempUsageDetail_20' ) end [2025-03-05 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612341', 'tblTempVendorCDR_20' ) start [2025-03-05 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612341', 'tblTempVendorCDR_20' ) end [2025-03-05 09:51:18] Production.INFO: ProcessCDR(1,14612341,1,1,2) [2025-03-05 09:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612341', 'tblTempUsageDetail_20' ) start [2025-03-05 09:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612341', 'tblTempUsageDetail_20' ) end [2025-03-05 09:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:51:22] Production.INFO: ==20894== Releasing lock... [2025-03-05 09:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:51:22] Production.INFO: 42 MB #Memory Used# [2025-03-05 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:52:05 [end_date_ymd] => 2025-03-05 09:52:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 06:52:05' and `end` < '2025-03-05 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-03-05 09:52:18] Production.INFO: count ==1834 [2025-03-05 09:52:19] Production.ERROR: pbx CDR StartTime 2025-03-05 06:52:05 - End Time 2025-03-05 09:52:05 [2025-03-05 09:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612346', 'tblTempUsageDetail_20' ) start [2025-03-05 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612346', 'tblTempUsageDetail_20' ) end [2025-03-05 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612346', 'tblTempVendorCDR_20' ) start [2025-03-05 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612346', 'tblTempVendorCDR_20' ) end [2025-03-05 09:52:19] Production.INFO: ProcessCDR(1,14612346,1,1,2) [2025-03-05 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612346', 'tblTempUsageDetail_20' ) start [2025-03-05 09:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612346', 'tblTempUsageDetail_20' ) end [2025-03-05 09:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:52:22] Production.INFO: ==20966== Releasing lock... [2025-03-05 09:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:52:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-05 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:53:05 [end_date_ymd] => 2025-03-05 09:53:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 06:53:05' and `end` < '2025-03-05 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-03-05 09:53:17] Production.INFO: count ==1842 [2025-03-05 09:53:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:53:05 - End Time 2025-03-05 09:53:05 [2025-03-05 09:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612351', 'tblTempUsageDetail_20' ) start [2025-03-05 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612351', 'tblTempUsageDetail_20' ) end [2025-03-05 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612351', 'tblTempVendorCDR_20' ) start [2025-03-05 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612351', 'tblTempVendorCDR_20' ) end [2025-03-05 09:53:18] Production.INFO: ProcessCDR(1,14612351,1,1,2) [2025-03-05 09:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612351', 'tblTempUsageDetail_20' ) start [2025-03-05 09:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612351', 'tblTempUsageDetail_20' ) end [2025-03-05 09:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:53:22] Production.INFO: ==21041== Releasing lock... [2025-03-05 09:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:53:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-05 09:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:54:06 [end_date_ymd] => 2025-03-05 09:54:06 [RateCDR] => 1 ) [2025-03-05 09:54: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-03-05 06:54:06' and `end` < '2025-03-05 09:54: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-03-05 09:54:18] Production.INFO: count ==1859 [2025-03-05 09:54:19] Production.ERROR: pbx CDR StartTime 2025-03-05 06:54:06 - End Time 2025-03-05 09:54:06 [2025-03-05 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612356', 'tblTempUsageDetail_20' ) start [2025-03-05 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612356', 'tblTempUsageDetail_20' ) end [2025-03-05 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612356', 'tblTempVendorCDR_20' ) start [2025-03-05 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612356', 'tblTempVendorCDR_20' ) end [2025-03-05 09:54:19] Production.INFO: ProcessCDR(1,14612356,1,1,2) [2025-03-05 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612356', 'tblTempUsageDetail_20' ) start [2025-03-05 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612356', 'tblTempUsageDetail_20' ) end [2025-03-05 09:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:54:24] Production.INFO: ==21115== Releasing lock... [2025-03-05 09:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:54:24] Production.INFO: 42 MB #Memory Used# [2025-03-05 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:55:05 [end_date_ymd] => 2025-03-05 09:55:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 06:55:05' and `end` < '2025-03-05 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-03-05 09:55:17] Production.INFO: count ==1870 [2025-03-05 09:55:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:55:05 - End Time 2025-03-05 09:55:05 [2025-03-05 09:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612361', 'tblTempUsageDetail_20' ) start [2025-03-05 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612361', 'tblTempUsageDetail_20' ) end [2025-03-05 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612361', 'tblTempVendorCDR_20' ) start [2025-03-05 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612361', 'tblTempVendorCDR_20' ) end [2025-03-05 09:55:18] Production.INFO: ProcessCDR(1,14612361,1,1,2) [2025-03-05 09:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612361', 'tblTempUsageDetail_20' ) start [2025-03-05 09:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612361', 'tblTempUsageDetail_20' ) end [2025-03-05 09:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:55:21] Production.INFO: ==21185== Releasing lock... [2025-03-05 09:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:55:21] Production.INFO: 42.25 MB #Memory Used# [2025-03-05 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:56:05 [end_date_ymd] => 2025-03-05 09:56:05 [RateCDR] => 1 ) [2025-03-05 09: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-03-05 06:56:05' and `end` < '2025-03-05 09: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-03-05 09:56:17] Production.INFO: count ==1874 [2025-03-05 09:56:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:56:05 - End Time 2025-03-05 09:56:05 [2025-03-05 09:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612366', 'tblTempUsageDetail_20' ) start [2025-03-05 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612366', 'tblTempUsageDetail_20' ) end [2025-03-05 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612366', 'tblTempVendorCDR_20' ) start [2025-03-05 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612366', 'tblTempVendorCDR_20' ) end [2025-03-05 09:56:18] Production.INFO: ProcessCDR(1,14612366,1,1,2) [2025-03-05 09:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612366', 'tblTempUsageDetail_20' ) start [2025-03-05 09:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612366', 'tblTempUsageDetail_20' ) end [2025-03-05 09:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:56:23] Production.INFO: ==21269== Releasing lock... [2025-03-05 09:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:56:23] Production.INFO: 42 MB #Memory Used# [2025-03-05 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:57:05 [end_date_ymd] => 2025-03-05 09:57:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 06:57:05' and `end` < '2025-03-05 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-03-05 09:57:18] Production.INFO: count ==1887 [2025-03-05 09:57:18] Production.ERROR: pbx CDR StartTime 2025-03-05 06:57:05 - End Time 2025-03-05 09:57:05 [2025-03-05 09:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612371', 'tblTempUsageDetail_20' ) start [2025-03-05 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612371', 'tblTempUsageDetail_20' ) end [2025-03-05 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612371', 'tblTempVendorCDR_20' ) start [2025-03-05 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612371', 'tblTempVendorCDR_20' ) end [2025-03-05 09:57:18] Production.INFO: ProcessCDR(1,14612371,1,1,2) [2025-03-05 09:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612371', 'tblTempUsageDetail_20' ) start [2025-03-05 09:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612371', 'tblTempUsageDetail_20' ) end [2025-03-05 09:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:57:23] Production.INFO: ==21353== Releasing lock... [2025-03-05 09:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:57:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-05 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:58:05 [end_date_ymd] => 2025-03-05 09:58:05 [RateCDR] => 1 ) [2025-03-05 09: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-03-05 06:58:05' and `end` < '2025-03-05 09: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-03-05 09:58:18] Production.INFO: count ==1916 [2025-03-05 09:58:19] Production.ERROR: pbx CDR StartTime 2025-03-05 06:58:05 - End Time 2025-03-05 09:58:05 [2025-03-05 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612376', 'tblTempUsageDetail_20' ) start [2025-03-05 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612376', 'tblTempUsageDetail_20' ) end [2025-03-05 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612376', 'tblTempVendorCDR_20' ) start [2025-03-05 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612376', 'tblTempVendorCDR_20' ) end [2025-03-05 09:58:19] Production.INFO: ProcessCDR(1,14612376,1,1,2) [2025-03-05 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612376', 'tblTempUsageDetail_20' ) start [2025-03-05 09:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612376', 'tblTempUsageDetail_20' ) end [2025-03-05 09:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:58:23] Production.INFO: ==21438== Releasing lock... [2025-03-05 09:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:58:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-05 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 06:59:05 [end_date_ymd] => 2025-03-05 09:59:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 06:59:05' and `end` < '2025-03-05 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-03-05 09:59:18] Production.INFO: count ==1943 [2025-03-05 09:59:19] Production.ERROR: pbx CDR StartTime 2025-03-05 06:59:05 - End Time 2025-03-05 09:59:05 [2025-03-05 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612381', 'tblTempUsageDetail_20' ) start [2025-03-05 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612381', 'tblTempUsageDetail_20' ) end [2025-03-05 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612381', 'tblTempVendorCDR_20' ) start [2025-03-05 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612381', 'tblTempVendorCDR_20' ) end [2025-03-05 09:59:19] Production.INFO: ProcessCDR(1,14612381,1,1,2) [2025-03-05 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 09:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612381', 'tblTempUsageDetail_20' ) start [2025-03-05 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612381', 'tblTempUsageDetail_20' ) end [2025-03-05 09:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 09:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 09:59:23] Production.INFO: ==21512== Releasing lock... [2025-03-05 09:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 09:59:23] Production.INFO: 43 MB #Memory Used# [2025-03-05 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:00:06 [end_date_ymd] => 2025-03-05 10:00:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 07:00:06' and `end` < '2025-03-05 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-03-05 10:00:18] Production.INFO: count ==1962 [2025-03-05 10:00:19] Production.ERROR: pbx CDR StartTime 2025-03-05 07:00:06 - End Time 2025-03-05 10:00:06 [2025-03-05 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612387', 'tblTempUsageDetail_20' ) start [2025-03-05 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612387', 'tblTempUsageDetail_20' ) end [2025-03-05 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612387', 'tblTempVendorCDR_20' ) start [2025-03-05 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612387', 'tblTempVendorCDR_20' ) end [2025-03-05 10:00:19] Production.INFO: ProcessCDR(1,14612387,1,1,2) [2025-03-05 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612387', 'tblTempUsageDetail_20' ) start [2025-03-05 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612387', 'tblTempUsageDetail_20' ) end [2025-03-05 10:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:00:24] Production.INFO: ==21595== Releasing lock... [2025-03-05 10:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:00:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-05 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:01:05 [end_date_ymd] => 2025-03-05 10:01:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 07:01:05' and `end` < '2025-03-05 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-03-05 10:01:18] Production.INFO: count ==2047 [2025-03-05 10:01:19] Production.ERROR: pbx CDR StartTime 2025-03-05 07:01:05 - End Time 2025-03-05 10:01:05 [2025-03-05 10:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612392', 'tblTempUsageDetail_20' ) start [2025-03-05 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612392', 'tblTempUsageDetail_20' ) end [2025-03-05 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612392', 'tblTempVendorCDR_20' ) start [2025-03-05 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612392', 'tblTempVendorCDR_20' ) end [2025-03-05 10:01:19] Production.INFO: ProcessCDR(1,14612392,1,1,2) [2025-03-05 10:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612392', 'tblTempUsageDetail_20' ) start [2025-03-05 10:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612392', 'tblTempUsageDetail_20' ) end [2025-03-05 10:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:01:23] Production.INFO: ==21693== Releasing lock... [2025-03-05 10:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:01:23] Production.INFO: 43.5 MB #Memory Used# [2025-03-05 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:02:05 [end_date_ymd] => 2025-03-05 10:02:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 07:02:05' and `end` < '2025-03-05 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-03-05 10:02:18] Production.INFO: count ==2057 [2025-03-05 10:02:18] Production.ERROR: pbx CDR StartTime 2025-03-05 07:02:05 - End Time 2025-03-05 10:02:05 [2025-03-05 10:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612397', 'tblTempUsageDetail_20' ) start [2025-03-05 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612397', 'tblTempUsageDetail_20' ) end [2025-03-05 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612397', 'tblTempVendorCDR_20' ) start [2025-03-05 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612397', 'tblTempVendorCDR_20' ) end [2025-03-05 10:02:18] Production.INFO: ProcessCDR(1,14612397,1,1,2) [2025-03-05 10:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612397', 'tblTempUsageDetail_20' ) start [2025-03-05 10:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612397', 'tblTempUsageDetail_20' ) end [2025-03-05 10:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:02:23] Production.INFO: ==21773== Releasing lock... [2025-03-05 10:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:02:23] Production.INFO: 43.5 MB #Memory Used# [2025-03-05 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:03:05 [end_date_ymd] => 2025-03-05 10:03:05 [RateCDR] => 1 ) [2025-03-05 10: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-03-05 07:03:05' and `end` < '2025-03-05 10: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-03-05 10:03:17] Production.INFO: count ==2067 [2025-03-05 10:03:18] Production.ERROR: pbx CDR StartTime 2025-03-05 07:03:05 - End Time 2025-03-05 10:03:05 [2025-03-05 10:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612402', 'tblTempUsageDetail_20' ) start [2025-03-05 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612402', 'tblTempUsageDetail_20' ) end [2025-03-05 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612402', 'tblTempVendorCDR_20' ) start [2025-03-05 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612402', 'tblTempVendorCDR_20' ) end [2025-03-05 10:03:18] Production.INFO: ProcessCDR(1,14612402,1,1,2) [2025-03-05 10:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612402', 'tblTempUsageDetail_20' ) start [2025-03-05 10:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612402', 'tblTempUsageDetail_20' ) end [2025-03-05 10:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:03:23] Production.INFO: ==21852== Releasing lock... [2025-03-05 10:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:03:23] Production.INFO: 43.5 MB #Memory Used# [2025-03-05 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:04:05 [end_date_ymd] => 2025-03-05 10:04:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 07:04:05' and `end` < '2025-03-05 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-03-05 10:04:18] Production.INFO: count ==2070 [2025-03-05 10:04:18] Production.ERROR: pbx CDR StartTime 2025-03-05 07:04:05 - End Time 2025-03-05 10:04:05 [2025-03-05 10:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612407', 'tblTempUsageDetail_20' ) start [2025-03-05 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612407', 'tblTempUsageDetail_20' ) end [2025-03-05 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612407', 'tblTempVendorCDR_20' ) start [2025-03-05 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612407', 'tblTempVendorCDR_20' ) end [2025-03-05 10:04:18] Production.INFO: ProcessCDR(1,14612407,1,1,2) [2025-03-05 10:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612407', 'tblTempUsageDetail_20' ) start [2025-03-05 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612407', 'tblTempUsageDetail_20' ) end [2025-03-05 10:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:04:23] Production.INFO: ==21928== Releasing lock... [2025-03-05 10:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:04:23] Production.INFO: 43.5 MB #Memory Used# [2025-03-05 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:05:05 [end_date_ymd] => 2025-03-05 10:05:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 07:05:05' and `end` < '2025-03-05 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-03-05 10:05:17] Production.INFO: count ==2083 [2025-03-05 10:05:18] Production.ERROR: pbx CDR StartTime 2025-03-05 07:05:05 - End Time 2025-03-05 10:05:05 [2025-03-05 10:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612412', 'tblTempUsageDetail_20' ) start [2025-03-05 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612412', 'tblTempUsageDetail_20' ) end [2025-03-05 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612412', 'tblTempVendorCDR_20' ) start [2025-03-05 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612412', 'tblTempVendorCDR_20' ) end [2025-03-05 10:05:18] Production.INFO: ProcessCDR(1,14612412,1,1,2) [2025-03-05 10:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612412', 'tblTempUsageDetail_20' ) start [2025-03-05 10:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612412', 'tblTempUsageDetail_20' ) end [2025-03-05 10:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:05:23] Production.INFO: ==22012== Releasing lock... [2025-03-05 10:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:05:23] Production.INFO: 44 MB #Memory Used# [2025-03-05 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:06:05 [end_date_ymd] => 2025-03-05 10:06:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 07:06:05' and `end` < '2025-03-05 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-03-05 10:06:18] Production.INFO: count ==2091 [2025-03-05 10:06:18] Production.ERROR: pbx CDR StartTime 2025-03-05 07:06:05 - End Time 2025-03-05 10:06:05 [2025-03-05 10:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612417', 'tblTempUsageDetail_20' ) start [2025-03-05 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612417', 'tblTempUsageDetail_20' ) end [2025-03-05 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612417', 'tblTempVendorCDR_20' ) start [2025-03-05 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612417', 'tblTempVendorCDR_20' ) end [2025-03-05 10:06:18] Production.INFO: ProcessCDR(1,14612417,1,1,2) [2025-03-05 10:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612417', 'tblTempUsageDetail_20' ) start [2025-03-05 10:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612417', 'tblTempUsageDetail_20' ) end [2025-03-05 10:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:06:23] Production.INFO: ==22129== Releasing lock... [2025-03-05 10:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:06:23] Production.INFO: 44 MB #Memory Used# [2025-03-05 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:07:05 [end_date_ymd] => 2025-03-05 10:07:05 [RateCDR] => 1 ) [2025-03-05 10: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-03-05 07:07:05' and `end` < '2025-03-05 10: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-03-05 10:07:18] Production.INFO: count ==2097 [2025-03-05 10:07:18] Production.ERROR: pbx CDR StartTime 2025-03-05 07:07:05 - End Time 2025-03-05 10:07:05 [2025-03-05 10:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612422', 'tblTempUsageDetail_20' ) start [2025-03-05 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612422', 'tblTempUsageDetail_20' ) end [2025-03-05 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612422', 'tblTempVendorCDR_20' ) start [2025-03-05 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612422', 'tblTempVendorCDR_20' ) end [2025-03-05 10:07:19] Production.INFO: ProcessCDR(1,14612422,1,1,2) [2025-03-05 10:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612422', 'tblTempUsageDetail_20' ) start [2025-03-05 10:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612422', 'tblTempUsageDetail_20' ) end [2025-03-05 10:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:07:23] Production.INFO: ==22210== Releasing lock... [2025-03-05 10:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:07:23] Production.INFO: 43.75 MB #Memory Used# [2025-03-05 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:08:04 [end_date_ymd] => 2025-03-05 10:08:04 [RateCDR] => 1 ) [2025-03-05 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-03-05 07:08:04' and `end` < '2025-03-05 10: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-03-05 10:08:17] Production.INFO: count ==2108 [2025-03-05 10:08:18] Production.ERROR: pbx CDR StartTime 2025-03-05 07:08:04 - End Time 2025-03-05 10:08:04 [2025-03-05 10:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612427', 'tblTempUsageDetail_20' ) start [2025-03-05 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612427', 'tblTempUsageDetail_20' ) end [2025-03-05 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612427', 'tblTempVendorCDR_20' ) start [2025-03-05 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612427', 'tblTempVendorCDR_20' ) end [2025-03-05 10:08:18] Production.INFO: ProcessCDR(1,14612427,1,1,2) [2025-03-05 10:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612427', 'tblTempUsageDetail_20' ) start [2025-03-05 10:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612427', 'tblTempUsageDetail_20' ) end [2025-03-05 10:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:08:23] Production.INFO: ==22288== Releasing lock... [2025-03-05 10:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:08:23] Production.INFO: 44 MB #Memory Used# [2025-03-05 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:09:05 [end_date_ymd] => 2025-03-05 10:09:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 07:09:05' and `end` < '2025-03-05 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-03-05 10:09:18] Production.INFO: count ==2132 [2025-03-05 10:09:18] Production.ERROR: pbx CDR StartTime 2025-03-05 07:09:05 - End Time 2025-03-05 10:09:05 [2025-03-05 10:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612432', 'tblTempUsageDetail_20' ) start [2025-03-05 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612432', 'tblTempUsageDetail_20' ) end [2025-03-05 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612432', 'tblTempVendorCDR_20' ) start [2025-03-05 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612432', 'tblTempVendorCDR_20' ) end [2025-03-05 10:09:18] Production.INFO: ProcessCDR(1,14612432,1,1,2) [2025-03-05 10:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612432', 'tblTempUsageDetail_20' ) start [2025-03-05 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612432', 'tblTempUsageDetail_20' ) end [2025-03-05 10:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:09:24] Production.INFO: ==22370== Releasing lock... [2025-03-05 10:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:09:24] Production.INFO: 44 MB #Memory Used# [2025-03-05 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:10:06 [end_date_ymd] => 2025-03-05 10:10:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 07:10:06' and `end` < '2025-03-05 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-03-05 10:10:19] Production.INFO: count ==2151 [2025-03-05 10:10:19] Production.ERROR: pbx CDR StartTime 2025-03-05 07:10:06 - End Time 2025-03-05 10:10:06 [2025-03-05 10:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612438', 'tblTempUsageDetail_20' ) start [2025-03-05 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612438', 'tblTempUsageDetail_20' ) end [2025-03-05 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612438', 'tblTempVendorCDR_20' ) start [2025-03-05 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612438', 'tblTempVendorCDR_20' ) end [2025-03-05 10:10:20] Production.INFO: ProcessCDR(1,14612438,1,1,2) [2025-03-05 10:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612438', 'tblTempUsageDetail_20' ) start [2025-03-05 10:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612438', 'tblTempUsageDetail_20' ) end [2025-03-05 10:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:10:24] Production.INFO: ==22447== Releasing lock... [2025-03-05 10:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:10:24] Production.INFO: 44.25 MB #Memory Used# [2025-03-05 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:11:05 [end_date_ymd] => 2025-03-05 10:11:05 [RateCDR] => 1 ) [2025-03-05 10: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-03-05 07:11:05' and `end` < '2025-03-05 10: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-03-05 10:11:17] Production.INFO: count ==2262 [2025-03-05 10:11:18] Production.ERROR: pbx CDR StartTime 2025-03-05 07:11:05 - End Time 2025-03-05 10:11:05 [2025-03-05 10:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612443', 'tblTempUsageDetail_20' ) start [2025-03-05 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612443', 'tblTempUsageDetail_20' ) end [2025-03-05 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612443', 'tblTempVendorCDR_20' ) start [2025-03-05 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612443', 'tblTempVendorCDR_20' ) end [2025-03-05 10:11:18] Production.INFO: ProcessCDR(1,14612443,1,1,2) [2025-03-05 10:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612443', 'tblTempUsageDetail_20' ) start [2025-03-05 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612443', 'tblTempUsageDetail_20' ) end [2025-03-05 10:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:11:23] Production.INFO: ==22535== Releasing lock... [2025-03-05 10:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:11:23] Production.INFO: 45 MB #Memory Used# [2025-03-05 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:12:05 [end_date_ymd] => 2025-03-05 10:12:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 07:12:05' and `end` < '2025-03-05 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-03-05 10:12:18] Production.INFO: count ==2266 [2025-03-05 10:12:19] Production.ERROR: pbx CDR StartTime 2025-03-05 07:12:05 - End Time 2025-03-05 10:12:05 [2025-03-05 10:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612448', 'tblTempUsageDetail_20' ) start [2025-03-05 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612448', 'tblTempUsageDetail_20' ) end [2025-03-05 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612448', 'tblTempVendorCDR_20' ) start [2025-03-05 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612448', 'tblTempVendorCDR_20' ) end [2025-03-05 10:12:19] Production.INFO: ProcessCDR(1,14612448,1,1,2) [2025-03-05 10:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612448', 'tblTempUsageDetail_20' ) start [2025-03-05 10:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612448', 'tblTempUsageDetail_20' ) end [2025-03-05 10:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:12:23] Production.INFO: ==22612== Releasing lock... [2025-03-05 10:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:12:23] Production.INFO: 45 MB #Memory Used# [2025-03-05 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:13:05 [end_date_ymd] => 2025-03-05 10:13:05 [RateCDR] => 1 ) [2025-03-05 10: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-03-05 07:13:05' and `end` < '2025-03-05 10: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-03-05 10:13:18] Production.INFO: count ==2285 [2025-03-05 10:13:18] Production.ERROR: pbx CDR StartTime 2025-03-05 07:13:05 - End Time 2025-03-05 10:13:05 [2025-03-05 10:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612453', 'tblTempUsageDetail_20' ) start [2025-03-05 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612453', 'tblTempUsageDetail_20' ) end [2025-03-05 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612453', 'tblTempVendorCDR_20' ) start [2025-03-05 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612453', 'tblTempVendorCDR_20' ) end [2025-03-05 10:13:18] Production.INFO: ProcessCDR(1,14612453,1,1,2) [2025-03-05 10:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612453', 'tblTempUsageDetail_20' ) start [2025-03-05 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612453', 'tblTempUsageDetail_20' ) end [2025-03-05 10:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:13:23] Production.INFO: ==22694== Releasing lock... [2025-03-05 10:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:13:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-05 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:14:05 [end_date_ymd] => 2025-03-05 10:14:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 07:14:05' and `end` < '2025-03-05 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-03-05 10:14:18] Production.INFO: count ==2301 [2025-03-05 10:14:19] Production.ERROR: pbx CDR StartTime 2025-03-05 07:14:05 - End Time 2025-03-05 10:14:05 [2025-03-05 10:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612458', 'tblTempUsageDetail_20' ) start [2025-03-05 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612458', 'tblTempUsageDetail_20' ) end [2025-03-05 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612458', 'tblTempVendorCDR_20' ) start [2025-03-05 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612458', 'tblTempVendorCDR_20' ) end [2025-03-05 10:14:19] Production.INFO: ProcessCDR(1,14612458,1,1,2) [2025-03-05 10:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612458', 'tblTempUsageDetail_20' ) start [2025-03-05 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612458', 'tblTempUsageDetail_20' ) end [2025-03-05 10:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:14:24] Production.INFO: ==22774== Releasing lock... [2025-03-05 10:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:14:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-05 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:15:05 [end_date_ymd] => 2025-03-05 10:15:05 [RateCDR] => 1 ) [2025-03-05 10: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-03-05 07:15:05' and `end` < '2025-03-05 10: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-03-05 10:15:17] Production.INFO: count ==2308 [2025-03-05 10:15:18] Production.ERROR: pbx CDR StartTime 2025-03-05 07:15:05 - End Time 2025-03-05 10:15:05 [2025-03-05 10:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612463', 'tblTempUsageDetail_20' ) start [2025-03-05 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612463', 'tblTempUsageDetail_20' ) end [2025-03-05 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612463', 'tblTempVendorCDR_20' ) start [2025-03-05 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612463', 'tblTempVendorCDR_20' ) end [2025-03-05 10:15:18] Production.INFO: ProcessCDR(1,14612463,1,1,2) [2025-03-05 10:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612463', 'tblTempUsageDetail_20' ) start [2025-03-05 10:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612463', 'tblTempUsageDetail_20' ) end [2025-03-05 10:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:15:23] Production.INFO: ==22854== Releasing lock... [2025-03-05 10:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:15:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-05 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:16:05 [end_date_ymd] => 2025-03-05 10:16:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 07:16:05' and `end` < '2025-03-05 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-03-05 10:16:17] Production.INFO: count ==2318 [2025-03-05 10:16:18] Production.ERROR: pbx CDR StartTime 2025-03-05 07:16:05 - End Time 2025-03-05 10:16:05 [2025-03-05 10:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612468', 'tblTempUsageDetail_20' ) start [2025-03-05 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612468', 'tblTempUsageDetail_20' ) end [2025-03-05 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612468', 'tblTempVendorCDR_20' ) start [2025-03-05 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612468', 'tblTempVendorCDR_20' ) end [2025-03-05 10:16:18] Production.INFO: ProcessCDR(1,14612468,1,1,2) [2025-03-05 10:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612468', 'tblTempUsageDetail_20' ) start [2025-03-05 10:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612468', 'tblTempUsageDetail_20' ) end [2025-03-05 10:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:16:23] Production.INFO: ==22940== Releasing lock... [2025-03-05 10:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:16:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-05 10:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:17:06 [end_date_ymd] => 2025-03-05 10:17:06 [RateCDR] => 1 ) [2025-03-05 10: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-03-05 07:17:06' and `end` < '2025-03-05 10: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-03-05 10:17:18] Production.INFO: count ==2319 [2025-03-05 10:17:19] Production.ERROR: pbx CDR StartTime 2025-03-05 07:17:06 - End Time 2025-03-05 10:17:06 [2025-03-05 10:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612473', 'tblTempUsageDetail_20' ) start [2025-03-05 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612473', 'tblTempUsageDetail_20' ) end [2025-03-05 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612473', 'tblTempVendorCDR_20' ) start [2025-03-05 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612473', 'tblTempVendorCDR_20' ) end [2025-03-05 10:17:19] Production.INFO: ProcessCDR(1,14612473,1,1,2) [2025-03-05 10:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612473', 'tblTempUsageDetail_20' ) start [2025-03-05 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612473', 'tblTempUsageDetail_20' ) end [2025-03-05 10:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:17:24] Production.INFO: ==23031== Releasing lock... [2025-03-05 10:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:17:24] Production.INFO: 45.5 MB #Memory Used# [2025-03-05 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:18:05 [end_date_ymd] => 2025-03-05 10:18:05 [RateCDR] => 1 ) [2025-03-05 10: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-03-05 07:18:05' and `end` < '2025-03-05 10: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-03-05 10:18:18] Production.INFO: count ==2321 [2025-03-05 10:18:18] Production.ERROR: pbx CDR StartTime 2025-03-05 07:18:05 - End Time 2025-03-05 10:18:05 [2025-03-05 10:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612478', 'tblTempUsageDetail_20' ) start [2025-03-05 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612478', 'tblTempUsageDetail_20' ) end [2025-03-05 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612478', 'tblTempVendorCDR_20' ) start [2025-03-05 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612478', 'tblTempVendorCDR_20' ) end [2025-03-05 10:18:19] Production.INFO: ProcessCDR(1,14612478,1,1,2) [2025-03-05 10:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612478', 'tblTempUsageDetail_20' ) start [2025-03-05 10:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612478', 'tblTempUsageDetail_20' ) end [2025-03-05 10:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:18:23] Production.INFO: ==23112== Releasing lock... [2025-03-05 10:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:18:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-05 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:19:05 [end_date_ymd] => 2025-03-05 10:19:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 07:19:05' and `end` < '2025-03-05 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-03-05 10:19:18] Production.INFO: count ==2357 [2025-03-05 10:19:19] Production.ERROR: pbx CDR StartTime 2025-03-05 07:19:05 - End Time 2025-03-05 10:19:05 [2025-03-05 10:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612483', 'tblTempUsageDetail_20' ) start [2025-03-05 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612483', 'tblTempUsageDetail_20' ) end [2025-03-05 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612483', 'tblTempVendorCDR_20' ) start [2025-03-05 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612483', 'tblTempVendorCDR_20' ) end [2025-03-05 10:19:19] Production.INFO: ProcessCDR(1,14612483,1,1,2) [2025-03-05 10:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612483', 'tblTempUsageDetail_20' ) start [2025-03-05 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612483', 'tblTempUsageDetail_20' ) end [2025-03-05 10:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:19:24] Production.INFO: ==23202== Releasing lock... [2025-03-05 10:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:19:24] Production.INFO: 45.75 MB #Memory Used# [2025-03-05 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:20:06 [end_date_ymd] => 2025-03-05 10:20:06 [RateCDR] => 1 ) [2025-03-05 10: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-03-05 07:20:06' and `end` < '2025-03-05 10: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-03-05 10:20:18] Production.INFO: count ==2383 [2025-03-05 10:20:19] Production.ERROR: pbx CDR StartTime 2025-03-05 07:20:06 - End Time 2025-03-05 10:20:06 [2025-03-05 10:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612489', 'tblTempUsageDetail_20' ) start [2025-03-05 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612489', 'tblTempUsageDetail_20' ) end [2025-03-05 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612489', 'tblTempVendorCDR_20' ) start [2025-03-05 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612489', 'tblTempVendorCDR_20' ) end [2025-03-05 10:20:19] Production.INFO: ProcessCDR(1,14612489,1,1,2) [2025-03-05 10:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612489', 'tblTempUsageDetail_20' ) start [2025-03-05 10:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612489', 'tblTempUsageDetail_20' ) end [2025-03-05 10:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:20:24] Production.INFO: ==23284== Releasing lock... [2025-03-05 10:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:20:24] Production.INFO: 46 MB #Memory Used# [2025-03-05 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:21:05 [end_date_ymd] => 2025-03-05 10:21:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 07:21:05' and `end` < '2025-03-05 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-03-05 10:21:18] Production.INFO: count ==2443 [2025-03-05 10:21:19] Production.ERROR: pbx CDR StartTime 2025-03-05 07:21:05 - End Time 2025-03-05 10:21:05 [2025-03-05 10:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612494', 'tblTempUsageDetail_20' ) start [2025-03-05 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612494', 'tblTempUsageDetail_20' ) end [2025-03-05 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612494', 'tblTempVendorCDR_20' ) start [2025-03-05 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612494', 'tblTempVendorCDR_20' ) end [2025-03-05 10:21:19] Production.INFO: ProcessCDR(1,14612494,1,1,2) [2025-03-05 10:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612494', 'tblTempUsageDetail_20' ) start [2025-03-05 10:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612494', 'tblTempUsageDetail_20' ) end [2025-03-05 10:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:21:22] Production.INFO: ==23401== Releasing lock... [2025-03-05 10:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:21:22] Production.INFO: 46.5 MB #Memory Used# [2025-03-05 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:22:05 [end_date_ymd] => 2025-03-05 10:22:05 [RateCDR] => 1 ) [2025-03-05 10: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-03-05 07:22:05' and `end` < '2025-03-05 10: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-03-05 10:22:17] Production.INFO: count ==2461 [2025-03-05 10:22:18] Production.ERROR: pbx CDR StartTime 2025-03-05 07:22:05 - End Time 2025-03-05 10:22:05 [2025-03-05 10:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612499', 'tblTempUsageDetail_20' ) start [2025-03-05 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612499', 'tblTempUsageDetail_20' ) end [2025-03-05 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612499', 'tblTempVendorCDR_20' ) start [2025-03-05 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612499', 'tblTempVendorCDR_20' ) end [2025-03-05 10:22:18] Production.INFO: ProcessCDR(1,14612499,1,1,2) [2025-03-05 10:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612499', 'tblTempUsageDetail_20' ) start [2025-03-05 10:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612499', 'tblTempUsageDetail_20' ) end [2025-03-05 10:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:22:23] Production.INFO: ==23483== Releasing lock... [2025-03-05 10:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:22:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-05 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:23:05 [end_date_ymd] => 2025-03-05 10:23:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 07:23:05' and `end` < '2025-03-05 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-03-05 10:23:18] Production.INFO: count ==2476 [2025-03-05 10:23:19] Production.ERROR: pbx CDR StartTime 2025-03-05 07:23:05 - End Time 2025-03-05 10:23:05 [2025-03-05 10:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612504', 'tblTempUsageDetail_20' ) start [2025-03-05 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612504', 'tblTempUsageDetail_20' ) end [2025-03-05 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612504', 'tblTempVendorCDR_20' ) start [2025-03-05 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612504', 'tblTempVendorCDR_20' ) end [2025-03-05 10:23:19] Production.INFO: ProcessCDR(1,14612504,1,1,2) [2025-03-05 10:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612504', 'tblTempUsageDetail_20' ) start [2025-03-05 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612504', 'tblTempUsageDetail_20' ) end [2025-03-05 10:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:23:24] Production.INFO: ==23562== Releasing lock... [2025-03-05 10:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:23:24] Production.INFO: 46.75 MB #Memory Used# [2025-03-05 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:24:05 [end_date_ymd] => 2025-03-05 10:24:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 07:24:05' and `end` < '2025-03-05 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-03-05 10:24:17] Production.INFO: count ==2495 [2025-03-05 10:24:18] Production.ERROR: pbx CDR StartTime 2025-03-05 07:24:05 - End Time 2025-03-05 10:24:05 [2025-03-05 10:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612509', 'tblTempUsageDetail_20' ) start [2025-03-05 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612509', 'tblTempUsageDetail_20' ) end [2025-03-05 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612509', 'tblTempVendorCDR_20' ) start [2025-03-05 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612509', 'tblTempVendorCDR_20' ) end [2025-03-05 10:24:18] Production.INFO: ProcessCDR(1,14612509,1,1,2) [2025-03-05 10:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612509', 'tblTempUsageDetail_20' ) start [2025-03-05 10:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612509', 'tblTempUsageDetail_20' ) end [2025-03-05 10:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:24:23] Production.INFO: ==23639== Releasing lock... [2025-03-05 10:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:24:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-05 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:25:05 [end_date_ymd] => 2025-03-05 10:25:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 07:25:05' and `end` < '2025-03-05 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-03-05 10:25:18] Production.INFO: count ==2514 [2025-03-05 10:25:18] Production.ERROR: pbx CDR StartTime 2025-03-05 07:25:05 - End Time 2025-03-05 10:25:05 [2025-03-05 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612514', 'tblTempUsageDetail_20' ) start [2025-03-05 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612514', 'tblTempUsageDetail_20' ) end [2025-03-05 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612514', 'tblTempVendorCDR_20' ) start [2025-03-05 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612514', 'tblTempVendorCDR_20' ) end [2025-03-05 10:25:19] Production.INFO: ProcessCDR(1,14612514,1,1,2) [2025-03-05 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612514', 'tblTempUsageDetail_20' ) start [2025-03-05 10:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612514', 'tblTempUsageDetail_20' ) end [2025-03-05 10:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:25:23] Production.INFO: ==23719== Releasing lock... [2025-03-05 10:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:25:23] Production.INFO: 47 MB #Memory Used# [2025-03-05 10:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:26:06 [end_date_ymd] => 2025-03-05 10:26:06 [RateCDR] => 1 ) [2025-03-05 10: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-03-05 07:26:06' and `end` < '2025-03-05 10: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-03-05 10:26:18] Production.INFO: count ==2526 [2025-03-05 10:26:19] Production.ERROR: pbx CDR StartTime 2025-03-05 07:26:06 - End Time 2025-03-05 10:26:06 [2025-03-05 10:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612519', 'tblTempUsageDetail_20' ) start [2025-03-05 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612519', 'tblTempUsageDetail_20' ) end [2025-03-05 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612519', 'tblTempVendorCDR_20' ) start [2025-03-05 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612519', 'tblTempVendorCDR_20' ) end [2025-03-05 10:26:19] Production.INFO: ProcessCDR(1,14612519,1,1,2) [2025-03-05 10:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612519', 'tblTempUsageDetail_20' ) start [2025-03-05 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612519', 'tblTempUsageDetail_20' ) end [2025-03-05 10:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:26:24] Production.INFO: ==23799== Releasing lock... [2025-03-05 10:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:26:24] Production.INFO: 47 MB #Memory Used# [2025-03-05 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:27:05 [end_date_ymd] => 2025-03-05 10:27:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 07:27:05' and `end` < '2025-03-05 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-03-05 10:27:18] Production.INFO: count ==2542 [2025-03-05 10:27:18] Production.ERROR: pbx CDR StartTime 2025-03-05 07:27:05 - End Time 2025-03-05 10:27:05 [2025-03-05 10:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612524', 'tblTempUsageDetail_20' ) start [2025-03-05 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612524', 'tblTempUsageDetail_20' ) end [2025-03-05 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612524', 'tblTempVendorCDR_20' ) start [2025-03-05 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612524', 'tblTempVendorCDR_20' ) end [2025-03-05 10:27:19] Production.INFO: ProcessCDR(1,14612524,1,1,2) [2025-03-05 10:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612524', 'tblTempUsageDetail_20' ) start [2025-03-05 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612524', 'tblTempUsageDetail_20' ) end [2025-03-05 10:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:27:24] Production.INFO: ==23880== Releasing lock... [2025-03-05 10:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:27:24] Production.INFO: 47.25 MB #Memory Used# [2025-03-05 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:28:05 [end_date_ymd] => 2025-03-05 10:28:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 07:28:05' and `end` < '2025-03-05 10: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-03-05 10:28:18] Production.INFO: count ==2567 [2025-03-05 10:28:18] Production.ERROR: pbx CDR StartTime 2025-03-05 07:28:05 - End Time 2025-03-05 10:28:05 [2025-03-05 10:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612529', 'tblTempUsageDetail_20' ) start [2025-03-05 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612529', 'tblTempUsageDetail_20' ) end [2025-03-05 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612529', 'tblTempVendorCDR_20' ) start [2025-03-05 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612529', 'tblTempVendorCDR_20' ) end [2025-03-05 10:28:19] Production.INFO: ProcessCDR(1,14612529,1,1,2) [2025-03-05 10:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612529', 'tblTempUsageDetail_20' ) start [2025-03-05 10:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612529', 'tblTempUsageDetail_20' ) end [2025-03-05 10:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:28:23] Production.INFO: ==23958== Releasing lock... [2025-03-05 10:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:28:23] Production.INFO: 47.25 MB #Memory Used# [2025-03-05 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:29:05 [end_date_ymd] => 2025-03-05 10:29:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 07:29:05' and `end` < '2025-03-05 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-03-05 10:29:18] Production.INFO: count ==2592 [2025-03-05 10:29:19] Production.ERROR: pbx CDR StartTime 2025-03-05 07:29:05 - End Time 2025-03-05 10:29:05 [2025-03-05 10:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612534', 'tblTempUsageDetail_20' ) start [2025-03-05 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612534', 'tblTempUsageDetail_20' ) end [2025-03-05 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612534', 'tblTempVendorCDR_20' ) start [2025-03-05 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612534', 'tblTempVendorCDR_20' ) end [2025-03-05 10:29:19] Production.INFO: ProcessCDR(1,14612534,1,1,2) [2025-03-05 10:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612534', 'tblTempUsageDetail_20' ) start [2025-03-05 10:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612534', 'tblTempUsageDetail_20' ) end [2025-03-05 10:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:29:22] Production.INFO: ==24041== Releasing lock... [2025-03-05 10:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:29:22] Production.INFO: 47.5 MB #Memory Used# [2025-03-05 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:30:06 [end_date_ymd] => 2025-03-05 10:30:06 [RateCDR] => 1 ) [2025-03-05 10: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-03-05 07:30:06' and `end` < '2025-03-05 10: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-03-05 10:30:18] Production.INFO: count ==2613 [2025-03-05 10:30:19] Production.ERROR: pbx CDR StartTime 2025-03-05 07:30:06 - End Time 2025-03-05 10:30:06 [2025-03-05 10:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612540', 'tblTempUsageDetail_20' ) start [2025-03-05 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612540', 'tblTempUsageDetail_20' ) end [2025-03-05 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612540', 'tblTempVendorCDR_20' ) start [2025-03-05 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612540', 'tblTempVendorCDR_20' ) end [2025-03-05 10:30:20] Production.INFO: ProcessCDR(1,14612540,1,1,2) [2025-03-05 10:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612540', 'tblTempUsageDetail_20' ) start [2025-03-05 10:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612540', 'tblTempUsageDetail_20' ) end [2025-03-05 10:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:30:23] Production.INFO: ==24129== Releasing lock... [2025-03-05 10:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:30:23] Production.INFO: 47.75 MB #Memory Used# [2025-03-05 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:31:05 [end_date_ymd] => 2025-03-05 10:31:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 07:31:05' and `end` < '2025-03-05 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-03-05 10:31:18] Production.INFO: count ==2690 [2025-03-05 10:31:19] Production.ERROR: pbx CDR StartTime 2025-03-05 07:31:05 - End Time 2025-03-05 10:31:05 [2025-03-05 10:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612545', 'tblTempUsageDetail_20' ) start [2025-03-05 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612545', 'tblTempUsageDetail_20' ) end [2025-03-05 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612545', 'tblTempVendorCDR_20' ) start [2025-03-05 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612545', 'tblTempVendorCDR_20' ) end [2025-03-05 10:31:19] Production.INFO: ProcessCDR(1,14612545,1,1,2) [2025-03-05 10:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612545', 'tblTempUsageDetail_20' ) start [2025-03-05 10:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612545', 'tblTempUsageDetail_20' ) end [2025-03-05 10:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:31:24] Production.INFO: ==24216== Releasing lock... [2025-03-05 10:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:31:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-05 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:32:05 [end_date_ymd] => 2025-03-05 10:32:05 [RateCDR] => 1 ) [2025-03-05 10: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-03-05 07:32:05' and `end` < '2025-03-05 10: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-03-05 10:32:18] Production.INFO: count ==2693 [2025-03-05 10:32:19] Production.ERROR: pbx CDR StartTime 2025-03-05 07:32:05 - End Time 2025-03-05 10:32:05 [2025-03-05 10:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612550', 'tblTempUsageDetail_20' ) start [2025-03-05 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612550', 'tblTempUsageDetail_20' ) end [2025-03-05 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612550', 'tblTempVendorCDR_20' ) start [2025-03-05 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612550', 'tblTempVendorCDR_20' ) end [2025-03-05 10:32:19] Production.INFO: ProcessCDR(1,14612550,1,1,2) [2025-03-05 10:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612550', 'tblTempUsageDetail_20' ) start [2025-03-05 10:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612550', 'tblTempUsageDetail_20' ) end [2025-03-05 10:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:32:23] Production.INFO: ==24292== Releasing lock... [2025-03-05 10:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:32:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-05 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:33:05 [end_date_ymd] => 2025-03-05 10:33:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 07:33:05' and `end` < '2025-03-05 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-03-05 10:33:18] Production.INFO: count ==2691 [2025-03-05 10:33:19] Production.ERROR: pbx CDR StartTime 2025-03-05 07:33:05 - End Time 2025-03-05 10:33:05 [2025-03-05 10:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612555', 'tblTempUsageDetail_20' ) start [2025-03-05 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612555', 'tblTempUsageDetail_20' ) end [2025-03-05 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612555', 'tblTempVendorCDR_20' ) start [2025-03-05 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612555', 'tblTempVendorCDR_20' ) end [2025-03-05 10:33:19] Production.INFO: ProcessCDR(1,14612555,1,1,2) [2025-03-05 10:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612555', 'tblTempUsageDetail_20' ) start [2025-03-05 10:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612555', 'tblTempUsageDetail_20' ) end [2025-03-05 10:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:33:24] Production.INFO: ==24372== Releasing lock... [2025-03-05 10:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:33:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-05 10:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:34:06 [end_date_ymd] => 2025-03-05 10:34:06 [RateCDR] => 1 ) [2025-03-05 10: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-03-05 07:34:06' and `end` < '2025-03-05 10: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-03-05 10:34:18] Production.INFO: count ==2700 [2025-03-05 10:34:19] Production.ERROR: pbx CDR StartTime 2025-03-05 07:34:06 - End Time 2025-03-05 10:34:06 [2025-03-05 10:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612560', 'tblTempUsageDetail_20' ) start [2025-03-05 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612560', 'tblTempUsageDetail_20' ) end [2025-03-05 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612560', 'tblTempVendorCDR_20' ) start [2025-03-05 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612560', 'tblTempVendorCDR_20' ) end [2025-03-05 10:34:20] Production.INFO: ProcessCDR(1,14612560,1,1,2) [2025-03-05 10:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612560', 'tblTempUsageDetail_20' ) start [2025-03-05 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612560', 'tblTempUsageDetail_20' ) end [2025-03-05 10:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:34:25] Production.INFO: ==24453== Releasing lock... [2025-03-05 10:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:34:25] Production.INFO: 48.25 MB #Memory Used# [2025-03-05 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:35:05 [end_date_ymd] => 2025-03-05 10:35:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 07:35:05' and `end` < '2025-03-05 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-03-05 10:35:18] Production.INFO: count ==2727 [2025-03-05 10:35:19] Production.ERROR: pbx CDR StartTime 2025-03-05 07:35:05 - End Time 2025-03-05 10:35:05 [2025-03-05 10:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612565', 'tblTempUsageDetail_20' ) start [2025-03-05 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612565', 'tblTempUsageDetail_20' ) end [2025-03-05 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612565', 'tblTempVendorCDR_20' ) start [2025-03-05 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612565', 'tblTempVendorCDR_20' ) end [2025-03-05 10:35:19] Production.INFO: ProcessCDR(1,14612565,1,1,2) [2025-03-05 10:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612565', 'tblTempUsageDetail_20' ) start [2025-03-05 10:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612565', 'tblTempUsageDetail_20' ) end [2025-03-05 10:35:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:35:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:35:24] Production.INFO: ==24536== Releasing lock... [2025-03-05 10:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:35:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-05 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:36:05 [end_date_ymd] => 2025-03-05 10:36:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 07:36:05' and `end` < '2025-03-05 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-03-05 10:36:18] Production.INFO: count ==2744 [2025-03-05 10:36:19] Production.ERROR: pbx CDR StartTime 2025-03-05 07:36:05 - End Time 2025-03-05 10:36:05 [2025-03-05 10:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612570', 'tblTempUsageDetail_20' ) start [2025-03-05 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612570', 'tblTempUsageDetail_20' ) end [2025-03-05 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612570', 'tblTempVendorCDR_20' ) start [2025-03-05 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612570', 'tblTempVendorCDR_20' ) end [2025-03-05 10:36:19] Production.INFO: ProcessCDR(1,14612570,1,1,2) [2025-03-05 10:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612570', 'tblTempUsageDetail_20' ) start [2025-03-05 10:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612570', 'tblTempUsageDetail_20' ) end [2025-03-05 10:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:36:23] Production.INFO: ==24610== Releasing lock... [2025-03-05 10:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:36:23] Production.INFO: 48.75 MB #Memory Used# [2025-03-05 10:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:37:06 [end_date_ymd] => 2025-03-05 10:37:06 [RateCDR] => 1 ) [2025-03-05 10: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-03-05 07:37:06' and `end` < '2025-03-05 10: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-03-05 10:37:19] Production.INFO: count ==2766 [2025-03-05 10:37:20] Production.ERROR: pbx CDR StartTime 2025-03-05 07:37:06 - End Time 2025-03-05 10:37:06 [2025-03-05 10:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612575', 'tblTempUsageDetail_20' ) start [2025-03-05 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612575', 'tblTempUsageDetail_20' ) end [2025-03-05 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612575', 'tblTempVendorCDR_20' ) start [2025-03-05 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612575', 'tblTempVendorCDR_20' ) end [2025-03-05 10:37:20] Production.INFO: ProcessCDR(1,14612575,1,1,2) [2025-03-05 10:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612575', 'tblTempUsageDetail_20' ) start [2025-03-05 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612575', 'tblTempUsageDetail_20' ) end [2025-03-05 10:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:37:25] Production.INFO: ==24737== Releasing lock... [2025-03-05 10:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:37:25] Production.INFO: 48.75 MB #Memory Used# [2025-03-05 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:38:05 [end_date_ymd] => 2025-03-05 10:38:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 07:38:05' and `end` < '2025-03-05 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-03-05 10:38:18] Production.INFO: count ==2772 [2025-03-05 10:38:19] Production.ERROR: pbx CDR StartTime 2025-03-05 07:38:05 - End Time 2025-03-05 10:38:05 [2025-03-05 10:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612580', 'tblTempUsageDetail_20' ) start [2025-03-05 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612580', 'tblTempUsageDetail_20' ) end [2025-03-05 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612580', 'tblTempVendorCDR_20' ) start [2025-03-05 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612580', 'tblTempVendorCDR_20' ) end [2025-03-05 10:38:19] Production.INFO: ProcessCDR(1,14612580,1,1,2) [2025-03-05 10:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612580', 'tblTempUsageDetail_20' ) start [2025-03-05 10:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612580', 'tblTempUsageDetail_20' ) end [2025-03-05 10:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:38:23] Production.INFO: ==24828== Releasing lock... [2025-03-05 10:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:38:23] Production.INFO: 48.75 MB #Memory Used# [2025-03-05 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:39:05 [end_date_ymd] => 2025-03-05 10:39:05 [RateCDR] => 1 ) [2025-03-05 10: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-03-05 07:39:05' and `end` < '2025-03-05 10: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-03-05 10:39:18] Production.INFO: count ==2785 [2025-03-05 10:39:19] Production.ERROR: pbx CDR StartTime 2025-03-05 07:39:05 - End Time 2025-03-05 10:39:05 [2025-03-05 10:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612585', 'tblTempUsageDetail_20' ) start [2025-03-05 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612585', 'tblTempUsageDetail_20' ) end [2025-03-05 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612585', 'tblTempVendorCDR_20' ) start [2025-03-05 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612585', 'tblTempVendorCDR_20' ) end [2025-03-05 10:39:19] Production.INFO: ProcessCDR(1,14612585,1,1,2) [2025-03-05 10:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612585', 'tblTempUsageDetail_20' ) start [2025-03-05 10:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612585', 'tblTempUsageDetail_20' ) end [2025-03-05 10:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:39:24] Production.INFO: ==24906== Releasing lock... [2025-03-05 10:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:39:24] Production.INFO: 49 MB #Memory Used# [2025-03-05 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:40:06 [end_date_ymd] => 2025-03-05 10:40:06 [RateCDR] => 1 ) [2025-03-05 10: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-03-05 07:40:06' and `end` < '2025-03-05 10: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-03-05 10:40:18] Production.INFO: count ==2798 [2025-03-05 10:40:19] Production.ERROR: pbx CDR StartTime 2025-03-05 07:40:06 - End Time 2025-03-05 10:40:06 [2025-03-05 10:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612591', 'tblTempUsageDetail_20' ) start [2025-03-05 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612591', 'tblTempUsageDetail_20' ) end [2025-03-05 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612591', 'tblTempVendorCDR_20' ) start [2025-03-05 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612591', 'tblTempVendorCDR_20' ) end [2025-03-05 10:40:19] Production.INFO: ProcessCDR(1,14612591,1,1,2) [2025-03-05 10:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612591', 'tblTempUsageDetail_20' ) start [2025-03-05 10:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612591', 'tblTempUsageDetail_20' ) end [2025-03-05 10:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:40:24] Production.INFO: ==24993== Releasing lock... [2025-03-05 10:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:40:24] Production.INFO: 48.75 MB #Memory Used# [2025-03-05 10:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:41:06 [end_date_ymd] => 2025-03-05 10:41:06 [RateCDR] => 1 ) [2025-03-05 10:41: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-03-05 07:41:06' and `end` < '2025-03-05 10:41: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-03-05 10:41:18] Production.INFO: count ==2888 [2025-03-05 10:41:19] Production.ERROR: pbx CDR StartTime 2025-03-05 07:41:06 - End Time 2025-03-05 10:41:06 [2025-03-05 10:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612596', 'tblTempUsageDetail_20' ) start [2025-03-05 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612596', 'tblTempUsageDetail_20' ) end [2025-03-05 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612596', 'tblTempVendorCDR_20' ) start [2025-03-05 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612596', 'tblTempVendorCDR_20' ) end [2025-03-05 10:41:20] Production.INFO: ProcessCDR(1,14612596,1,1,2) [2025-03-05 10:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612596', 'tblTempUsageDetail_20' ) start [2025-03-05 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612596', 'tblTempUsageDetail_20' ) end [2025-03-05 10:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:41:24] Production.INFO: ==25074== Releasing lock... [2025-03-05 10:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:41:24] Production.INFO: 49.5 MB #Memory Used# [2025-03-05 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:42:05 [end_date_ymd] => 2025-03-05 10:42:05 [RateCDR] => 1 ) [2025-03-05 10: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-03-05 07:42:05' and `end` < '2025-03-05 10: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-03-05 10:42:18] Production.INFO: count ==2898 [2025-03-05 10:42:19] Production.ERROR: pbx CDR StartTime 2025-03-05 07:42:05 - End Time 2025-03-05 10:42:05 [2025-03-05 10:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612601', 'tblTempUsageDetail_20' ) start [2025-03-05 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612601', 'tblTempUsageDetail_20' ) end [2025-03-05 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612601', 'tblTempVendorCDR_20' ) start [2025-03-05 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612601', 'tblTempVendorCDR_20' ) end [2025-03-05 10:42:19] Production.INFO: ProcessCDR(1,14612601,1,1,2) [2025-03-05 10:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612601', 'tblTempUsageDetail_20' ) start [2025-03-05 10:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612601', 'tblTempUsageDetail_20' ) end [2025-03-05 10:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:42:24] Production.INFO: ==25148== Releasing lock... [2025-03-05 10:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:42:24] Production.INFO: 49.5 MB #Memory Used# [2025-03-05 10:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:43:06 [end_date_ymd] => 2025-03-05 10:43:06 [RateCDR] => 1 ) [2025-03-05 10: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-03-05 07:43:06' and `end` < '2025-03-05 10: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-03-05 10:43:18] Production.INFO: count ==2906 [2025-03-05 10:43:19] Production.ERROR: pbx CDR StartTime 2025-03-05 07:43:06 - End Time 2025-03-05 10:43:06 [2025-03-05 10:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612606', 'tblTempUsageDetail_20' ) start [2025-03-05 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612606', 'tblTempUsageDetail_20' ) end [2025-03-05 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612606', 'tblTempVendorCDR_20' ) start [2025-03-05 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612606', 'tblTempVendorCDR_20' ) end [2025-03-05 10:43:19] Production.INFO: ProcessCDR(1,14612606,1,1,2) [2025-03-05 10:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612606', 'tblTempUsageDetail_20' ) start [2025-03-05 10:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612606', 'tblTempUsageDetail_20' ) end [2025-03-05 10:43:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:43:24] Production.INFO: ==25222== Releasing lock... [2025-03-05 10:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:43:24] Production.INFO: 49.5 MB #Memory Used# [2025-03-05 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:44:05 [end_date_ymd] => 2025-03-05 10:44:05 [RateCDR] => 1 ) [2025-03-05 10: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-03-05 07:44:05' and `end` < '2025-03-05 10: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-03-05 10:44:17] Production.INFO: count ==2921 [2025-03-05 10:44:18] Production.ERROR: pbx CDR StartTime 2025-03-05 07:44:05 - End Time 2025-03-05 10:44:05 [2025-03-05 10:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612611', 'tblTempUsageDetail_20' ) start [2025-03-05 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612611', 'tblTempUsageDetail_20' ) end [2025-03-05 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612611', 'tblTempVendorCDR_20' ) start [2025-03-05 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612611', 'tblTempVendorCDR_20' ) end [2025-03-05 10:44:19] Production.INFO: ProcessCDR(1,14612611,1,1,2) [2025-03-05 10:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612611', 'tblTempUsageDetail_20' ) start [2025-03-05 10:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612611', 'tblTempUsageDetail_20' ) end [2025-03-05 10:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:44:23] Production.INFO: ==25299== Releasing lock... [2025-03-05 10:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:44:23] Production.INFO: 49.5 MB #Memory Used# [2025-03-05 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:45:05 [end_date_ymd] => 2025-03-05 10:45:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 07:45:05' and `end` < '2025-03-05 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-03-05 10:45:17] Production.INFO: count ==2932 [2025-03-05 10:45:19] Production.ERROR: pbx CDR StartTime 2025-03-05 07:45:05 - End Time 2025-03-05 10:45:05 [2025-03-05 10:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612616', 'tblTempUsageDetail_20' ) start [2025-03-05 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612616', 'tblTempUsageDetail_20' ) end [2025-03-05 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612616', 'tblTempVendorCDR_20' ) start [2025-03-05 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612616', 'tblTempVendorCDR_20' ) end [2025-03-05 10:45:19] Production.INFO: ProcessCDR(1,14612616,1,1,2) [2025-03-05 10:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612616', 'tblTempUsageDetail_20' ) start [2025-03-05 10:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612616', 'tblTempUsageDetail_20' ) end [2025-03-05 10:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:45:23] Production.INFO: ==25372== Releasing lock... [2025-03-05 10:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:45:23] Production.INFO: 49.75 MB #Memory Used# [2025-03-05 10:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:46:04 [end_date_ymd] => 2025-03-05 10:46:04 [RateCDR] => 1 ) [2025-03-05 10: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-03-05 07:46:04' and `end` < '2025-03-05 10: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-03-05 10:46:17] Production.INFO: count ==2940 [2025-03-05 10:46:18] Production.ERROR: pbx CDR StartTime 2025-03-05 07:46:04 - End Time 2025-03-05 10:46:04 [2025-03-05 10:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612621', 'tblTempUsageDetail_20' ) start [2025-03-05 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612621', 'tblTempUsageDetail_20' ) end [2025-03-05 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612621', 'tblTempVendorCDR_20' ) start [2025-03-05 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612621', 'tblTempVendorCDR_20' ) end [2025-03-05 10:46:18] Production.INFO: ProcessCDR(1,14612621,1,1,2) [2025-03-05 10:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612621', 'tblTempUsageDetail_20' ) start [2025-03-05 10:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612621', 'tblTempUsageDetail_20' ) end [2025-03-05 10:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:46:22] Production.INFO: ==25450== Releasing lock... [2025-03-05 10:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:46:22] Production.INFO: 49.75 MB #Memory Used# [2025-03-05 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:47:05 [end_date_ymd] => 2025-03-05 10:47:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 07:47:05' and `end` < '2025-03-05 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-03-05 10:47:18] Production.INFO: count ==2949 [2025-03-05 10:47:19] Production.ERROR: pbx CDR StartTime 2025-03-05 07:47:05 - End Time 2025-03-05 10:47:05 [2025-03-05 10:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612626', 'tblTempUsageDetail_20' ) start [2025-03-05 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612626', 'tblTempUsageDetail_20' ) end [2025-03-05 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612626', 'tblTempVendorCDR_20' ) start [2025-03-05 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612626', 'tblTempVendorCDR_20' ) end [2025-03-05 10:47:19] Production.INFO: ProcessCDR(1,14612626,1,1,2) [2025-03-05 10:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612626', 'tblTempUsageDetail_20' ) start [2025-03-05 10:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612626', 'tblTempUsageDetail_20' ) end [2025-03-05 10:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:47:24] Production.INFO: ==25524== Releasing lock... [2025-03-05 10:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:47:24] Production.INFO: 50 MB #Memory Used# [2025-03-05 10:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:48:06 [end_date_ymd] => 2025-03-05 10:48:06 [RateCDR] => 1 ) [2025-03-05 10: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-03-05 07:48:06' and `end` < '2025-03-05 10: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-03-05 10:48:18] Production.INFO: count ==2961 [2025-03-05 10:48:19] Production.ERROR: pbx CDR StartTime 2025-03-05 07:48:06 - End Time 2025-03-05 10:48:06 [2025-03-05 10:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612631', 'tblTempUsageDetail_20' ) start [2025-03-05 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612631', 'tblTempUsageDetail_20' ) end [2025-03-05 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612631', 'tblTempVendorCDR_20' ) start [2025-03-05 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612631', 'tblTempVendorCDR_20' ) end [2025-03-05 10:48:19] Production.INFO: ProcessCDR(1,14612631,1,1,2) [2025-03-05 10:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612631', 'tblTempUsageDetail_20' ) start [2025-03-05 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612631', 'tblTempUsageDetail_20' ) end [2025-03-05 10:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:48:24] Production.INFO: ==25602== Releasing lock... [2025-03-05 10:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:48:24] Production.INFO: 49.75 MB #Memory Used# [2025-03-05 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:49:05 [end_date_ymd] => 2025-03-05 10:49:05 [RateCDR] => 1 ) [2025-03-05 10: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-03-05 07:49:05' and `end` < '2025-03-05 10: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-03-05 10:49:18] Production.INFO: count ==2965 [2025-03-05 10:49:19] Production.ERROR: pbx CDR StartTime 2025-03-05 07:49:05 - End Time 2025-03-05 10:49:05 [2025-03-05 10:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612636', 'tblTempUsageDetail_20' ) start [2025-03-05 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612636', 'tblTempUsageDetail_20' ) end [2025-03-05 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612636', 'tblTempVendorCDR_20' ) start [2025-03-05 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612636', 'tblTempVendorCDR_20' ) end [2025-03-05 10:49:19] Production.INFO: ProcessCDR(1,14612636,1,1,2) [2025-03-05 10:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612636', 'tblTempUsageDetail_20' ) start [2025-03-05 10:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612636', 'tblTempUsageDetail_20' ) end [2025-03-05 10:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:49:24] Production.INFO: ==25678== Releasing lock... [2025-03-05 10:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:49:24] Production.INFO: 49.75 MB #Memory Used# [2025-03-05 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:50:06 [end_date_ymd] => 2025-03-05 10:50:06 [RateCDR] => 1 ) [2025-03-05 10: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-03-05 07:50:06' and `end` < '2025-03-05 10: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-03-05 10:50:18] Production.INFO: count ==3064 [2025-03-05 10:50:20] Production.ERROR: pbx CDR StartTime 2025-03-05 07:50:06 - End Time 2025-03-05 10:50:06 [2025-03-05 10:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612640', 'tblTempUsageDetail_20' ) start [2025-03-05 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612640', 'tblTempUsageDetail_20' ) end [2025-03-05 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612640', 'tblTempVendorCDR_20' ) start [2025-03-05 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612640', 'tblTempVendorCDR_20' ) end [2025-03-05 10:50:20] Production.INFO: ProcessCDR(1,14612640,1,1,2) [2025-03-05 10:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612640', 'tblTempUsageDetail_20' ) start [2025-03-05 10:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612640', 'tblTempUsageDetail_20' ) end [2025-03-05 10:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:50:25] Production.INFO: ==25756== Releasing lock... [2025-03-05 10:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:50:25] Production.INFO: 50.75 MB #Memory Used# [2025-03-05 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:51:05 [end_date_ymd] => 2025-03-05 10:51:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 07:51:05' and `end` < '2025-03-05 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-03-05 10:51:18] Production.INFO: count ==3143 [2025-03-05 10:51:19] Production.ERROR: pbx CDR StartTime 2025-03-05 07:51:05 - End Time 2025-03-05 10:51:05 [2025-03-05 10:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612647', 'tblTempUsageDetail_20' ) start [2025-03-05 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612647', 'tblTempUsageDetail_20' ) end [2025-03-05 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612647', 'tblTempVendorCDR_20' ) start [2025-03-05 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612647', 'tblTempVendorCDR_20' ) end [2025-03-05 10:51:19] Production.INFO: ProcessCDR(1,14612647,1,1,2) [2025-03-05 10:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612647', 'tblTempUsageDetail_20' ) start [2025-03-05 10:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612647', 'tblTempUsageDetail_20' ) end [2025-03-05 10:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:51:24] Production.INFO: ==25831== Releasing lock... [2025-03-05 10:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:51:24] Production.INFO: 51.5 MB #Memory Used# [2025-03-05 10:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:52:06 [end_date_ymd] => 2025-03-05 10:52:06 [RateCDR] => 1 ) [2025-03-05 10: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-03-05 07:52:06' and `end` < '2025-03-05 10: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-03-05 10:52:19] Production.INFO: count ==3160 [2025-03-05 10:52:20] Production.ERROR: pbx CDR StartTime 2025-03-05 07:52:06 - End Time 2025-03-05 10:52:06 [2025-03-05 10:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612652', 'tblTempUsageDetail_20' ) start [2025-03-05 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612652', 'tblTempUsageDetail_20' ) end [2025-03-05 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612652', 'tblTempVendorCDR_20' ) start [2025-03-05 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612652', 'tblTempVendorCDR_20' ) end [2025-03-05 10:52:20] Production.INFO: ProcessCDR(1,14612652,1,1,2) [2025-03-05 10:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612652', 'tblTempUsageDetail_20' ) start [2025-03-05 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612652', 'tblTempUsageDetail_20' ) end [2025-03-05 10:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:52:25] Production.INFO: ==25946== Releasing lock... [2025-03-05 10:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:52:25] Production.INFO: 51.5 MB #Memory Used# [2025-03-05 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:53:05 [end_date_ymd] => 2025-03-05 10:53:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 07:53:05' and `end` < '2025-03-05 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-03-05 10:53:18] Production.INFO: count ==3189 [2025-03-05 10:53:19] Production.ERROR: pbx CDR StartTime 2025-03-05 07:53:05 - End Time 2025-03-05 10:53:05 [2025-03-05 10:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612657', 'tblTempUsageDetail_20' ) start [2025-03-05 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612657', 'tblTempUsageDetail_20' ) end [2025-03-05 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612657', 'tblTempVendorCDR_20' ) start [2025-03-05 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612657', 'tblTempVendorCDR_20' ) end [2025-03-05 10:53:19] Production.INFO: ProcessCDR(1,14612657,1,1,2) [2025-03-05 10:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612657', 'tblTempUsageDetail_20' ) start [2025-03-05 10:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612657', 'tblTempUsageDetail_20' ) end [2025-03-05 10:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:53:24] Production.INFO: ==26017== Releasing lock... [2025-03-05 10:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:53:24] Production.INFO: 52 MB #Memory Used# [2025-03-05 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:54:05 [end_date_ymd] => 2025-03-05 10:54:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 07:54:05' and `end` < '2025-03-05 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-03-05 10:54:18] Production.INFO: count ==3210 [2025-03-05 10:54:19] Production.ERROR: pbx CDR StartTime 2025-03-05 07:54:05 - End Time 2025-03-05 10:54:05 [2025-03-05 10:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612662', 'tblTempUsageDetail_20' ) start [2025-03-05 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612662', 'tblTempUsageDetail_20' ) end [2025-03-05 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612662', 'tblTempVendorCDR_20' ) start [2025-03-05 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612662', 'tblTempVendorCDR_20' ) end [2025-03-05 10:54:19] Production.INFO: ProcessCDR(1,14612662,1,1,2) [2025-03-05 10:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612662', 'tblTempUsageDetail_20' ) start [2025-03-05 10:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612662', 'tblTempUsageDetail_20' ) end [2025-03-05 10:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:54:24] Production.INFO: ==26094== Releasing lock... [2025-03-05 10:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:54:24] Production.INFO: 52.25 MB #Memory Used# [2025-03-05 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:55:05 [end_date_ymd] => 2025-03-05 10:55:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 07:55:05' and `end` < '2025-03-05 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-03-05 10:55:18] Production.INFO: count ==3251 [2025-03-05 10:55:19] Production.ERROR: pbx CDR StartTime 2025-03-05 07:55:05 - End Time 2025-03-05 10:55:05 [2025-03-05 10:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612667', 'tblTempUsageDetail_20' ) start [2025-03-05 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612667', 'tblTempUsageDetail_20' ) end [2025-03-05 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612667', 'tblTempVendorCDR_20' ) start [2025-03-05 10:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612667', 'tblTempVendorCDR_20' ) end [2025-03-05 10:55:19] Production.INFO: ProcessCDR(1,14612667,1,1,2) [2025-03-05 10:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612667', 'tblTempUsageDetail_20' ) start [2025-03-05 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612667', 'tblTempUsageDetail_20' ) end [2025-03-05 10:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:55:25] Production.INFO: ==26167== Releasing lock... [2025-03-05 10:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:55:25] Production.INFO: 52.25 MB #Memory Used# [2025-03-05 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:56:05 [end_date_ymd] => 2025-03-05 10:56:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 07:56:05' and `end` < '2025-03-05 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-03-05 10:56:17] Production.INFO: count ==3268 [2025-03-05 10:56:19] Production.ERROR: pbx CDR StartTime 2025-03-05 07:56:05 - End Time 2025-03-05 10:56:05 [2025-03-05 10:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612672', 'tblTempUsageDetail_20' ) start [2025-03-05 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612672', 'tblTempUsageDetail_20' ) end [2025-03-05 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612672', 'tblTempVendorCDR_20' ) start [2025-03-05 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612672', 'tblTempVendorCDR_20' ) end [2025-03-05 10:56:19] Production.INFO: ProcessCDR(1,14612672,1,1,2) [2025-03-05 10:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612672', 'tblTempUsageDetail_20' ) start [2025-03-05 10:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612672', 'tblTempUsageDetail_20' ) end [2025-03-05 10:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:56:24] Production.INFO: ==26241== Releasing lock... [2025-03-05 10:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:56:24] Production.INFO: 52.5 MB #Memory Used# [2025-03-05 10:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:57:04 [end_date_ymd] => 2025-03-05 10:57:04 [RateCDR] => 1 ) [2025-03-05 10: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-03-05 07:57:04' and `end` < '2025-03-05 10: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-03-05 10:57:17] Production.INFO: count ==3264 [2025-03-05 10:57:18] Production.ERROR: pbx CDR StartTime 2025-03-05 07:57:04 - End Time 2025-03-05 10:57:04 [2025-03-05 10:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612677', 'tblTempUsageDetail_20' ) start [2025-03-05 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612677', 'tblTempUsageDetail_20' ) end [2025-03-05 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612677', 'tblTempVendorCDR_20' ) start [2025-03-05 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612677', 'tblTempVendorCDR_20' ) end [2025-03-05 10:57:18] Production.INFO: ProcessCDR(1,14612677,1,1,2) [2025-03-05 10:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612677', 'tblTempUsageDetail_20' ) start [2025-03-05 10:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612677', 'tblTempUsageDetail_20' ) end [2025-03-05 10:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:57:23] Production.INFO: ==26319== Releasing lock... [2025-03-05 10:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:57:23] Production.INFO: 52.25 MB #Memory Used# [2025-03-05 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:58:05 [end_date_ymd] => 2025-03-05 10:58:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 07:58:05' and `end` < '2025-03-05 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-03-05 10:58:18] Production.INFO: count ==3269 [2025-03-05 10:58:19] Production.ERROR: pbx CDR StartTime 2025-03-05 07:58:05 - End Time 2025-03-05 10:58:05 [2025-03-05 10:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612682', 'tblTempUsageDetail_20' ) start [2025-03-05 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612682', 'tblTempUsageDetail_20' ) end [2025-03-05 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612682', 'tblTempVendorCDR_20' ) start [2025-03-05 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612682', 'tblTempVendorCDR_20' ) end [2025-03-05 10:58:19] Production.INFO: ProcessCDR(1,14612682,1,1,2) [2025-03-05 10:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612682', 'tblTempUsageDetail_20' ) start [2025-03-05 10:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612682', 'tblTempUsageDetail_20' ) end [2025-03-05 10:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:58:24] Production.INFO: ==26405== Releasing lock... [2025-03-05 10:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:58:24] Production.INFO: 52.75 MB #Memory Used# [2025-03-05 10:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 07:59:06 [end_date_ymd] => 2025-03-05 10:59:06 [RateCDR] => 1 ) [2025-03-05 10: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-03-05 07:59:06' and `end` < '2025-03-05 10: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-03-05 10:59:18] Production.INFO: count ==3276 [2025-03-05 10:59:20] Production.ERROR: pbx CDR StartTime 2025-03-05 07:59:06 - End Time 2025-03-05 10:59:06 [2025-03-05 10:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612687', 'tblTempUsageDetail_20' ) start [2025-03-05 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612687', 'tblTempUsageDetail_20' ) end [2025-03-05 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612687', 'tblTempVendorCDR_20' ) start [2025-03-05 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612687', 'tblTempVendorCDR_20' ) end [2025-03-05 10:59:20] Production.INFO: ProcessCDR(1,14612687,1,1,2) [2025-03-05 10:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 10:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 10:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612687', 'tblTempUsageDetail_20' ) start [2025-03-05 10:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612687', 'tblTempUsageDetail_20' ) end [2025-03-05 10:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 10:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 10:59:24] Production.INFO: ==26479== Releasing lock... [2025-03-05 10:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 10:59:24] Production.INFO: 53.25 MB #Memory Used# [2025-03-05 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:00:06 [end_date_ymd] => 2025-03-05 11:00:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 08:00:06' and `end` < '2025-03-05 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-03-05 11:00:18] Production.INFO: count ==3314 [2025-03-05 11:00:20] Production.ERROR: pbx CDR StartTime 2025-03-05 08:00:06 - End Time 2025-03-05 11:00:06 [2025-03-05 11:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612693', 'tblTempUsageDetail_20' ) start [2025-03-05 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612693', 'tblTempUsageDetail_20' ) end [2025-03-05 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612693', 'tblTempVendorCDR_20' ) start [2025-03-05 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612693', 'tblTempVendorCDR_20' ) end [2025-03-05 11:00:20] Production.INFO: ProcessCDR(1,14612693,1,1,2) [2025-03-05 11:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612693', 'tblTempUsageDetail_20' ) start [2025-03-05 11:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612693', 'tblTempUsageDetail_20' ) end [2025-03-05 11:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:00:23] Production.INFO: ==26560== Releasing lock... [2025-03-05 11:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:00:23] Production.INFO: 53 MB #Memory Used# [2025-03-05 11:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:01:06 [end_date_ymd] => 2025-03-05 11:01:06 [RateCDR] => 1 ) [2025-03-05 11: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-03-05 08:01:06' and `end` < '2025-03-05 11: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-03-05 11:01:19] Production.INFO: count ==3383 [2025-03-05 11:01:20] Production.ERROR: pbx CDR StartTime 2025-03-05 08:01:06 - End Time 2025-03-05 11:01:06 [2025-03-05 11:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612698', 'tblTempUsageDetail_20' ) start [2025-03-05 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612698', 'tblTempUsageDetail_20' ) end [2025-03-05 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612698', 'tblTempVendorCDR_20' ) start [2025-03-05 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612698', 'tblTempVendorCDR_20' ) end [2025-03-05 11:01:20] Production.INFO: ProcessCDR(1,14612698,1,1,2) [2025-03-05 11:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612698', 'tblTempUsageDetail_20' ) start [2025-03-05 11:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612698', 'tblTempUsageDetail_20' ) end [2025-03-05 11:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:01:25] Production.INFO: ==26651== Releasing lock... [2025-03-05 11:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:01:25] Production.INFO: 54 MB #Memory Used# [2025-03-05 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:02:05 [end_date_ymd] => 2025-03-05 11:02:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 08:02:05' and `end` < '2025-03-05 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-03-05 11:02:18] Production.INFO: count ==3403 [2025-03-05 11:02:19] Production.ERROR: pbx CDR StartTime 2025-03-05 08:02:05 - End Time 2025-03-05 11:02:05 [2025-03-05 11:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612703', 'tblTempUsageDetail_20' ) start [2025-03-05 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612703', 'tblTempUsageDetail_20' ) end [2025-03-05 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612703', 'tblTempVendorCDR_20' ) start [2025-03-05 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612703', 'tblTempVendorCDR_20' ) end [2025-03-05 11:02:19] Production.INFO: ProcessCDR(1,14612703,1,1,2) [2025-03-05 11:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612703', 'tblTempUsageDetail_20' ) start [2025-03-05 11:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612703', 'tblTempUsageDetail_20' ) end [2025-03-05 11:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:02:24] Production.INFO: ==26803== Releasing lock... [2025-03-05 11:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:02:24] Production.INFO: 53.75 MB #Memory Used# [2025-03-05 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:03:05 [end_date_ymd] => 2025-03-05 11:03:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 08:03:05' and `end` < '2025-03-05 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-03-05 11:03:18] Production.INFO: count ==3430 [2025-03-05 11:03:20] Production.ERROR: pbx CDR StartTime 2025-03-05 08:03:05 - End Time 2025-03-05 11:03:05 [2025-03-05 11:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612708', 'tblTempUsageDetail_20' ) start [2025-03-05 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612708', 'tblTempUsageDetail_20' ) end [2025-03-05 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612708', 'tblTempVendorCDR_20' ) start [2025-03-05 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612708', 'tblTempVendorCDR_20' ) end [2025-03-05 11:03:20] Production.INFO: ProcessCDR(1,14612708,1,1,2) [2025-03-05 11:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612708', 'tblTempUsageDetail_20' ) start [2025-03-05 11:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612708', 'tblTempUsageDetail_20' ) end [2025-03-05 11:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:03:25] Production.INFO: ==26877== Releasing lock... [2025-03-05 11:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:03:25] Production.INFO: 54 MB #Memory Used# [2025-03-05 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:04:05 [end_date_ymd] => 2025-03-05 11:04:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 08:04:05' and `end` < '2025-03-05 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-03-05 11:04:18] Production.INFO: count ==3448 [2025-03-05 11:04:19] Production.ERROR: pbx CDR StartTime 2025-03-05 08:04:05 - End Time 2025-03-05 11:04:05 [2025-03-05 11:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612713', 'tblTempUsageDetail_20' ) start [2025-03-05 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612713', 'tblTempUsageDetail_20' ) end [2025-03-05 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612713', 'tblTempVendorCDR_20' ) start [2025-03-05 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612713', 'tblTempVendorCDR_20' ) end [2025-03-05 11:04:19] Production.INFO: ProcessCDR(1,14612713,1,1,2) [2025-03-05 11:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612713', 'tblTempUsageDetail_20' ) start [2025-03-05 11:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612713', 'tblTempUsageDetail_20' ) end [2025-03-05 11:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:04:24] Production.INFO: ==26950== Releasing lock... [2025-03-05 11:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:04:24] Production.INFO: 54.25 MB #Memory Used# [2025-03-05 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:05:05 [end_date_ymd] => 2025-03-05 11:05:05 [RateCDR] => 1 ) [2025-03-05 11: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-03-05 08:05:05' and `end` < '2025-03-05 11: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-03-05 11:05:18] Production.INFO: count ==3468 [2025-03-05 11:05:19] Production.ERROR: pbx CDR StartTime 2025-03-05 08:05:05 - End Time 2025-03-05 11:05:05 [2025-03-05 11:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612718', 'tblTempUsageDetail_20' ) start [2025-03-05 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612718', 'tblTempUsageDetail_20' ) end [2025-03-05 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612718', 'tblTempVendorCDR_20' ) start [2025-03-05 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612718', 'tblTempVendorCDR_20' ) end [2025-03-05 11:05:19] Production.INFO: ProcessCDR(1,14612718,1,1,2) [2025-03-05 11:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612718', 'tblTempUsageDetail_20' ) start [2025-03-05 11:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612718', 'tblTempUsageDetail_20' ) end [2025-03-05 11:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:05:25] Production.INFO: ==27097== Releasing lock... [2025-03-05 11:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:05:25] Production.INFO: 55 MB #Memory Used# [2025-03-05 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:06:05 [end_date_ymd] => 2025-03-05 11:06:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 08:06:05' and `end` < '2025-03-05 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-03-05 11:06:18] Production.INFO: count ==3475 [2025-03-05 11:06:19] Production.ERROR: pbx CDR StartTime 2025-03-05 08:06:05 - End Time 2025-03-05 11:06:05 [2025-03-05 11:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612723', 'tblTempUsageDetail_20' ) start [2025-03-05 11:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612723', 'tblTempUsageDetail_20' ) end [2025-03-05 11:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612723', 'tblTempVendorCDR_20' ) start [2025-03-05 11:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612723', 'tblTempVendorCDR_20' ) end [2025-03-05 11:06:19] Production.INFO: ProcessCDR(1,14612723,1,1,2) [2025-03-05 11:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612723', 'tblTempUsageDetail_20' ) start [2025-03-05 11:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612723', 'tblTempUsageDetail_20' ) end [2025-03-05 11:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:06:24] Production.INFO: ==27175== Releasing lock... [2025-03-05 11:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:06:24] Production.INFO: 54.75 MB #Memory Used# [2025-03-05 11:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:07:06 [end_date_ymd] => 2025-03-05 11:07:06 [RateCDR] => 1 ) [2025-03-05 11: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-03-05 08:07:06' and `end` < '2025-03-05 11: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-03-05 11:07:18] Production.INFO: count ==3482 [2025-03-05 11:07:20] Production.ERROR: pbx CDR StartTime 2025-03-05 08:07:06 - End Time 2025-03-05 11:07:06 [2025-03-05 11:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612728', 'tblTempUsageDetail_20' ) start [2025-03-05 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612728', 'tblTempUsageDetail_20' ) end [2025-03-05 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612728', 'tblTempVendorCDR_20' ) start [2025-03-05 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612728', 'tblTempVendorCDR_20' ) end [2025-03-05 11:07:20] Production.INFO: ProcessCDR(1,14612728,1,1,2) [2025-03-05 11:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612728', 'tblTempUsageDetail_20' ) start [2025-03-05 11:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612728', 'tblTempUsageDetail_20' ) end [2025-03-05 11:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:07:24] Production.INFO: ==27246== Releasing lock... [2025-03-05 11:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:07:24] Production.INFO: 54.5 MB #Memory Used# [2025-03-05 11:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:08:04 [end_date_ymd] => 2025-03-05 11:08:04 [RateCDR] => 1 ) [2025-03-05 11: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-03-05 08:08:04' and `end` < '2025-03-05 11: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-03-05 11:08:17] Production.INFO: count ==3477 [2025-03-05 11:08:18] Production.ERROR: pbx CDR StartTime 2025-03-05 08:08:04 - End Time 2025-03-05 11:08:04 [2025-03-05 11:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612733', 'tblTempUsageDetail_20' ) start [2025-03-05 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612733', 'tblTempUsageDetail_20' ) end [2025-03-05 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612733', 'tblTempVendorCDR_20' ) start [2025-03-05 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612733', 'tblTempVendorCDR_20' ) end [2025-03-05 11:08:19] Production.INFO: ProcessCDR(1,14612733,1,1,2) [2025-03-05 11:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612733', 'tblTempUsageDetail_20' ) start [2025-03-05 11:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612733', 'tblTempUsageDetail_20' ) end [2025-03-05 11:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:08:23] Production.INFO: ==27360== Releasing lock... [2025-03-05 11:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:08:23] Production.INFO: 54 MB #Memory Used# [2025-03-05 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:09:05 [end_date_ymd] => 2025-03-05 11:09:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 08:09:05' and `end` < '2025-03-05 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-03-05 11:09:18] Production.INFO: count ==3480 [2025-03-05 11:09:19] Production.ERROR: pbx CDR StartTime 2025-03-05 08:09:05 - End Time 2025-03-05 11:09:05 [2025-03-05 11:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612738', 'tblTempUsageDetail_20' ) start [2025-03-05 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612738', 'tblTempUsageDetail_20' ) end [2025-03-05 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612738', 'tblTempVendorCDR_20' ) start [2025-03-05 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612738', 'tblTempVendorCDR_20' ) end [2025-03-05 11:09:20] Production.INFO: ProcessCDR(1,14612738,1,1,2) [2025-03-05 11:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612738', 'tblTempUsageDetail_20' ) start [2025-03-05 11:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612738', 'tblTempUsageDetail_20' ) end [2025-03-05 11:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:09:23] Production.INFO: ==27515== Releasing lock... [2025-03-05 11:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:09:23] Production.INFO: 55 MB #Memory Used# [2025-03-05 11:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:10:07 [end_date_ymd] => 2025-03-05 11:10:07 [RateCDR] => 1 ) [2025-03-05 11:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 08:10:07' and `end` < '2025-03-05 11:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-05 11:10:20] Production.INFO: count ==3512 [2025-03-05 11:10:21] Production.ERROR: pbx CDR StartTime 2025-03-05 08:10:07 - End Time 2025-03-05 11:10:07 [2025-03-05 11:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612744', 'tblTempUsageDetail_20' ) start [2025-03-05 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612744', 'tblTempUsageDetail_20' ) end [2025-03-05 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612744', 'tblTempVendorCDR_20' ) start [2025-03-05 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612744', 'tblTempVendorCDR_20' ) end [2025-03-05 11:10:21] Production.INFO: ProcessCDR(1,14612744,1,1,2) [2025-03-05 11:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612744', 'tblTempUsageDetail_20' ) start [2025-03-05 11:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612744', 'tblTempUsageDetail_20' ) end [2025-03-05 11:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:10:26] Production.INFO: ==27588== Releasing lock... [2025-03-05 11:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:10:26] Production.INFO: 55 MB #Memory Used# [2025-03-05 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:11:05 [end_date_ymd] => 2025-03-05 11:11:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 08:11:05' and `end` < '2025-03-05 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-03-05 11:11:18] Production.INFO: count ==3624 [2025-03-05 11:11:19] Production.ERROR: pbx CDR StartTime 2025-03-05 08:11:05 - End Time 2025-03-05 11:11:05 [2025-03-05 11:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612749', 'tblTempUsageDetail_20' ) start [2025-03-05 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612749', 'tblTempUsageDetail_20' ) end [2025-03-05 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612749', 'tblTempVendorCDR_20' ) start [2025-03-05 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612749', 'tblTempVendorCDR_20' ) end [2025-03-05 11:11:19] Production.INFO: ProcessCDR(1,14612749,1,1,2) [2025-03-05 11:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612749', 'tblTempUsageDetail_20' ) start [2025-03-05 11:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612749', 'tblTempUsageDetail_20' ) end [2025-03-05 11:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:11:24] Production.INFO: ==27662== Releasing lock... [2025-03-05 11:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:11:24] Production.INFO: 55.75 MB #Memory Used# [2025-03-05 11:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:12:06 [end_date_ymd] => 2025-03-05 11:12:06 [RateCDR] => 1 ) [2025-03-05 11:12: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-03-05 08:12:06' and `end` < '2025-03-05 11:12: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-03-05 11:12:19] Production.INFO: count ==3627 [2025-03-05 11:12:20] Production.ERROR: pbx CDR StartTime 2025-03-05 08:12:06 - End Time 2025-03-05 11:12:06 [2025-03-05 11:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612754', 'tblTempUsageDetail_20' ) start [2025-03-05 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612754', 'tblTempUsageDetail_20' ) end [2025-03-05 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612754', 'tblTempVendorCDR_20' ) start [2025-03-05 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612754', 'tblTempVendorCDR_20' ) end [2025-03-05 11:12:21] Production.INFO: ProcessCDR(1,14612754,1,1,2) [2025-03-05 11:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612754', 'tblTempUsageDetail_20' ) start [2025-03-05 11:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612754', 'tblTempUsageDetail_20' ) end [2025-03-05 11:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:12:25] Production.INFO: ==27816== Releasing lock... [2025-03-05 11:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:12:25] Production.INFO: 55.75 MB #Memory Used# [2025-03-05 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:13:05 [end_date_ymd] => 2025-03-05 11:13:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 08:13:05' and `end` < '2025-03-05 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-03-05 11:13:18] Production.INFO: count ==3630 [2025-03-05 11:13:19] Production.ERROR: pbx CDR StartTime 2025-03-05 08:13:05 - End Time 2025-03-05 11:13:05 [2025-03-05 11:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612759', 'tblTempUsageDetail_20' ) start [2025-03-05 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612759', 'tblTempUsageDetail_20' ) end [2025-03-05 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612759', 'tblTempVendorCDR_20' ) start [2025-03-05 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612759', 'tblTempVendorCDR_20' ) end [2025-03-05 11:13:19] Production.INFO: ProcessCDR(1,14612759,1,1,2) [2025-03-05 11:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612759', 'tblTempUsageDetail_20' ) start [2025-03-05 11:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612759', 'tblTempUsageDetail_20' ) end [2025-03-05 11:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:13:24] Production.INFO: ==27888== Releasing lock... [2025-03-05 11:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:13:24] Production.INFO: 56 MB #Memory Used# [2025-03-05 11:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:14:06 [end_date_ymd] => 2025-03-05 11:14:06 [RateCDR] => 1 ) [2025-03-05 11:14: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-03-05 08:14:06' and `end` < '2025-03-05 11:14: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-03-05 11:14:19] Production.INFO: count ==3634 [2025-03-05 11:14:20] Production.ERROR: pbx CDR StartTime 2025-03-05 08:14:06 - End Time 2025-03-05 11:14:06 [2025-03-05 11:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612764', 'tblTempUsageDetail_20' ) start [2025-03-05 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612764', 'tblTempUsageDetail_20' ) end [2025-03-05 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612764', 'tblTempVendorCDR_20' ) start [2025-03-05 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612764', 'tblTempVendorCDR_20' ) end [2025-03-05 11:14:20] Production.INFO: ProcessCDR(1,14612764,1,1,2) [2025-03-05 11:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612764', 'tblTempUsageDetail_20' ) start [2025-03-05 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612764', 'tblTempUsageDetail_20' ) end [2025-03-05 11:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:14:25] Production.INFO: ==27961== Releasing lock... [2025-03-05 11:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:14:25] Production.INFO: 56 MB #Memory Used# [2025-03-05 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:15:05 [end_date_ymd] => 2025-03-05 11:15:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 08:15:05' and `end` < '2025-03-05 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-03-05 11:15:18] Production.INFO: count ==3657 [2025-03-05 11:15:20] Production.ERROR: pbx CDR StartTime 2025-03-05 08:15:05 - End Time 2025-03-05 11:15:05 [2025-03-05 11:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612769', 'tblTempUsageDetail_20' ) start [2025-03-05 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612769', 'tblTempUsageDetail_20' ) end [2025-03-05 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612769', 'tblTempVendorCDR_20' ) start [2025-03-05 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612769', 'tblTempVendorCDR_20' ) end [2025-03-05 11:15:20] Production.INFO: ProcessCDR(1,14612769,1,1,2) [2025-03-05 11:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612769', 'tblTempUsageDetail_20' ) start [2025-03-05 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612769', 'tblTempUsageDetail_20' ) end [2025-03-05 11:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:15:25] Production.INFO: ==28074== Releasing lock... [2025-03-05 11:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:15:25] Production.INFO: 55.5 MB #Memory Used# [2025-03-05 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:16:05 [end_date_ymd] => 2025-03-05 11:16:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 08:16:05' and `end` < '2025-03-05 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-03-05 11:16:18] Production.INFO: count ==3670 [2025-03-05 11:16:20] Production.ERROR: pbx CDR StartTime 2025-03-05 08:16:05 - End Time 2025-03-05 11:16:05 [2025-03-05 11:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612774', 'tblTempUsageDetail_20' ) start [2025-03-05 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612774', 'tblTempUsageDetail_20' ) end [2025-03-05 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612774', 'tblTempVendorCDR_20' ) start [2025-03-05 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612774', 'tblTempVendorCDR_20' ) end [2025-03-05 11:16:20] Production.INFO: ProcessCDR(1,14612774,1,1,2) [2025-03-05 11:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612774', 'tblTempUsageDetail_20' ) start [2025-03-05 11:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612774', 'tblTempUsageDetail_20' ) end [2025-03-05 11:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:16:24] Production.INFO: ==28188== Releasing lock... [2025-03-05 11:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:16:24] Production.INFO: 56 MB #Memory Used# [2025-03-05 11:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:17:04 [end_date_ymd] => 2025-03-05 11:17:04 [RateCDR] => 1 ) [2025-03-05 11: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-03-05 08:17:04' and `end` < '2025-03-05 11: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-03-05 11:17:17] Production.INFO: count ==3672 [2025-03-05 11:17:18] Production.ERROR: pbx CDR StartTime 2025-03-05 08:17:04 - End Time 2025-03-05 11:17:04 [2025-03-05 11:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612779', 'tblTempUsageDetail_20' ) start [2025-03-05 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612779', 'tblTempUsageDetail_20' ) end [2025-03-05 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612779', 'tblTempVendorCDR_20' ) start [2025-03-05 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612779', 'tblTempVendorCDR_20' ) end [2025-03-05 11:17:18] Production.INFO: ProcessCDR(1,14612779,1,1,2) [2025-03-05 11:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612779', 'tblTempUsageDetail_20' ) start [2025-03-05 11:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612779', 'tblTempUsageDetail_20' ) end [2025-03-05 11:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:17:23] Production.INFO: ==28259== Releasing lock... [2025-03-05 11:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:17:23] Production.INFO: 56.5 MB #Memory Used# [2025-03-05 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:18:05 [end_date_ymd] => 2025-03-05 11:18:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 08:18:05' and `end` < '2025-03-05 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-03-05 11:18:18] Production.INFO: count ==3682 [2025-03-05 11:18:19] Production.ERROR: pbx CDR StartTime 2025-03-05 08:18:05 - End Time 2025-03-05 11:18:05 [2025-03-05 11:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612784', 'tblTempUsageDetail_20' ) start [2025-03-05 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612784', 'tblTempUsageDetail_20' ) end [2025-03-05 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612784', 'tblTempVendorCDR_20' ) start [2025-03-05 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612784', 'tblTempVendorCDR_20' ) end [2025-03-05 11:18:19] Production.INFO: ProcessCDR(1,14612784,1,1,2) [2025-03-05 11:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612784', 'tblTempUsageDetail_20' ) start [2025-03-05 11:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612784', 'tblTempUsageDetail_20' ) end [2025-03-05 11:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:18:24] Production.INFO: ==28328== Releasing lock... [2025-03-05 11:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:18:24] Production.INFO: 55.5 MB #Memory Used# [2025-03-05 11:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:19:06 [end_date_ymd] => 2025-03-05 11:19:06 [RateCDR] => 1 ) [2025-03-05 11:19: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-03-05 08:19:06' and `end` < '2025-03-05 11:19: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-03-05 11:19:22] Production.INFO: count ==3703 [2025-03-05 11:19:23] Production.ERROR: pbx CDR StartTime 2025-03-05 08:19:06 - End Time 2025-03-05 11:19:06 [2025-03-05 11:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612789', 'tblTempUsageDetail_20' ) start [2025-03-05 11:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612789', 'tblTempUsageDetail_20' ) end [2025-03-05 11:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612789', 'tblTempVendorCDR_20' ) start [2025-03-05 11:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612789', 'tblTempVendorCDR_20' ) end [2025-03-05 11:19:23] Production.INFO: ProcessCDR(1,14612789,1,1,2) [2025-03-05 11:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612789', 'tblTempUsageDetail_20' ) start [2025-03-05 11:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612789', 'tblTempUsageDetail_20' ) end [2025-03-05 11:19:28] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:19:28] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:19:28] Production.INFO: ==28406== Releasing lock... [2025-03-05 11:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:19:28] Production.INFO: 56.25 MB #Memory Used# [2025-03-05 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:20:06 [end_date_ymd] => 2025-03-05 11:20:06 [RateCDR] => 1 ) [2025-03-05 11: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-03-05 08:20:06' and `end` < '2025-03-05 11: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-03-05 11:20:20] Production.INFO: count ==3733 [2025-03-05 11:20:21] Production.ERROR: pbx CDR StartTime 2025-03-05 08:20:06 - End Time 2025-03-05 11:20:06 [2025-03-05 11:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612795', 'tblTempUsageDetail_20' ) start [2025-03-05 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612795', 'tblTempUsageDetail_20' ) end [2025-03-05 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612795', 'tblTempVendorCDR_20' ) start [2025-03-05 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612795', 'tblTempVendorCDR_20' ) end [2025-03-05 11:20:21] Production.INFO: ProcessCDR(1,14612795,1,1,2) [2025-03-05 11:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612795', 'tblTempUsageDetail_20' ) start [2025-03-05 11:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612795', 'tblTempUsageDetail_20' ) end [2025-03-05 11:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:20:26] Production.INFO: ==28480== Releasing lock... [2025-03-05 11:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:20:26] Production.INFO: 56.5 MB #Memory Used# [2025-03-05 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:21:05 [end_date_ymd] => 2025-03-05 11:21:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 08:21:05' and `end` < '2025-03-05 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-03-05 11:21:19] Production.INFO: count ==3846 [2025-03-05 11:21:20] Production.ERROR: pbx CDR StartTime 2025-03-05 08:21:05 - End Time 2025-03-05 11:21:05 [2025-03-05 11:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612800', 'tblTempUsageDetail_20' ) start [2025-03-05 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612800', 'tblTempUsageDetail_20' ) end [2025-03-05 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612800', 'tblTempVendorCDR_20' ) start [2025-03-05 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612800', 'tblTempVendorCDR_20' ) end [2025-03-05 11:21:20] Production.INFO: ProcessCDR(1,14612800,1,1,2) [2025-03-05 11:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612800', 'tblTempUsageDetail_20' ) start [2025-03-05 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612800', 'tblTempUsageDetail_20' ) end [2025-03-05 11:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:21:25] Production.INFO: ==28558== Releasing lock... [2025-03-05 11:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:21:25] Production.INFO: 56.75 MB #Memory Used# [2025-03-05 11:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:22:06 [end_date_ymd] => 2025-03-05 11:22:06 [RateCDR] => 1 ) [2025-03-05 11: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-03-05 08:22:06' and `end` < '2025-03-05 11:22: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-03-05 11:22:18] Production.INFO: count ==3857 [2025-03-05 11:22:20] Production.ERROR: pbx CDR StartTime 2025-03-05 08:22:06 - End Time 2025-03-05 11:22:06 [2025-03-05 11:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612805', 'tblTempUsageDetail_20' ) start [2025-03-05 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612805', 'tblTempUsageDetail_20' ) end [2025-03-05 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612805', 'tblTempVendorCDR_20' ) start [2025-03-05 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612805', 'tblTempVendorCDR_20' ) end [2025-03-05 11:22:20] Production.INFO: ProcessCDR(1,14612805,1,1,2) [2025-03-05 11:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612805', 'tblTempUsageDetail_20' ) start [2025-03-05 11:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612805', 'tblTempUsageDetail_20' ) end [2025-03-05 11:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:22:25] Production.INFO: ==28628== Releasing lock... [2025-03-05 11:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:22:25] Production.INFO: 56.75 MB #Memory Used# [2025-03-05 11:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:23:04 [end_date_ymd] => 2025-03-05 11:23:04 [RateCDR] => 1 ) [2025-03-05 11: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-03-05 08:23:04' and `end` < '2025-03-05 11: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-03-05 11:23:17] Production.INFO: count ==3866 [2025-03-05 11:23:19] Production.ERROR: pbx CDR StartTime 2025-03-05 08:23:04 - End Time 2025-03-05 11:23:04 [2025-03-05 11:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612810', 'tblTempUsageDetail_20' ) start [2025-03-05 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612810', 'tblTempUsageDetail_20' ) end [2025-03-05 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612810', 'tblTempVendorCDR_20' ) start [2025-03-05 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612810', 'tblTempVendorCDR_20' ) end [2025-03-05 11:23:19] Production.INFO: ProcessCDR(1,14612810,1,1,2) [2025-03-05 11:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612810', 'tblTempUsageDetail_20' ) start [2025-03-05 11:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612810', 'tblTempUsageDetail_20' ) end [2025-03-05 11:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:23:24] Production.INFO: ==28741== Releasing lock... [2025-03-05 11:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:23:24] Production.INFO: 57 MB #Memory Used# [2025-03-05 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:24:05 [end_date_ymd] => 2025-03-05 11:24:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 08:24:05' and `end` < '2025-03-05 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-03-05 11:24:18] Production.INFO: count ==3869 [2025-03-05 11:24:19] Production.ERROR: pbx CDR StartTime 2025-03-05 08:24:05 - End Time 2025-03-05 11:24:05 [2025-03-05 11:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612815', 'tblTempUsageDetail_20' ) start [2025-03-05 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612815', 'tblTempUsageDetail_20' ) end [2025-03-05 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612815', 'tblTempVendorCDR_20' ) start [2025-03-05 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612815', 'tblTempVendorCDR_20' ) end [2025-03-05 11:24:19] Production.INFO: ProcessCDR(1,14612815,1,1,2) [2025-03-05 11:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612815', 'tblTempUsageDetail_20' ) start [2025-03-05 11:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612815', 'tblTempUsageDetail_20' ) end [2025-03-05 11:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:24:24] Production.INFO: ==28817== Releasing lock... [2025-03-05 11:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:24:24] Production.INFO: 57 MB #Memory Used# [2025-03-05 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:25:06 [end_date_ymd] => 2025-03-05 11:25:06 [RateCDR] => 1 ) [2025-03-05 11:25: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-03-05 08:25:06' and `end` < '2025-03-05 11:25: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-03-05 11:25:18] Production.INFO: count ==3885 [2025-03-05 11:25:20] Production.ERROR: pbx CDR StartTime 2025-03-05 08:25:06 - End Time 2025-03-05 11:25:06 [2025-03-05 11:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612820', 'tblTempUsageDetail_20' ) start [2025-03-05 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612820', 'tblTempUsageDetail_20' ) end [2025-03-05 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612820', 'tblTempVendorCDR_20' ) start [2025-03-05 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612820', 'tblTempVendorCDR_20' ) end [2025-03-05 11:25:20] Production.INFO: ProcessCDR(1,14612820,1,1,2) [2025-03-05 11:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612820', 'tblTempUsageDetail_20' ) start [2025-03-05 11:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612820', 'tblTempUsageDetail_20' ) end [2025-03-05 11:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:25:25] Production.INFO: ==28889== Releasing lock... [2025-03-05 11:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:25:25] Production.INFO: 57.25 MB #Memory Used# [2025-03-05 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:26:05 [end_date_ymd] => 2025-03-05 11:26:05 [RateCDR] => 1 ) [2025-03-05 11: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-03-05 08:26:05' and `end` < '2025-03-05 11: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-03-05 11:26:18] Production.INFO: count ==3882 [2025-03-05 11:26:19] Production.ERROR: pbx CDR StartTime 2025-03-05 08:26:05 - End Time 2025-03-05 11:26:05 [2025-03-05 11:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612825', 'tblTempUsageDetail_20' ) start [2025-03-05 11:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612825', 'tblTempUsageDetail_20' ) end [2025-03-05 11:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612825', 'tblTempVendorCDR_20' ) start [2025-03-05 11:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612825', 'tblTempVendorCDR_20' ) end [2025-03-05 11:26:19] Production.INFO: ProcessCDR(1,14612825,1,1,2) [2025-03-05 11:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612825', 'tblTempUsageDetail_20' ) start [2025-03-05 11:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612825', 'tblTempUsageDetail_20' ) end [2025-03-05 11:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:26:24] Production.INFO: ==28962== Releasing lock... [2025-03-05 11:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:26:24] Production.INFO: 57 MB #Memory Used# [2025-03-05 11:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:27:05 [end_date_ymd] => 2025-03-05 11:27:05 [RateCDR] => 1 ) [2025-03-05 11: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-03-05 08:27:05' and `end` < '2025-03-05 11: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-03-05 11:27:19] Production.INFO: count ==3883 [2025-03-05 11:27:20] Production.ERROR: pbx CDR StartTime 2025-03-05 08:27:05 - End Time 2025-03-05 11:27:05 [2025-03-05 11:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612830', 'tblTempUsageDetail_20' ) start [2025-03-05 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612830', 'tblTempUsageDetail_20' ) end [2025-03-05 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612830', 'tblTempVendorCDR_20' ) start [2025-03-05 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612830', 'tblTempVendorCDR_20' ) end [2025-03-05 11:27:20] Production.INFO: ProcessCDR(1,14612830,1,1,2) [2025-03-05 11:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612830', 'tblTempUsageDetail_20' ) start [2025-03-05 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612830', 'tblTempUsageDetail_20' ) end [2025-03-05 11:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:27:25] Production.INFO: ==29039== Releasing lock... [2025-03-05 11:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:27:25] Production.INFO: 57 MB #Memory Used# [2025-03-05 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:28:05 [end_date_ymd] => 2025-03-05 11:28:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 08:28:05' and `end` < '2025-03-05 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-03-05 11:28:17] Production.INFO: count ==3901 [2025-03-05 11:28:19] Production.ERROR: pbx CDR StartTime 2025-03-05 08:28:05 - End Time 2025-03-05 11:28:05 [2025-03-05 11:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612835', 'tblTempUsageDetail_20' ) start [2025-03-05 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612835', 'tblTempUsageDetail_20' ) end [2025-03-05 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612835', 'tblTempVendorCDR_20' ) start [2025-03-05 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612835', 'tblTempVendorCDR_20' ) end [2025-03-05 11:28:19] Production.INFO: ProcessCDR(1,14612835,1,1,2) [2025-03-05 11:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612835', 'tblTempUsageDetail_20' ) start [2025-03-05 11:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612835', 'tblTempUsageDetail_20' ) end [2025-03-05 11:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:28:24] Production.INFO: ==29116== Releasing lock... [2025-03-05 11:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:28:24] Production.INFO: 57.75 MB #Memory Used# [2025-03-05 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:29:05 [end_date_ymd] => 2025-03-05 11:29:05 [RateCDR] => 1 ) [2025-03-05 11: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-03-05 08:29:05' and `end` < '2025-03-05 11: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-03-05 11:29:18] Production.INFO: count ==3912 [2025-03-05 11:29:20] Production.ERROR: pbx CDR StartTime 2025-03-05 08:29:05 - End Time 2025-03-05 11:29:05 [2025-03-05 11:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612840', 'tblTempUsageDetail_20' ) start [2025-03-05 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612840', 'tblTempUsageDetail_20' ) end [2025-03-05 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612840', 'tblTempVendorCDR_20' ) start [2025-03-05 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612840', 'tblTempVendorCDR_20' ) end [2025-03-05 11:29:20] Production.INFO: ProcessCDR(1,14612840,1,1,2) [2025-03-05 11:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612840', 'tblTempUsageDetail_20' ) start [2025-03-05 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612840', 'tblTempUsageDetail_20' ) end [2025-03-05 11:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:29:25] Production.INFO: ==29190== Releasing lock... [2025-03-05 11:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:29:25] Production.INFO: 57.25 MB #Memory Used# [2025-03-05 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:30:06 [end_date_ymd] => 2025-03-05 11:30:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 08:30:06' and `end` < '2025-03-05 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-03-05 11:30:19] Production.INFO: count ==3912 [2025-03-05 11:30:21] Production.ERROR: pbx CDR StartTime 2025-03-05 08:30:06 - End Time 2025-03-05 11:30:06 [2025-03-05 11:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612846', 'tblTempUsageDetail_20' ) start [2025-03-05 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612846', 'tblTempUsageDetail_20' ) end [2025-03-05 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612846', 'tblTempVendorCDR_20' ) start [2025-03-05 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612846', 'tblTempVendorCDR_20' ) end [2025-03-05 11:30:21] Production.INFO: ProcessCDR(1,14612846,1,1,2) [2025-03-05 11:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612846', 'tblTempUsageDetail_20' ) start [2025-03-05 11:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612846', 'tblTempUsageDetail_20' ) end [2025-03-05 11:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:30:26] Production.INFO: ==29267== Releasing lock... [2025-03-05 11:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:30:26] Production.INFO: 57.25 MB #Memory Used# [2025-03-05 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:31:05 [end_date_ymd] => 2025-03-05 11:31:05 [RateCDR] => 1 ) [2025-03-05 11: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-03-05 08:31:05' and `end` < '2025-03-05 11: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-03-05 11:31:18] Production.INFO: count ==3983 [2025-03-05 11:31:19] Production.ERROR: pbx CDR StartTime 2025-03-05 08:31:05 - End Time 2025-03-05 11:31:05 [2025-03-05 11:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612851', 'tblTempUsageDetail_20' ) start [2025-03-05 11:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612851', 'tblTempUsageDetail_20' ) end [2025-03-05 11:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612851', 'tblTempVendorCDR_20' ) start [2025-03-05 11:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612851', 'tblTempVendorCDR_20' ) end [2025-03-05 11:31:19] Production.INFO: ProcessCDR(1,14612851,1,1,2) [2025-03-05 11:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612851', 'tblTempUsageDetail_20' ) start [2025-03-05 11:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612851', 'tblTempUsageDetail_20' ) end [2025-03-05 11:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:31:25] Production.INFO: ==29342== Releasing lock... [2025-03-05 11:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:31:25] Production.INFO: 58 MB #Memory Used# [2025-03-05 11:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:32:04 [end_date_ymd] => 2025-03-05 11:32:04 [RateCDR] => 1 ) [2025-03-05 11: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-03-05 08:32:04' and `end` < '2025-03-05 11: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-03-05 11:32:17] Production.INFO: count ==3999 [2025-03-05 11:32:18] Production.ERROR: pbx CDR StartTime 2025-03-05 08:32:04 - End Time 2025-03-05 11:32:04 [2025-03-05 11:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612856', 'tblTempUsageDetail_20' ) start [2025-03-05 11:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612856', 'tblTempUsageDetail_20' ) end [2025-03-05 11:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612856', 'tblTempVendorCDR_20' ) start [2025-03-05 11:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612856', 'tblTempVendorCDR_20' ) end [2025-03-05 11:32:19] Production.INFO: ProcessCDR(1,14612856,1,1,2) [2025-03-05 11:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612856', 'tblTempUsageDetail_20' ) start [2025-03-05 11:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612856', 'tblTempUsageDetail_20' ) end [2025-03-05 11:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:32:24] Production.INFO: ==29437== Releasing lock... [2025-03-05 11:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:32:24] Production.INFO: 58 MB #Memory Used# [2025-03-05 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:33:05 [end_date_ymd] => 2025-03-05 11:33:05 [RateCDR] => 1 ) [2025-03-05 11: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-03-05 08:33:05' and `end` < '2025-03-05 11: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-03-05 11:33:17] Production.INFO: count ==3992 [2025-03-05 11:33:19] Production.ERROR: pbx CDR StartTime 2025-03-05 08:33:05 - End Time 2025-03-05 11:33:05 [2025-03-05 11:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612861', 'tblTempUsageDetail_20' ) start [2025-03-05 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612861', 'tblTempUsageDetail_20' ) end [2025-03-05 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612861', 'tblTempVendorCDR_20' ) start [2025-03-05 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612861', 'tblTempVendorCDR_20' ) end [2025-03-05 11:33:19] Production.INFO: ProcessCDR(1,14612861,1,1,2) [2025-03-05 11:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612861', 'tblTempUsageDetail_20' ) start [2025-03-05 11:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612861', 'tblTempUsageDetail_20' ) end [2025-03-05 11:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:33:24] Production.INFO: ==29511== Releasing lock... [2025-03-05 11:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:33:24] Production.INFO: 57.75 MB #Memory Used# [2025-03-05 11:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:34:06 [end_date_ymd] => 2025-03-05 11:34:06 [RateCDR] => 1 ) [2025-03-05 11: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-03-05 08:34:06' and `end` < '2025-03-05 11: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-03-05 11:34:18] Production.INFO: count ==4031 [2025-03-05 11:34:20] Production.ERROR: pbx CDR StartTime 2025-03-05 08:34:06 - End Time 2025-03-05 11:34:06 [2025-03-05 11:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612866', 'tblTempUsageDetail_20' ) start [2025-03-05 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612866', 'tblTempUsageDetail_20' ) end [2025-03-05 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612866', 'tblTempVendorCDR_20' ) start [2025-03-05 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612866', 'tblTempVendorCDR_20' ) end [2025-03-05 11:34:20] Production.INFO: ProcessCDR(1,14612866,1,1,2) [2025-03-05 11:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612866', 'tblTempUsageDetail_20' ) start [2025-03-05 11:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612866', 'tblTempUsageDetail_20' ) end [2025-03-05 11:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:34:25] Production.INFO: ==29584== Releasing lock... [2025-03-05 11:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:34:25] Production.INFO: 58 MB #Memory Used# [2025-03-05 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:35:05 [end_date_ymd] => 2025-03-05 11:35:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 08:35:05' and `end` < '2025-03-05 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-03-05 11:35:18] Production.INFO: count ==4047 [2025-03-05 11:35:20] Production.ERROR: pbx CDR StartTime 2025-03-05 08:35:05 - End Time 2025-03-05 11:35:05 [2025-03-05 11:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612871', 'tblTempUsageDetail_20' ) start [2025-03-05 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612871', 'tblTempUsageDetail_20' ) end [2025-03-05 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612871', 'tblTempVendorCDR_20' ) start [2025-03-05 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612871', 'tblTempVendorCDR_20' ) end [2025-03-05 11:35:20] Production.INFO: ProcessCDR(1,14612871,1,1,2) [2025-03-05 11:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612871', 'tblTempUsageDetail_20' ) start [2025-03-05 11:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612871', 'tblTempUsageDetail_20' ) end [2025-03-05 11:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:35:25] Production.INFO: ==29659== Releasing lock... [2025-03-05 11:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:35:25] Production.INFO: 58.5 MB #Memory Used# [2025-03-05 11:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:36:06 [end_date_ymd] => 2025-03-05 11:36:06 [RateCDR] => 1 ) [2025-03-05 11:36: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-03-05 08:36:06' and `end` < '2025-03-05 11:36: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-03-05 11:36:18] Production.INFO: count ==4058 [2025-03-05 11:36:20] Production.ERROR: pbx CDR StartTime 2025-03-05 08:36:06 - End Time 2025-03-05 11:36:06 [2025-03-05 11:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612876', 'tblTempUsageDetail_20' ) start [2025-03-05 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612876', 'tblTempUsageDetail_20' ) end [2025-03-05 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612876', 'tblTempVendorCDR_20' ) start [2025-03-05 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612876', 'tblTempVendorCDR_20' ) end [2025-03-05 11:36:20] Production.INFO: ProcessCDR(1,14612876,1,1,2) [2025-03-05 11:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612876', 'tblTempUsageDetail_20' ) start [2025-03-05 11:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612876', 'tblTempUsageDetail_20' ) end [2025-03-05 11:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:36:25] Production.INFO: ==29732== Releasing lock... [2025-03-05 11:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:36:25] Production.INFO: 58.25 MB #Memory Used# [2025-03-05 11:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:37:04 [end_date_ymd] => 2025-03-05 11:37:04 [RateCDR] => 1 ) [2025-03-05 11: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-03-05 08:37:04' and `end` < '2025-03-05 11: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-03-05 11:37:17] Production.INFO: count ==4068 [2025-03-05 11:37:19] Production.ERROR: pbx CDR StartTime 2025-03-05 08:37:04 - End Time 2025-03-05 11:37:04 [2025-03-05 11:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612881', 'tblTempUsageDetail_20' ) start [2025-03-05 11:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612881', 'tblTempUsageDetail_20' ) end [2025-03-05 11:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612881', 'tblTempVendorCDR_20' ) start [2025-03-05 11:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612881', 'tblTempVendorCDR_20' ) end [2025-03-05 11:37:19] Production.INFO: ProcessCDR(1,14612881,1,1,2) [2025-03-05 11:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612881', 'tblTempUsageDetail_20' ) start [2025-03-05 11:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612881', 'tblTempUsageDetail_20' ) end [2025-03-05 11:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:37:24] Production.INFO: ==29803== Releasing lock... [2025-03-05 11:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:37:24] Production.INFO: 58.5 MB #Memory Used# [2025-03-05 11:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:38:06 [end_date_ymd] => 2025-03-05 11:38:06 [RateCDR] => 1 ) [2025-03-05 11:38: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-03-05 08:38:06' and `end` < '2025-03-05 11:38: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-03-05 11:38:18] Production.INFO: count ==4087 [2025-03-05 11:38:20] Production.ERROR: pbx CDR StartTime 2025-03-05 08:38:06 - End Time 2025-03-05 11:38:06 [2025-03-05 11:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612886', 'tblTempUsageDetail_20' ) start [2025-03-05 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612886', 'tblTempUsageDetail_20' ) end [2025-03-05 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612886', 'tblTempVendorCDR_20' ) start [2025-03-05 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612886', 'tblTempVendorCDR_20' ) end [2025-03-05 11:38:20] Production.INFO: ProcessCDR(1,14612886,1,1,2) [2025-03-05 11:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612886', 'tblTempUsageDetail_20' ) start [2025-03-05 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612886', 'tblTempUsageDetail_20' ) end [2025-03-05 11:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:38:26] Production.INFO: ==29875== Releasing lock... [2025-03-05 11:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:38:26] Production.INFO: 58.5 MB #Memory Used# [2025-03-05 11:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:39:06 [end_date_ymd] => 2025-03-05 11:39:06 [RateCDR] => 1 ) [2025-03-05 11:39: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-03-05 08:39:06' and `end` < '2025-03-05 11:39: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-03-05 11:39:19] Production.INFO: count ==4083 [2025-03-05 11:39:21] Production.ERROR: pbx CDR StartTime 2025-03-05 08:39:06 - End Time 2025-03-05 11:39:06 [2025-03-05 11:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612891', 'tblTempUsageDetail_20' ) start [2025-03-05 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612891', 'tblTempUsageDetail_20' ) end [2025-03-05 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612891', 'tblTempVendorCDR_20' ) start [2025-03-05 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612891', 'tblTempVendorCDR_20' ) end [2025-03-05 11:39:21] Production.INFO: ProcessCDR(1,14612891,1,1,2) [2025-03-05 11:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612891', 'tblTempUsageDetail_20' ) start [2025-03-05 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612891', 'tblTempUsageDetail_20' ) end [2025-03-05 11:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:39:26] Production.INFO: ==29987== Releasing lock... [2025-03-05 11:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:39:26] Production.INFO: 58.75 MB #Memory Used# [2025-03-05 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:40:06 [end_date_ymd] => 2025-03-05 11:40:06 [RateCDR] => 1 ) [2025-03-05 11: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-03-05 08:40:06' and `end` < '2025-03-05 11: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-03-05 11:40:19] Production.INFO: count ==4095 [2025-03-05 11:40:21] Production.ERROR: pbx CDR StartTime 2025-03-05 08:40:06 - End Time 2025-03-05 11:40:06 [2025-03-05 11:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612897', 'tblTempUsageDetail_20' ) start [2025-03-05 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612897', 'tblTempUsageDetail_20' ) end [2025-03-05 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612897', 'tblTempVendorCDR_20' ) start [2025-03-05 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612897', 'tblTempVendorCDR_20' ) end [2025-03-05 11:40:21] Production.INFO: ProcessCDR(1,14612897,1,1,2) [2025-03-05 11:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612897', 'tblTempUsageDetail_20' ) start [2025-03-05 11:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612897', 'tblTempUsageDetail_20' ) end [2025-03-05 11:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:40:25] Production.INFO: ==30069== Releasing lock... [2025-03-05 11:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:40:25] Production.INFO: 58.5 MB #Memory Used# [2025-03-05 11:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:41:06 [end_date_ymd] => 2025-03-05 11:41:06 [RateCDR] => 1 ) [2025-03-05 11:41: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-03-05 08:41:06' and `end` < '2025-03-05 11:41: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-03-05 11:41:19] Production.INFO: count ==4143 [2025-03-05 11:41:21] Production.ERROR: pbx CDR StartTime 2025-03-05 08:41:06 - End Time 2025-03-05 11:41:06 [2025-03-05 11:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612902', 'tblTempUsageDetail_20' ) start [2025-03-05 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612902', 'tblTempUsageDetail_20' ) end [2025-03-05 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612902', 'tblTempVendorCDR_20' ) start [2025-03-05 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612902', 'tblTempVendorCDR_20' ) end [2025-03-05 11:41:21] Production.INFO: ProcessCDR(1,14612902,1,1,2) [2025-03-05 11:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612902', 'tblTempUsageDetail_20' ) start [2025-03-05 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612902', 'tblTempUsageDetail_20' ) end [2025-03-05 11:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:41:25] Production.INFO: ==30143== Releasing lock... [2025-03-05 11:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:41:25] Production.INFO: 59 MB #Memory Used# [2025-03-05 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:42:05 [end_date_ymd] => 2025-03-05 11:42:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 08:42:05' and `end` < '2025-03-05 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-03-05 11:42:18] Production.INFO: count ==4146 [2025-03-05 11:42:20] Production.ERROR: pbx CDR StartTime 2025-03-05 08:42:05 - End Time 2025-03-05 11:42:05 [2025-03-05 11:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612907', 'tblTempUsageDetail_20' ) start [2025-03-05 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612907', 'tblTempUsageDetail_20' ) end [2025-03-05 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612907', 'tblTempVendorCDR_20' ) start [2025-03-05 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612907', 'tblTempVendorCDR_20' ) end [2025-03-05 11:42:20] Production.INFO: ProcessCDR(1,14612907,1,1,2) [2025-03-05 11:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612907', 'tblTempUsageDetail_20' ) start [2025-03-05 11:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612907', 'tblTempUsageDetail_20' ) end [2025-03-05 11:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:42:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:42:25] Production.INFO: ==30229== Releasing lock... [2025-03-05 11:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:42:25] Production.INFO: 59 MB #Memory Used# [2025-03-05 11:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:43:06 [end_date_ymd] => 2025-03-05 11:43:06 [RateCDR] => 1 ) [2025-03-05 11: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-03-05 08:43:06' and `end` < '2025-03-05 11: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-03-05 11:43:19] Production.INFO: count ==4150 [2025-03-05 11:43:20] Production.ERROR: pbx CDR StartTime 2025-03-05 08:43:06 - End Time 2025-03-05 11:43:06 [2025-03-05 11:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612912', 'tblTempUsageDetail_20' ) start [2025-03-05 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612912', 'tblTempUsageDetail_20' ) end [2025-03-05 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612912', 'tblTempVendorCDR_20' ) start [2025-03-05 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612912', 'tblTempVendorCDR_20' ) end [2025-03-05 11:43:20] Production.INFO: ProcessCDR(1,14612912,1,1,2) [2025-03-05 11:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612912', 'tblTempUsageDetail_20' ) start [2025-03-05 11:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612912', 'tblTempUsageDetail_20' ) end [2025-03-05 11:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:43:25] Production.INFO: ==30335== Releasing lock... [2025-03-05 11:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:43:25] Production.INFO: 59 MB #Memory Used# [2025-03-05 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:44:05 [end_date_ymd] => 2025-03-05 11:44:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 08:44:05' and `end` < '2025-03-05 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-03-05 11:44:18] Production.INFO: count ==4167 [2025-03-05 11:44:20] Production.ERROR: pbx CDR StartTime 2025-03-05 08:44:05 - End Time 2025-03-05 11:44:05 [2025-03-05 11:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612917', 'tblTempUsageDetail_20' ) start [2025-03-05 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612917', 'tblTempUsageDetail_20' ) end [2025-03-05 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612917', 'tblTempVendorCDR_20' ) start [2025-03-05 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612917', 'tblTempVendorCDR_20' ) end [2025-03-05 11:44:20] Production.INFO: ProcessCDR(1,14612917,1,1,2) [2025-03-05 11:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612917', 'tblTempUsageDetail_20' ) start [2025-03-05 11:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612917', 'tblTempUsageDetail_20' ) end [2025-03-05 11:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:44:25] Production.INFO: ==30441== Releasing lock... [2025-03-05 11:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:44:25] Production.INFO: 59.25 MB #Memory Used# [2025-03-05 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:45:05 [end_date_ymd] => 2025-03-05 11:45:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 08:45:05' and `end` < '2025-03-05 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-03-05 11:45:18] Production.INFO: count ==4175 [2025-03-05 11:45:20] Production.ERROR: pbx CDR StartTime 2025-03-05 08:45:05 - End Time 2025-03-05 11:45:05 [2025-03-05 11:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612922', 'tblTempUsageDetail_20' ) start [2025-03-05 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612922', 'tblTempUsageDetail_20' ) end [2025-03-05 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612922', 'tblTempVendorCDR_20' ) start [2025-03-05 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612922', 'tblTempVendorCDR_20' ) end [2025-03-05 11:45:20] Production.INFO: ProcessCDR(1,14612922,1,1,2) [2025-03-05 11:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612922', 'tblTempUsageDetail_20' ) start [2025-03-05 11:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612922', 'tblTempUsageDetail_20' ) end [2025-03-05 11:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:45:25] Production.INFO: ==30547== Releasing lock... [2025-03-05 11:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:45:25] Production.INFO: 59.25 MB #Memory Used# [2025-03-05 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:46:05 [end_date_ymd] => 2025-03-05 11:46:05 [RateCDR] => 1 ) [2025-03-05 11: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-03-05 08:46:05' and `end` < '2025-03-05 11: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-03-05 11:46:18] Production.INFO: count ==4199 [2025-03-05 11:46:20] Production.ERROR: pbx CDR StartTime 2025-03-05 08:46:05 - End Time 2025-03-05 11:46:05 [2025-03-05 11:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612927', 'tblTempUsageDetail_20' ) start [2025-03-05 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612927', 'tblTempUsageDetail_20' ) end [2025-03-05 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612927', 'tblTempVendorCDR_20' ) start [2025-03-05 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612927', 'tblTempVendorCDR_20' ) end [2025-03-05 11:46:20] Production.INFO: ProcessCDR(1,14612927,1,1,2) [2025-03-05 11:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612927', 'tblTempUsageDetail_20' ) start [2025-03-05 11:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612927', 'tblTempUsageDetail_20' ) end [2025-03-05 11:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:46:25] Production.INFO: ==30647== Releasing lock... [2025-03-05 11:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:46:25] Production.INFO: 59.5 MB #Memory Used# [2025-03-05 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:47:05 [end_date_ymd] => 2025-03-05 11:47:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 08:47:05' and `end` < '2025-03-05 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-03-05 11:47:18] Production.INFO: count ==4209 [2025-03-05 11:47:20] Production.ERROR: pbx CDR StartTime 2025-03-05 08:47:05 - End Time 2025-03-05 11:47:05 [2025-03-05 11:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612932', 'tblTempUsageDetail_20' ) start [2025-03-05 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612932', 'tblTempUsageDetail_20' ) end [2025-03-05 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612932', 'tblTempVendorCDR_20' ) start [2025-03-05 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612932', 'tblTempVendorCDR_20' ) end [2025-03-05 11:47:20] Production.INFO: ProcessCDR(1,14612932,1,1,2) [2025-03-05 11:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612932', 'tblTempUsageDetail_20' ) start [2025-03-05 11:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612932', 'tblTempUsageDetail_20' ) end [2025-03-05 11:47:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:47:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:47:25] Production.INFO: ==30760== Releasing lock... [2025-03-05 11:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:47:25] Production.INFO: 59.5 MB #Memory Used# [2025-03-05 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:48:05 [end_date_ymd] => 2025-03-05 11:48:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 08:48:05' and `end` < '2025-03-05 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-03-05 11:48:18] Production.INFO: count ==4213 [2025-03-05 11:48:20] Production.ERROR: pbx CDR StartTime 2025-03-05 08:48:05 - End Time 2025-03-05 11:48:05 [2025-03-05 11:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612937', 'tblTempUsageDetail_20' ) start [2025-03-05 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612937', 'tblTempUsageDetail_20' ) end [2025-03-05 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612937', 'tblTempVendorCDR_20' ) start [2025-03-05 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612937', 'tblTempVendorCDR_20' ) end [2025-03-05 11:48:20] Production.INFO: ProcessCDR(1,14612937,1,1,2) [2025-03-05 11:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612937', 'tblTempUsageDetail_20' ) start [2025-03-05 11:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612937', 'tblTempUsageDetail_20' ) end [2025-03-05 11:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:48:25] Production.INFO: ==30862== Releasing lock... [2025-03-05 11:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:48:25] Production.INFO: 59.5 MB #Memory Used# [2025-03-05 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:49:05 [end_date_ymd] => 2025-03-05 11:49:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 08:49:05' and `end` < '2025-03-05 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-03-05 11:49:18] Production.INFO: count ==4205 [2025-03-05 11:49:20] Production.ERROR: pbx CDR StartTime 2025-03-05 08:49:05 - End Time 2025-03-05 11:49:05 [2025-03-05 11:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612942', 'tblTempUsageDetail_20' ) start [2025-03-05 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612942', 'tblTempUsageDetail_20' ) end [2025-03-05 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612942', 'tblTempVendorCDR_20' ) start [2025-03-05 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612942', 'tblTempVendorCDR_20' ) end [2025-03-05 11:49:20] Production.INFO: ProcessCDR(1,14612942,1,1,2) [2025-03-05 11:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612942', 'tblTempUsageDetail_20' ) start [2025-03-05 11:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612942', 'tblTempUsageDetail_20' ) end [2025-03-05 11:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:49:25] Production.INFO: ==30969== Releasing lock... [2025-03-05 11:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:49:25] Production.INFO: 59.5 MB #Memory Used# [2025-03-05 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:50:06 [end_date_ymd] => 2025-03-05 11:50:06 [RateCDR] => 1 ) [2025-03-05 11: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-03-05 08:50:06' and `end` < '2025-03-05 11: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-03-05 11:50:19] Production.INFO: count ==4232 [2025-03-05 11:50:21] Production.ERROR: pbx CDR StartTime 2025-03-05 08:50:06 - End Time 2025-03-05 11:50:06 [2025-03-05 11:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612947', 'tblTempUsageDetail_20' ) start [2025-03-05 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612947', 'tblTempUsageDetail_20' ) end [2025-03-05 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612947', 'tblTempVendorCDR_20' ) start [2025-03-05 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612947', 'tblTempVendorCDR_20' ) end [2025-03-05 11:50:21] Production.INFO: ProcessCDR(1,14612947,1,1,2) [2025-03-05 11:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612947', 'tblTempUsageDetail_20' ) start [2025-03-05 11:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612947', 'tblTempUsageDetail_20' ) end [2025-03-05 11:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:50:26] Production.INFO: ==31076== Releasing lock... [2025-03-05 11:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:50:26] Production.INFO: 59.75 MB #Memory Used# [2025-03-05 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:51:05 [end_date_ymd] => 2025-03-05 11:51:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 08:51:05' and `end` < '2025-03-05 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-03-05 11:51:18] Production.INFO: count ==4305 [2025-03-05 11:51:20] Production.ERROR: pbx CDR StartTime 2025-03-05 08:51:05 - End Time 2025-03-05 11:51:05 [2025-03-05 11:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612953', 'tblTempUsageDetail_20' ) start [2025-03-05 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612953', 'tblTempUsageDetail_20' ) end [2025-03-05 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612953', 'tblTempVendorCDR_20' ) start [2025-03-05 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612953', 'tblTempVendorCDR_20' ) end [2025-03-05 11:51:20] Production.INFO: ProcessCDR(1,14612953,1,1,2) [2025-03-05 11:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612953', 'tblTempUsageDetail_20' ) start [2025-03-05 11:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612953', 'tblTempUsageDetail_20' ) end [2025-03-05 11:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:51:24] Production.INFO: ==31179== Releasing lock... [2025-03-05 11:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:51:24] Production.INFO: 60.25 MB #Memory Used# [2025-03-05 11:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:52:06 [end_date_ymd] => 2025-03-05 11:52:06 [RateCDR] => 1 ) [2025-03-05 11: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-03-05 08:52:06' and `end` < '2025-03-05 11: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-03-05 11:52:19] Production.INFO: count ==4310 [2025-03-05 11:52:21] Production.ERROR: pbx CDR StartTime 2025-03-05 08:52:06 - End Time 2025-03-05 11:52:06 [2025-03-05 11:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612958', 'tblTempUsageDetail_20' ) start [2025-03-05 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612958', 'tblTempUsageDetail_20' ) end [2025-03-05 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612958', 'tblTempVendorCDR_20' ) start [2025-03-05 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612958', 'tblTempVendorCDR_20' ) end [2025-03-05 11:52:21] Production.INFO: ProcessCDR(1,14612958,1,1,2) [2025-03-05 11:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612958', 'tblTempUsageDetail_20' ) start [2025-03-05 11:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612958', 'tblTempUsageDetail_20' ) end [2025-03-05 11:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:52:26] Production.INFO: ==31285== Releasing lock... [2025-03-05 11:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:52:26] Production.INFO: 60.25 MB #Memory Used# [2025-03-05 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:53:05 [end_date_ymd] => 2025-03-05 11:53:05 [RateCDR] => 1 ) [2025-03-05 11: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-03-05 08:53:05' and `end` < '2025-03-05 11: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-03-05 11:53:18] Production.INFO: count ==4329 [2025-03-05 11:53:19] Production.ERROR: pbx CDR StartTime 2025-03-05 08:53:05 - End Time 2025-03-05 11:53:05 [2025-03-05 11:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612963', 'tblTempUsageDetail_20' ) start [2025-03-05 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612963', 'tblTempUsageDetail_20' ) end [2025-03-05 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612963', 'tblTempVendorCDR_20' ) start [2025-03-05 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612963', 'tblTempVendorCDR_20' ) end [2025-03-05 11:53:20] Production.INFO: ProcessCDR(1,14612963,1,1,2) [2025-03-05 11:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612963', 'tblTempUsageDetail_20' ) start [2025-03-05 11:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612963', 'tblTempUsageDetail_20' ) end [2025-03-05 11:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:53:25] Production.INFO: ==31411== Releasing lock... [2025-03-05 11:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:53:25] Production.INFO: 60.5 MB #Memory Used# [2025-03-05 11:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:54:06 [end_date_ymd] => 2025-03-05 11:54:06 [RateCDR] => 1 ) [2025-03-05 11:54: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-03-05 08:54:06' and `end` < '2025-03-05 11:54: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-03-05 11:54:18] Production.INFO: count ==4323 [2025-03-05 11:54:20] Production.ERROR: pbx CDR StartTime 2025-03-05 08:54:06 - End Time 2025-03-05 11:54:06 [2025-03-05 11:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612968', 'tblTempUsageDetail_20' ) start [2025-03-05 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612968', 'tblTempUsageDetail_20' ) end [2025-03-05 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612968', 'tblTempVendorCDR_20' ) start [2025-03-05 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612968', 'tblTempVendorCDR_20' ) end [2025-03-05 11:54:20] Production.INFO: ProcessCDR(1,14612968,1,1,2) [2025-03-05 11:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612968', 'tblTempUsageDetail_20' ) start [2025-03-05 11:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612968', 'tblTempUsageDetail_20' ) end [2025-03-05 11:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:54:25] Production.INFO: ==31591== Releasing lock... [2025-03-05 11:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:54:25] Production.INFO: 60.25 MB #Memory Used# [2025-03-05 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:55:05 [end_date_ymd] => 2025-03-05 11:55:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 08:55:05' and `end` < '2025-03-05 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-03-05 11:55:18] Production.INFO: count ==4330 [2025-03-05 11:55:20] Production.ERROR: pbx CDR StartTime 2025-03-05 08:55:05 - End Time 2025-03-05 11:55:05 [2025-03-05 11:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612973', 'tblTempUsageDetail_20' ) start [2025-03-05 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612973', 'tblTempUsageDetail_20' ) end [2025-03-05 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612973', 'tblTempVendorCDR_20' ) start [2025-03-05 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612973', 'tblTempVendorCDR_20' ) end [2025-03-05 11:55:20] Production.INFO: ProcessCDR(1,14612973,1,1,2) [2025-03-05 11:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612973', 'tblTempUsageDetail_20' ) start [2025-03-05 11:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612973', 'tblTempUsageDetail_20' ) end [2025-03-05 11:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:55:25] Production.INFO: ==31722== Releasing lock... [2025-03-05 11:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:55:25] Production.INFO: 60.5 MB #Memory Used# [2025-03-05 11:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:56:06 [end_date_ymd] => 2025-03-05 11:56:06 [RateCDR] => 1 ) [2025-03-05 11: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-03-05 08:56:06' and `end` < '2025-03-05 11: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-03-05 11:56:18] Production.INFO: count ==4349 [2025-03-05 11:56:20] Production.ERROR: pbx CDR StartTime 2025-03-05 08:56:06 - End Time 2025-03-05 11:56:06 [2025-03-05 11:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612978', 'tblTempUsageDetail_20' ) start [2025-03-05 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612978', 'tblTempUsageDetail_20' ) end [2025-03-05 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612978', 'tblTempVendorCDR_20' ) start [2025-03-05 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612978', 'tblTempVendorCDR_20' ) end [2025-03-05 11:56:20] Production.INFO: ProcessCDR(1,14612978,1,1,2) [2025-03-05 11:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612978', 'tblTempUsageDetail_20' ) start [2025-03-05 11:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612978', 'tblTempUsageDetail_20' ) end [2025-03-05 11:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:56:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:56:25] Production.INFO: ==31832== Releasing lock... [2025-03-05 11:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:56:25] Production.INFO: 60.5 MB #Memory Used# [2025-03-05 11:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:57:06 [end_date_ymd] => 2025-03-05 11:57:06 [RateCDR] => 1 ) [2025-03-05 11:57: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-03-05 08:57:06' and `end` < '2025-03-05 11:57: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-03-05 11:57:19] Production.INFO: count ==4357 [2025-03-05 11:57:21] Production.ERROR: pbx CDR StartTime 2025-03-05 08:57:06 - End Time 2025-03-05 11:57:06 [2025-03-05 11:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612983', 'tblTempUsageDetail_20' ) start [2025-03-05 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612983', 'tblTempUsageDetail_20' ) end [2025-03-05 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612983', 'tblTempVendorCDR_20' ) start [2025-03-05 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612983', 'tblTempVendorCDR_20' ) end [2025-03-05 11:57:21] Production.INFO: ProcessCDR(1,14612983,1,1,2) [2025-03-05 11:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612983', 'tblTempUsageDetail_20' ) start [2025-03-05 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612983', 'tblTempUsageDetail_20' ) end [2025-03-05 11:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:57:26] Production.INFO: ==31937== Releasing lock... [2025-03-05 11:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:57:26] Production.INFO: 60.5 MB #Memory Used# [2025-03-05 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:58:05 [end_date_ymd] => 2025-03-05 11:58:05 [RateCDR] => 1 ) [2025-03-05 11: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-03-05 08:58:05' and `end` < '2025-03-05 11: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-03-05 11:58:18] Production.INFO: count ==4356 [2025-03-05 11:58:20] Production.ERROR: pbx CDR StartTime 2025-03-05 08:58:05 - End Time 2025-03-05 11:58:05 [2025-03-05 11:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612988', 'tblTempUsageDetail_20' ) start [2025-03-05 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612988', 'tblTempUsageDetail_20' ) end [2025-03-05 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612988', 'tblTempVendorCDR_20' ) start [2025-03-05 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612988', 'tblTempVendorCDR_20' ) end [2025-03-05 11:58:20] Production.INFO: ProcessCDR(1,14612988,1,1,2) [2025-03-05 11:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612988', 'tblTempUsageDetail_20' ) start [2025-03-05 11:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612988', 'tblTempUsageDetail_20' ) end [2025-03-05 11:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:58:23] Production.INFO: ==32023== Releasing lock... [2025-03-05 11:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:58:23] Production.INFO: 60.5 MB #Memory Used# [2025-03-05 11:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 08:59:06 [end_date_ymd] => 2025-03-05 11:59:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 08:59:06' and `end` < '2025-03-05 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-03-05 11:59:19] Production.INFO: count ==4371 [2025-03-05 11:59:20] Production.ERROR: pbx CDR StartTime 2025-03-05 08:59:06 - End Time 2025-03-05 11:59:06 [2025-03-05 11:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612993', 'tblTempUsageDetail_20' ) start [2025-03-05 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612993', 'tblTempUsageDetail_20' ) end [2025-03-05 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612993', 'tblTempVendorCDR_20' ) start [2025-03-05 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612993', 'tblTempVendorCDR_20' ) end [2025-03-05 11:59:21] Production.INFO: ProcessCDR(1,14612993,1,1,2) [2025-03-05 11:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 11:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 11:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612993', 'tblTempUsageDetail_20' ) start [2025-03-05 11:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612993', 'tblTempUsageDetail_20' ) end [2025-03-05 11:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 11:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 11:59:26] Production.INFO: ==32099== Releasing lock... [2025-03-05 11:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 11:59:26] Production.INFO: 60.75 MB #Memory Used# [2025-03-05 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:00:06 [end_date_ymd] => 2025-03-05 12:00:06 [RateCDR] => 1 ) [2025-03-05 12: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-03-05 09:00:06' and `end` < '2025-03-05 12: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-03-05 12:00:19] Production.INFO: count ==4404 [2025-03-05 12:00:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:00:06 - End Time 2025-03-05 12:00:06 [2025-03-05 12:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612999', 'tblTempUsageDetail_20' ) start [2025-03-05 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14612999', 'tblTempUsageDetail_20' ) end [2025-03-05 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612999', 'tblTempVendorCDR_20' ) start [2025-03-05 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14612999', 'tblTempVendorCDR_20' ) end [2025-03-05 12:00:20] Production.INFO: ProcessCDR(1,14612999,1,1,2) [2025-03-05 12:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14612999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14612999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14612999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14612999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612999', 'tblTempUsageDetail_20' ) start [2025-03-05 12:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14612999', 'tblTempUsageDetail_20' ) end [2025-03-05 12:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:00:25] Production.INFO: ==32176== Releasing lock... [2025-03-05 12:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:00:25] Production.INFO: 61 MB #Memory Used# [2025-03-05 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:01:05 [end_date_ymd] => 2025-03-05 12:01:05 [RateCDR] => 1 ) [2025-03-05 12: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-03-05 09:01:05' and `end` < '2025-03-05 12: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-03-05 12:01:18] Production.INFO: count ==4459 [2025-03-05 12:01:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:01:05 - End Time 2025-03-05 12:01:05 [2025-03-05 12:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613004', 'tblTempUsageDetail_20' ) start [2025-03-05 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613004', 'tblTempUsageDetail_20' ) end [2025-03-05 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613004', 'tblTempVendorCDR_20' ) start [2025-03-05 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613004', 'tblTempVendorCDR_20' ) end [2025-03-05 12:01:20] Production.INFO: ProcessCDR(1,14613004,1,1,2) [2025-03-05 12:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613004', 'tblTempUsageDetail_20' ) start [2025-03-05 12:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613004', 'tblTempUsageDetail_20' ) end [2025-03-05 12:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:01:25] Production.INFO: ==32268== Releasing lock... [2025-03-05 12:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:01:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-05 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:02:05 [end_date_ymd] => 2025-03-05 12:02:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 09:02:05' and `end` < '2025-03-05 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-03-05 12:02:18] Production.INFO: count ==4473 [2025-03-05 12:02:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:02:05 - End Time 2025-03-05 12:02:05 [2025-03-05 12:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613009', 'tblTempUsageDetail_20' ) start [2025-03-05 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613009', 'tblTempUsageDetail_20' ) end [2025-03-05 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613009', 'tblTempVendorCDR_20' ) start [2025-03-05 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613009', 'tblTempVendorCDR_20' ) end [2025-03-05 12:02:20] Production.INFO: ProcessCDR(1,14613009,1,1,2) [2025-03-05 12:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613009', 'tblTempUsageDetail_20' ) start [2025-03-05 12:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613009', 'tblTempUsageDetail_20' ) end [2025-03-05 12:02:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:02:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:02:25] Production.INFO: ==32338== Releasing lock... [2025-03-05 12:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:02:25] Production.INFO: 61.5 MB #Memory Used# [2025-03-05 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:03:05 [end_date_ymd] => 2025-03-05 12:03:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 09:03:05' and `end` < '2025-03-05 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-03-05 12:03:18] Production.INFO: count ==4465 [2025-03-05 12:03:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:03:05 - End Time 2025-03-05 12:03:05 [2025-03-05 12:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613014', 'tblTempUsageDetail_20' ) start [2025-03-05 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613014', 'tblTempUsageDetail_20' ) end [2025-03-05 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613014', 'tblTempVendorCDR_20' ) start [2025-03-05 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613014', 'tblTempVendorCDR_20' ) end [2025-03-05 12:03:20] Production.INFO: ProcessCDR(1,14613014,1,1,2) [2025-03-05 12:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613014', 'tblTempUsageDetail_20' ) start [2025-03-05 12:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613014', 'tblTempUsageDetail_20' ) end [2025-03-05 12:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:03:23] Production.INFO: ==32412== Releasing lock... [2025-03-05 12:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:03:23] Production.INFO: 61.5 MB #Memory Used# [2025-03-05 12:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:04:06 [end_date_ymd] => 2025-03-05 12:04:06 [RateCDR] => 1 ) [2025-03-05 12:04: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-03-05 09:04:06' and `end` < '2025-03-05 12:04: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-03-05 12:04:19] Production.INFO: count ==4463 [2025-03-05 12:04:21] Production.ERROR: pbx CDR StartTime 2025-03-05 09:04:06 - End Time 2025-03-05 12:04:06 [2025-03-05 12:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613019', 'tblTempUsageDetail_20' ) start [2025-03-05 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613019', 'tblTempUsageDetail_20' ) end [2025-03-05 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613019', 'tblTempVendorCDR_20' ) start [2025-03-05 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613019', 'tblTempVendorCDR_20' ) end [2025-03-05 12:04:21] Production.INFO: ProcessCDR(1,14613019,1,1,2) [2025-03-05 12:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613019', 'tblTempUsageDetail_20' ) start [2025-03-05 12:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613019', 'tblTempUsageDetail_20' ) end [2025-03-05 12:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:04:26] Production.INFO: ==32484== Releasing lock... [2025-03-05 12:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:04:26] Production.INFO: 61.5 MB #Memory Used# [2025-03-05 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:05:05 [end_date_ymd] => 2025-03-05 12:05:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 09:05:05' and `end` < '2025-03-05 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-03-05 12:05:18] Production.INFO: count ==4440 [2025-03-05 12:05:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:05:05 - End Time 2025-03-05 12:05:05 [2025-03-05 12:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613024', 'tblTempUsageDetail_20' ) start [2025-03-05 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613024', 'tblTempUsageDetail_20' ) end [2025-03-05 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613024', 'tblTempVendorCDR_20' ) start [2025-03-05 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613024', 'tblTempVendorCDR_20' ) end [2025-03-05 12:05:20] Production.INFO: ProcessCDR(1,14613024,1,1,2) [2025-03-05 12:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613024', 'tblTempUsageDetail_20' ) start [2025-03-05 12:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613024', 'tblTempUsageDetail_20' ) end [2025-03-05 12:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:05:25] Production.INFO: ==32556== Releasing lock... [2025-03-05 12:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:05:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-05 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:06:06 [end_date_ymd] => 2025-03-05 12:06:06 [RateCDR] => 1 ) [2025-03-05 12:06: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-03-05 09:06:06' and `end` < '2025-03-05 12:06: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-03-05 12:06:19] Production.INFO: count ==4413 [2025-03-05 12:06:21] Production.ERROR: pbx CDR StartTime 2025-03-05 09:06:06 - End Time 2025-03-05 12:06:06 [2025-03-05 12:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613029', 'tblTempUsageDetail_20' ) start [2025-03-05 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613029', 'tblTempUsageDetail_20' ) end [2025-03-05 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613029', 'tblTempVendorCDR_20' ) start [2025-03-05 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613029', 'tblTempVendorCDR_20' ) end [2025-03-05 12:06:21] Production.INFO: ProcessCDR(1,14613029,1,1,2) [2025-03-05 12:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613029', 'tblTempUsageDetail_20' ) start [2025-03-05 12:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613029', 'tblTempUsageDetail_20' ) end [2025-03-05 12:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:06:26] Production.INFO: ==32629== Releasing lock... [2025-03-05 12:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:06:26] Production.INFO: 61 MB #Memory Used# [2025-03-05 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:07:05 [end_date_ymd] => 2025-03-05 12:07:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 09:07:05' and `end` < '2025-03-05 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-03-05 12:07:19] Production.INFO: count ==4418 [2025-03-05 12:07:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:07:05 - End Time 2025-03-05 12:07:05 [2025-03-05 12:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613034', 'tblTempUsageDetail_20' ) start [2025-03-05 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613034', 'tblTempUsageDetail_20' ) end [2025-03-05 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613034', 'tblTempVendorCDR_20' ) start [2025-03-05 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613034', 'tblTempVendorCDR_20' ) end [2025-03-05 12:07:21] Production.INFO: ProcessCDR(1,14613034,1,1,2) [2025-03-05 12:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613034', 'tblTempUsageDetail_20' ) start [2025-03-05 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613034', 'tblTempUsageDetail_20' ) end [2025-03-05 12:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:07:26] Production.INFO: ==32707== Releasing lock... [2025-03-05 12:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:07:26] Production.INFO: 61 MB #Memory Used# [2025-03-05 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:08:06 [end_date_ymd] => 2025-03-05 12:08:06 [RateCDR] => 1 ) [2025-03-05 12:08: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-03-05 09:08:06' and `end` < '2025-03-05 12:08: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-03-05 12:08:19] Production.INFO: count ==4390 [2025-03-05 12:08:21] Production.ERROR: pbx CDR StartTime 2025-03-05 09:08:06 - End Time 2025-03-05 12:08:06 [2025-03-05 12:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613039', 'tblTempUsageDetail_20' ) start [2025-03-05 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613039', 'tblTempUsageDetail_20' ) end [2025-03-05 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613039', 'tblTempVendorCDR_20' ) start [2025-03-05 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613039', 'tblTempVendorCDR_20' ) end [2025-03-05 12:08:21] Production.INFO: ProcessCDR(1,14613039,1,1,2) [2025-03-05 12:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613039', 'tblTempUsageDetail_20' ) start [2025-03-05 12:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613039', 'tblTempUsageDetail_20' ) end [2025-03-05 12:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:08:26] Production.INFO: ==324== Releasing lock... [2025-03-05 12:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:08:26] Production.INFO: 60.75 MB #Memory Used# [2025-03-05 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:09:05 [end_date_ymd] => 2025-03-05 12:09:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 09:09:05' and `end` < '2025-03-05 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-03-05 12:09:18] Production.INFO: count ==4400 [2025-03-05 12:09:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:09:05 - End Time 2025-03-05 12:09:05 [2025-03-05 12:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613044', 'tblTempUsageDetail_20' ) start [2025-03-05 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613044', 'tblTempUsageDetail_20' ) end [2025-03-05 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613044', 'tblTempVendorCDR_20' ) start [2025-03-05 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613044', 'tblTempVendorCDR_20' ) end [2025-03-05 12:09:20] Production.INFO: ProcessCDR(1,14613044,1,1,2) [2025-03-05 12:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613044', 'tblTempUsageDetail_20' ) start [2025-03-05 12:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613044', 'tblTempUsageDetail_20' ) end [2025-03-05 12:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:09:25] Production.INFO: ==408== Releasing lock... [2025-03-05 12:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:09:25] Production.INFO: 61 MB #Memory Used# [2025-03-05 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:10:06 [end_date_ymd] => 2025-03-05 12:10:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 09:10:06' and `end` < '2025-03-05 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-03-05 12:10:19] Production.INFO: count ==4400 [2025-03-05 12:10:21] Production.ERROR: pbx CDR StartTime 2025-03-05 09:10:06 - End Time 2025-03-05 12:10:06 [2025-03-05 12:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613050', 'tblTempUsageDetail_20' ) start [2025-03-05 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613050', 'tblTempUsageDetail_20' ) end [2025-03-05 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613050', 'tblTempVendorCDR_20' ) start [2025-03-05 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613050', 'tblTempVendorCDR_20' ) end [2025-03-05 12:10:21] Production.INFO: ProcessCDR(1,14613050,1,1,2) [2025-03-05 12:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613050', 'tblTempUsageDetail_20' ) start [2025-03-05 12:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613050', 'tblTempUsageDetail_20' ) end [2025-03-05 12:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:10:26] Production.INFO: ==528== Releasing lock... [2025-03-05 12:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:10:26] Production.INFO: 61 MB #Memory Used# [2025-03-05 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:11:05 [end_date_ymd] => 2025-03-05 12:11:05 [RateCDR] => 1 ) [2025-03-05 12: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-03-05 09:11:05' and `end` < '2025-03-05 12: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-03-05 12:11:18] Production.INFO: count ==4424 [2025-03-05 12:11:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:11:05 - End Time 2025-03-05 12:11:05 [2025-03-05 12:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613055', 'tblTempUsageDetail_20' ) start [2025-03-05 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613055', 'tblTempUsageDetail_20' ) end [2025-03-05 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613055', 'tblTempVendorCDR_20' ) start [2025-03-05 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613055', 'tblTempVendorCDR_20' ) end [2025-03-05 12:11:20] Production.INFO: ProcessCDR(1,14613055,1,1,2) [2025-03-05 12:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613055', 'tblTempUsageDetail_20' ) start [2025-03-05 12:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613055', 'tblTempUsageDetail_20' ) end [2025-03-05 12:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:11:25] Production.INFO: ==608== Releasing lock... [2025-03-05 12:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:11:25] Production.INFO: 61 MB #Memory Used# [2025-03-05 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:12:05 [end_date_ymd] => 2025-03-05 12:12:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 09:12:05' and `end` < '2025-03-05 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-03-05 12:12:18] Production.INFO: count ==4429 [2025-03-05 12:12:19] Production.ERROR: pbx CDR StartTime 2025-03-05 09:12:05 - End Time 2025-03-05 12:12:05 [2025-03-05 12:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613060', 'tblTempUsageDetail_20' ) start [2025-03-05 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613060', 'tblTempUsageDetail_20' ) end [2025-03-05 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613060', 'tblTempVendorCDR_20' ) start [2025-03-05 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613060', 'tblTempVendorCDR_20' ) end [2025-03-05 12:12:20] Production.INFO: ProcessCDR(1,14613060,1,1,2) [2025-03-05 12:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613060', 'tblTempUsageDetail_20' ) start [2025-03-05 12:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613060', 'tblTempUsageDetail_20' ) end [2025-03-05 12:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:12:25] Production.INFO: ==709== Releasing lock... [2025-03-05 12:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:12:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-05 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:13:05 [end_date_ymd] => 2025-03-05 12:13:05 [RateCDR] => 1 ) [2025-03-05 12: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-03-05 09:13:05' and `end` < '2025-03-05 12: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-03-05 12:13:18] Production.INFO: count ==4430 [2025-03-05 12:13:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:13:05 - End Time 2025-03-05 12:13:05 [2025-03-05 12:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613065', 'tblTempUsageDetail_20' ) start [2025-03-05 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613065', 'tblTempUsageDetail_20' ) end [2025-03-05 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613065', 'tblTempVendorCDR_20' ) start [2025-03-05 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613065', 'tblTempVendorCDR_20' ) end [2025-03-05 12:13:20] Production.INFO: ProcessCDR(1,14613065,1,1,2) [2025-03-05 12:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613065', 'tblTempUsageDetail_20' ) start [2025-03-05 12:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613065', 'tblTempUsageDetail_20' ) end [2025-03-05 12:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:13:25] Production.INFO: ==786== Releasing lock... [2025-03-05 12:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:13:25] Production.INFO: 61.5 MB #Memory Used# [2025-03-05 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:14:05 [end_date_ymd] => 2025-03-05 12:14:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 09:14:05' and `end` < '2025-03-05 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-03-05 12:14:18] Production.INFO: count ==4446 [2025-03-05 12:14:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:14:05 - End Time 2025-03-05 12:14:05 [2025-03-05 12:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613070', 'tblTempUsageDetail_20' ) start [2025-03-05 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613070', 'tblTempUsageDetail_20' ) end [2025-03-05 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613070', 'tblTempVendorCDR_20' ) start [2025-03-05 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613070', 'tblTempVendorCDR_20' ) end [2025-03-05 12:14:20] Production.INFO: ProcessCDR(1,14613070,1,1,2) [2025-03-05 12:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613070', 'tblTempUsageDetail_20' ) start [2025-03-05 12:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613070', 'tblTempUsageDetail_20' ) end [2025-03-05 12:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:14:25] Production.INFO: ==863== Releasing lock... [2025-03-05 12:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:14:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-05 12:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:15:06 [end_date_ymd] => 2025-03-05 12:15:06 [RateCDR] => 1 ) [2025-03-05 12: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-03-05 09:15:06' and `end` < '2025-03-05 12: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-03-05 12:15:19] Production.INFO: count ==4442 [2025-03-05 12:15:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:15:06 - End Time 2025-03-05 12:15:06 [2025-03-05 12:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613075', 'tblTempUsageDetail_20' ) start [2025-03-05 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613075', 'tblTempUsageDetail_20' ) end [2025-03-05 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613075', 'tblTempVendorCDR_20' ) start [2025-03-05 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613075', 'tblTempVendorCDR_20' ) end [2025-03-05 12:15:20] Production.INFO: ProcessCDR(1,14613075,1,1,2) [2025-03-05 12:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613075', 'tblTempUsageDetail_20' ) start [2025-03-05 12:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613075', 'tblTempUsageDetail_20' ) end [2025-03-05 12:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:15:25] Production.INFO: ==947== Releasing lock... [2025-03-05 12:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:15:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-05 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:16:05 [end_date_ymd] => 2025-03-05 12:16:05 [RateCDR] => 1 ) [2025-03-05 12: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-03-05 09:16:05' and `end` < '2025-03-05 12: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-03-05 12:16:18] Production.INFO: count ==4442 [2025-03-05 12:16:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:16:05 - End Time 2025-03-05 12:16:05 [2025-03-05 12:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613080', 'tblTempUsageDetail_20' ) start [2025-03-05 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613080', 'tblTempUsageDetail_20' ) end [2025-03-05 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613080', 'tblTempVendorCDR_20' ) start [2025-03-05 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613080', 'tblTempVendorCDR_20' ) end [2025-03-05 12:16:20] Production.INFO: ProcessCDR(1,14613080,1,1,2) [2025-03-05 12:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613080', 'tblTempUsageDetail_20' ) start [2025-03-05 12:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613080', 'tblTempUsageDetail_20' ) end [2025-03-05 12:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:16:24] Production.INFO: ==1024== Releasing lock... [2025-03-05 12:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:16:24] Production.INFO: 61.25 MB #Memory Used# [2025-03-05 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:17:05 [end_date_ymd] => 2025-03-05 12:17:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 09:17:05' and `end` < '2025-03-05 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-03-05 12:17:18] Production.INFO: count ==4468 [2025-03-05 12:17:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:17:05 - End Time 2025-03-05 12:17:05 [2025-03-05 12:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613085', 'tblTempUsageDetail_20' ) start [2025-03-05 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613085', 'tblTempUsageDetail_20' ) end [2025-03-05 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613085', 'tblTempVendorCDR_20' ) start [2025-03-05 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613085', 'tblTempVendorCDR_20' ) end [2025-03-05 12:17:20] Production.INFO: ProcessCDR(1,14613085,1,1,2) [2025-03-05 12:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613085', 'tblTempUsageDetail_20' ) start [2025-03-05 12:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613085', 'tblTempUsageDetail_20' ) end [2025-03-05 12:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:17:25] Production.INFO: ==1102== Releasing lock... [2025-03-05 12:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:17:25] Production.INFO: 61.5 MB #Memory Used# [2025-03-05 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:18:05 [end_date_ymd] => 2025-03-05 12:18:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 09:18:05' and `end` < '2025-03-05 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-03-05 12:18:18] Production.INFO: count ==4468 [2025-03-05 12:18:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:18:05 - End Time 2025-03-05 12:18:05 [2025-03-05 12:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613090', 'tblTempUsageDetail_20' ) start [2025-03-05 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613090', 'tblTempUsageDetail_20' ) end [2025-03-05 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613090', 'tblTempVendorCDR_20' ) start [2025-03-05 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613090', 'tblTempVendorCDR_20' ) end [2025-03-05 12:18:20] Production.INFO: ProcessCDR(1,14613090,1,1,2) [2025-03-05 12:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613090', 'tblTempUsageDetail_20' ) start [2025-03-05 12:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613090', 'tblTempUsageDetail_20' ) end [2025-03-05 12:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:18:25] Production.INFO: ==1205== Releasing lock... [2025-03-05 12:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:18:25] Production.INFO: 61.5 MB #Memory Used# [2025-03-05 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:19:05 [end_date_ymd] => 2025-03-05 12:19:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 09:19:05' and `end` < '2025-03-05 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-03-05 12:19:18] Production.INFO: count ==4484 [2025-03-05 12:19:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:19:05 - End Time 2025-03-05 12:19:05 [2025-03-05 12:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613095', 'tblTempUsageDetail_20' ) start [2025-03-05 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613095', 'tblTempUsageDetail_20' ) end [2025-03-05 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613095', 'tblTempVendorCDR_20' ) start [2025-03-05 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613095', 'tblTempVendorCDR_20' ) end [2025-03-05 12:19:20] Production.INFO: ProcessCDR(1,14613095,1,1,2) [2025-03-05 12:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613095', 'tblTempUsageDetail_20' ) start [2025-03-05 12:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613095', 'tblTempUsageDetail_20' ) end [2025-03-05 12:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:19:25] Production.INFO: ==1292== Releasing lock... [2025-03-05 12:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:19:25] Production.INFO: 61.5 MB #Memory Used# [2025-03-05 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:20:06 [end_date_ymd] => 2025-03-05 12:20:06 [RateCDR] => 1 ) [2025-03-05 12: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-03-05 09:20:06' and `end` < '2025-03-05 12: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-03-05 12:20:19] Production.INFO: count ==4486 [2025-03-05 12:20:21] Production.ERROR: pbx CDR StartTime 2025-03-05 09:20:06 - End Time 2025-03-05 12:20:06 [2025-03-05 12:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613101', 'tblTempUsageDetail_20' ) start [2025-03-05 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613101', 'tblTempUsageDetail_20' ) end [2025-03-05 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613101', 'tblTempVendorCDR_20' ) start [2025-03-05 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613101', 'tblTempVendorCDR_20' ) end [2025-03-05 12:20:21] Production.INFO: ProcessCDR(1,14613101,1,1,2) [2025-03-05 12:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613101', 'tblTempUsageDetail_20' ) start [2025-03-05 12:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613101', 'tblTempUsageDetail_20' ) end [2025-03-05 12:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:20:25] Production.INFO: ==1375== Releasing lock... [2025-03-05 12:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:20:25] Production.INFO: 61.5 MB #Memory Used# [2025-03-05 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:21:05 [end_date_ymd] => 2025-03-05 12:21:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 09:21:05' and `end` < '2025-03-05 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-03-05 12:21:18] Production.INFO: count ==4519 [2025-03-05 12:21:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:21:05 - End Time 2025-03-05 12:21:05 [2025-03-05 12:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613106', 'tblTempUsageDetail_20' ) start [2025-03-05 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613106', 'tblTempUsageDetail_20' ) end [2025-03-05 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613106', 'tblTempVendorCDR_20' ) start [2025-03-05 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613106', 'tblTempVendorCDR_20' ) end [2025-03-05 12:21:20] Production.INFO: ProcessCDR(1,14613106,1,1,2) [2025-03-05 12:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613106', 'tblTempUsageDetail_20' ) start [2025-03-05 12:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613106', 'tblTempUsageDetail_20' ) end [2025-03-05 12:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:21:24] Production.INFO: ==1463== Releasing lock... [2025-03-05 12:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:21:24] Production.INFO: 61.75 MB #Memory Used# [2025-03-05 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:22:05 [end_date_ymd] => 2025-03-05 12:22:05 [RateCDR] => 1 ) [2025-03-05 12: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-03-05 09:22:05' and `end` < '2025-03-05 12: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-03-05 12:22:18] Production.INFO: count ==4522 [2025-03-05 12:22:19] Production.ERROR: pbx CDR StartTime 2025-03-05 09:22:05 - End Time 2025-03-05 12:22:05 [2025-03-05 12:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613111', 'tblTempUsageDetail_20' ) start [2025-03-05 12:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613111', 'tblTempUsageDetail_20' ) end [2025-03-05 12:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613111', 'tblTempVendorCDR_20' ) start [2025-03-05 12:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613111', 'tblTempVendorCDR_20' ) end [2025-03-05 12:22:20] Production.INFO: ProcessCDR(1,14613111,1,1,2) [2025-03-05 12:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613111', 'tblTempUsageDetail_20' ) start [2025-03-05 12:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613111', 'tblTempUsageDetail_20' ) end [2025-03-05 12:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:22:24] Production.INFO: ==1581== Releasing lock... [2025-03-05 12:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:22:24] Production.INFO: 61.75 MB #Memory Used# [2025-03-05 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:23:05 [end_date_ymd] => 2025-03-05 12:23:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 09:23:05' and `end` < '2025-03-05 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-03-05 12:23:18] Production.INFO: count ==4540 [2025-03-05 12:23:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:23:05 - End Time 2025-03-05 12:23:05 [2025-03-05 12:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613116', 'tblTempUsageDetail_20' ) start [2025-03-05 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613116', 'tblTempUsageDetail_20' ) end [2025-03-05 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613116', 'tblTempVendorCDR_20' ) start [2025-03-05 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613116', 'tblTempVendorCDR_20' ) end [2025-03-05 12:23:20] Production.INFO: ProcessCDR(1,14613116,1,1,2) [2025-03-05 12:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613116', 'tblTempUsageDetail_20' ) start [2025-03-05 12:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613116', 'tblTempUsageDetail_20' ) end [2025-03-05 12:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:23:25] Production.INFO: ==1661== Releasing lock... [2025-03-05 12:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:23:25] Production.INFO: 62 MB #Memory Used# [2025-03-05 12:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:24:06 [end_date_ymd] => 2025-03-05 12:24:06 [RateCDR] => 1 ) [2025-03-05 12: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-03-05 09:24:06' and `end` < '2025-03-05 12: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-03-05 12:24:19] Production.INFO: count ==4553 [2025-03-05 12:24:21] Production.ERROR: pbx CDR StartTime 2025-03-05 09:24:06 - End Time 2025-03-05 12:24:06 [2025-03-05 12:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613121', 'tblTempUsageDetail_20' ) start [2025-03-05 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613121', 'tblTempUsageDetail_20' ) end [2025-03-05 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613121', 'tblTempVendorCDR_20' ) start [2025-03-05 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613121', 'tblTempVendorCDR_20' ) end [2025-03-05 12:24:21] Production.INFO: ProcessCDR(1,14613121,1,1,2) [2025-03-05 12:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613121', 'tblTempUsageDetail_20' ) start [2025-03-05 12:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613121', 'tblTempUsageDetail_20' ) end [2025-03-05 12:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:24:26] Production.INFO: ==1736== Releasing lock... [2025-03-05 12:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:24:26] Production.INFO: 62 MB #Memory Used# [2025-03-05 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:25:06 [end_date_ymd] => 2025-03-05 12:25:06 [RateCDR] => 1 ) [2025-03-05 12:25: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-03-05 09:25:06' and `end` < '2025-03-05 12:25: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-03-05 12:25:19] Production.INFO: count ==4551 [2025-03-05 12:25:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:25:06 - End Time 2025-03-05 12:25:06 [2025-03-05 12:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613126', 'tblTempUsageDetail_20' ) start [2025-03-05 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613126', 'tblTempUsageDetail_20' ) end [2025-03-05 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613126', 'tblTempVendorCDR_20' ) start [2025-03-05 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613126', 'tblTempVendorCDR_20' ) end [2025-03-05 12:25:21] Production.INFO: ProcessCDR(1,14613126,1,1,2) [2025-03-05 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613126', 'tblTempUsageDetail_20' ) start [2025-03-05 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613126', 'tblTempUsageDetail_20' ) end [2025-03-05 12:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:25:25] Production.INFO: ==1864== Releasing lock... [2025-03-05 12:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:25:25] Production.INFO: 62 MB #Memory Used# [2025-03-05 12:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:26:06 [end_date_ymd] => 2025-03-05 12:26:06 [RateCDR] => 1 ) [2025-03-05 12: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-03-05 09:26:06' and `end` < '2025-03-05 12: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-03-05 12:26:19] Production.INFO: count ==4538 [2025-03-05 12:26:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:26:06 - End Time 2025-03-05 12:26:06 [2025-03-05 12:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613131', 'tblTempUsageDetail_20' ) start [2025-03-05 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613131', 'tblTempUsageDetail_20' ) end [2025-03-05 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613131', 'tblTempVendorCDR_20' ) start [2025-03-05 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613131', 'tblTempVendorCDR_20' ) end [2025-03-05 12:26:21] Production.INFO: ProcessCDR(1,14613131,1,1,2) [2025-03-05 12:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613131', 'tblTempUsageDetail_20' ) start [2025-03-05 12:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613131', 'tblTempUsageDetail_20' ) end [2025-03-05 12:26:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:26:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:26:25] Production.INFO: ==1946== Releasing lock... [2025-03-05 12:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:26:25] Production.INFO: 62 MB #Memory Used# [2025-03-05 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:27:05 [end_date_ymd] => 2025-03-05 12:27:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 09:27:05' and `end` < '2025-03-05 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-03-05 12:27:18] Production.INFO: count ==4542 [2025-03-05 12:27:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:27:05 - End Time 2025-03-05 12:27:05 [2025-03-05 12:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613136', 'tblTempUsageDetail_20' ) start [2025-03-05 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613136', 'tblTempUsageDetail_20' ) end [2025-03-05 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613136', 'tblTempVendorCDR_20' ) start [2025-03-05 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613136', 'tblTempVendorCDR_20' ) end [2025-03-05 12:27:20] Production.INFO: ProcessCDR(1,14613136,1,1,2) [2025-03-05 12:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613136', 'tblTempUsageDetail_20' ) start [2025-03-05 12:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613136', 'tblTempUsageDetail_20' ) end [2025-03-05 12:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:27:24] Production.INFO: ==2027== Releasing lock... [2025-03-05 12:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:27:24] Production.INFO: 62 MB #Memory Used# [2025-03-05 12:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:28:06 [end_date_ymd] => 2025-03-05 12:28:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 09:28:06' and `end` < '2025-03-05 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-03-05 12:28:18] Production.INFO: count ==4544 [2025-03-05 12:28:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:28:06 - End Time 2025-03-05 12:28:06 [2025-03-05 12:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613141', 'tblTempUsageDetail_20' ) start [2025-03-05 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613141', 'tblTempUsageDetail_20' ) end [2025-03-05 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613141', 'tblTempVendorCDR_20' ) start [2025-03-05 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613141', 'tblTempVendorCDR_20' ) end [2025-03-05 12:28:20] Production.INFO: ProcessCDR(1,14613141,1,1,2) [2025-03-05 12:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613141', 'tblTempUsageDetail_20' ) start [2025-03-05 12:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613141', 'tblTempUsageDetail_20' ) end [2025-03-05 12:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:28:25] Production.INFO: ==2108== Releasing lock... [2025-03-05 12:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:28:25] Production.INFO: 62 MB #Memory Used# [2025-03-05 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:29:05 [end_date_ymd] => 2025-03-05 12:29:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 09:29:05' and `end` < '2025-03-05 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-03-05 12:29:18] Production.INFO: count ==4529 [2025-03-05 12:29:19] Production.ERROR: pbx CDR StartTime 2025-03-05 09:29:05 - End Time 2025-03-05 12:29:05 [2025-03-05 12:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613146', 'tblTempUsageDetail_20' ) start [2025-03-05 12:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613146', 'tblTempUsageDetail_20' ) end [2025-03-05 12:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613146', 'tblTempVendorCDR_20' ) start [2025-03-05 12:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613146', 'tblTempVendorCDR_20' ) end [2025-03-05 12:29:20] Production.INFO: ProcessCDR(1,14613146,1,1,2) [2025-03-05 12:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613146', 'tblTempUsageDetail_20' ) start [2025-03-05 12:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613146', 'tblTempUsageDetail_20' ) end [2025-03-05 12:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:29:24] Production.INFO: ==2187== Releasing lock... [2025-03-05 12:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:29:24] Production.INFO: 62 MB #Memory Used# [2025-03-05 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:30:06 [end_date_ymd] => 2025-03-05 12:30:06 [RateCDR] => 1 ) [2025-03-05 12: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-03-05 09:30:06' and `end` < '2025-03-05 12: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-03-05 12:30:19] Production.INFO: count ==4512 [2025-03-05 12:30:21] Production.ERROR: pbx CDR StartTime 2025-03-05 09:30:06 - End Time 2025-03-05 12:30:06 [2025-03-05 12:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613151', 'tblTempUsageDetail_20' ) start [2025-03-05 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613151', 'tblTempUsageDetail_20' ) end [2025-03-05 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613151', 'tblTempVendorCDR_20' ) start [2025-03-05 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613151', 'tblTempVendorCDR_20' ) end [2025-03-05 12:30:21] Production.INFO: ProcessCDR(1,14613151,1,1,2) [2025-03-05 12:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613151', 'tblTempUsageDetail_20' ) start [2025-03-05 12:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613151', 'tblTempUsageDetail_20' ) end [2025-03-05 12:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:30:26] Production.INFO: ==2276== Releasing lock... [2025-03-05 12:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:30:26] Production.INFO: 61.75 MB #Memory Used# [2025-03-05 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:31:05 [end_date_ymd] => 2025-03-05 12:31:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 09:31:05' and `end` < '2025-03-05 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-03-05 12:31:18] Production.INFO: count ==4513 [2025-03-05 12:31:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:31:05 - End Time 2025-03-05 12:31:05 [2025-03-05 12:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613157', 'tblTempUsageDetail_20' ) start [2025-03-05 12:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613157', 'tblTempUsageDetail_20' ) end [2025-03-05 12:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613157', 'tblTempVendorCDR_20' ) start [2025-03-05 12:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613157', 'tblTempVendorCDR_20' ) end [2025-03-05 12:31:20] Production.INFO: ProcessCDR(1,14613157,1,1,2) [2025-03-05 12:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613157', 'tblTempUsageDetail_20' ) start [2025-03-05 12:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613157', 'tblTempUsageDetail_20' ) end [2025-03-05 12:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:31:25] Production.INFO: ==2353== Releasing lock... [2025-03-05 12:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:31:25] Production.INFO: 61.75 MB #Memory Used# [2025-03-05 12:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:32:06 [end_date_ymd] => 2025-03-05 12:32:06 [RateCDR] => 1 ) [2025-03-05 12: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-03-05 09:32:06' and `end` < '2025-03-05 12: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-03-05 12:32:19] Production.INFO: count ==4523 [2025-03-05 12:32:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:32:06 - End Time 2025-03-05 12:32:06 [2025-03-05 12:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613162', 'tblTempUsageDetail_20' ) start [2025-03-05 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613162', 'tblTempUsageDetail_20' ) end [2025-03-05 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613162', 'tblTempVendorCDR_20' ) start [2025-03-05 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613162', 'tblTempVendorCDR_20' ) end [2025-03-05 12:32:20] Production.INFO: ProcessCDR(1,14613162,1,1,2) [2025-03-05 12:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613162', 'tblTempUsageDetail_20' ) start [2025-03-05 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613162', 'tblTempUsageDetail_20' ) end [2025-03-05 12:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:32:26] Production.INFO: ==2435== Releasing lock... [2025-03-05 12:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:32:26] Production.INFO: 61.75 MB #Memory Used# [2025-03-05 12:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:33:06 [end_date_ymd] => 2025-03-05 12:33:06 [RateCDR] => 1 ) [2025-03-05 12: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-03-05 09:33:06' and `end` < '2025-03-05 12: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-03-05 12:33:19] Production.INFO: count ==4537 [2025-03-05 12:33:21] Production.ERROR: pbx CDR StartTime 2025-03-05 09:33:06 - End Time 2025-03-05 12:33:06 [2025-03-05 12:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613167', 'tblTempUsageDetail_20' ) start [2025-03-05 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613167', 'tblTempUsageDetail_20' ) end [2025-03-05 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613167', 'tblTempVendorCDR_20' ) start [2025-03-05 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613167', 'tblTempVendorCDR_20' ) end [2025-03-05 12:33:21] Production.INFO: ProcessCDR(1,14613167,1,1,2) [2025-03-05 12:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613167', 'tblTempUsageDetail_20' ) start [2025-03-05 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613167', 'tblTempUsageDetail_20' ) end [2025-03-05 12:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:33:26] Production.INFO: ==2513== Releasing lock... [2025-03-05 12:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:33:26] Production.INFO: 62 MB #Memory Used# [2025-03-05 12:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:34:06 [end_date_ymd] => 2025-03-05 12:34:06 [RateCDR] => 1 ) [2025-03-05 12: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-03-05 09:34:06' and `end` < '2025-03-05 12: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-03-05 12:34:19] Production.INFO: count ==4528 [2025-03-05 12:34:21] Production.ERROR: pbx CDR StartTime 2025-03-05 09:34:06 - End Time 2025-03-05 12:34:06 [2025-03-05 12:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613172', 'tblTempUsageDetail_20' ) start [2025-03-05 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613172', 'tblTempUsageDetail_20' ) end [2025-03-05 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613172', 'tblTempVendorCDR_20' ) start [2025-03-05 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613172', 'tblTempVendorCDR_20' ) end [2025-03-05 12:34:21] Production.INFO: ProcessCDR(1,14613172,1,1,2) [2025-03-05 12:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613172', 'tblTempUsageDetail_20' ) start [2025-03-05 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613172', 'tblTempUsageDetail_20' ) end [2025-03-05 12:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:34:26] Production.INFO: ==2589== Releasing lock... [2025-03-05 12:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:34:26] Production.INFO: 62 MB #Memory Used# [2025-03-05 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:35:05 [end_date_ymd] => 2025-03-05 12:35:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 09:35:05' and `end` < '2025-03-05 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-03-05 12:35:18] Production.INFO: count ==4533 [2025-03-05 12:35:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:35:05 - End Time 2025-03-05 12:35:05 [2025-03-05 12:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613177', 'tblTempUsageDetail_20' ) start [2025-03-05 12:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613177', 'tblTempUsageDetail_20' ) end [2025-03-05 12:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613177', 'tblTempVendorCDR_20' ) start [2025-03-05 12:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613177', 'tblTempVendorCDR_20' ) end [2025-03-05 12:35:20] Production.INFO: ProcessCDR(1,14613177,1,1,2) [2025-03-05 12:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613177', 'tblTempUsageDetail_20' ) start [2025-03-05 12:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613177', 'tblTempUsageDetail_20' ) end [2025-03-05 12:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:35:25] Production.INFO: ==2669== Releasing lock... [2025-03-05 12:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:35:25] Production.INFO: 62 MB #Memory Used# [2025-03-05 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:36:05 [end_date_ymd] => 2025-03-05 12:36:05 [RateCDR] => 1 ) [2025-03-05 12: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-03-05 09:36:05' and `end` < '2025-03-05 12: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-03-05 12:36:18] Production.INFO: count ==4528 [2025-03-05 12:36:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:36:05 - End Time 2025-03-05 12:36:05 [2025-03-05 12:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613182', 'tblTempUsageDetail_20' ) start [2025-03-05 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613182', 'tblTempUsageDetail_20' ) end [2025-03-05 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613182', 'tblTempVendorCDR_20' ) start [2025-03-05 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613182', 'tblTempVendorCDR_20' ) end [2025-03-05 12:36:20] Production.INFO: ProcessCDR(1,14613182,1,1,2) [2025-03-05 12:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613182', 'tblTempUsageDetail_20' ) start [2025-03-05 12:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613182', 'tblTempUsageDetail_20' ) end [2025-03-05 12:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:36:25] Production.INFO: ==2746== Releasing lock... [2025-03-05 12:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:36:25] Production.INFO: 62 MB #Memory Used# [2025-03-05 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:37:05 [end_date_ymd] => 2025-03-05 12:37:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 09:37:05' and `end` < '2025-03-05 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-03-05 12:37:18] Production.INFO: count ==4528 [2025-03-05 12:37:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:37:05 - End Time 2025-03-05 12:37:05 [2025-03-05 12:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613187', 'tblTempUsageDetail_20' ) start [2025-03-05 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613187', 'tblTempUsageDetail_20' ) end [2025-03-05 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613187', 'tblTempVendorCDR_20' ) start [2025-03-05 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613187', 'tblTempVendorCDR_20' ) end [2025-03-05 12:37:20] Production.INFO: ProcessCDR(1,14613187,1,1,2) [2025-03-05 12:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613187', 'tblTempUsageDetail_20' ) start [2025-03-05 12:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613187', 'tblTempUsageDetail_20' ) end [2025-03-05 12:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:37:25] Production.INFO: ==2832== Releasing lock... [2025-03-05 12:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:37:25] Production.INFO: 62 MB #Memory Used# [2025-03-05 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:38:05 [end_date_ymd] => 2025-03-05 12:38:05 [RateCDR] => 1 ) [2025-03-05 12: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-03-05 09:38:05' and `end` < '2025-03-05 12: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-03-05 12:38:18] Production.INFO: count ==4538 [2025-03-05 12:38:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:38:05 - End Time 2025-03-05 12:38:05 [2025-03-05 12:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613192', 'tblTempUsageDetail_20' ) start [2025-03-05 12:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613192', 'tblTempUsageDetail_20' ) end [2025-03-05 12:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613192', 'tblTempVendorCDR_20' ) start [2025-03-05 12:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613192', 'tblTempVendorCDR_20' ) end [2025-03-05 12:38:20] Production.INFO: ProcessCDR(1,14613192,1,1,2) [2025-03-05 12:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613192', 'tblTempUsageDetail_20' ) start [2025-03-05 12:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613192', 'tblTempUsageDetail_20' ) end [2025-03-05 12:38:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:38:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:38:25] Production.INFO: ==2912== Releasing lock... [2025-03-05 12:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:38:25] Production.INFO: 62 MB #Memory Used# [2025-03-05 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:39:05 [end_date_ymd] => 2025-03-05 12:39:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 09:39:05' and `end` < '2025-03-05 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-03-05 12:39:18] Production.INFO: count ==4553 [2025-03-05 12:39:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:39:05 - End Time 2025-03-05 12:39:05 [2025-03-05 12:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613197', 'tblTempUsageDetail_20' ) start [2025-03-05 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613197', 'tblTempUsageDetail_20' ) end [2025-03-05 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613197', 'tblTempVendorCDR_20' ) start [2025-03-05 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613197', 'tblTempVendorCDR_20' ) end [2025-03-05 12:39:20] Production.INFO: ProcessCDR(1,14613197,1,1,2) [2025-03-05 12:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613197', 'tblTempUsageDetail_20' ) start [2025-03-05 12:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613197', 'tblTempUsageDetail_20' ) end [2025-03-05 12:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:39:25] Production.INFO: ==2991== Releasing lock... [2025-03-05 12:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:39:25] Production.INFO: 62 MB #Memory Used# [2025-03-05 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:40:06 [end_date_ymd] => 2025-03-05 12:40:06 [RateCDR] => 1 ) [2025-03-05 12: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-03-05 09:40:06' and `end` < '2025-03-05 12: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-03-05 12:40:19] Production.INFO: count ==4532 [2025-03-05 12:40:21] Production.ERROR: pbx CDR StartTime 2025-03-05 09:40:06 - End Time 2025-03-05 12:40:06 [2025-03-05 12:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613203', 'tblTempUsageDetail_20' ) start [2025-03-05 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613203', 'tblTempUsageDetail_20' ) end [2025-03-05 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613203', 'tblTempVendorCDR_20' ) start [2025-03-05 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613203', 'tblTempVendorCDR_20' ) end [2025-03-05 12:40:21] Production.INFO: ProcessCDR(1,14613203,1,1,2) [2025-03-05 12:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613203', 'tblTempUsageDetail_20' ) start [2025-03-05 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613203', 'tblTempUsageDetail_20' ) end [2025-03-05 12:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:40:27] Production.INFO: ==3113== Releasing lock... [2025-03-05 12:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:40:27] Production.INFO: 62 MB #Memory Used# [2025-03-05 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:41:05 [end_date_ymd] => 2025-03-05 12:41:05 [RateCDR] => 1 ) [2025-03-05 12: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-03-05 09:41:05' and `end` < '2025-03-05 12: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-03-05 12:41:18] Production.INFO: count ==4549 [2025-03-05 12:41:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:41:05 - End Time 2025-03-05 12:41:05 [2025-03-05 12:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613208', 'tblTempUsageDetail_20' ) start [2025-03-05 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613208', 'tblTempUsageDetail_20' ) end [2025-03-05 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613208', 'tblTempVendorCDR_20' ) start [2025-03-05 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613208', 'tblTempVendorCDR_20' ) end [2025-03-05 12:41:20] Production.INFO: ProcessCDR(1,14613208,1,1,2) [2025-03-05 12:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613208', 'tblTempUsageDetail_20' ) start [2025-03-05 12:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613208', 'tblTempUsageDetail_20' ) end [2025-03-05 12:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:41:25] Production.INFO: ==3192== Releasing lock... [2025-03-05 12:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:41:25] Production.INFO: 62 MB #Memory Used# [2025-03-05 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:42:05 [end_date_ymd] => 2025-03-05 12:42:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 09:42:05' and `end` < '2025-03-05 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-03-05 12:42:18] Production.INFO: count ==4551 [2025-03-05 12:42:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:42:05 - End Time 2025-03-05 12:42:05 [2025-03-05 12:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613213', 'tblTempUsageDetail_20' ) start [2025-03-05 12:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613213', 'tblTempUsageDetail_20' ) end [2025-03-05 12:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613213', 'tblTempVendorCDR_20' ) start [2025-03-05 12:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613213', 'tblTempVendorCDR_20' ) end [2025-03-05 12:42:20] Production.INFO: ProcessCDR(1,14613213,1,1,2) [2025-03-05 12:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613213', 'tblTempUsageDetail_20' ) start [2025-03-05 12:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613213', 'tblTempUsageDetail_20' ) end [2025-03-05 12:42:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:42:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:42:25] Production.INFO: ==3272== Releasing lock... [2025-03-05 12:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:42:25] Production.INFO: 62 MB #Memory Used# [2025-03-05 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:43:05 [end_date_ymd] => 2025-03-05 12:43:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 09:43:05' and `end` < '2025-03-05 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-03-05 12:43:18] Production.INFO: count ==4536 [2025-03-05 12:43:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:43:05 - End Time 2025-03-05 12:43:05 [2025-03-05 12:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613218', 'tblTempUsageDetail_20' ) start [2025-03-05 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613218', 'tblTempUsageDetail_20' ) end [2025-03-05 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613218', 'tblTempVendorCDR_20' ) start [2025-03-05 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613218', 'tblTempVendorCDR_20' ) end [2025-03-05 12:43:20] Production.INFO: ProcessCDR(1,14613218,1,1,2) [2025-03-05 12:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613218', 'tblTempUsageDetail_20' ) start [2025-03-05 12:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613218', 'tblTempUsageDetail_20' ) end [2025-03-05 12:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:43:25] Production.INFO: ==3346== Releasing lock... [2025-03-05 12:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:43:25] Production.INFO: 62 MB #Memory Used# [2025-03-05 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:44:05 [end_date_ymd] => 2025-03-05 12:44:05 [RateCDR] => 1 ) [2025-03-05 12: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-03-05 09:44:05' and `end` < '2025-03-05 12: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-03-05 12:44:18] Production.INFO: count ==4535 [2025-03-05 12:44:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:44:05 - End Time 2025-03-05 12:44:05 [2025-03-05 12:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613223', 'tblTempUsageDetail_20' ) start [2025-03-05 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613223', 'tblTempUsageDetail_20' ) end [2025-03-05 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613223', 'tblTempVendorCDR_20' ) start [2025-03-05 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613223', 'tblTempVendorCDR_20' ) end [2025-03-05 12:44:20] Production.INFO: ProcessCDR(1,14613223,1,1,2) [2025-03-05 12:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613223', 'tblTempUsageDetail_20' ) start [2025-03-05 12:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613223', 'tblTempUsageDetail_20' ) end [2025-03-05 12:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:44:25] Production.INFO: ==3425== Releasing lock... [2025-03-05 12:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:44:25] Production.INFO: 62 MB #Memory Used# [2025-03-05 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:45:05 [end_date_ymd] => 2025-03-05 12:45:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 09:45:05' and `end` < '2025-03-05 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-03-05 12:45:18] Production.INFO: count ==4522 [2025-03-05 12:45:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:45:05 - End Time 2025-03-05 12:45:05 [2025-03-05 12:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613228', 'tblTempUsageDetail_20' ) start [2025-03-05 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613228', 'tblTempUsageDetail_20' ) end [2025-03-05 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613228', 'tblTempVendorCDR_20' ) start [2025-03-05 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613228', 'tblTempVendorCDR_20' ) end [2025-03-05 12:45:20] Production.INFO: ProcessCDR(1,14613228,1,1,2) [2025-03-05 12:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613228', 'tblTempUsageDetail_20' ) start [2025-03-05 12:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613228', 'tblTempUsageDetail_20' ) end [2025-03-05 12:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:45:24] Production.INFO: ==3509== Releasing lock... [2025-03-05 12:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:45:24] Production.INFO: 61.75 MB #Memory Used# [2025-03-05 12:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:46:06 [end_date_ymd] => 2025-03-05 12:46:06 [RateCDR] => 1 ) [2025-03-05 12: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-03-05 09:46:06' and `end` < '2025-03-05 12: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-03-05 12:46:19] Production.INFO: count ==4520 [2025-03-05 12:46:21] Production.ERROR: pbx CDR StartTime 2025-03-05 09:46:06 - End Time 2025-03-05 12:46:06 [2025-03-05 12:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613233', 'tblTempUsageDetail_20' ) start [2025-03-05 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613233', 'tblTempUsageDetail_20' ) end [2025-03-05 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613233', 'tblTempVendorCDR_20' ) start [2025-03-05 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613233', 'tblTempVendorCDR_20' ) end [2025-03-05 12:46:21] Production.INFO: ProcessCDR(1,14613233,1,1,2) [2025-03-05 12:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613233', 'tblTempUsageDetail_20' ) start [2025-03-05 12:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613233', 'tblTempUsageDetail_20' ) end [2025-03-05 12:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:46:26] Production.INFO: ==3593== Releasing lock... [2025-03-05 12:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:46:26] Production.INFO: 61.75 MB #Memory Used# [2025-03-05 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:47:05 [end_date_ymd] => 2025-03-05 12:47:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 09:47:05' and `end` < '2025-03-05 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-03-05 12:47:19] Production.INFO: count ==4550 [2025-03-05 12:47:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:47:05 - End Time 2025-03-05 12:47:05 [2025-03-05 12:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613238', 'tblTempUsageDetail_20' ) start [2025-03-05 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613238', 'tblTempUsageDetail_20' ) end [2025-03-05 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613238', 'tblTempVendorCDR_20' ) start [2025-03-05 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613238', 'tblTempVendorCDR_20' ) end [2025-03-05 12:47:21] Production.INFO: ProcessCDR(1,14613238,1,1,2) [2025-03-05 12:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613238', 'tblTempUsageDetail_20' ) start [2025-03-05 12:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613238', 'tblTempUsageDetail_20' ) end [2025-03-05 12:47:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:47:26] Production.INFO: ==3699== Releasing lock... [2025-03-05 12:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:47:26] Production.INFO: 62 MB #Memory Used# [2025-03-05 12:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:48:06 [end_date_ymd] => 2025-03-05 12:48:06 [RateCDR] => 1 ) [2025-03-05 12: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-03-05 09:48:06' and `end` < '2025-03-05 12: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-03-05 12:48:19] Production.INFO: count ==4576 [2025-03-05 12:48:21] Production.ERROR: pbx CDR StartTime 2025-03-05 09:48:06 - End Time 2025-03-05 12:48:06 [2025-03-05 12:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613243', 'tblTempUsageDetail_20' ) start [2025-03-05 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613243', 'tblTempUsageDetail_20' ) end [2025-03-05 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613243', 'tblTempVendorCDR_20' ) start [2025-03-05 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613243', 'tblTempVendorCDR_20' ) end [2025-03-05 12:48:21] Production.INFO: ProcessCDR(1,14613243,1,1,2) [2025-03-05 12:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613243', 'tblTempUsageDetail_20' ) start [2025-03-05 12:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613243', 'tblTempUsageDetail_20' ) end [2025-03-05 12:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:48:26] Production.INFO: ==3815== Releasing lock... [2025-03-05 12:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:48:26] Production.INFO: 62.25 MB #Memory Used# [2025-03-05 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:49:05 [end_date_ymd] => 2025-03-05 12:49:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 09:49:05' and `end` < '2025-03-05 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-03-05 12:49:18] Production.INFO: count ==4569 [2025-03-05 12:49:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:49:05 - End Time 2025-03-05 12:49:05 [2025-03-05 12:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613248', 'tblTempUsageDetail_20' ) start [2025-03-05 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613248', 'tblTempUsageDetail_20' ) end [2025-03-05 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613248', 'tblTempVendorCDR_20' ) start [2025-03-05 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613248', 'tblTempVendorCDR_20' ) end [2025-03-05 12:49:20] Production.INFO: ProcessCDR(1,14613248,1,1,2) [2025-03-05 12:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613248', 'tblTempUsageDetail_20' ) start [2025-03-05 12:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613248', 'tblTempUsageDetail_20' ) end [2025-03-05 12:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:49:24] Production.INFO: ==3926== Releasing lock... [2025-03-05 12:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:49:24] Production.INFO: 62.25 MB #Memory Used# [2025-03-05 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:50:06 [end_date_ymd] => 2025-03-05 12:50:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 09:50:06' and `end` < '2025-03-05 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-03-05 12:50:19] Production.INFO: count ==4592 [2025-03-05 12:50:21] Production.ERROR: pbx CDR StartTime 2025-03-05 09:50:06 - End Time 2025-03-05 12:50:06 [2025-03-05 12:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613254', 'tblTempUsageDetail_20' ) start [2025-03-05 12:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613254', 'tblTempUsageDetail_20' ) end [2025-03-05 12:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613254', 'tblTempVendorCDR_20' ) start [2025-03-05 12:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613254', 'tblTempVendorCDR_20' ) end [2025-03-05 12:50:21] Production.INFO: ProcessCDR(1,14613254,1,1,2) [2025-03-05 12:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613254', 'tblTempUsageDetail_20' ) start [2025-03-05 12:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613254', 'tblTempUsageDetail_20' ) end [2025-03-05 12:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:50:26] Production.INFO: ==4036== Releasing lock... [2025-03-05 12:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:50:26] Production.INFO: 62.25 MB #Memory Used# [2025-03-05 12:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:51:06 [end_date_ymd] => 2025-03-05 12:51:06 [RateCDR] => 1 ) [2025-03-05 12: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-03-05 09:51:06' and `end` < '2025-03-05 12: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-03-05 12:51:19] Production.INFO: count ==4600 [2025-03-05 12:51:21] Production.ERROR: pbx CDR StartTime 2025-03-05 09:51:06 - End Time 2025-03-05 12:51:06 [2025-03-05 12:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613259', 'tblTempUsageDetail_20' ) start [2025-03-05 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613259', 'tblTempUsageDetail_20' ) end [2025-03-05 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613259', 'tblTempVendorCDR_20' ) start [2025-03-05 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613259', 'tblTempVendorCDR_20' ) end [2025-03-05 12:51:21] Production.INFO: ProcessCDR(1,14613259,1,1,2) [2025-03-05 12:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613259', 'tblTempUsageDetail_20' ) start [2025-03-05 12:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613259', 'tblTempUsageDetail_20' ) end [2025-03-05 12:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:51:26] Production.INFO: ==4151== Releasing lock... [2025-03-05 12:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:51:26] Production.INFO: 62.5 MB #Memory Used# [2025-03-05 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:52:05 [end_date_ymd] => 2025-03-05 12:52:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 09:52:05' and `end` < '2025-03-05 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-03-05 12:52:18] Production.INFO: count ==4604 [2025-03-05 12:52:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:52:05 - End Time 2025-03-05 12:52:05 [2025-03-05 12:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613264', 'tblTempUsageDetail_20' ) start [2025-03-05 12:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613264', 'tblTempUsageDetail_20' ) end [2025-03-05 12:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613264', 'tblTempVendorCDR_20' ) start [2025-03-05 12:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613264', 'tblTempVendorCDR_20' ) end [2025-03-05 12:52:20] Production.INFO: ProcessCDR(1,14613264,1,1,2) [2025-03-05 12:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613264', 'tblTempUsageDetail_20' ) start [2025-03-05 12:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613264', 'tblTempUsageDetail_20' ) end [2025-03-05 12:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:52:25] Production.INFO: ==4254== Releasing lock... [2025-03-05 12:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:52:25] Production.INFO: 62.5 MB #Memory Used# [2025-03-05 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:53:05 [end_date_ymd] => 2025-03-05 12:53:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 09:53:05' and `end` < '2025-03-05 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-03-05 12:53:18] Production.INFO: count ==4624 [2025-03-05 12:53:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:53:05 - End Time 2025-03-05 12:53:05 [2025-03-05 12:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613269', 'tblTempUsageDetail_20' ) start [2025-03-05 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613269', 'tblTempUsageDetail_20' ) end [2025-03-05 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613269', 'tblTempVendorCDR_20' ) start [2025-03-05 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613269', 'tblTempVendorCDR_20' ) end [2025-03-05 12:53:20] Production.INFO: ProcessCDR(1,14613269,1,1,2) [2025-03-05 12:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613269', 'tblTempUsageDetail_20' ) start [2025-03-05 12:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613269', 'tblTempUsageDetail_20' ) end [2025-03-05 12:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:53:25] Production.INFO: ==4358== Releasing lock... [2025-03-05 12:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:53:25] Production.INFO: 62.75 MB #Memory Used# [2025-03-05 12:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:54:06 [end_date_ymd] => 2025-03-05 12:54:06 [RateCDR] => 1 ) [2025-03-05 12:54: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-03-05 09:54:06' and `end` < '2025-03-05 12:54: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-03-05 12:54:19] Production.INFO: count ==4636 [2025-03-05 12:54:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:54:06 - End Time 2025-03-05 12:54:06 [2025-03-05 12:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613274', 'tblTempUsageDetail_20' ) start [2025-03-05 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613274', 'tblTempUsageDetail_20' ) end [2025-03-05 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613274', 'tblTempVendorCDR_20' ) start [2025-03-05 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613274', 'tblTempVendorCDR_20' ) end [2025-03-05 12:54:21] Production.INFO: ProcessCDR(1,14613274,1,1,2) [2025-03-05 12:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613274', 'tblTempUsageDetail_20' ) start [2025-03-05 12:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613274', 'tblTempUsageDetail_20' ) end [2025-03-05 12:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:54:25] Production.INFO: ==4456== Releasing lock... [2025-03-05 12:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:54:25] Production.INFO: 62.75 MB #Memory Used# [2025-03-05 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:55:05 [end_date_ymd] => 2025-03-05 12:55:05 [RateCDR] => 1 ) [2025-03-05 12: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-03-05 09:55:05' and `end` < '2025-03-05 12: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-03-05 12:55:18] Production.INFO: count ==4624 [2025-03-05 12:55:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:55:05 - End Time 2025-03-05 12:55:05 [2025-03-05 12:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613279', 'tblTempUsageDetail_20' ) start [2025-03-05 12:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613279', 'tblTempUsageDetail_20' ) end [2025-03-05 12:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613279', 'tblTempVendorCDR_20' ) start [2025-03-05 12:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613279', 'tblTempVendorCDR_20' ) end [2025-03-05 12:55:20] Production.INFO: ProcessCDR(1,14613279,1,1,2) [2025-03-05 12:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613279', 'tblTempUsageDetail_20' ) start [2025-03-05 12:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613279', 'tblTempUsageDetail_20' ) end [2025-03-05 12:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:55:25] Production.INFO: ==4553== Releasing lock... [2025-03-05 12:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:55:25] Production.INFO: 62.75 MB #Memory Used# [2025-03-05 12:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:56:06 [end_date_ymd] => 2025-03-05 12:56:06 [RateCDR] => 1 ) [2025-03-05 12: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-03-05 09:56:06' and `end` < '2025-03-05 12: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-03-05 12:56:19] Production.INFO: count ==4626 [2025-03-05 12:56:21] Production.ERROR: pbx CDR StartTime 2025-03-05 09:56:06 - End Time 2025-03-05 12:56:06 [2025-03-05 12:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613284', 'tblTempUsageDetail_20' ) start [2025-03-05 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613284', 'tblTempUsageDetail_20' ) end [2025-03-05 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613284', 'tblTempVendorCDR_20' ) start [2025-03-05 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613284', 'tblTempVendorCDR_20' ) end [2025-03-05 12:56:21] Production.INFO: ProcessCDR(1,14613284,1,1,2) [2025-03-05 12:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613284', 'tblTempUsageDetail_20' ) start [2025-03-05 12:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613284', 'tblTempUsageDetail_20' ) end [2025-03-05 12:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:56:26] Production.INFO: ==4699== Releasing lock... [2025-03-05 12:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:56:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-05 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:57:05 [end_date_ymd] => 2025-03-05 12:57:05 [RateCDR] => 1 ) [2025-03-05 12: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-03-05 09:57:05' and `end` < '2025-03-05 12: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-03-05 12:57:18] Production.INFO: count ==4634 [2025-03-05 12:57:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:57:05 - End Time 2025-03-05 12:57:05 [2025-03-05 12:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613289', 'tblTempUsageDetail_20' ) start [2025-03-05 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613289', 'tblTempUsageDetail_20' ) end [2025-03-05 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613289', 'tblTempVendorCDR_20' ) start [2025-03-05 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613289', 'tblTempVendorCDR_20' ) end [2025-03-05 12:57:20] Production.INFO: ProcessCDR(1,14613289,1,1,2) [2025-03-05 12:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613289', 'tblTempUsageDetail_20' ) start [2025-03-05 12:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613289', 'tblTempUsageDetail_20' ) end [2025-03-05 12:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:57:25] Production.INFO: ==4799== Releasing lock... [2025-03-05 12:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:57:25] Production.INFO: 62.75 MB #Memory Used# [2025-03-05 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:58:05 [end_date_ymd] => 2025-03-05 12:58:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 09:58:05' and `end` < '2025-03-05 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-03-05 12:58:18] Production.INFO: count ==4646 [2025-03-05 12:58:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:58:05 - End Time 2025-03-05 12:58:05 [2025-03-05 12:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613294', 'tblTempUsageDetail_20' ) start [2025-03-05 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613294', 'tblTempUsageDetail_20' ) end [2025-03-05 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613294', 'tblTempVendorCDR_20' ) start [2025-03-05 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613294', 'tblTempVendorCDR_20' ) end [2025-03-05 12:58:21] Production.INFO: ProcessCDR(1,14613294,1,1,2) [2025-03-05 12:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613294', 'tblTempUsageDetail_20' ) start [2025-03-05 12:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613294', 'tblTempUsageDetail_20' ) end [2025-03-05 12:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:58:26] Production.INFO: ==4904== Releasing lock... [2025-03-05 12:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:58:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-05 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 09:59:05 [end_date_ymd] => 2025-03-05 12:59:05 [RateCDR] => 1 ) [2025-03-05 12: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-03-05 09:59:05' and `end` < '2025-03-05 12: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-03-05 12:59:18] Production.INFO: count ==4643 [2025-03-05 12:59:20] Production.ERROR: pbx CDR StartTime 2025-03-05 09:59:05 - End Time 2025-03-05 12:59:05 [2025-03-05 12:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613299', 'tblTempUsageDetail_20' ) start [2025-03-05 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613299', 'tblTempUsageDetail_20' ) end [2025-03-05 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613299', 'tblTempVendorCDR_20' ) start [2025-03-05 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613299', 'tblTempVendorCDR_20' ) end [2025-03-05 12:59:20] Production.INFO: ProcessCDR(1,14613299,1,1,2) [2025-03-05 12:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 12:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 12:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613299', 'tblTempUsageDetail_20' ) start [2025-03-05 12:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613299', 'tblTempUsageDetail_20' ) end [2025-03-05 12:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 12:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 12:59:24] Production.INFO: ==5006== Releasing lock... [2025-03-05 12:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 12:59:24] Production.INFO: 62.75 MB #Memory Used# [2025-03-05 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:00:06 [end_date_ymd] => 2025-03-05 13:00:06 [RateCDR] => 1 ) [2025-03-05 13: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-03-05 10:00:06' and `end` < '2025-03-05 13: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-03-05 13:00:19] Production.INFO: count ==4654 [2025-03-05 13:00:21] Production.ERROR: pbx CDR StartTime 2025-03-05 10:00:06 - End Time 2025-03-05 13:00:06 [2025-03-05 13:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613305', 'tblTempUsageDetail_20' ) start [2025-03-05 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613305', 'tblTempUsageDetail_20' ) end [2025-03-05 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613305', 'tblTempVendorCDR_20' ) start [2025-03-05 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613305', 'tblTempVendorCDR_20' ) end [2025-03-05 13:00:21] Production.INFO: ProcessCDR(1,14613305,1,1,2) [2025-03-05 13:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613305', 'tblTempUsageDetail_20' ) start [2025-03-05 13:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613305', 'tblTempUsageDetail_20' ) end [2025-03-05 13:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:00:26] Production.INFO: ==5114== Releasing lock... [2025-03-05 13:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:00:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-05 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:01:05 [end_date_ymd] => 2025-03-05 13:01:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 10:01:05' and `end` < '2025-03-05 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-03-05 13:01:18] Production.INFO: count ==4715 [2025-03-05 13:01:20] Production.ERROR: pbx CDR StartTime 2025-03-05 10:01:05 - End Time 2025-03-05 13:01:05 [2025-03-05 13:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613310', 'tblTempUsageDetail_20' ) start [2025-03-05 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613310', 'tblTempUsageDetail_20' ) end [2025-03-05 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613310', 'tblTempVendorCDR_20' ) start [2025-03-05 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613310', 'tblTempVendorCDR_20' ) end [2025-03-05 13:01:20] Production.INFO: ProcessCDR(1,14613310,1,1,2) [2025-03-05 13:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613310', 'tblTempUsageDetail_20' ) start [2025-03-05 13:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613310', 'tblTempUsageDetail_20' ) end [2025-03-05 13:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:01:25] Production.INFO: ==5200== Releasing lock... [2025-03-05 13:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:01:25] Production.INFO: 63.25 MB #Memory Used# [2025-03-05 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:02:05 [end_date_ymd] => 2025-03-05 13:02:05 [RateCDR] => 1 ) [2025-03-05 13: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-03-05 10:02:05' and `end` < '2025-03-05 13: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-03-05 13:02:18] Production.INFO: count ==4741 [2025-03-05 13:02:20] Production.ERROR: pbx CDR StartTime 2025-03-05 10:02:05 - End Time 2025-03-05 13:02:05 [2025-03-05 13:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613315', 'tblTempUsageDetail_20' ) start [2025-03-05 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613315', 'tblTempUsageDetail_20' ) end [2025-03-05 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613315', 'tblTempVendorCDR_20' ) start [2025-03-05 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613315', 'tblTempVendorCDR_20' ) end [2025-03-05 13:02:20] Production.INFO: ProcessCDR(1,14613315,1,1,2) [2025-03-05 13:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613315', 'tblTempUsageDetail_20' ) start [2025-03-05 13:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613315', 'tblTempUsageDetail_20' ) end [2025-03-05 13:02:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:02:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:02:25] Production.INFO: ==5275== Releasing lock... [2025-03-05 13:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:02:25] Production.INFO: 63.5 MB #Memory Used# [2025-03-05 13:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:03:06 [end_date_ymd] => 2025-03-05 13:03:06 [RateCDR] => 1 ) [2025-03-05 13: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-03-05 10:03:06' and `end` < '2025-03-05 13: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-03-05 13:03:19] Production.INFO: count ==4767 [2025-03-05 13:03:21] Production.ERROR: pbx CDR StartTime 2025-03-05 10:03:06 - End Time 2025-03-05 13:03:06 [2025-03-05 13:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613320', 'tblTempUsageDetail_20' ) start [2025-03-05 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613320', 'tblTempUsageDetail_20' ) end [2025-03-05 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613320', 'tblTempVendorCDR_20' ) start [2025-03-05 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613320', 'tblTempVendorCDR_20' ) end [2025-03-05 13:03:21] Production.INFO: ProcessCDR(1,14613320,1,1,2) [2025-03-05 13:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613320', 'tblTempUsageDetail_20' ) start [2025-03-05 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613320', 'tblTempUsageDetail_20' ) end [2025-03-05 13:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:03:26] Production.INFO: ==5349== Releasing lock... [2025-03-05 13:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:03:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-05 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:04:05 [end_date_ymd] => 2025-03-05 13:04:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 10:04:05' and `end` < '2025-03-05 13: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-03-05 13:04:18] Production.INFO: count ==4774 [2025-03-05 13:04:20] Production.ERROR: pbx CDR StartTime 2025-03-05 10:04:05 - End Time 2025-03-05 13:04:05 [2025-03-05 13:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613325', 'tblTempUsageDetail_20' ) start [2025-03-05 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613325', 'tblTempUsageDetail_20' ) end [2025-03-05 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613325', 'tblTempVendorCDR_20' ) start [2025-03-05 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613325', 'tblTempVendorCDR_20' ) end [2025-03-05 13:04:20] Production.INFO: ProcessCDR(1,14613325,1,1,2) [2025-03-05 13:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613325', 'tblTempUsageDetail_20' ) start [2025-03-05 13:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613325', 'tblTempUsageDetail_20' ) end [2025-03-05 13:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:04:25] Production.INFO: ==5426== Releasing lock... [2025-03-05 13:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:04:25] Production.INFO: 63.75 MB #Memory Used# [2025-03-05 13:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:05:06 [end_date_ymd] => 2025-03-05 13:05:06 [RateCDR] => 1 ) [2025-03-05 13:05: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-03-05 10:05:06' and `end` < '2025-03-05 13:05: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-03-05 13:05:19] Production.INFO: count ==4787 [2025-03-05 13:05:21] Production.ERROR: pbx CDR StartTime 2025-03-05 10:05:06 - End Time 2025-03-05 13:05:06 [2025-03-05 13:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613330', 'tblTempUsageDetail_20' ) start [2025-03-05 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613330', 'tblTempUsageDetail_20' ) end [2025-03-05 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613330', 'tblTempVendorCDR_20' ) start [2025-03-05 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613330', 'tblTempVendorCDR_20' ) end [2025-03-05 13:05:21] Production.INFO: ProcessCDR(1,14613330,1,1,2) [2025-03-05 13:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613330', 'tblTempUsageDetail_20' ) start [2025-03-05 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613330', 'tblTempUsageDetail_20' ) end [2025-03-05 13:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:05:26] Production.INFO: ==5511== Releasing lock... [2025-03-05 13:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:05:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-05 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:06:05 [end_date_ymd] => 2025-03-05 13:06:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 10:06:05' and `end` < '2025-03-05 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-03-05 13:06:18] Production.INFO: count ==4797 [2025-03-05 13:06:20] Production.ERROR: pbx CDR StartTime 2025-03-05 10:06:05 - End Time 2025-03-05 13:06:05 [2025-03-05 13:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613335', 'tblTempUsageDetail_20' ) start [2025-03-05 13:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613335', 'tblTempUsageDetail_20' ) end [2025-03-05 13:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613335', 'tblTempVendorCDR_20' ) start [2025-03-05 13:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613335', 'tblTempVendorCDR_20' ) end [2025-03-05 13:06:20] Production.INFO: ProcessCDR(1,14613335,1,1,2) [2025-03-05 13:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613335', 'tblTempUsageDetail_20' ) start [2025-03-05 13:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613335', 'tblTempUsageDetail_20' ) end [2025-03-05 13:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:06:25] Production.INFO: ==5587== Releasing lock... [2025-03-05 13:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:06:25] Production.INFO: 64 MB #Memory Used# [2025-03-05 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:07:05 [end_date_ymd] => 2025-03-05 13:07:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 10:07:05' and `end` < '2025-03-05 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-03-05 13:07:18] Production.INFO: count ==4823 [2025-03-05 13:07:20] Production.ERROR: pbx CDR StartTime 2025-03-05 10:07:05 - End Time 2025-03-05 13:07:05 [2025-03-05 13:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613340', 'tblTempUsageDetail_20' ) start [2025-03-05 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613340', 'tblTempUsageDetail_20' ) end [2025-03-05 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613340', 'tblTempVendorCDR_20' ) start [2025-03-05 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613340', 'tblTempVendorCDR_20' ) end [2025-03-05 13:07:20] Production.INFO: ProcessCDR(1,14613340,1,1,2) [2025-03-05 13:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613340', 'tblTempUsageDetail_20' ) start [2025-03-05 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613340', 'tblTempUsageDetail_20' ) end [2025-03-05 13:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:07:26] Production.INFO: ==5660== Releasing lock... [2025-03-05 13:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:07:26] Production.INFO: 64 MB #Memory Used# [2025-03-05 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:08:05 [end_date_ymd] => 2025-03-05 13:08:05 [RateCDR] => 1 ) [2025-03-05 13: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-03-05 10:08:05' and `end` < '2025-03-05 13: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-03-05 13:08:18] Production.INFO: count ==4821 [2025-03-05 13:08:20] Production.ERROR: pbx CDR StartTime 2025-03-05 10:08:05 - End Time 2025-03-05 13:08:05 [2025-03-05 13:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613345', 'tblTempUsageDetail_20' ) start [2025-03-05 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613345', 'tblTempUsageDetail_20' ) end [2025-03-05 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613345', 'tblTempVendorCDR_20' ) start [2025-03-05 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613345', 'tblTempVendorCDR_20' ) end [2025-03-05 13:08:20] Production.INFO: ProcessCDR(1,14613345,1,1,2) [2025-03-05 13:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613345', 'tblTempUsageDetail_20' ) start [2025-03-05 13:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613345', 'tblTempUsageDetail_20' ) end [2025-03-05 13:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:08:25] Production.INFO: ==5738== Releasing lock... [2025-03-05 13:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:08:25] Production.INFO: 64 MB #Memory Used# [2025-03-05 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:09:05 [end_date_ymd] => 2025-03-05 13:09:05 [RateCDR] => 1 ) [2025-03-05 13: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-03-05 10:09:05' and `end` < '2025-03-05 13: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-03-05 13:09:18] Production.INFO: count ==4840 [2025-03-05 13:09:20] Production.ERROR: pbx CDR StartTime 2025-03-05 10:09:05 - End Time 2025-03-05 13:09:05 [2025-03-05 13:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613350', 'tblTempUsageDetail_20' ) start [2025-03-05 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613350', 'tblTempUsageDetail_20' ) end [2025-03-05 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613350', 'tblTempVendorCDR_20' ) start [2025-03-05 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613350', 'tblTempVendorCDR_20' ) end [2025-03-05 13:09:20] Production.INFO: ProcessCDR(1,14613350,1,1,2) [2025-03-05 13:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613350', 'tblTempUsageDetail_20' ) start [2025-03-05 13:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613350', 'tblTempUsageDetail_20' ) end [2025-03-05 13:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:09:25] Production.INFO: ==5809== Releasing lock... [2025-03-05 13:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:09:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-05 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:10:06 [end_date_ymd] => 2025-03-05 13:10:06 [RateCDR] => 1 ) [2025-03-05 13: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-03-05 10:10:06' and `end` < '2025-03-05 13: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-03-05 13:10:19] Production.INFO: count ==4855 [2025-03-05 13:10:22] Production.ERROR: pbx CDR StartTime 2025-03-05 10:10:06 - End Time 2025-03-05 13:10:06 [2025-03-05 13:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613356', 'tblTempUsageDetail_20' ) start [2025-03-05 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613356', 'tblTempUsageDetail_20' ) end [2025-03-05 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613356', 'tblTempVendorCDR_20' ) start [2025-03-05 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613356', 'tblTempVendorCDR_20' ) end [2025-03-05 13:10:22] Production.INFO: ProcessCDR(1,14613356,1,1,2) [2025-03-05 13:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613356', 'tblTempUsageDetail_20' ) start [2025-03-05 13:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613356', 'tblTempUsageDetail_20' ) end [2025-03-05 13:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:10:27] Production.INFO: ==5887== Releasing lock... [2025-03-05 13:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:10:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-05 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:11:05 [end_date_ymd] => 2025-03-05 13:11:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 10:11:05' and `end` < '2025-03-05 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-03-05 13:11:18] Production.INFO: count ==4818 [2025-03-05 13:11:20] Production.ERROR: pbx CDR StartTime 2025-03-05 10:11:05 - End Time 2025-03-05 13:11:05 [2025-03-05 13:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613361', 'tblTempUsageDetail_20' ) start [2025-03-05 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613361', 'tblTempUsageDetail_20' ) end [2025-03-05 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613361', 'tblTempVendorCDR_20' ) start [2025-03-05 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613361', 'tblTempVendorCDR_20' ) end [2025-03-05 13:11:21] Production.INFO: ProcessCDR(1,14613361,1,1,2) [2025-03-05 13:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613361', 'tblTempUsageDetail_20' ) start [2025-03-05 13:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613361', 'tblTempUsageDetail_20' ) end [2025-03-05 13:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:11:25] Production.INFO: ==6018== Releasing lock... [2025-03-05 13:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:11:25] Production.INFO: 64 MB #Memory Used# [2025-03-05 13:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:12:06 [end_date_ymd] => 2025-03-05 13:12:06 [RateCDR] => 1 ) [2025-03-05 13:12: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-03-05 10:12:06' and `end` < '2025-03-05 13:12: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-03-05 13:12:19] Production.INFO: count ==4811 [2025-03-05 13:12:21] Production.ERROR: pbx CDR StartTime 2025-03-05 10:12:06 - End Time 2025-03-05 13:12:06 [2025-03-05 13:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613363', 'tblTempUsageDetail_20' ) start [2025-03-05 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613363', 'tblTempUsageDetail_20' ) end [2025-03-05 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613363', 'tblTempVendorCDR_20' ) start [2025-03-05 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613363', 'tblTempVendorCDR_20' ) end [2025-03-05 13:12:21] Production.INFO: ProcessCDR(1,14613363,1,1,2) [2025-03-05 13:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613363', 'tblTempUsageDetail_20' ) start [2025-03-05 13:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613363', 'tblTempUsageDetail_20' ) end [2025-03-05 13:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:12:25] Production.INFO: ==6136== Releasing lock... [2025-03-05 13:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:12:25] Production.INFO: 64 MB #Memory Used# [2025-03-05 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:13:05 [end_date_ymd] => 2025-03-05 13:13:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 10:13:05' and `end` < '2025-03-05 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-03-05 13:13:18] Production.INFO: count ==4819 [2025-03-05 13:13:20] Production.ERROR: pbx CDR StartTime 2025-03-05 10:13:05 - End Time 2025-03-05 13:13:05 [2025-03-05 13:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613371', 'tblTempUsageDetail_20' ) start [2025-03-05 13:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613371', 'tblTempUsageDetail_20' ) end [2025-03-05 13:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613371', 'tblTempVendorCDR_20' ) start [2025-03-05 13:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613371', 'tblTempVendorCDR_20' ) end [2025-03-05 13:13:20] Production.INFO: ProcessCDR(1,14613371,1,1,2) [2025-03-05 13:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613371', 'tblTempUsageDetail_20' ) start [2025-03-05 13:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613371', 'tblTempUsageDetail_20' ) end [2025-03-05 13:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:13:25] Production.INFO: ==6250== Releasing lock... [2025-03-05 13:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:13:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-05 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:14:05 [end_date_ymd] => 2025-03-05 13:14:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 10:14:05' and `end` < '2025-03-05 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-03-05 13:14:18] Production.INFO: count ==4812 [2025-03-05 13:14:20] Production.ERROR: pbx CDR StartTime 2025-03-05 10:14:05 - End Time 2025-03-05 13:14:05 [2025-03-05 13:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613376', 'tblTempUsageDetail_20' ) start [2025-03-05 13:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613376', 'tblTempUsageDetail_20' ) end [2025-03-05 13:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613376', 'tblTempVendorCDR_20' ) start [2025-03-05 13:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613376', 'tblTempVendorCDR_20' ) end [2025-03-05 13:14:20] Production.INFO: ProcessCDR(1,14613376,1,1,2) [2025-03-05 13:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613376', 'tblTempUsageDetail_20' ) start [2025-03-05 13:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613376', 'tblTempUsageDetail_20' ) end [2025-03-05 13:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:14:25] Production.INFO: ==6369== Releasing lock... [2025-03-05 13:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:14:25] Production.INFO: 64 MB #Memory Used# [2025-03-05 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:15:05 [end_date_ymd] => 2025-03-05 13:15:05 [RateCDR] => 1 ) [2025-03-05 13: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-03-05 10:15:05' and `end` < '2025-03-05 13: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-03-05 13:15:18] Production.INFO: count ==4813 [2025-03-05 13:15:21] Production.ERROR: pbx CDR StartTime 2025-03-05 10:15:05 - End Time 2025-03-05 13:15:05 [2025-03-05 13:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613381', 'tblTempUsageDetail_20' ) start [2025-03-05 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613381', 'tblTempUsageDetail_20' ) end [2025-03-05 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613381', 'tblTempVendorCDR_20' ) start [2025-03-05 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613381', 'tblTempVendorCDR_20' ) end [2025-03-05 13:15:21] Production.INFO: ProcessCDR(1,14613381,1,1,2) [2025-03-05 13:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613381', 'tblTempUsageDetail_20' ) start [2025-03-05 13:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613381', 'tblTempUsageDetail_20' ) end [2025-03-05 13:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:15:25] Production.INFO: ==6485== Releasing lock... [2025-03-05 13:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:15:25] Production.INFO: 64 MB #Memory Used# [2025-03-05 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:16:05 [end_date_ymd] => 2025-03-05 13:16:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 10:16:05' and `end` < '2025-03-05 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-03-05 13:16:18] Production.INFO: count ==4815 [2025-03-05 13:16:20] Production.ERROR: pbx CDR StartTime 2025-03-05 10:16:05 - End Time 2025-03-05 13:16:05 [2025-03-05 13:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613386', 'tblTempUsageDetail_20' ) start [2025-03-05 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613386', 'tblTempUsageDetail_20' ) end [2025-03-05 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613386', 'tblTempVendorCDR_20' ) start [2025-03-05 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613386', 'tblTempVendorCDR_20' ) end [2025-03-05 13:16:21] Production.INFO: ProcessCDR(1,14613386,1,1,2) [2025-03-05 13:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613386', 'tblTempUsageDetail_20' ) start [2025-03-05 13:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613386', 'tblTempUsageDetail_20' ) end [2025-03-05 13:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:16:25] Production.INFO: ==6605== Releasing lock... [2025-03-05 13:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:16:25] Production.INFO: 64 MB #Memory Used# [2025-03-05 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:17:05 [end_date_ymd] => 2025-03-05 13:17:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 10:17:05' and `end` < '2025-03-05 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-03-05 13:17:20] Production.INFO: count ==4830 [2025-03-05 13:17:22] Production.ERROR: pbx CDR StartTime 2025-03-05 10:17:05 - End Time 2025-03-05 13:17:05 [2025-03-05 13:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613391', 'tblTempUsageDetail_20' ) start [2025-03-05 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613391', 'tblTempUsageDetail_20' ) end [2025-03-05 13:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613391', 'tblTempVendorCDR_20' ) start [2025-03-05 13:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613391', 'tblTempVendorCDR_20' ) end [2025-03-05 13:17:23] Production.INFO: ProcessCDR(1,14613391,1,1,2) [2025-03-05 13:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613391', 'tblTempUsageDetail_20' ) start [2025-03-05 13:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613391', 'tblTempUsageDetail_20' ) end [2025-03-05 13:17:28] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:17:28] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:17:28] Production.INFO: ==6718== Releasing lock... [2025-03-05 13:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:17:28] Production.INFO: 64.25 MB #Memory Used# [2025-03-05 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:18:05 [end_date_ymd] => 2025-03-05 13:18:05 [RateCDR] => 1 ) [2025-03-05 13: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-03-05 10:18:05' and `end` < '2025-03-05 13: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-03-05 13:18:20] Production.INFO: count ==4823 [2025-03-05 13:18:22] Production.ERROR: pbx CDR StartTime 2025-03-05 10:18:05 - End Time 2025-03-05 13:18:05 [2025-03-05 13:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613396', 'tblTempUsageDetail_20' ) start [2025-03-05 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613396', 'tblTempUsageDetail_20' ) end [2025-03-05 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613396', 'tblTempVendorCDR_20' ) start [2025-03-05 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613396', 'tblTempVendorCDR_20' ) end [2025-03-05 13:18:22] Production.INFO: ProcessCDR(1,14613396,1,1,2) [2025-03-05 13:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613396', 'tblTempUsageDetail_20' ) start [2025-03-05 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613396', 'tblTempUsageDetail_20' ) end [2025-03-05 13:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:18:27] Production.INFO: ==6830== Releasing lock... [2025-03-05 13:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:18:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-05 13:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:19:06 [end_date_ymd] => 2025-03-05 13:19:06 [RateCDR] => 1 ) [2025-03-05 13:19: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-03-05 10:19:06' and `end` < '2025-03-05 13:19: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-03-05 13:19:19] Production.INFO: count ==4809 [2025-03-05 13:19:21] Production.ERROR: pbx CDR StartTime 2025-03-05 10:19:06 - End Time 2025-03-05 13:19:06 [2025-03-05 13:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613401', 'tblTempUsageDetail_20' ) start [2025-03-05 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613401', 'tblTempUsageDetail_20' ) end [2025-03-05 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613401', 'tblTempVendorCDR_20' ) start [2025-03-05 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613401', 'tblTempVendorCDR_20' ) end [2025-03-05 13:19:21] Production.INFO: ProcessCDR(1,14613401,1,1,2) [2025-03-05 13:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613401', 'tblTempUsageDetail_20' ) start [2025-03-05 13:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613401', 'tblTempUsageDetail_20' ) end [2025-03-05 13:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:19:26] Production.INFO: ==6951== Releasing lock... [2025-03-05 13:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:19:26] Production.INFO: 64 MB #Memory Used# [2025-03-05 13:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:20:05 [end_date_ymd] => 2025-03-05 13:20:05 [RateCDR] => 1 ) [2025-03-05 13: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-03-05 10:20:05' and `end` < '2025-03-05 13: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-03-05 13:20:18] Production.INFO: count ==4785 [2025-03-05 13:20:20] Production.ERROR: pbx CDR StartTime 2025-03-05 10:20:05 - End Time 2025-03-05 13:20:05 [2025-03-05 13:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613406', 'tblTempUsageDetail_20' ) start [2025-03-05 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613406', 'tblTempUsageDetail_20' ) end [2025-03-05 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613406', 'tblTempVendorCDR_20' ) start [2025-03-05 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613406', 'tblTempVendorCDR_20' ) end [2025-03-05 13:20:21] Production.INFO: ProcessCDR(1,14613406,1,1,2) [2025-03-05 13:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613406', 'tblTempUsageDetail_20' ) start [2025-03-05 13:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613406', 'tblTempUsageDetail_20' ) end [2025-03-05 13:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:20:26] Production.INFO: ==7074== Releasing lock... [2025-03-05 13:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:20:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-05 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:21:05 [end_date_ymd] => 2025-03-05 13:21:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 10:21:05' and `end` < '2025-03-05 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-03-05 13:21:18] Production.INFO: count ==4803 [2025-03-05 13:21:20] Production.ERROR: pbx CDR StartTime 2025-03-05 10:21:05 - End Time 2025-03-05 13:21:05 [2025-03-05 13:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613412', 'tblTempUsageDetail_20' ) start [2025-03-05 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613412', 'tblTempUsageDetail_20' ) end [2025-03-05 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613412', 'tblTempVendorCDR_20' ) start [2025-03-05 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613412', 'tblTempVendorCDR_20' ) end [2025-03-05 13:21:21] Production.INFO: ProcessCDR(1,14613412,1,1,2) [2025-03-05 13:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613412', 'tblTempUsageDetail_20' ) start [2025-03-05 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613412', 'tblTempUsageDetail_20' ) end [2025-03-05 13:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:21:26] Production.INFO: ==7193== Releasing lock... [2025-03-05 13:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:21:26] Production.INFO: 64 MB #Memory Used# [2025-03-05 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:22:05 [end_date_ymd] => 2025-03-05 13:22:05 [RateCDR] => 1 ) [2025-03-05 13: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-03-05 10:22:05' and `end` < '2025-03-05 13: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-03-05 13:22:18] Production.INFO: count ==4812 [2025-03-05 13:22:20] Production.ERROR: pbx CDR StartTime 2025-03-05 10:22:05 - End Time 2025-03-05 13:22:05 [2025-03-05 13:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613417', 'tblTempUsageDetail_20' ) start [2025-03-05 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613417', 'tblTempUsageDetail_20' ) end [2025-03-05 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613417', 'tblTempVendorCDR_20' ) start [2025-03-05 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613417', 'tblTempVendorCDR_20' ) end [2025-03-05 13:22:21] Production.INFO: ProcessCDR(1,14613417,1,1,2) [2025-03-05 13:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613417', 'tblTempUsageDetail_20' ) start [2025-03-05 13:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613417', 'tblTempUsageDetail_20' ) end [2025-03-05 13:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:22:25] Production.INFO: ==7308== Releasing lock... [2025-03-05 13:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:22:25] Production.INFO: 64 MB #Memory Used# [2025-03-05 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:23:05 [end_date_ymd] => 2025-03-05 13:23:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 10:23:05' and `end` < '2025-03-05 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-03-05 13:23:19] Production.INFO: count ==4819 [2025-03-05 13:23:21] Production.ERROR: pbx CDR StartTime 2025-03-05 10:23:05 - End Time 2025-03-05 13:23:05 [2025-03-05 13:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613422', 'tblTempUsageDetail_20' ) start [2025-03-05 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613422', 'tblTempUsageDetail_20' ) end [2025-03-05 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613422', 'tblTempVendorCDR_20' ) start [2025-03-05 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613422', 'tblTempVendorCDR_20' ) end [2025-03-05 13:23:21] Production.INFO: ProcessCDR(1,14613422,1,1,2) [2025-03-05 13:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613422', 'tblTempUsageDetail_20' ) start [2025-03-05 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613422', 'tblTempUsageDetail_20' ) end [2025-03-05 13:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:23:26] Production.INFO: ==7425== Releasing lock... [2025-03-05 13:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:23:26] Production.INFO: 64 MB #Memory Used# [2025-03-05 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:24:05 [end_date_ymd] => 2025-03-05 13:24:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 10:24:05' and `end` < '2025-03-05 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-03-05 13:24:18] Production.INFO: count ==4832 [2025-03-05 13:24:20] Production.ERROR: pbx CDR StartTime 2025-03-05 10:24:05 - End Time 2025-03-05 13:24:05 [2025-03-05 13:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613427', 'tblTempUsageDetail_20' ) start [2025-03-05 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613427', 'tblTempUsageDetail_20' ) end [2025-03-05 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613427', 'tblTempVendorCDR_20' ) start [2025-03-05 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613427', 'tblTempVendorCDR_20' ) end [2025-03-05 13:24:21] Production.INFO: ProcessCDR(1,14613427,1,1,2) [2025-03-05 13:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613427', 'tblTempUsageDetail_20' ) start [2025-03-05 13:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613427', 'tblTempUsageDetail_20' ) end [2025-03-05 13:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:24:25] Production.INFO: ==7542== Releasing lock... [2025-03-05 13:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:24:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-05 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:25:06 [end_date_ymd] => 2025-03-05 13:25:06 [RateCDR] => 1 ) [2025-03-05 13:25: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-03-05 10:25:06' and `end` < '2025-03-05 13:25: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-03-05 13:25:19] Production.INFO: count ==4830 [2025-03-05 13:25:21] Production.ERROR: pbx CDR StartTime 2025-03-05 10:25:06 - End Time 2025-03-05 13:25:06 [2025-03-05 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613432', 'tblTempUsageDetail_20' ) start [2025-03-05 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613432', 'tblTempUsageDetail_20' ) end [2025-03-05 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613432', 'tblTempVendorCDR_20' ) start [2025-03-05 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613432', 'tblTempVendorCDR_20' ) end [2025-03-05 13:25:21] Production.INFO: ProcessCDR(1,14613432,1,1,2) [2025-03-05 13:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613432', 'tblTempUsageDetail_20' ) start [2025-03-05 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613432', 'tblTempUsageDetail_20' ) end [2025-03-05 13:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:25:27] Production.INFO: ==7661== Releasing lock... [2025-03-05 13:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:25:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-05 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:26:05 [end_date_ymd] => 2025-03-05 13:26:05 [RateCDR] => 1 ) [2025-03-05 13: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-03-05 10:26:05' and `end` < '2025-03-05 13: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-03-05 13:26:18] Production.INFO: count ==4841 [2025-03-05 13:26:20] Production.ERROR: pbx CDR StartTime 2025-03-05 10:26:05 - End Time 2025-03-05 13:26:05 [2025-03-05 13:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613437', 'tblTempUsageDetail_20' ) start [2025-03-05 13:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613437', 'tblTempUsageDetail_20' ) end [2025-03-05 13:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613437', 'tblTempVendorCDR_20' ) start [2025-03-05 13:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613437', 'tblTempVendorCDR_20' ) end [2025-03-05 13:26:20] Production.INFO: ProcessCDR(1,14613437,1,1,2) [2025-03-05 13:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613437', 'tblTempUsageDetail_20' ) start [2025-03-05 13:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613437', 'tblTempUsageDetail_20' ) end [2025-03-05 13:26:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:26:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:26:25] Production.INFO: ==7776== Releasing lock... [2025-03-05 13:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:26:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-05 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:27:05 [end_date_ymd] => 2025-03-05 13:27:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 10:27:05' and `end` < '2025-03-05 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-03-05 13:27:19] Production.INFO: count ==4842 [2025-03-05 13:27:21] Production.ERROR: pbx CDR StartTime 2025-03-05 10:27:05 - End Time 2025-03-05 13:27:05 [2025-03-05 13:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613442', 'tblTempUsageDetail_20' ) start [2025-03-05 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613442', 'tblTempUsageDetail_20' ) end [2025-03-05 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613442', 'tblTempVendorCDR_20' ) start [2025-03-05 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613442', 'tblTempVendorCDR_20' ) end [2025-03-05 13:27:21] Production.INFO: ProcessCDR(1,14613442,1,1,2) [2025-03-05 13:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613442', 'tblTempUsageDetail_20' ) start [2025-03-05 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613442', 'tblTempUsageDetail_20' ) end [2025-03-05 13:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:27:26] Production.INFO: ==7932== Releasing lock... [2025-03-05 13:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:27:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-05 13:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:28:06 [end_date_ymd] => 2025-03-05 13:28:06 [RateCDR] => 1 ) [2025-03-05 13: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-03-05 10:28:06' and `end` < '2025-03-05 13: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-03-05 13:28:19] Production.INFO: count ==4842 [2025-03-05 13:28:21] Production.ERROR: pbx CDR StartTime 2025-03-05 10:28:06 - End Time 2025-03-05 13:28:06 [2025-03-05 13:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613447', 'tblTempUsageDetail_20' ) start [2025-03-05 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613447', 'tblTempUsageDetail_20' ) end [2025-03-05 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613447', 'tblTempVendorCDR_20' ) start [2025-03-05 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613447', 'tblTempVendorCDR_20' ) end [2025-03-05 13:28:21] Production.INFO: ProcessCDR(1,14613447,1,1,2) [2025-03-05 13:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613447', 'tblTempUsageDetail_20' ) start [2025-03-05 13:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613447', 'tblTempUsageDetail_20' ) end [2025-03-05 13:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:28:25] Production.INFO: ==8049== Releasing lock... [2025-03-05 13:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:28:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-05 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:29:05 [end_date_ymd] => 2025-03-05 13:29:05 [RateCDR] => 1 ) [2025-03-05 13: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-03-05 10:29:05' and `end` < '2025-03-05 13: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-03-05 13:29:18] Production.INFO: count ==4831 [2025-03-05 13:29:20] Production.ERROR: pbx CDR StartTime 2025-03-05 10:29:05 - End Time 2025-03-05 13:29:05 [2025-03-05 13:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613452', 'tblTempUsageDetail_20' ) start [2025-03-05 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613452', 'tblTempUsageDetail_20' ) end [2025-03-05 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613452', 'tblTempVendorCDR_20' ) start [2025-03-05 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613452', 'tblTempVendorCDR_20' ) end [2025-03-05 13:29:20] Production.INFO: ProcessCDR(1,14613452,1,1,2) [2025-03-05 13:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613452', 'tblTempUsageDetail_20' ) start [2025-03-05 13:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613452', 'tblTempUsageDetail_20' ) end [2025-03-05 13:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:29:25] Production.INFO: ==8163== Releasing lock... [2025-03-05 13:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:29:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-05 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:30:06 [end_date_ymd] => 2025-03-05 13:30:06 [RateCDR] => 1 ) [2025-03-05 13: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-03-05 10:30:06' and `end` < '2025-03-05 13: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-03-05 13:30:19] Production.INFO: count ==4828 [2025-03-05 13:30:21] Production.ERROR: pbx CDR StartTime 2025-03-05 10:30:06 - End Time 2025-03-05 13:30:06 [2025-03-05 13:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613458', 'tblTempUsageDetail_20' ) start [2025-03-05 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613458', 'tblTempUsageDetail_20' ) end [2025-03-05 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613458', 'tblTempVendorCDR_20' ) start [2025-03-05 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613458', 'tblTempVendorCDR_20' ) end [2025-03-05 13:30:22] Production.INFO: ProcessCDR(1,14613458,1,1,2) [2025-03-05 13:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613458', 'tblTempUsageDetail_20' ) start [2025-03-05 13:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613458', 'tblTempUsageDetail_20' ) end [2025-03-05 13:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:30:26] Production.INFO: ==8288== Releasing lock... [2025-03-05 13:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:30:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-05 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:31:05 [end_date_ymd] => 2025-03-05 13:31:05 [RateCDR] => 1 ) [2025-03-05 13: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-03-05 10:31:05' and `end` < '2025-03-05 13: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-03-05 13:31:18] Production.INFO: count ==4873 [2025-03-05 13:31:21] Production.ERROR: pbx CDR StartTime 2025-03-05 10:31:05 - End Time 2025-03-05 13:31:05 [2025-03-05 13:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613463', 'tblTempUsageDetail_20' ) start [2025-03-05 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613463', 'tblTempUsageDetail_20' ) end [2025-03-05 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613463', 'tblTempVendorCDR_20' ) start [2025-03-05 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613463', 'tblTempVendorCDR_20' ) end [2025-03-05 13:31:21] Production.INFO: ProcessCDR(1,14613463,1,1,2) [2025-03-05 13:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613463', 'tblTempUsageDetail_20' ) start [2025-03-05 13:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613463', 'tblTempUsageDetail_20' ) end [2025-03-05 13:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:31:26] Production.INFO: ==8402== Releasing lock... [2025-03-05 13:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:31:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-05 13:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:32:06 [end_date_ymd] => 2025-03-05 13:32:06 [RateCDR] => 1 ) [2025-03-05 13: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-03-05 10:32:06' and `end` < '2025-03-05 13: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-03-05 13:32:19] Production.INFO: count ==4878 [2025-03-05 13:32:21] Production.ERROR: pbx CDR StartTime 2025-03-05 10:32:06 - End Time 2025-03-05 13:32:06 [2025-03-05 13:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613468', 'tblTempUsageDetail_20' ) start [2025-03-05 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613468', 'tblTempUsageDetail_20' ) end [2025-03-05 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613468', 'tblTempVendorCDR_20' ) start [2025-03-05 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613468', 'tblTempVendorCDR_20' ) end [2025-03-05 13:32:21] Production.INFO: ProcessCDR(1,14613468,1,1,2) [2025-03-05 13:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613468', 'tblTempUsageDetail_20' ) start [2025-03-05 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613468', 'tblTempUsageDetail_20' ) end [2025-03-05 13:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:32:26] Production.INFO: ==8476== Releasing lock... [2025-03-05 13:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:32:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-05 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:33:05 [end_date_ymd] => 2025-03-05 13:33:05 [RateCDR] => 1 ) [2025-03-05 13: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-03-05 10:33:05' and `end` < '2025-03-05 13: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-03-05 13:33:18] Production.INFO: count ==4858 [2025-03-05 13:33:20] Production.ERROR: pbx CDR StartTime 2025-03-05 10:33:05 - End Time 2025-03-05 13:33:05 [2025-03-05 13:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613473', 'tblTempUsageDetail_20' ) start [2025-03-05 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613473', 'tblTempUsageDetail_20' ) end [2025-03-05 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613473', 'tblTempVendorCDR_20' ) start [2025-03-05 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613473', 'tblTempVendorCDR_20' ) end [2025-03-05 13:33:20] Production.INFO: ProcessCDR(1,14613473,1,1,2) [2025-03-05 13:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613473', 'tblTempUsageDetail_20' ) start [2025-03-05 13:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613473', 'tblTempUsageDetail_20' ) end [2025-03-05 13:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:33:25] Production.INFO: ==8551== Releasing lock... [2025-03-05 13:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:33:25] Production.INFO: 64.5 MB #Memory Used# [2025-03-05 13:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:34:06 [end_date_ymd] => 2025-03-05 13:34:06 [RateCDR] => 1 ) [2025-03-05 13: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-03-05 10:34:06' and `end` < '2025-03-05 13: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-03-05 13:34:19] Production.INFO: count ==4863 [2025-03-05 13:34:21] Production.ERROR: pbx CDR StartTime 2025-03-05 10:34:06 - End Time 2025-03-05 13:34:06 [2025-03-05 13:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613478', 'tblTempUsageDetail_20' ) start [2025-03-05 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613478', 'tblTempUsageDetail_20' ) end [2025-03-05 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613478', 'tblTempVendorCDR_20' ) start [2025-03-05 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613478', 'tblTempVendorCDR_20' ) end [2025-03-05 13:34:21] Production.INFO: ProcessCDR(1,14613478,1,1,2) [2025-03-05 13:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613478', 'tblTempUsageDetail_20' ) start [2025-03-05 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613478', 'tblTempUsageDetail_20' ) end [2025-03-05 13:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:34:26] Production.INFO: ==8626== Releasing lock... [2025-03-05 13:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:34:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-05 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:35:05 [end_date_ymd] => 2025-03-05 13:35:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 10:35:05' and `end` < '2025-03-05 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-03-05 13:35:18] Production.INFO: count ==4869 [2025-03-05 13:35:20] Production.ERROR: pbx CDR StartTime 2025-03-05 10:35:05 - End Time 2025-03-05 13:35:05 [2025-03-05 13:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613483', 'tblTempUsageDetail_20' ) start [2025-03-05 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613483', 'tblTempUsageDetail_20' ) end [2025-03-05 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613483', 'tblTempVendorCDR_20' ) start [2025-03-05 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613483', 'tblTempVendorCDR_20' ) end [2025-03-05 13:35:20] Production.INFO: ProcessCDR(1,14613483,1,1,2) [2025-03-05 13:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613483', 'tblTempUsageDetail_20' ) start [2025-03-05 13:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613483', 'tblTempUsageDetail_20' ) end [2025-03-05 13:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:35:25] Production.INFO: ==8703== Releasing lock... [2025-03-05 13:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:35:25] Production.INFO: 64.5 MB #Memory Used# [2025-03-05 13:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:36:06 [end_date_ymd] => 2025-03-05 13:36:06 [RateCDR] => 1 ) [2025-03-05 13:36: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-03-05 10:36:06' and `end` < '2025-03-05 13:36: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-03-05 13:36:19] Production.INFO: count ==4872 [2025-03-05 13:36:21] Production.ERROR: pbx CDR StartTime 2025-03-05 10:36:06 - End Time 2025-03-05 13:36:06 [2025-03-05 13:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613488', 'tblTempUsageDetail_20' ) start [2025-03-05 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613488', 'tblTempUsageDetail_20' ) end [2025-03-05 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613488', 'tblTempVendorCDR_20' ) start [2025-03-05 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613488', 'tblTempVendorCDR_20' ) end [2025-03-05 13:36:21] Production.INFO: ProcessCDR(1,14613488,1,1,2) [2025-03-05 13:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613488', 'tblTempUsageDetail_20' ) start [2025-03-05 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613488', 'tblTempUsageDetail_20' ) end [2025-03-05 13:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:36:26] Production.INFO: ==8777== Releasing lock... [2025-03-05 13:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:36:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-05 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:37:05 [end_date_ymd] => 2025-03-05 13:37:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 10:37:05' and `end` < '2025-03-05 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-03-05 13:37:18] Production.INFO: count ==4893 [2025-03-05 13:37:20] Production.ERROR: pbx CDR StartTime 2025-03-05 10:37:05 - End Time 2025-03-05 13:37:05 [2025-03-05 13:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613493', 'tblTempUsageDetail_20' ) start [2025-03-05 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613493', 'tblTempUsageDetail_20' ) end [2025-03-05 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613493', 'tblTempVendorCDR_20' ) start [2025-03-05 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613493', 'tblTempVendorCDR_20' ) end [2025-03-05 13:37:20] Production.INFO: ProcessCDR(1,14613493,1,1,2) [2025-03-05 13:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613493', 'tblTempUsageDetail_20' ) start [2025-03-05 13:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613493', 'tblTempUsageDetail_20' ) end [2025-03-05 13:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:37:25] Production.INFO: ==8851== Releasing lock... [2025-03-05 13:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:37:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:38:05 [end_date_ymd] => 2025-03-05 13:38:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 10:38:05' and `end` < '2025-03-05 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-03-05 13:38:19] Production.INFO: count ==4911 [2025-03-05 13:38:21] Production.ERROR: pbx CDR StartTime 2025-03-05 10:38:05 - End Time 2025-03-05 13:38:05 [2025-03-05 13:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613498', 'tblTempUsageDetail_20' ) start [2025-03-05 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613498', 'tblTempUsageDetail_20' ) end [2025-03-05 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613498', 'tblTempVendorCDR_20' ) start [2025-03-05 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613498', 'tblTempVendorCDR_20' ) end [2025-03-05 13:38:21] Production.INFO: ProcessCDR(1,14613498,1,1,2) [2025-03-05 13:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613498', 'tblTempUsageDetail_20' ) start [2025-03-05 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613498', 'tblTempUsageDetail_20' ) end [2025-03-05 13:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:38:26] Production.INFO: ==8926== Releasing lock... [2025-03-05 13:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:38:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:39:05 [end_date_ymd] => 2025-03-05 13:39:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 10:39:05' and `end` < '2025-03-05 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-03-05 13:39:18] Production.INFO: count ==4943 [2025-03-05 13:39:20] Production.ERROR: pbx CDR StartTime 2025-03-05 10:39:05 - End Time 2025-03-05 13:39:05 [2025-03-05 13:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613503', 'tblTempUsageDetail_20' ) start [2025-03-05 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613503', 'tblTempUsageDetail_20' ) end [2025-03-05 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613503', 'tblTempVendorCDR_20' ) start [2025-03-05 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613503', 'tblTempVendorCDR_20' ) end [2025-03-05 13:39:20] Production.INFO: ProcessCDR(1,14613503,1,1,2) [2025-03-05 13:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613503', 'tblTempUsageDetail_20' ) start [2025-03-05 13:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613503', 'tblTempUsageDetail_20' ) end [2025-03-05 13:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:39:25] Production.INFO: ==9003== Releasing lock... [2025-03-05 13:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:39:25] Production.INFO: 65 MB #Memory Used# [2025-03-05 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:40:06 [end_date_ymd] => 2025-03-05 13:40:06 [RateCDR] => 1 ) [2025-03-05 13: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-03-05 10:40:06' and `end` < '2025-03-05 13: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-03-05 13:40:19] Production.INFO: count ==4952 [2025-03-05 13:40:21] Production.ERROR: pbx CDR StartTime 2025-03-05 10:40:06 - End Time 2025-03-05 13:40:06 [2025-03-05 13:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613508', 'tblTempUsageDetail_20' ) start [2025-03-05 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613508', 'tblTempUsageDetail_20' ) end [2025-03-05 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613508', 'tblTempVendorCDR_20' ) start [2025-03-05 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613508', 'tblTempVendorCDR_20' ) end [2025-03-05 13:40:21] Production.INFO: ProcessCDR(1,14613508,1,1,2) [2025-03-05 13:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613508', 'tblTempUsageDetail_20' ) start [2025-03-05 13:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613508', 'tblTempUsageDetail_20' ) end [2025-03-05 13:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:40:26] Production.INFO: ==9081== Releasing lock... [2025-03-05 13:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:40:26] Production.INFO: 65 MB #Memory Used# [2025-03-05 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:41:05 [end_date_ymd] => 2025-03-05 13:41:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 10:41:05' and `end` < '2025-03-05 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-03-05 13:41:18] Production.INFO: count ==4975 [2025-03-05 13:41:20] Production.ERROR: pbx CDR StartTime 2025-03-05 10:41:05 - End Time 2025-03-05 13:41:05 [2025-03-05 13:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613514', 'tblTempUsageDetail_20' ) start [2025-03-05 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613514', 'tblTempUsageDetail_20' ) end [2025-03-05 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613514', 'tblTempVendorCDR_20' ) start [2025-03-05 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613514', 'tblTempVendorCDR_20' ) end [2025-03-05 13:41:20] Production.INFO: ProcessCDR(1,14613514,1,1,2) [2025-03-05 13:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613514', 'tblTempUsageDetail_20' ) start [2025-03-05 13:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613514', 'tblTempUsageDetail_20' ) end [2025-03-05 13:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:41:25] Production.INFO: ==9157== Releasing lock... [2025-03-05 13:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:41:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-05 13:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:42:06 [end_date_ymd] => 2025-03-05 13:42:06 [RateCDR] => 1 ) [2025-03-05 13: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-03-05 10:42:06' and `end` < '2025-03-05 13: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-03-05 13:42:19] Production.INFO: count ==4990 [2025-03-05 13:42:21] Production.ERROR: pbx CDR StartTime 2025-03-05 10:42:06 - End Time 2025-03-05 13:42:06 [2025-03-05 13:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613519', 'tblTempUsageDetail_20' ) start [2025-03-05 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613519', 'tblTempUsageDetail_20' ) end [2025-03-05 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613519', 'tblTempVendorCDR_20' ) start [2025-03-05 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613519', 'tblTempVendorCDR_20' ) end [2025-03-05 13:42:21] Production.INFO: ProcessCDR(1,14613519,1,1,2) [2025-03-05 13:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613519', 'tblTempUsageDetail_20' ) start [2025-03-05 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613519', 'tblTempUsageDetail_20' ) end [2025-03-05 13:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:42:26] Production.INFO: ==9273== Releasing lock... [2025-03-05 13:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:42:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-05 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:43:05 [end_date_ymd] => 2025-03-05 13:43:05 [RateCDR] => 1 ) [2025-03-05 13: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-03-05 10:43:05' and `end` < '2025-03-05 13: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-03-05 13:43:18] Production.INFO: count ==4967 [2025-03-05 13:43:20] Production.ERROR: pbx CDR StartTime 2025-03-05 10:43:05 - End Time 2025-03-05 13:43:05 [2025-03-05 13:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613524', 'tblTempUsageDetail_20' ) start [2025-03-05 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613524', 'tblTempUsageDetail_20' ) end [2025-03-05 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613524', 'tblTempVendorCDR_20' ) start [2025-03-05 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613524', 'tblTempVendorCDR_20' ) end [2025-03-05 13:43:20] Production.INFO: ProcessCDR(1,14613524,1,1,2) [2025-03-05 13:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613524', 'tblTempUsageDetail_20' ) start [2025-03-05 13:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613524', 'tblTempUsageDetail_20' ) end [2025-03-05 13:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:43:25] Production.INFO: ==9349== Releasing lock... [2025-03-05 13:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:43:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-05 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:44:05 [end_date_ymd] => 2025-03-05 13:44:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 10:44:05' and `end` < '2025-03-05 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-03-05 13:44:18] Production.INFO: count ==4967 [2025-03-05 13:44:20] Production.ERROR: pbx CDR StartTime 2025-03-05 10:44:05 - End Time 2025-03-05 13:44:05 [2025-03-05 13:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613529', 'tblTempUsageDetail_20' ) start [2025-03-05 13:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613529', 'tblTempUsageDetail_20' ) end [2025-03-05 13:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613529', 'tblTempVendorCDR_20' ) start [2025-03-05 13:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613529', 'tblTempVendorCDR_20' ) end [2025-03-05 13:44:20] Production.INFO: ProcessCDR(1,14613529,1,1,2) [2025-03-05 13:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613529', 'tblTempUsageDetail_20' ) start [2025-03-05 13:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613529', 'tblTempUsageDetail_20' ) end [2025-03-05 13:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:44:25] Production.INFO: ==9430== Releasing lock... [2025-03-05 13:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:44:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-05 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:45:05 [end_date_ymd] => 2025-03-05 13:45:05 [RateCDR] => 1 ) [2025-03-05 13: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-03-05 10:45:05' and `end` < '2025-03-05 13: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-03-05 13:45:18] Production.INFO: count ==4957 [2025-03-05 13:45:20] Production.ERROR: pbx CDR StartTime 2025-03-05 10:45:05 - End Time 2025-03-05 13:45:05 [2025-03-05 13:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613534', 'tblTempUsageDetail_20' ) start [2025-03-05 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613534', 'tblTempUsageDetail_20' ) end [2025-03-05 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613534', 'tblTempVendorCDR_20' ) start [2025-03-05 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613534', 'tblTempVendorCDR_20' ) end [2025-03-05 13:45:20] Production.INFO: ProcessCDR(1,14613534,1,1,2) [2025-03-05 13:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613534', 'tblTempUsageDetail_20' ) start [2025-03-05 13:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613534', 'tblTempUsageDetail_20' ) end [2025-03-05 13:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:45:25] Production.INFO: ==9509== Releasing lock... [2025-03-05 13:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:45:25] Production.INFO: 65 MB #Memory Used# [2025-03-05 13:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:46:06 [end_date_ymd] => 2025-03-05 13:46:06 [RateCDR] => 1 ) [2025-03-05 13: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-03-05 10:46:06' and `end` < '2025-03-05 13: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-03-05 13:46:19] Production.INFO: count ==4961 [2025-03-05 13:46:21] Production.ERROR: pbx CDR StartTime 2025-03-05 10:46:06 - End Time 2025-03-05 13:46:06 [2025-03-05 13:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613539', 'tblTempUsageDetail_20' ) start [2025-03-05 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613539', 'tblTempUsageDetail_20' ) end [2025-03-05 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613539', 'tblTempVendorCDR_20' ) start [2025-03-05 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613539', 'tblTempVendorCDR_20' ) end [2025-03-05 13:46:21] Production.INFO: ProcessCDR(1,14613539,1,1,2) [2025-03-05 13:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613539', 'tblTempUsageDetail_20' ) start [2025-03-05 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613539', 'tblTempUsageDetail_20' ) end [2025-03-05 13:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:46:26] Production.INFO: ==9581== Releasing lock... [2025-03-05 13:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:46:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-05 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:47:05 [end_date_ymd] => 2025-03-05 13:47:05 [RateCDR] => 1 ) [2025-03-05 13: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-03-05 10:47:05' and `end` < '2025-03-05 13: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-03-05 13:47:18] Production.INFO: count ==4969 [2025-03-05 13:47:21] Production.ERROR: pbx CDR StartTime 2025-03-05 10:47:05 - End Time 2025-03-05 13:47:05 [2025-03-05 13:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613544', 'tblTempUsageDetail_20' ) start [2025-03-05 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613544', 'tblTempUsageDetail_20' ) end [2025-03-05 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613544', 'tblTempVendorCDR_20' ) start [2025-03-05 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613544', 'tblTempVendorCDR_20' ) end [2025-03-05 13:47:21] Production.INFO: ProcessCDR(1,14613544,1,1,2) [2025-03-05 13:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613544', 'tblTempUsageDetail_20' ) start [2025-03-05 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613544', 'tblTempUsageDetail_20' ) end [2025-03-05 13:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:47:26] Production.INFO: ==9657== Releasing lock... [2025-03-05 13:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:47:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-05 13:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:48:06 [end_date_ymd] => 2025-03-05 13:48:06 [RateCDR] => 1 ) [2025-03-05 13: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-03-05 10:48:06' and `end` < '2025-03-05 13: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-03-05 13:48:19] Production.INFO: count ==4963 [2025-03-05 13:48:21] Production.ERROR: pbx CDR StartTime 2025-03-05 10:48:06 - End Time 2025-03-05 13:48:06 [2025-03-05 13:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613549', 'tblTempUsageDetail_20' ) start [2025-03-05 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613549', 'tblTempUsageDetail_20' ) end [2025-03-05 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613549', 'tblTempVendorCDR_20' ) start [2025-03-05 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613549', 'tblTempVendorCDR_20' ) end [2025-03-05 13:48:21] Production.INFO: ProcessCDR(1,14613549,1,1,2) [2025-03-05 13:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613549', 'tblTempUsageDetail_20' ) start [2025-03-05 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613549', 'tblTempUsageDetail_20' ) end [2025-03-05 13:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:48:26] Production.INFO: ==9730== Releasing lock... [2025-03-05 13:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:48:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-05 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:49:05 [end_date_ymd] => 2025-03-05 13:49:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 10:49:05' and `end` < '2025-03-05 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-03-05 13:49:18] Production.INFO: count ==4966 [2025-03-05 13:49:20] Production.ERROR: pbx CDR StartTime 2025-03-05 10:49:05 - End Time 2025-03-05 13:49:05 [2025-03-05 13:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613554', 'tblTempUsageDetail_20' ) start [2025-03-05 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613554', 'tblTempUsageDetail_20' ) end [2025-03-05 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613554', 'tblTempVendorCDR_20' ) start [2025-03-05 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613554', 'tblTempVendorCDR_20' ) end [2025-03-05 13:49:20] Production.INFO: ProcessCDR(1,14613554,1,1,2) [2025-03-05 13:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613554', 'tblTempUsageDetail_20' ) start [2025-03-05 13:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613554', 'tblTempUsageDetail_20' ) end [2025-03-05 13:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:49:25] Production.INFO: ==9806== Releasing lock... [2025-03-05 13:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:49:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-05 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:50:06 [end_date_ymd] => 2025-03-05 13:50:06 [RateCDR] => 1 ) [2025-03-05 13: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-03-05 10:50:06' and `end` < '2025-03-05 13: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-03-05 13:50:19] Production.INFO: count ==4928 [2025-03-05 13:50:21] Production.ERROR: pbx CDR StartTime 2025-03-05 10:50:06 - End Time 2025-03-05 13:50:06 [2025-03-05 13:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613560', 'tblTempUsageDetail_20' ) start [2025-03-05 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613560', 'tblTempUsageDetail_20' ) end [2025-03-05 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613560', 'tblTempVendorCDR_20' ) start [2025-03-05 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613560', 'tblTempVendorCDR_20' ) end [2025-03-05 13:50:22] Production.INFO: ProcessCDR(1,14613560,1,1,2) [2025-03-05 13:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613560', 'tblTempUsageDetail_20' ) start [2025-03-05 13:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613560', 'tblTempUsageDetail_20' ) end [2025-03-05 13:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:50:27] Production.INFO: ==9893== Releasing lock... [2025-03-05 13:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:50:27] Production.INFO: 65 MB #Memory Used# [2025-03-05 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:51:05 [end_date_ymd] => 2025-03-05 13:51:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 10:51:05' and `end` < '2025-03-05 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-03-05 13:51:18] Production.INFO: count ==4965 [2025-03-05 13:51:20] Production.ERROR: pbx CDR StartTime 2025-03-05 10:51:05 - End Time 2025-03-05 13:51:05 [2025-03-05 13:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613565', 'tblTempUsageDetail_20' ) start [2025-03-05 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613565', 'tblTempUsageDetail_20' ) end [2025-03-05 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613565', 'tblTempVendorCDR_20' ) start [2025-03-05 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613565', 'tblTempVendorCDR_20' ) end [2025-03-05 13:51:20] Production.INFO: ProcessCDR(1,14613565,1,1,2) [2025-03-05 13:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613565', 'tblTempUsageDetail_20' ) start [2025-03-05 13:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613565', 'tblTempUsageDetail_20' ) end [2025-03-05 13:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:51:25] Production.INFO: ==9967== Releasing lock... [2025-03-05 13:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:51:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-05 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:52:05 [end_date_ymd] => 2025-03-05 13:52:05 [RateCDR] => 1 ) [2025-03-05 13: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-03-05 10:52:05' and `end` < '2025-03-05 13: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-03-05 13:52:18] Production.INFO: count ==4955 [2025-03-05 13:52:20] Production.ERROR: pbx CDR StartTime 2025-03-05 10:52:05 - End Time 2025-03-05 13:52:05 [2025-03-05 13:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613570', 'tblTempUsageDetail_20' ) start [2025-03-05 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613570', 'tblTempUsageDetail_20' ) end [2025-03-05 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613570', 'tblTempVendorCDR_20' ) start [2025-03-05 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613570', 'tblTempVendorCDR_20' ) end [2025-03-05 13:52:20] Production.INFO: ProcessCDR(1,14613570,1,1,2) [2025-03-05 13:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613570', 'tblTempUsageDetail_20' ) start [2025-03-05 13:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613570', 'tblTempUsageDetail_20' ) end [2025-03-05 13:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:52:25] Production.INFO: ==10045== Releasing lock... [2025-03-05 13:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:52:25] Production.INFO: 65 MB #Memory Used# [2025-03-05 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:53:05 [end_date_ymd] => 2025-03-05 13:53:05 [RateCDR] => 1 ) [2025-03-05 13: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-03-05 10:53:05' and `end` < '2025-03-05 13: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-03-05 13:53:18] Production.INFO: count ==4938 [2025-03-05 13:53:20] Production.ERROR: pbx CDR StartTime 2025-03-05 10:53:05 - End Time 2025-03-05 13:53:05 [2025-03-05 13:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613575', 'tblTempUsageDetail_20' ) start [2025-03-05 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613575', 'tblTempUsageDetail_20' ) end [2025-03-05 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613575', 'tblTempVendorCDR_20' ) start [2025-03-05 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613575', 'tblTempVendorCDR_20' ) end [2025-03-05 13:53:20] Production.INFO: ProcessCDR(1,14613575,1,1,2) [2025-03-05 13:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613575', 'tblTempUsageDetail_20' ) start [2025-03-05 13:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613575', 'tblTempUsageDetail_20' ) end [2025-03-05 13:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:53:25] Production.INFO: ==10115== Releasing lock... [2025-03-05 13:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:53:25] Production.INFO: 65 MB #Memory Used# [2025-03-05 13:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:54:06 [end_date_ymd] => 2025-03-05 13:54:06 [RateCDR] => 1 ) [2025-03-05 13:54: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-03-05 10:54:06' and `end` < '2025-03-05 13:54: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-03-05 13:54:19] Production.INFO: count ==4906 [2025-03-05 13:54:21] Production.ERROR: pbx CDR StartTime 2025-03-05 10:54:06 - End Time 2025-03-05 13:54:06 [2025-03-05 13:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613580', 'tblTempUsageDetail_20' ) start [2025-03-05 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613580', 'tblTempUsageDetail_20' ) end [2025-03-05 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613580', 'tblTempVendorCDR_20' ) start [2025-03-05 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613580', 'tblTempVendorCDR_20' ) end [2025-03-05 13:54:21] Production.INFO: ProcessCDR(1,14613580,1,1,2) [2025-03-05 13:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613580', 'tblTempUsageDetail_20' ) start [2025-03-05 13:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613580', 'tblTempUsageDetail_20' ) end [2025-03-05 13:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:54:26] Production.INFO: ==10192== Releasing lock... [2025-03-05 13:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:54:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:55:05 [end_date_ymd] => 2025-03-05 13:55:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 10:55:05' and `end` < '2025-03-05 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-03-05 13:55:18] Production.INFO: count ==4900 [2025-03-05 13:55:20] Production.ERROR: pbx CDR StartTime 2025-03-05 10:55:05 - End Time 2025-03-05 13:55:05 [2025-03-05 13:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613585', 'tblTempUsageDetail_20' ) start [2025-03-05 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613585', 'tblTempUsageDetail_20' ) end [2025-03-05 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613585', 'tblTempVendorCDR_20' ) start [2025-03-05 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613585', 'tblTempVendorCDR_20' ) end [2025-03-05 13:55:21] Production.INFO: ProcessCDR(1,14613585,1,1,2) [2025-03-05 13:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613585', 'tblTempUsageDetail_20' ) start [2025-03-05 13:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613585', 'tblTempUsageDetail_20' ) end [2025-03-05 13:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:55:26] Production.INFO: ==10267== Releasing lock... [2025-03-05 13:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:55:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 13:56:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:56:07 [end_date_ymd] => 2025-03-05 13:56:07 [RateCDR] => 1 ) [2025-03-05 13:56:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 10:56:07' and `end` < '2025-03-05 13:56:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-05 13:56:20] Production.INFO: count ==4900 [2025-03-05 13:56:22] Production.ERROR: pbx CDR StartTime 2025-03-05 10:56:07 - End Time 2025-03-05 13:56:07 [2025-03-05 13:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613590', 'tblTempUsageDetail_20' ) start [2025-03-05 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613590', 'tblTempUsageDetail_20' ) end [2025-03-05 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613590', 'tblTempVendorCDR_20' ) start [2025-03-05 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613590', 'tblTempVendorCDR_20' ) end [2025-03-05 13:56:22] Production.INFO: ProcessCDR(1,14613590,1,1,2) [2025-03-05 13:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613590', 'tblTempUsageDetail_20' ) start [2025-03-05 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613590', 'tblTempUsageDetail_20' ) end [2025-03-05 13:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:56:27] Production.INFO: ==10342== Releasing lock... [2025-03-05 13:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:56:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:57:05 [end_date_ymd] => 2025-03-05 13:57:05 [RateCDR] => 1 ) [2025-03-05 13: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-03-05 10:57:05' and `end` < '2025-03-05 13: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-03-05 13:57:18] Production.INFO: count ==4899 [2025-03-05 13:57:20] Production.ERROR: pbx CDR StartTime 2025-03-05 10:57:05 - End Time 2025-03-05 13:57:05 [2025-03-05 13:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613595', 'tblTempUsageDetail_20' ) start [2025-03-05 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613595', 'tblTempUsageDetail_20' ) end [2025-03-05 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613595', 'tblTempVendorCDR_20' ) start [2025-03-05 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613595', 'tblTempVendorCDR_20' ) end [2025-03-05 13:57:21] Production.INFO: ProcessCDR(1,14613595,1,1,2) [2025-03-05 13:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613595', 'tblTempUsageDetail_20' ) start [2025-03-05 13:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613595', 'tblTempUsageDetail_20' ) end [2025-03-05 13:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:57:25] Production.INFO: ==10433== Releasing lock... [2025-03-05 13:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:57:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 13:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:58:06 [end_date_ymd] => 2025-03-05 13:58:06 [RateCDR] => 1 ) [2025-03-05 13: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-03-05 10:58:06' and `end` < '2025-03-05 13: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-03-05 13:58:19] Production.INFO: count ==4920 [2025-03-05 13:58:21] Production.ERROR: pbx CDR StartTime 2025-03-05 10:58:06 - End Time 2025-03-05 13:58:06 [2025-03-05 13:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613600', 'tblTempUsageDetail_20' ) start [2025-03-05 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613600', 'tblTempUsageDetail_20' ) end [2025-03-05 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613600', 'tblTempVendorCDR_20' ) start [2025-03-05 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613600', 'tblTempVendorCDR_20' ) end [2025-03-05 13:58:21] Production.INFO: ProcessCDR(1,14613600,1,1,2) [2025-03-05 13:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613600', 'tblTempUsageDetail_20' ) start [2025-03-05 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613600', 'tblTempUsageDetail_20' ) end [2025-03-05 13:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:58:26] Production.INFO: ==10549== Releasing lock... [2025-03-05 13:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:58:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 10:59:05 [end_date_ymd] => 2025-03-05 13:59:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 10:59:05' and `end` < '2025-03-05 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-03-05 13:59:18] Production.INFO: count ==4917 [2025-03-05 13:59:20] Production.ERROR: pbx CDR StartTime 2025-03-05 10:59:05 - End Time 2025-03-05 13:59:05 [2025-03-05 13:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613605', 'tblTempUsageDetail_20' ) start [2025-03-05 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613605', 'tblTempUsageDetail_20' ) end [2025-03-05 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613605', 'tblTempVendorCDR_20' ) start [2025-03-05 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613605', 'tblTempVendorCDR_20' ) end [2025-03-05 13:59:20] Production.INFO: ProcessCDR(1,14613605,1,1,2) [2025-03-05 13:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 13:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 13:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613605', 'tblTempUsageDetail_20' ) start [2025-03-05 13:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613605', 'tblTempUsageDetail_20' ) end [2025-03-05 13:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 13:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 13:59:25] Production.INFO: ==10622== Releasing lock... [2025-03-05 13:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 13:59:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:00:06 [end_date_ymd] => 2025-03-05 14:00:06 [RateCDR] => 1 ) [2025-03-05 14: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-03-05 11:00:06' and `end` < '2025-03-05 14: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-03-05 14:00:19] Production.INFO: count ==4932 [2025-03-05 14:00:21] Production.ERROR: pbx CDR StartTime 2025-03-05 11:00:06 - End Time 2025-03-05 14:00:06 [2025-03-05 14:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613611', 'tblTempUsageDetail_20' ) start [2025-03-05 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613611', 'tblTempUsageDetail_20' ) end [2025-03-05 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613611', 'tblTempVendorCDR_20' ) start [2025-03-05 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613611', 'tblTempVendorCDR_20' ) end [2025-03-05 14:00:21] Production.INFO: ProcessCDR(1,14613611,1,1,2) [2025-03-05 14:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613611', 'tblTempUsageDetail_20' ) start [2025-03-05 14:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613611', 'tblTempUsageDetail_20' ) end [2025-03-05 14:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:00:27] Production.INFO: ==10700== Releasing lock... [2025-03-05 14:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:00:27] Production.INFO: 65 MB #Memory Used# [2025-03-05 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:01:05 [end_date_ymd] => 2025-03-05 14:01:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 11:01:05' and `end` < '2025-03-05 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-03-05 14:01:18] Production.INFO: count ==4970 [2025-03-05 14:01:20] Production.ERROR: pbx CDR StartTime 2025-03-05 11:01:05 - End Time 2025-03-05 14:01:05 [2025-03-05 14:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613616', 'tblTempUsageDetail_20' ) start [2025-03-05 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613616', 'tblTempUsageDetail_20' ) end [2025-03-05 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613616', 'tblTempVendorCDR_20' ) start [2025-03-05 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613616', 'tblTempVendorCDR_20' ) end [2025-03-05 14:01:20] Production.INFO: ProcessCDR(1,14613616,1,1,2) [2025-03-05 14:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613616', 'tblTempUsageDetail_20' ) start [2025-03-05 14:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613616', 'tblTempUsageDetail_20' ) end [2025-03-05 14:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:01:25] Production.INFO: ==10791== Releasing lock... [2025-03-05 14:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:01:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-05 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:02:05 [end_date_ymd] => 2025-03-05 14:02:05 [RateCDR] => 1 ) [2025-03-05 14: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-03-05 11:02:05' and `end` < '2025-03-05 14: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-03-05 14:02:19] Production.INFO: count ==4964 [2025-03-05 14:02:21] Production.ERROR: pbx CDR StartTime 2025-03-05 11:02:05 - End Time 2025-03-05 14:02:05 [2025-03-05 14:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613621', 'tblTempUsageDetail_20' ) start [2025-03-05 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613621', 'tblTempUsageDetail_20' ) end [2025-03-05 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613621', 'tblTempVendorCDR_20' ) start [2025-03-05 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613621', 'tblTempVendorCDR_20' ) end [2025-03-05 14:02:21] Production.INFO: ProcessCDR(1,14613621,1,1,2) [2025-03-05 14:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613621', 'tblTempUsageDetail_20' ) start [2025-03-05 14:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613621', 'tblTempUsageDetail_20' ) end [2025-03-05 14:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:02:26] Production.INFO: ==10869== Releasing lock... [2025-03-05 14:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:02:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-05 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:03:05 [end_date_ymd] => 2025-03-05 14:03:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 11:03:05' and `end` < '2025-03-05 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-03-05 14:03:18] Production.INFO: count ==4954 [2025-03-05 14:03:20] Production.ERROR: pbx CDR StartTime 2025-03-05 11:03:05 - End Time 2025-03-05 14:03:05 [2025-03-05 14:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613626', 'tblTempUsageDetail_20' ) start [2025-03-05 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613626', 'tblTempUsageDetail_20' ) end [2025-03-05 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613626', 'tblTempVendorCDR_20' ) start [2025-03-05 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613626', 'tblTempVendorCDR_20' ) end [2025-03-05 14:03:20] Production.INFO: ProcessCDR(1,14613626,1,1,2) [2025-03-05 14:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613626', 'tblTempUsageDetail_20' ) start [2025-03-05 14:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613626', 'tblTempUsageDetail_20' ) end [2025-03-05 14:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:03:25] Production.INFO: ==10952== Releasing lock... [2025-03-05 14:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:03:25] Production.INFO: 65 MB #Memory Used# [2025-03-05 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:04:06 [end_date_ymd] => 2025-03-05 14:04:06 [RateCDR] => 1 ) [2025-03-05 14:04: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-03-05 11:04:06' and `end` < '2025-03-05 14:04: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-03-05 14:04:19] Production.INFO: count ==4931 [2025-03-05 14:04:21] Production.ERROR: pbx CDR StartTime 2025-03-05 11:04:06 - End Time 2025-03-05 14:04:06 [2025-03-05 14:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613631', 'tblTempUsageDetail_20' ) start [2025-03-05 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613631', 'tblTempUsageDetail_20' ) end [2025-03-05 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613631', 'tblTempVendorCDR_20' ) start [2025-03-05 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613631', 'tblTempVendorCDR_20' ) end [2025-03-05 14:04:21] Production.INFO: ProcessCDR(1,14613631,1,1,2) [2025-03-05 14:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613631', 'tblTempUsageDetail_20' ) start [2025-03-05 14:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613631', 'tblTempUsageDetail_20' ) end [2025-03-05 14:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:04:25] Production.INFO: ==11034== Releasing lock... [2025-03-05 14:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:04:25] Production.INFO: 65 MB #Memory Used# [2025-03-05 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:05:05 [end_date_ymd] => 2025-03-05 14:05:05 [RateCDR] => 1 ) [2025-03-05 14: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-03-05 11:05:05' and `end` < '2025-03-05 14: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-03-05 14:05:18] Production.INFO: count ==4918 [2025-03-05 14:05:20] Production.ERROR: pbx CDR StartTime 2025-03-05 11:05:05 - End Time 2025-03-05 14:05:05 [2025-03-05 14:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613636', 'tblTempUsageDetail_20' ) start [2025-03-05 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613636', 'tblTempUsageDetail_20' ) end [2025-03-05 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613636', 'tblTempVendorCDR_20' ) start [2025-03-05 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613636', 'tblTempVendorCDR_20' ) end [2025-03-05 14:05:21] Production.INFO: ProcessCDR(1,14613636,1,1,2) [2025-03-05 14:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613636', 'tblTempUsageDetail_20' ) start [2025-03-05 14:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613636', 'tblTempUsageDetail_20' ) end [2025-03-05 14:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:05:25] Production.INFO: ==11114== Releasing lock... [2025-03-05 14:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:05:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:06:05 [end_date_ymd] => 2025-03-05 14:06:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 11:06:05' and `end` < '2025-03-05 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-03-05 14:06:18] Production.INFO: count ==4933 [2025-03-05 14:06:20] Production.ERROR: pbx CDR StartTime 2025-03-05 11:06:05 - End Time 2025-03-05 14:06:05 [2025-03-05 14:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613641', 'tblTempUsageDetail_20' ) start [2025-03-05 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613641', 'tblTempUsageDetail_20' ) end [2025-03-05 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613641', 'tblTempVendorCDR_20' ) start [2025-03-05 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613641', 'tblTempVendorCDR_20' ) end [2025-03-05 14:06:20] Production.INFO: ProcessCDR(1,14613641,1,1,2) [2025-03-05 14:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613641', 'tblTempUsageDetail_20' ) start [2025-03-05 14:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613641', 'tblTempUsageDetail_20' ) end [2025-03-05 14:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:06:25] Production.INFO: ==11194== Releasing lock... [2025-03-05 14:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:06:25] Production.INFO: 65 MB #Memory Used# [2025-03-05 14:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:07:04 [end_date_ymd] => 2025-03-05 14:07:04 [RateCDR] => 1 ) [2025-03-05 14: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-03-05 11:07:04' and `end` < '2025-03-05 14: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-03-05 14:07:17] Production.INFO: count ==4932 [2025-03-05 14:07:20] Production.ERROR: pbx CDR StartTime 2025-03-05 11:07:04 - End Time 2025-03-05 14:07:04 [2025-03-05 14:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613646', 'tblTempUsageDetail_20' ) start [2025-03-05 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613646', 'tblTempUsageDetail_20' ) end [2025-03-05 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613646', 'tblTempVendorCDR_20' ) start [2025-03-05 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613646', 'tblTempVendorCDR_20' ) end [2025-03-05 14:07:20] Production.INFO: ProcessCDR(1,14613646,1,1,2) [2025-03-05 14:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613646', 'tblTempUsageDetail_20' ) start [2025-03-05 14:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613646', 'tblTempUsageDetail_20' ) end [2025-03-05 14:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:07:24] Production.INFO: ==11274== Releasing lock... [2025-03-05 14:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:07:24] Production.INFO: 65 MB #Memory Used# [2025-03-05 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:08:05 [end_date_ymd] => 2025-03-05 14:08:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 11:08:05' and `end` < '2025-03-05 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-03-05 14:08:19] Production.INFO: count ==4957 [2025-03-05 14:08:21] Production.ERROR: pbx CDR StartTime 2025-03-05 11:08:05 - End Time 2025-03-05 14:08:05 [2025-03-05 14:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613651', 'tblTempUsageDetail_20' ) start [2025-03-05 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613651', 'tblTempUsageDetail_20' ) end [2025-03-05 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613651', 'tblTempVendorCDR_20' ) start [2025-03-05 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613651', 'tblTempVendorCDR_20' ) end [2025-03-05 14:08:21] Production.INFO: ProcessCDR(1,14613651,1,1,2) [2025-03-05 14:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613651', 'tblTempUsageDetail_20' ) start [2025-03-05 14:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613651', 'tblTempUsageDetail_20' ) end [2025-03-05 14:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:08:26] Production.INFO: ==11358== Releasing lock... [2025-03-05 14:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:08:26] Production.INFO: 65 MB #Memory Used# [2025-03-05 14:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:09:06 [end_date_ymd] => 2025-03-05 14:09:06 [RateCDR] => 1 ) [2025-03-05 14: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-03-05 11:09:06' and `end` < '2025-03-05 14: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-03-05 14:09:19] Production.INFO: count ==4941 [2025-03-05 14:09:21] Production.ERROR: pbx CDR StartTime 2025-03-05 11:09:06 - End Time 2025-03-05 14:09:06 [2025-03-05 14:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613656', 'tblTempUsageDetail_20' ) start [2025-03-05 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613656', 'tblTempUsageDetail_20' ) end [2025-03-05 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613656', 'tblTempVendorCDR_20' ) start [2025-03-05 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613656', 'tblTempVendorCDR_20' ) end [2025-03-05 14:09:21] Production.INFO: ProcessCDR(1,14613656,1,1,2) [2025-03-05 14:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613656', 'tblTempUsageDetail_20' ) start [2025-03-05 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613656', 'tblTempUsageDetail_20' ) end [2025-03-05 14:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:09:26] Production.INFO: ==11431== Releasing lock... [2025-03-05 14:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:09:26] Production.INFO: 65 MB #Memory Used# [2025-03-05 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:10:06 [end_date_ymd] => 2025-03-05 14:10:06 [RateCDR] => 1 ) [2025-03-05 14: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-03-05 11:10:06' and `end` < '2025-03-05 14: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-03-05 14:10:19] Production.INFO: count ==4935 [2025-03-05 14:10:21] Production.ERROR: pbx CDR StartTime 2025-03-05 11:10:06 - End Time 2025-03-05 14:10:06 [2025-03-05 14:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613662', 'tblTempUsageDetail_20' ) start [2025-03-05 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613662', 'tblTempUsageDetail_20' ) end [2025-03-05 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613662', 'tblTempVendorCDR_20' ) start [2025-03-05 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613662', 'tblTempVendorCDR_20' ) end [2025-03-05 14:10:21] Production.INFO: ProcessCDR(1,14613662,1,1,2) [2025-03-05 14:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613662', 'tblTempUsageDetail_20' ) start [2025-03-05 14:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613662', 'tblTempUsageDetail_20' ) end [2025-03-05 14:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:10:26] Production.INFO: ==11514== Releasing lock... [2025-03-05 14:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:10:26] Production.INFO: 65 MB #Memory Used# [2025-03-05 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:11:05 [end_date_ymd] => 2025-03-05 14:11:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 11:11:05' and `end` < '2025-03-05 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-03-05 14:11:18] Production.INFO: count ==4894 [2025-03-05 14:11:20] Production.ERROR: pbx CDR StartTime 2025-03-05 11:11:05 - End Time 2025-03-05 14:11:05 [2025-03-05 14:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613667', 'tblTempUsageDetail_20' ) start [2025-03-05 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613667', 'tblTempUsageDetail_20' ) end [2025-03-05 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613667', 'tblTempVendorCDR_20' ) start [2025-03-05 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613667', 'tblTempVendorCDR_20' ) end [2025-03-05 14:11:20] Production.INFO: ProcessCDR(1,14613667,1,1,2) [2025-03-05 14:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613667', 'tblTempUsageDetail_20' ) start [2025-03-05 14:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613667', 'tblTempUsageDetail_20' ) end [2025-03-05 14:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:11:25] Production.INFO: ==11599== Releasing lock... [2025-03-05 14:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:11:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:12:05 [end_date_ymd] => 2025-03-05 14:12:05 [RateCDR] => 1 ) [2025-03-05 14: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-03-05 11:12:05' and `end` < '2025-03-05 14: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-03-05 14:12:19] Production.INFO: count ==4904 [2025-03-05 14:12:21] Production.ERROR: pbx CDR StartTime 2025-03-05 11:12:05 - End Time 2025-03-05 14:12:05 [2025-03-05 14:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613672', 'tblTempUsageDetail_20' ) start [2025-03-05 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613672', 'tblTempUsageDetail_20' ) end [2025-03-05 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613672', 'tblTempVendorCDR_20' ) start [2025-03-05 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613672', 'tblTempVendorCDR_20' ) end [2025-03-05 14:12:21] Production.INFO: ProcessCDR(1,14613672,1,1,2) [2025-03-05 14:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613672', 'tblTempUsageDetail_20' ) start [2025-03-05 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613672', 'tblTempUsageDetail_20' ) end [2025-03-05 14:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:12:26] Production.INFO: ==11679== Releasing lock... [2025-03-05 14:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:12:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:13:05 [end_date_ymd] => 2025-03-05 14:13:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 11:13:05' and `end` < '2025-03-05 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-03-05 14:13:18] Production.INFO: count ==4909 [2025-03-05 14:13:20] Production.ERROR: pbx CDR StartTime 2025-03-05 11:13:05 - End Time 2025-03-05 14:13:05 [2025-03-05 14:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613677', 'tblTempUsageDetail_20' ) start [2025-03-05 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613677', 'tblTempUsageDetail_20' ) end [2025-03-05 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613677', 'tblTempVendorCDR_20' ) start [2025-03-05 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613677', 'tblTempVendorCDR_20' ) end [2025-03-05 14:13:21] Production.INFO: ProcessCDR(1,14613677,1,1,2) [2025-03-05 14:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613677', 'tblTempUsageDetail_20' ) start [2025-03-05 14:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613677', 'tblTempUsageDetail_20' ) end [2025-03-05 14:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:13:25] Production.INFO: ==11795== Releasing lock... [2025-03-05 14:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:13:25] Production.INFO: 65 MB #Memory Used# [2025-03-05 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:14:05 [end_date_ymd] => 2025-03-05 14:14:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 11:14:05' and `end` < '2025-03-05 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-03-05 14:14:18] Production.INFO: count ==4909 [2025-03-05 14:14:20] Production.ERROR: pbx CDR StartTime 2025-03-05 11:14:05 - End Time 2025-03-05 14:14:05 [2025-03-05 14:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613682', 'tblTempUsageDetail_20' ) start [2025-03-05 14:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613682', 'tblTempUsageDetail_20' ) end [2025-03-05 14:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613682', 'tblTempVendorCDR_20' ) start [2025-03-05 14:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613682', 'tblTempVendorCDR_20' ) end [2025-03-05 14:14:20] Production.INFO: ProcessCDR(1,14613682,1,1,2) [2025-03-05 14:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613682', 'tblTempUsageDetail_20' ) start [2025-03-05 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613682', 'tblTempUsageDetail_20' ) end [2025-03-05 14:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:14:26] Production.INFO: ==11871== Releasing lock... [2025-03-05 14:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:14:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:15:05 [end_date_ymd] => 2025-03-05 14:15:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 11:15:05' and `end` < '2025-03-05 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-03-05 14:15:18] Production.INFO: count ==4915 [2025-03-05 14:15:20] Production.ERROR: pbx CDR StartTime 2025-03-05 11:15:05 - End Time 2025-03-05 14:15:05 [2025-03-05 14:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613687', 'tblTempUsageDetail_20' ) start [2025-03-05 14:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613687', 'tblTempUsageDetail_20' ) end [2025-03-05 14:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613687', 'tblTempVendorCDR_20' ) start [2025-03-05 14:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613687', 'tblTempVendorCDR_20' ) end [2025-03-05 14:15:20] Production.INFO: ProcessCDR(1,14613687,1,1,2) [2025-03-05 14:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613687', 'tblTempUsageDetail_20' ) start [2025-03-05 14:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613687', 'tblTempUsageDetail_20' ) end [2025-03-05 14:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:15:25] Production.INFO: ==11950== Releasing lock... [2025-03-05 14:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:15:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 14:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:16:06 [end_date_ymd] => 2025-03-05 14:16:06 [RateCDR] => 1 ) [2025-03-05 14:16: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-03-05 11:16:06' and `end` < '2025-03-05 14:16: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-03-05 14:16:19] Production.INFO: count ==4926 [2025-03-05 14:16:21] Production.ERROR: pbx CDR StartTime 2025-03-05 11:16:06 - End Time 2025-03-05 14:16:06 [2025-03-05 14:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613692', 'tblTempUsageDetail_20' ) start [2025-03-05 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613692', 'tblTempUsageDetail_20' ) end [2025-03-05 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613692', 'tblTempVendorCDR_20' ) start [2025-03-05 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613692', 'tblTempVendorCDR_20' ) end [2025-03-05 14:16:21] Production.INFO: ProcessCDR(1,14613692,1,1,2) [2025-03-05 14:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613692', 'tblTempUsageDetail_20' ) start [2025-03-05 14:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613692', 'tblTempUsageDetail_20' ) end [2025-03-05 14:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:16:26] Production.INFO: ==12031== Releasing lock... [2025-03-05 14:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:16:26] Production.INFO: 65 MB #Memory Used# [2025-03-05 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:17:05 [end_date_ymd] => 2025-03-05 14:17:05 [RateCDR] => 1 ) [2025-03-05 14: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-03-05 11:17:05' and `end` < '2025-03-05 14: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-03-05 14:17:18] Production.INFO: count ==4931 [2025-03-05 14:17:20] Production.ERROR: pbx CDR StartTime 2025-03-05 11:17:05 - End Time 2025-03-05 14:17:05 [2025-03-05 14:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613697', 'tblTempUsageDetail_20' ) start [2025-03-05 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613697', 'tblTempUsageDetail_20' ) end [2025-03-05 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613697', 'tblTempVendorCDR_20' ) start [2025-03-05 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613697', 'tblTempVendorCDR_20' ) end [2025-03-05 14:17:20] Production.INFO: ProcessCDR(1,14613697,1,1,2) [2025-03-05 14:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613697', 'tblTempUsageDetail_20' ) start [2025-03-05 14:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613697', 'tblTempUsageDetail_20' ) end [2025-03-05 14:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:17:25] Production.INFO: ==12107== Releasing lock... [2025-03-05 14:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:17:25] Production.INFO: 65 MB #Memory Used# [2025-03-05 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:18:05 [end_date_ymd] => 2025-03-05 14:18:05 [RateCDR] => 1 ) [2025-03-05 14: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-03-05 11:18:05' and `end` < '2025-03-05 14: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-03-05 14:18:18] Production.INFO: count ==4905 [2025-03-05 14:18:20] Production.ERROR: pbx CDR StartTime 2025-03-05 11:18:05 - End Time 2025-03-05 14:18:05 [2025-03-05 14:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613702', 'tblTempUsageDetail_20' ) start [2025-03-05 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613702', 'tblTempUsageDetail_20' ) end [2025-03-05 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613702', 'tblTempVendorCDR_20' ) start [2025-03-05 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613702', 'tblTempVendorCDR_20' ) end [2025-03-05 14:18:20] Production.INFO: ProcessCDR(1,14613702,1,1,2) [2025-03-05 14:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613702', 'tblTempUsageDetail_20' ) start [2025-03-05 14:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613702', 'tblTempUsageDetail_20' ) end [2025-03-05 14:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:18:25] Production.INFO: ==12184== Releasing lock... [2025-03-05 14:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:18:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:19:05 [end_date_ymd] => 2025-03-05 14:19:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 11:19:05' and `end` < '2025-03-05 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-03-05 14:19:18] Production.INFO: count ==4899 [2025-03-05 14:19:21] Production.ERROR: pbx CDR StartTime 2025-03-05 11:19:05 - End Time 2025-03-05 14:19:05 [2025-03-05 14:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613707', 'tblTempUsageDetail_20' ) start [2025-03-05 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613707', 'tblTempUsageDetail_20' ) end [2025-03-05 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613707', 'tblTempVendorCDR_20' ) start [2025-03-05 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613707', 'tblTempVendorCDR_20' ) end [2025-03-05 14:19:21] Production.INFO: ProcessCDR(1,14613707,1,1,2) [2025-03-05 14:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613707', 'tblTempUsageDetail_20' ) start [2025-03-05 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613707', 'tblTempUsageDetail_20' ) end [2025-03-05 14:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:19:26] Production.INFO: ==12266== Releasing lock... [2025-03-05 14:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:19:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:20:06 [end_date_ymd] => 2025-03-05 14:20:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 11:20:06' and `end` < '2025-03-05 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-03-05 14:20:19] Production.INFO: count ==4872 [2025-03-05 14:20:21] Production.ERROR: pbx CDR StartTime 2025-03-05 11:20:06 - End Time 2025-03-05 14:20:06 [2025-03-05 14:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613712', 'tblTempUsageDetail_20' ) start [2025-03-05 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613712', 'tblTempUsageDetail_20' ) end [2025-03-05 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613712', 'tblTempVendorCDR_20' ) start [2025-03-05 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613712', 'tblTempVendorCDR_20' ) end [2025-03-05 14:20:22] Production.INFO: ProcessCDR(1,14613712,1,1,2) [2025-03-05 14:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613712', 'tblTempUsageDetail_20' ) start [2025-03-05 14:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613712', 'tblTempUsageDetail_20' ) end [2025-03-05 14:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:20:26] Production.INFO: ==12351== Releasing lock... [2025-03-05 14:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:20:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-05 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:21:05 [end_date_ymd] => 2025-03-05 14:21:05 [RateCDR] => 1 ) [2025-03-05 14: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-03-05 11:21:05' and `end` < '2025-03-05 14: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-03-05 14:21:18] Production.INFO: count ==4905 [2025-03-05 14:21:20] Production.ERROR: pbx CDR StartTime 2025-03-05 11:21:05 - End Time 2025-03-05 14:21:05 [2025-03-05 14:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613718', 'tblTempUsageDetail_20' ) start [2025-03-05 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613718', 'tblTempUsageDetail_20' ) end [2025-03-05 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613718', 'tblTempVendorCDR_20' ) start [2025-03-05 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613718', 'tblTempVendorCDR_20' ) end [2025-03-05 14:21:20] Production.INFO: ProcessCDR(1,14613718,1,1,2) [2025-03-05 14:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613718', 'tblTempUsageDetail_20' ) start [2025-03-05 14:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613718', 'tblTempUsageDetail_20' ) end [2025-03-05 14:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:21:25] Production.INFO: ==12427== Releasing lock... [2025-03-05 14:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:21:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 14:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:22:06 [end_date_ymd] => 2025-03-05 14:22:06 [RateCDR] => 1 ) [2025-03-05 14: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-03-05 11:22:06' and `end` < '2025-03-05 14:22: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-03-05 14:22:19] Production.INFO: count ==4924 [2025-03-05 14:22:21] Production.ERROR: pbx CDR StartTime 2025-03-05 11:22:06 - End Time 2025-03-05 14:22:06 [2025-03-05 14:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613723', 'tblTempUsageDetail_20' ) start [2025-03-05 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613723', 'tblTempUsageDetail_20' ) end [2025-03-05 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613723', 'tblTempVendorCDR_20' ) start [2025-03-05 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613723', 'tblTempVendorCDR_20' ) end [2025-03-05 14:22:21] Production.INFO: ProcessCDR(1,14613723,1,1,2) [2025-03-05 14:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613723', 'tblTempUsageDetail_20' ) start [2025-03-05 14:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613723', 'tblTempUsageDetail_20' ) end [2025-03-05 14:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:22:26] Production.INFO: ==12509== Releasing lock... [2025-03-05 14:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:22:26] Production.INFO: 65 MB #Memory Used# [2025-03-05 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:23:05 [end_date_ymd] => 2025-03-05 14:23:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 11:23:05' and `end` < '2025-03-05 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-03-05 14:23:18] Production.INFO: count ==4932 [2025-03-05 14:23:20] Production.ERROR: pbx CDR StartTime 2025-03-05 11:23:05 - End Time 2025-03-05 14:23:05 [2025-03-05 14:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613728', 'tblTempUsageDetail_20' ) start [2025-03-05 14:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613728', 'tblTempUsageDetail_20' ) end [2025-03-05 14:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613728', 'tblTempVendorCDR_20' ) start [2025-03-05 14:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613728', 'tblTempVendorCDR_20' ) end [2025-03-05 14:23:20] Production.INFO: ProcessCDR(1,14613728,1,1,2) [2025-03-05 14:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613728', 'tblTempUsageDetail_20' ) start [2025-03-05 14:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613728', 'tblTempUsageDetail_20' ) end [2025-03-05 14:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:23:25] Production.INFO: ==12591== Releasing lock... [2025-03-05 14:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:23:25] Production.INFO: 65 MB #Memory Used# [2025-03-05 14:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:24:06 [end_date_ymd] => 2025-03-05 14:24:06 [RateCDR] => 1 ) [2025-03-05 14: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-03-05 11:24:06' and `end` < '2025-03-05 14: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-03-05 14:24:19] Production.INFO: count ==4934 [2025-03-05 14:24:21] Production.ERROR: pbx CDR StartTime 2025-03-05 11:24:06 - End Time 2025-03-05 14:24:06 [2025-03-05 14:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613733', 'tblTempUsageDetail_20' ) start [2025-03-05 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613733', 'tblTempUsageDetail_20' ) end [2025-03-05 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613733', 'tblTempVendorCDR_20' ) start [2025-03-05 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613733', 'tblTempVendorCDR_20' ) end [2025-03-05 14:24:21] Production.INFO: ProcessCDR(1,14613733,1,1,2) [2025-03-05 14:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613733', 'tblTempUsageDetail_20' ) start [2025-03-05 14:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613733', 'tblTempUsageDetail_20' ) end [2025-03-05 14:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:24:26] Production.INFO: ==12668== Releasing lock... [2025-03-05 14:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:24:26] Production.INFO: 65 MB #Memory Used# [2025-03-05 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:25:05 [end_date_ymd] => 2025-03-05 14:25:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 11:25:05' and `end` < '2025-03-05 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-03-05 14:25:18] Production.INFO: count ==4937 [2025-03-05 14:25:20] Production.ERROR: pbx CDR StartTime 2025-03-05 11:25:05 - End Time 2025-03-05 14:25:05 [2025-03-05 14:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613738', 'tblTempUsageDetail_20' ) start [2025-03-05 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613738', 'tblTempUsageDetail_20' ) end [2025-03-05 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613738', 'tblTempVendorCDR_20' ) start [2025-03-05 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613738', 'tblTempVendorCDR_20' ) end [2025-03-05 14:25:20] Production.INFO: ProcessCDR(1,14613738,1,1,2) [2025-03-05 14:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613738', 'tblTempUsageDetail_20' ) start [2025-03-05 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613738', 'tblTempUsageDetail_20' ) end [2025-03-05 14:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:25:25] Production.INFO: ==12749== Releasing lock... [2025-03-05 14:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:25:26] Production.INFO: 65 MB #Memory Used# [2025-03-05 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:26:05 [end_date_ymd] => 2025-03-05 14:26:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 11:26:05' and `end` < '2025-03-05 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-03-05 14:26:18] Production.INFO: count ==4943 [2025-03-05 14:26:20] Production.ERROR: pbx CDR StartTime 2025-03-05 11:26:05 - End Time 2025-03-05 14:26:05 [2025-03-05 14:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613743', 'tblTempUsageDetail_20' ) start [2025-03-05 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613743', 'tblTempUsageDetail_20' ) end [2025-03-05 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613743', 'tblTempVendorCDR_20' ) start [2025-03-05 14:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613743', 'tblTempVendorCDR_20' ) end [2025-03-05 14:26:20] Production.INFO: ProcessCDR(1,14613743,1,1,2) [2025-03-05 14:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613743', 'tblTempUsageDetail_20' ) start [2025-03-05 14:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613743', 'tblTempUsageDetail_20' ) end [2025-03-05 14:26:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:26:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:26:25] Production.INFO: ==12825== Releasing lock... [2025-03-05 14:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:26:25] Production.INFO: 65 MB #Memory Used# [2025-03-05 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:27:05 [end_date_ymd] => 2025-03-05 14:27:05 [RateCDR] => 1 ) [2025-03-05 14: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-03-05 11:27:05' and `end` < '2025-03-05 14: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-03-05 14:27:18] Production.INFO: count ==4980 [2025-03-05 14:27:20] Production.ERROR: pbx CDR StartTime 2025-03-05 11:27:05 - End Time 2025-03-05 14:27:05 [2025-03-05 14:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613748', 'tblTempUsageDetail_20' ) start [2025-03-05 14:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613748', 'tblTempUsageDetail_20' ) end [2025-03-05 14:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613748', 'tblTempVendorCDR_20' ) start [2025-03-05 14:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613748', 'tblTempVendorCDR_20' ) end [2025-03-05 14:27:20] Production.INFO: ProcessCDR(1,14613748,1,1,2) [2025-03-05 14:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613748', 'tblTempUsageDetail_20' ) start [2025-03-05 14:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613748', 'tblTempUsageDetail_20' ) end [2025-03-05 14:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:27:25] Production.INFO: ==12905== Releasing lock... [2025-03-05 14:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:27:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-05 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:28:05 [end_date_ymd] => 2025-03-05 14:28:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 11:28:05' and `end` < '2025-03-05 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-03-05 14:28:18] Production.INFO: count ==4972 [2025-03-05 14:28:20] Production.ERROR: pbx CDR StartTime 2025-03-05 11:28:05 - End Time 2025-03-05 14:28:05 [2025-03-05 14:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613753', 'tblTempUsageDetail_20' ) start [2025-03-05 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613753', 'tblTempUsageDetail_20' ) end [2025-03-05 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613753', 'tblTempVendorCDR_20' ) start [2025-03-05 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613753', 'tblTempVendorCDR_20' ) end [2025-03-05 14:28:21] Production.INFO: ProcessCDR(1,14613753,1,1,2) [2025-03-05 14:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613753', 'tblTempUsageDetail_20' ) start [2025-03-05 14:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613753', 'tblTempUsageDetail_20' ) end [2025-03-05 14:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:28:25] Production.INFO: ==12983== Releasing lock... [2025-03-05 14:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:28:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-05 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:29:05 [end_date_ymd] => 2025-03-05 14:29:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 11:29:05' and `end` < '2025-03-05 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-03-05 14:29:18] Production.INFO: count ==4989 [2025-03-05 14:29:20] Production.ERROR: pbx CDR StartTime 2025-03-05 11:29:05 - End Time 2025-03-05 14:29:05 [2025-03-05 14:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613758', 'tblTempUsageDetail_20' ) start [2025-03-05 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613758', 'tblTempUsageDetail_20' ) end [2025-03-05 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613758', 'tblTempVendorCDR_20' ) start [2025-03-05 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613758', 'tblTempVendorCDR_20' ) end [2025-03-05 14:29:20] Production.INFO: ProcessCDR(1,14613758,1,1,2) [2025-03-05 14:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613758', 'tblTempUsageDetail_20' ) start [2025-03-05 14:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613758', 'tblTempUsageDetail_20' ) end [2025-03-05 14:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:29:25] Production.INFO: ==13103== Releasing lock... [2025-03-05 14:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:29:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-05 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:30:06 [end_date_ymd] => 2025-03-05 14:30:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 11:30:06' and `end` < '2025-03-05 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-03-05 14:30:19] Production.INFO: count ==4985 [2025-03-05 14:30:21] Production.ERROR: pbx CDR StartTime 2025-03-05 11:30:06 - End Time 2025-03-05 14:30:06 [2025-03-05 14:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613764', 'tblTempUsageDetail_20' ) start [2025-03-05 14:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613764', 'tblTempUsageDetail_20' ) end [2025-03-05 14:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613764', 'tblTempVendorCDR_20' ) start [2025-03-05 14:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613764', 'tblTempVendorCDR_20' ) end [2025-03-05 14:30:21] Production.INFO: ProcessCDR(1,14613764,1,1,2) [2025-03-05 14:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613764', 'tblTempUsageDetail_20' ) start [2025-03-05 14:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613764', 'tblTempUsageDetail_20' ) end [2025-03-05 14:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:30:25] Production.INFO: ==13183== Releasing lock... [2025-03-05 14:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:30:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-05 14:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:31:06 [end_date_ymd] => 2025-03-05 14:31:06 [RateCDR] => 1 ) [2025-03-05 14:31: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-03-05 11:31:06' and `end` < '2025-03-05 14:31: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-03-05 14:31:19] Production.INFO: count ==4989 [2025-03-05 14:31:22] Production.ERROR: pbx CDR StartTime 2025-03-05 11:31:06 - End Time 2025-03-05 14:31:06 [2025-03-05 14:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613769', 'tblTempUsageDetail_20' ) start [2025-03-05 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613769', 'tblTempUsageDetail_20' ) end [2025-03-05 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613769', 'tblTempVendorCDR_20' ) start [2025-03-05 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613769', 'tblTempVendorCDR_20' ) end [2025-03-05 14:31:22] Production.INFO: ProcessCDR(1,14613769,1,1,2) [2025-03-05 14:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613769', 'tblTempUsageDetail_20' ) start [2025-03-05 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613769', 'tblTempUsageDetail_20' ) end [2025-03-05 14:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:31:27] Production.INFO: ==13265== Releasing lock... [2025-03-05 14:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:31:27] Production.INFO: 65.25 MB #Memory Used# [2025-03-05 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:32:05 [end_date_ymd] => 2025-03-05 14:32:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 11:32:05' and `end` < '2025-03-05 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-03-05 14:32:18] Production.INFO: count ==4984 [2025-03-05 14:32:20] Production.ERROR: pbx CDR StartTime 2025-03-05 11:32:05 - End Time 2025-03-05 14:32:05 [2025-03-05 14:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613774', 'tblTempUsageDetail_20' ) start [2025-03-05 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613774', 'tblTempUsageDetail_20' ) end [2025-03-05 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613774', 'tblTempVendorCDR_20' ) start [2025-03-05 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613774', 'tblTempVendorCDR_20' ) end [2025-03-05 14:32:20] Production.INFO: ProcessCDR(1,14613774,1,1,2) [2025-03-05 14:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613774', 'tblTempUsageDetail_20' ) start [2025-03-05 14:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613774', 'tblTempUsageDetail_20' ) end [2025-03-05 14:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:32:25] Production.INFO: ==13342== Releasing lock... [2025-03-05 14:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:32:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-05 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:33:05 [end_date_ymd] => 2025-03-05 14:33:05 [RateCDR] => 1 ) [2025-03-05 14: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-03-05 11:33:05' and `end` < '2025-03-05 14: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-03-05 14:33:18] Production.INFO: count ==4973 [2025-03-05 14:33:20] Production.ERROR: pbx CDR StartTime 2025-03-05 11:33:05 - End Time 2025-03-05 14:33:05 [2025-03-05 14:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613779', 'tblTempUsageDetail_20' ) start [2025-03-05 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613779', 'tblTempUsageDetail_20' ) end [2025-03-05 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613779', 'tblTempVendorCDR_20' ) start [2025-03-05 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613779', 'tblTempVendorCDR_20' ) end [2025-03-05 14:33:21] Production.INFO: ProcessCDR(1,14613779,1,1,2) [2025-03-05 14:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613779', 'tblTempUsageDetail_20' ) start [2025-03-05 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613779', 'tblTempUsageDetail_20' ) end [2025-03-05 14:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:33:26] Production.INFO: ==13418== Releasing lock... [2025-03-05 14:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:33:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-05 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:34:05 [end_date_ymd] => 2025-03-05 14:34:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 11:34:05' and `end` < '2025-03-05 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-03-05 14:34:18] Production.INFO: count ==4980 [2025-03-05 14:34:20] Production.ERROR: pbx CDR StartTime 2025-03-05 11:34:05 - End Time 2025-03-05 14:34:05 [2025-03-05 14:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613784', 'tblTempUsageDetail_20' ) start [2025-03-05 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613784', 'tblTempUsageDetail_20' ) end [2025-03-05 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613784', 'tblTempVendorCDR_20' ) start [2025-03-05 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613784', 'tblTempVendorCDR_20' ) end [2025-03-05 14:34:21] Production.INFO: ProcessCDR(1,14613784,1,1,2) [2025-03-05 14:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613784', 'tblTempUsageDetail_20' ) start [2025-03-05 14:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613784', 'tblTempUsageDetail_20' ) end [2025-03-05 14:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:34:26] Production.INFO: ==13498== Releasing lock... [2025-03-05 14:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:34:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-05 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:35:05 [end_date_ymd] => 2025-03-05 14:35:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 11:35:05' and `end` < '2025-03-05 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-03-05 14:35:18] Production.INFO: count ==4969 [2025-03-05 14:35:20] Production.ERROR: pbx CDR StartTime 2025-03-05 11:35:05 - End Time 2025-03-05 14:35:05 [2025-03-05 14:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613789', 'tblTempUsageDetail_20' ) start [2025-03-05 14:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613789', 'tblTempUsageDetail_20' ) end [2025-03-05 14:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613789', 'tblTempVendorCDR_20' ) start [2025-03-05 14:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613789', 'tblTempVendorCDR_20' ) end [2025-03-05 14:35:20] Production.INFO: ProcessCDR(1,14613789,1,1,2) [2025-03-05 14:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613789', 'tblTempUsageDetail_20' ) start [2025-03-05 14:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613789', 'tblTempUsageDetail_20' ) end [2025-03-05 14:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:35:25] Production.INFO: ==13589== Releasing lock... [2025-03-05 14:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:35:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-05 14:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:36:06 [end_date_ymd] => 2025-03-05 14:36:06 [RateCDR] => 1 ) [2025-03-05 14:36: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-03-05 11:36:06' and `end` < '2025-03-05 14:36: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-03-05 14:36:19] Production.INFO: count ==4971 [2025-03-05 14:36:21] Production.ERROR: pbx CDR StartTime 2025-03-05 11:36:06 - End Time 2025-03-05 14:36:06 [2025-03-05 14:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613794', 'tblTempUsageDetail_20' ) start [2025-03-05 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613794', 'tblTempUsageDetail_20' ) end [2025-03-05 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613794', 'tblTempVendorCDR_20' ) start [2025-03-05 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613794', 'tblTempVendorCDR_20' ) end [2025-03-05 14:36:21] Production.INFO: ProcessCDR(1,14613794,1,1,2) [2025-03-05 14:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613794', 'tblTempUsageDetail_20' ) start [2025-03-05 14:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613794', 'tblTempUsageDetail_20' ) end [2025-03-05 14:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:36:26] Production.INFO: ==13669== Releasing lock... [2025-03-05 14:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:36:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-05 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:37:05 [end_date_ymd] => 2025-03-05 14:37:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 11:37:05' and `end` < '2025-03-05 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-03-05 14:37:18] Production.INFO: count ==4969 [2025-03-05 14:37:20] Production.ERROR: pbx CDR StartTime 2025-03-05 11:37:05 - End Time 2025-03-05 14:37:05 [2025-03-05 14:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613799', 'tblTempUsageDetail_20' ) start [2025-03-05 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613799', 'tblTempUsageDetail_20' ) end [2025-03-05 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613799', 'tblTempVendorCDR_20' ) start [2025-03-05 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613799', 'tblTempVendorCDR_20' ) end [2025-03-05 14:37:20] Production.INFO: ProcessCDR(1,14613799,1,1,2) [2025-03-05 14:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613799', 'tblTempUsageDetail_20' ) start [2025-03-05 14:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613799', 'tblTempUsageDetail_20' ) end [2025-03-05 14:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:37:25] Production.INFO: ==13743== Releasing lock... [2025-03-05 14:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:37:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-05 14:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:38:06 [end_date_ymd] => 2025-03-05 14:38:06 [RateCDR] => 1 ) [2025-03-05 14:38: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-03-05 11:38:06' and `end` < '2025-03-05 14:38: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-03-05 14:38:19] Production.INFO: count ==4951 [2025-03-05 14:38:21] Production.ERROR: pbx CDR StartTime 2025-03-05 11:38:06 - End Time 2025-03-05 14:38:06 [2025-03-05 14:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613804', 'tblTempUsageDetail_20' ) start [2025-03-05 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613804', 'tblTempUsageDetail_20' ) end [2025-03-05 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613804', 'tblTempVendorCDR_20' ) start [2025-03-05 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613804', 'tblTempVendorCDR_20' ) end [2025-03-05 14:38:21] Production.INFO: ProcessCDR(1,14613804,1,1,2) [2025-03-05 14:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613804', 'tblTempUsageDetail_20' ) start [2025-03-05 14:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613804', 'tblTempUsageDetail_20' ) end [2025-03-05 14:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:38:26] Production.INFO: ==13815== Releasing lock... [2025-03-05 14:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:38:26] Production.INFO: 65 MB #Memory Used# [2025-03-05 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:39:05 [end_date_ymd] => 2025-03-05 14:39:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 11:39:05' and `end` < '2025-03-05 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-03-05 14:39:18] Production.INFO: count ==4951 [2025-03-05 14:39:20] Production.ERROR: pbx CDR StartTime 2025-03-05 11:39:05 - End Time 2025-03-05 14:39:05 [2025-03-05 14:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613809', 'tblTempUsageDetail_20' ) start [2025-03-05 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613809', 'tblTempUsageDetail_20' ) end [2025-03-05 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613809', 'tblTempVendorCDR_20' ) start [2025-03-05 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613809', 'tblTempVendorCDR_20' ) end [2025-03-05 14:39:21] Production.INFO: ProcessCDR(1,14613809,1,1,2) [2025-03-05 14:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613809', 'tblTempUsageDetail_20' ) start [2025-03-05 14:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613809', 'tblTempUsageDetail_20' ) end [2025-03-05 14:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:39:24] Production.INFO: ==13893== Releasing lock... [2025-03-05 14:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:39:24] Production.INFO: 65 MB #Memory Used# [2025-03-05 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:40:06 [end_date_ymd] => 2025-03-05 14:40:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 11:40:06' and `end` < '2025-03-05 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-03-05 14:40:19] Production.INFO: count ==4963 [2025-03-05 14:40:21] Production.ERROR: pbx CDR StartTime 2025-03-05 11:40:06 - End Time 2025-03-05 14:40:06 [2025-03-05 14:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613815', 'tblTempUsageDetail_20' ) start [2025-03-05 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613815', 'tblTempUsageDetail_20' ) end [2025-03-05 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613815', 'tblTempVendorCDR_20' ) start [2025-03-05 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613815', 'tblTempVendorCDR_20' ) end [2025-03-05 14:40:21] Production.INFO: ProcessCDR(1,14613815,1,1,2) [2025-03-05 14:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613815', 'tblTempUsageDetail_20' ) start [2025-03-05 14:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613815', 'tblTempUsageDetail_20' ) end [2025-03-05 14:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:40:26] Production.INFO: ==13966== Releasing lock... [2025-03-05 14:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:40:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-05 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:41:05 [end_date_ymd] => 2025-03-05 14:41:05 [RateCDR] => 1 ) [2025-03-05 14: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-03-05 11:41:05' and `end` < '2025-03-05 14: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-03-05 14:41:18] Production.INFO: count ==4935 [2025-03-05 14:41:20] Production.ERROR: pbx CDR StartTime 2025-03-05 11:41:05 - End Time 2025-03-05 14:41:05 [2025-03-05 14:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613820', 'tblTempUsageDetail_20' ) start [2025-03-05 14:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613820', 'tblTempUsageDetail_20' ) end [2025-03-05 14:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613820', 'tblTempVendorCDR_20' ) start [2025-03-05 14:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613820', 'tblTempVendorCDR_20' ) end [2025-03-05 14:41:20] Production.INFO: ProcessCDR(1,14613820,1,1,2) [2025-03-05 14:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613820', 'tblTempUsageDetail_20' ) start [2025-03-05 14:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613820', 'tblTempUsageDetail_20' ) end [2025-03-05 14:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:41:25] Production.INFO: ==14043== Releasing lock... [2025-03-05 14:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:41:25] Production.INFO: 65 MB #Memory Used# [2025-03-05 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:42:05 [end_date_ymd] => 2025-03-05 14:42:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 11:42:05' and `end` < '2025-03-05 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-03-05 14:42:18] Production.INFO: count ==4936 [2025-03-05 14:42:20] Production.ERROR: pbx CDR StartTime 2025-03-05 11:42:05 - End Time 2025-03-05 14:42:05 [2025-03-05 14:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613825', 'tblTempUsageDetail_20' ) start [2025-03-05 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613825', 'tblTempUsageDetail_20' ) end [2025-03-05 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613825', 'tblTempVendorCDR_20' ) start [2025-03-05 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613825', 'tblTempVendorCDR_20' ) end [2025-03-05 14:42:21] Production.INFO: ProcessCDR(1,14613825,1,1,2) [2025-03-05 14:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613825', 'tblTempUsageDetail_20' ) start [2025-03-05 14:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613825', 'tblTempUsageDetail_20' ) end [2025-03-05 14:42:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:42:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:42:25] Production.INFO: ==14120== Releasing lock... [2025-03-05 14:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:42:25] Production.INFO: 65 MB #Memory Used# [2025-03-05 14:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:43:04 [end_date_ymd] => 2025-03-05 14:43:04 [RateCDR] => 1 ) [2025-03-05 14: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-03-05 11:43:04' and `end` < '2025-03-05 14: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-03-05 14:43:18] Production.INFO: count ==4932 [2025-03-05 14:43:20] Production.ERROR: pbx CDR StartTime 2025-03-05 11:43:04 - End Time 2025-03-05 14:43:04 [2025-03-05 14:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613830', 'tblTempUsageDetail_20' ) start [2025-03-05 14:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613830', 'tblTempUsageDetail_20' ) end [2025-03-05 14:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613830', 'tblTempVendorCDR_20' ) start [2025-03-05 14:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613830', 'tblTempVendorCDR_20' ) end [2025-03-05 14:43:20] Production.INFO: ProcessCDR(1,14613830,1,1,2) [2025-03-05 14:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613830', 'tblTempUsageDetail_20' ) start [2025-03-05 14:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613830', 'tblTempUsageDetail_20' ) end [2025-03-05 14:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:43:25] Production.INFO: ==14191== Releasing lock... [2025-03-05 14:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:43:25] Production.INFO: 65 MB #Memory Used# [2025-03-05 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:44:05 [end_date_ymd] => 2025-03-05 14:44:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 11:44:05' and `end` < '2025-03-05 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-03-05 14:44:19] Production.INFO: count ==4915 [2025-03-05 14:44:21] Production.ERROR: pbx CDR StartTime 2025-03-05 11:44:05 - End Time 2025-03-05 14:44:05 [2025-03-05 14:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613835', 'tblTempUsageDetail_20' ) start [2025-03-05 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613835', 'tblTempUsageDetail_20' ) end [2025-03-05 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613835', 'tblTempVendorCDR_20' ) start [2025-03-05 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613835', 'tblTempVendorCDR_20' ) end [2025-03-05 14:44:21] Production.INFO: ProcessCDR(1,14613835,1,1,2) [2025-03-05 14:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613835', 'tblTempUsageDetail_20' ) start [2025-03-05 14:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613835', 'tblTempUsageDetail_20' ) end [2025-03-05 14:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:44:25] Production.INFO: ==14305== Releasing lock... [2025-03-05 14:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:44:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:45:05 [end_date_ymd] => 2025-03-05 14:45:05 [RateCDR] => 1 ) [2025-03-05 14: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-03-05 11:45:05' and `end` < '2025-03-05 14: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-03-05 14:45:18] Production.INFO: count ==4935 [2025-03-05 14:45:20] Production.ERROR: pbx CDR StartTime 2025-03-05 11:45:05 - End Time 2025-03-05 14:45:05 [2025-03-05 14:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613840', 'tblTempUsageDetail_20' ) start [2025-03-05 14:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613840', 'tblTempUsageDetail_20' ) end [2025-03-05 14:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613840', 'tblTempVendorCDR_20' ) start [2025-03-05 14:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613840', 'tblTempVendorCDR_20' ) end [2025-03-05 14:45:20] Production.INFO: ProcessCDR(1,14613840,1,1,2) [2025-03-05 14:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613840', 'tblTempUsageDetail_20' ) start [2025-03-05 14:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613840', 'tblTempUsageDetail_20' ) end [2025-03-05 14:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:45:26] Production.INFO: ==14382== Releasing lock... [2025-03-05 14:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:45:26] Production.INFO: 65 MB #Memory Used# [2025-03-05 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:46:05 [end_date_ymd] => 2025-03-05 14:46:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 11:46:05' and `end` < '2025-03-05 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-03-05 14:46:18] Production.INFO: count ==4930 [2025-03-05 14:46:20] Production.ERROR: pbx CDR StartTime 2025-03-05 11:46:05 - End Time 2025-03-05 14:46:05 [2025-03-05 14:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613845', 'tblTempUsageDetail_20' ) start [2025-03-05 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613845', 'tblTempUsageDetail_20' ) end [2025-03-05 14:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613845', 'tblTempVendorCDR_20' ) start [2025-03-05 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613845', 'tblTempVendorCDR_20' ) end [2025-03-05 14:46:21] Production.INFO: ProcessCDR(1,14613845,1,1,2) [2025-03-05 14:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613845', 'tblTempUsageDetail_20' ) start [2025-03-05 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613845', 'tblTempUsageDetail_20' ) end [2025-03-05 14:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:46:26] Production.INFO: ==14456== Releasing lock... [2025-03-05 14:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:46:26] Production.INFO: 65 MB #Memory Used# [2025-03-05 14:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:47:06 [end_date_ymd] => 2025-03-05 14:47:06 [RateCDR] => 1 ) [2025-03-05 14:47: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-03-05 11:47:06' and `end` < '2025-03-05 14:47: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-03-05 14:47:19] Production.INFO: count ==4971 [2025-03-05 14:47:21] Production.ERROR: pbx CDR StartTime 2025-03-05 11:47:06 - End Time 2025-03-05 14:47:06 [2025-03-05 14:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613850', 'tblTempUsageDetail_20' ) start [2025-03-05 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613850', 'tblTempUsageDetail_20' ) end [2025-03-05 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613850', 'tblTempVendorCDR_20' ) start [2025-03-05 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613850', 'tblTempVendorCDR_20' ) end [2025-03-05 14:47:21] Production.INFO: ProcessCDR(1,14613850,1,1,2) [2025-03-05 14:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613850', 'tblTempUsageDetail_20' ) start [2025-03-05 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613850', 'tblTempUsageDetail_20' ) end [2025-03-05 14:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:47:26] Production.INFO: ==14526== Releasing lock... [2025-03-05 14:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:47:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-05 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:48:05 [end_date_ymd] => 2025-03-05 14:48:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 11:48:05' and `end` < '2025-03-05 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-03-05 14:48:19] Production.INFO: count ==4989 [2025-03-05 14:48:21] Production.ERROR: pbx CDR StartTime 2025-03-05 11:48:05 - End Time 2025-03-05 14:48:05 [2025-03-05 14:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613855', 'tblTempUsageDetail_20' ) start [2025-03-05 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613855', 'tblTempUsageDetail_20' ) end [2025-03-05 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613855', 'tblTempVendorCDR_20' ) start [2025-03-05 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613855', 'tblTempVendorCDR_20' ) end [2025-03-05 14:48:21] Production.INFO: ProcessCDR(1,14613855,1,1,2) [2025-03-05 14:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613855', 'tblTempUsageDetail_20' ) start [2025-03-05 14:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613855', 'tblTempUsageDetail_20' ) end [2025-03-05 14:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:48:26] Production.INFO: ==14602== Releasing lock... [2025-03-05 14:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:48:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-05 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:49:05 [end_date_ymd] => 2025-03-05 14:49:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 11:49:05' and `end` < '2025-03-05 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-03-05 14:49:18] Production.INFO: count ==4979 [2025-03-05 14:49:20] Production.ERROR: pbx CDR StartTime 2025-03-05 11:49:05 - End Time 2025-03-05 14:49:05 [2025-03-05 14:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613860', 'tblTempUsageDetail_20' ) start [2025-03-05 14:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613860', 'tblTempUsageDetail_20' ) end [2025-03-05 14:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613860', 'tblTempVendorCDR_20' ) start [2025-03-05 14:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613860', 'tblTempVendorCDR_20' ) end [2025-03-05 14:49:20] Production.INFO: ProcessCDR(1,14613860,1,1,2) [2025-03-05 14:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613860', 'tblTempUsageDetail_20' ) start [2025-03-05 14:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613860', 'tblTempUsageDetail_20' ) end [2025-03-05 14:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:49:25] Production.INFO: ==14678== Releasing lock... [2025-03-05 14:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:49:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-05 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:50:06 [end_date_ymd] => 2025-03-05 14:50:06 [RateCDR] => 1 ) [2025-03-05 14: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-03-05 11:50:06' and `end` < '2025-03-05 14: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-03-05 14:50:19] Production.INFO: count ==4969 [2025-03-05 14:50:21] Production.ERROR: pbx CDR StartTime 2025-03-05 11:50:06 - End Time 2025-03-05 14:50:06 [2025-03-05 14:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613866', 'tblTempUsageDetail_20' ) start [2025-03-05 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613866', 'tblTempUsageDetail_20' ) end [2025-03-05 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613866', 'tblTempVendorCDR_20' ) start [2025-03-05 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613866', 'tblTempVendorCDR_20' ) end [2025-03-05 14:50:21] Production.INFO: ProcessCDR(1,14613866,1,1,2) [2025-03-05 14:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613866', 'tblTempUsageDetail_20' ) start [2025-03-05 14:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613866', 'tblTempUsageDetail_20' ) end [2025-03-05 14:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:50:26] Production.INFO: ==14754== Releasing lock... [2025-03-05 14:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:50:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-05 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:51:05 [end_date_ymd] => 2025-03-05 14:51:05 [RateCDR] => 1 ) [2025-03-05 14: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-03-05 11:51:05' and `end` < '2025-03-05 14: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-03-05 14:51:18] Production.INFO: count ==4946 [2025-03-05 14:51:20] Production.ERROR: pbx CDR StartTime 2025-03-05 11:51:05 - End Time 2025-03-05 14:51:05 [2025-03-05 14:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613871', 'tblTempUsageDetail_20' ) start [2025-03-05 14:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613871', 'tblTempUsageDetail_20' ) end [2025-03-05 14:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613871', 'tblTempVendorCDR_20' ) start [2025-03-05 14:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613871', 'tblTempVendorCDR_20' ) end [2025-03-05 14:51:20] Production.INFO: ProcessCDR(1,14613871,1,1,2) [2025-03-05 14:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613871', 'tblTempUsageDetail_20' ) start [2025-03-05 14:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613871', 'tblTempUsageDetail_20' ) end [2025-03-05 14:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:51:25] Production.INFO: ==14833== Releasing lock... [2025-03-05 14:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:51:25] Production.INFO: 65 MB #Memory Used# [2025-03-05 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:52:05 [end_date_ymd] => 2025-03-05 14:52:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 11:52:05' and `end` < '2025-03-05 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-03-05 14:52:18] Production.INFO: count ==4947 [2025-03-05 14:52:20] Production.ERROR: pbx CDR StartTime 2025-03-05 11:52:05 - End Time 2025-03-05 14:52:05 [2025-03-05 14:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613876', 'tblTempUsageDetail_20' ) start [2025-03-05 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613876', 'tblTempUsageDetail_20' ) end [2025-03-05 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613876', 'tblTempVendorCDR_20' ) start [2025-03-05 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613876', 'tblTempVendorCDR_20' ) end [2025-03-05 14:52:21] Production.INFO: ProcessCDR(1,14613876,1,1,2) [2025-03-05 14:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613876', 'tblTempUsageDetail_20' ) start [2025-03-05 14:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613876', 'tblTempUsageDetail_20' ) end [2025-03-05 14:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:52:26] Production.INFO: ==14905== Releasing lock... [2025-03-05 14:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:52:26] Production.INFO: 65 MB #Memory Used# [2025-03-05 14:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:53:06 [end_date_ymd] => 2025-03-05 14:53:06 [RateCDR] => 1 ) [2025-03-05 14: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-03-05 11:53:06' and `end` < '2025-03-05 14: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-03-05 14:53:19] Production.INFO: count ==4945 [2025-03-05 14:53:21] Production.ERROR: pbx CDR StartTime 2025-03-05 11:53:06 - End Time 2025-03-05 14:53:06 [2025-03-05 14:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613881', 'tblTempUsageDetail_20' ) start [2025-03-05 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613881', 'tblTempUsageDetail_20' ) end [2025-03-05 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613881', 'tblTempVendorCDR_20' ) start [2025-03-05 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613881', 'tblTempVendorCDR_20' ) end [2025-03-05 14:53:21] Production.INFO: ProcessCDR(1,14613881,1,1,2) [2025-03-05 14:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613881', 'tblTempUsageDetail_20' ) start [2025-03-05 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613881', 'tblTempUsageDetail_20' ) end [2025-03-05 14:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:53:26] Production.INFO: ==14979== Releasing lock... [2025-03-05 14:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:53:26] Production.INFO: 65 MB #Memory Used# [2025-03-05 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:54:05 [end_date_ymd] => 2025-03-05 14:54:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 11:54:05' and `end` < '2025-03-05 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-03-05 14:54:18] Production.INFO: count ==4960 [2025-03-05 14:54:20] Production.ERROR: pbx CDR StartTime 2025-03-05 11:54:05 - End Time 2025-03-05 14:54:05 [2025-03-05 14:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613886', 'tblTempUsageDetail_20' ) start [2025-03-05 14:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613886', 'tblTempUsageDetail_20' ) end [2025-03-05 14:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613886', 'tblTempVendorCDR_20' ) start [2025-03-05 14:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613886', 'tblTempVendorCDR_20' ) end [2025-03-05 14:54:20] Production.INFO: ProcessCDR(1,14613886,1,1,2) [2025-03-05 14:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613886', 'tblTempUsageDetail_20' ) start [2025-03-05 14:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613886', 'tblTempUsageDetail_20' ) end [2025-03-05 14:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:54:25] Production.INFO: ==15053== Releasing lock... [2025-03-05 14:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:54:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-05 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:55:05 [end_date_ymd] => 2025-03-05 14:55:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 11:55:05' and `end` < '2025-03-05 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-03-05 14:55:18] Production.INFO: count ==4932 [2025-03-05 14:55:20] Production.ERROR: pbx CDR StartTime 2025-03-05 11:55:05 - End Time 2025-03-05 14:55:05 [2025-03-05 14:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613891', 'tblTempUsageDetail_20' ) start [2025-03-05 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613891', 'tblTempUsageDetail_20' ) end [2025-03-05 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613891', 'tblTempVendorCDR_20' ) start [2025-03-05 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613891', 'tblTempVendorCDR_20' ) end [2025-03-05 14:55:21] Production.INFO: ProcessCDR(1,14613891,1,1,2) [2025-03-05 14:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613891', 'tblTempUsageDetail_20' ) start [2025-03-05 14:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613891', 'tblTempUsageDetail_20' ) end [2025-03-05 14:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:55:24] Production.INFO: ==15126== Releasing lock... [2025-03-05 14:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:55:24] Production.INFO: 65 MB #Memory Used# [2025-03-05 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:56:06 [end_date_ymd] => 2025-03-05 14:56:06 [RateCDR] => 1 ) [2025-03-05 14: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-03-05 11:56:06' and `end` < '2025-03-05 14: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-03-05 14:56:19] Production.INFO: count ==4927 [2025-03-05 14:56:21] Production.ERROR: pbx CDR StartTime 2025-03-05 11:56:06 - End Time 2025-03-05 14:56:06 [2025-03-05 14:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613896', 'tblTempUsageDetail_20' ) start [2025-03-05 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613896', 'tblTempUsageDetail_20' ) end [2025-03-05 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613896', 'tblTempVendorCDR_20' ) start [2025-03-05 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613896', 'tblTempVendorCDR_20' ) end [2025-03-05 14:56:21] Production.INFO: ProcessCDR(1,14613896,1,1,2) [2025-03-05 14:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613896', 'tblTempUsageDetail_20' ) start [2025-03-05 14:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613896', 'tblTempUsageDetail_20' ) end [2025-03-05 14:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:56:26] Production.INFO: ==15201== Releasing lock... [2025-03-05 14:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:56:26] Production.INFO: 65 MB #Memory Used# [2025-03-05 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:57:05 [end_date_ymd] => 2025-03-05 14:57:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 11:57:05' and `end` < '2025-03-05 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-03-05 14:57:18] Production.INFO: count ==4925 [2025-03-05 14:57:20] Production.ERROR: pbx CDR StartTime 2025-03-05 11:57:05 - End Time 2025-03-05 14:57:05 [2025-03-05 14:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613901', 'tblTempUsageDetail_20' ) start [2025-03-05 14:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613901', 'tblTempUsageDetail_20' ) end [2025-03-05 14:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613901', 'tblTempVendorCDR_20' ) start [2025-03-05 14:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613901', 'tblTempVendorCDR_20' ) end [2025-03-05 14:57:20] Production.INFO: ProcessCDR(1,14613901,1,1,2) [2025-03-05 14:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613901', 'tblTempUsageDetail_20' ) start [2025-03-05 14:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613901', 'tblTempUsageDetail_20' ) end [2025-03-05 14:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:57:25] Production.INFO: ==15271== Releasing lock... [2025-03-05 14:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:57:25] Production.INFO: 65 MB #Memory Used# [2025-03-05 14:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:58:06 [end_date_ymd] => 2025-03-05 14:58:06 [RateCDR] => 1 ) [2025-03-05 14: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-03-05 11:58:06' and `end` < '2025-03-05 14: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-03-05 14:58:19] Production.INFO: count ==4900 [2025-03-05 14:58:21] Production.ERROR: pbx CDR StartTime 2025-03-05 11:58:06 - End Time 2025-03-05 14:58:06 [2025-03-05 14:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613906', 'tblTempUsageDetail_20' ) start [2025-03-05 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613906', 'tblTempUsageDetail_20' ) end [2025-03-05 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613906', 'tblTempVendorCDR_20' ) start [2025-03-05 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613906', 'tblTempVendorCDR_20' ) end [2025-03-05 14:58:21] Production.INFO: ProcessCDR(1,14613906,1,1,2) [2025-03-05 14:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613906', 'tblTempUsageDetail_20' ) start [2025-03-05 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613906', 'tblTempUsageDetail_20' ) end [2025-03-05 14:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:58:26] Production.INFO: ==15348== Releasing lock... [2025-03-05 14:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:58:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 11:59:05 [end_date_ymd] => 2025-03-05 14:59:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 11:59:05' and `end` < '2025-03-05 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-03-05 14:59:19] Production.INFO: count ==4916 [2025-03-05 14:59:21] Production.ERROR: pbx CDR StartTime 2025-03-05 11:59:05 - End Time 2025-03-05 14:59:05 [2025-03-05 14:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613911', 'tblTempUsageDetail_20' ) start [2025-03-05 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613911', 'tblTempUsageDetail_20' ) end [2025-03-05 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613911', 'tblTempVendorCDR_20' ) start [2025-03-05 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613911', 'tblTempVendorCDR_20' ) end [2025-03-05 14:59:21] Production.INFO: ProcessCDR(1,14613911,1,1,2) [2025-03-05 14:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 14:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 14:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613911', 'tblTempUsageDetail_20' ) start [2025-03-05 14:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613911', 'tblTempUsageDetail_20' ) end [2025-03-05 14:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 14:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 14:59:26] Production.INFO: ==15424== Releasing lock... [2025-03-05 14:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 14:59:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:00:06 [end_date_ymd] => 2025-03-05 15:00:06 [RateCDR] => 1 ) [2025-03-05 15: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-03-05 12:00:06' and `end` < '2025-03-05 15: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-03-05 15:00:20] Production.INFO: count ==4925 [2025-03-05 15:00:22] Production.ERROR: pbx CDR StartTime 2025-03-05 12:00:06 - End Time 2025-03-05 15:00:06 [2025-03-05 15:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613917', 'tblTempUsageDetail_20' ) start [2025-03-05 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613917', 'tblTempUsageDetail_20' ) end [2025-03-05 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613917', 'tblTempVendorCDR_20' ) start [2025-03-05 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613917', 'tblTempVendorCDR_20' ) end [2025-03-05 15:00:22] Production.INFO: ProcessCDR(1,14613917,1,1,2) [2025-03-05 15:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613917', 'tblTempUsageDetail_20' ) start [2025-03-05 15:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613917', 'tblTempUsageDetail_20' ) end [2025-03-05 15:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:00:27] Production.INFO: ==15551== Releasing lock... [2025-03-05 15:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:00:27] Production.INFO: 65 MB #Memory Used# [2025-03-05 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:01:05 [end_date_ymd] => 2025-03-05 15:01:05 [RateCDR] => 1 ) [2025-03-05 15: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-03-05 12:01:05' and `end` < '2025-03-05 15: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-03-05 15:01:18] Production.INFO: count ==4951 [2025-03-05 15:01:20] Production.ERROR: pbx CDR StartTime 2025-03-05 12:01:05 - End Time 2025-03-05 15:01:05 [2025-03-05 15:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613922', 'tblTempUsageDetail_20' ) start [2025-03-05 15:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613922', 'tblTempUsageDetail_20' ) end [2025-03-05 15:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613922', 'tblTempVendorCDR_20' ) start [2025-03-05 15:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613922', 'tblTempVendorCDR_20' ) end [2025-03-05 15:01:20] Production.INFO: ProcessCDR(1,14613922,1,1,2) [2025-03-05 15:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613922', 'tblTempUsageDetail_20' ) start [2025-03-05 15:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613922', 'tblTempUsageDetail_20' ) end [2025-03-05 15:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:01:25] Production.INFO: ==15655== Releasing lock... [2025-03-05 15:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:01:25] Production.INFO: 65 MB #Memory Used# [2025-03-05 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:02:05 [end_date_ymd] => 2025-03-05 15:02:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 12:02:05' and `end` < '2025-03-05 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-03-05 15:02:19] Production.INFO: count ==4940 [2025-03-05 15:02:21] Production.ERROR: pbx CDR StartTime 2025-03-05 12:02:05 - End Time 2025-03-05 15:02:05 [2025-03-05 15:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613927', 'tblTempUsageDetail_20' ) start [2025-03-05 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613927', 'tblTempUsageDetail_20' ) end [2025-03-05 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613927', 'tblTempVendorCDR_20' ) start [2025-03-05 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613927', 'tblTempVendorCDR_20' ) end [2025-03-05 15:02:21] Production.INFO: ProcessCDR(1,14613927,1,1,2) [2025-03-05 15:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613927', 'tblTempUsageDetail_20' ) start [2025-03-05 15:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613927', 'tblTempUsageDetail_20' ) end [2025-03-05 15:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:02:27] Production.INFO: ==15818== Releasing lock... [2025-03-05 15:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:02:27] Production.INFO: 65 MB #Memory Used# [2025-03-05 15:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:03:06 [end_date_ymd] => 2025-03-05 15:03:06 [RateCDR] => 1 ) [2025-03-05 15: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-03-05 12:03:06' and `end` < '2025-03-05 15: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-03-05 15:03:19] Production.INFO: count ==4942 [2025-03-05 15:03:21] Production.ERROR: pbx CDR StartTime 2025-03-05 12:03:06 - End Time 2025-03-05 15:03:06 [2025-03-05 15:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613932', 'tblTempUsageDetail_20' ) start [2025-03-05 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613932', 'tblTempUsageDetail_20' ) end [2025-03-05 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613932', 'tblTempVendorCDR_20' ) start [2025-03-05 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613932', 'tblTempVendorCDR_20' ) end [2025-03-05 15:03:21] Production.INFO: ProcessCDR(1,14613932,1,1,2) [2025-03-05 15:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613932', 'tblTempUsageDetail_20' ) start [2025-03-05 15:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613932', 'tblTempUsageDetail_20' ) end [2025-03-05 15:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:03:26] Production.INFO: ==15904== Releasing lock... [2025-03-05 15:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:03:26] Production.INFO: 65 MB #Memory Used# [2025-03-05 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:04:05 [end_date_ymd] => 2025-03-05 15:04:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 12:04:05' and `end` < '2025-03-05 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-03-05 15:04:18] Production.INFO: count ==4920 [2025-03-05 15:04:20] Production.ERROR: pbx CDR StartTime 2025-03-05 12:04:05 - End Time 2025-03-05 15:04:05 [2025-03-05 15:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613937', 'tblTempUsageDetail_20' ) start [2025-03-05 15:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613937', 'tblTempUsageDetail_20' ) end [2025-03-05 15:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613937', 'tblTempVendorCDR_20' ) start [2025-03-05 15:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613937', 'tblTempVendorCDR_20' ) end [2025-03-05 15:04:20] Production.INFO: ProcessCDR(1,14613937,1,1,2) [2025-03-05 15:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613937', 'tblTempUsageDetail_20' ) start [2025-03-05 15:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613937', 'tblTempUsageDetail_20' ) end [2025-03-05 15:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:04:25] Production.INFO: ==15994== Releasing lock... [2025-03-05 15:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:04:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 15:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:05:06 [end_date_ymd] => 2025-03-05 15:05:06 [RateCDR] => 1 ) [2025-03-05 15:05: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-03-05 12:05:06' and `end` < '2025-03-05 15:05: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-03-05 15:05:19] Production.INFO: count ==4918 [2025-03-05 15:05:21] Production.ERROR: pbx CDR StartTime 2025-03-05 12:05:06 - End Time 2025-03-05 15:05:06 [2025-03-05 15:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613942', 'tblTempUsageDetail_20' ) start [2025-03-05 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613942', 'tblTempUsageDetail_20' ) end [2025-03-05 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613942', 'tblTempVendorCDR_20' ) start [2025-03-05 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613942', 'tblTempVendorCDR_20' ) end [2025-03-05 15:05:21] Production.INFO: ProcessCDR(1,14613942,1,1,2) [2025-03-05 15:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613942', 'tblTempUsageDetail_20' ) start [2025-03-05 15:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613942', 'tblTempUsageDetail_20' ) end [2025-03-05 15:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:05:26] Production.INFO: ==16159== Releasing lock... [2025-03-05 15:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:05:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:06:05 [end_date_ymd] => 2025-03-05 15:06:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 12:06:05' and `end` < '2025-03-05 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-03-05 15:06:18] Production.INFO: count ==4929 [2025-03-05 15:06:20] Production.ERROR: pbx CDR StartTime 2025-03-05 12:06:05 - End Time 2025-03-05 15:06:05 [2025-03-05 15:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613947', 'tblTempUsageDetail_20' ) start [2025-03-05 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613947', 'tblTempUsageDetail_20' ) end [2025-03-05 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613947', 'tblTempVendorCDR_20' ) start [2025-03-05 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613947', 'tblTempVendorCDR_20' ) end [2025-03-05 15:06:20] Production.INFO: ProcessCDR(1,14613947,1,1,2) [2025-03-05 15:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613947', 'tblTempUsageDetail_20' ) start [2025-03-05 15:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613947', 'tblTempUsageDetail_20' ) end [2025-03-05 15:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:06:25] Production.INFO: ==16243== Releasing lock... [2025-03-05 15:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:06:25] Production.INFO: 65 MB #Memory Used# [2025-03-05 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:07:05 [end_date_ymd] => 2025-03-05 15:07:05 [RateCDR] => 1 ) [2025-03-05 15: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-03-05 12:07:05' and `end` < '2025-03-05 15: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-03-05 15:07:18] Production.INFO: count ==4932 [2025-03-05 15:07:20] Production.ERROR: pbx CDR StartTime 2025-03-05 12:07:05 - End Time 2025-03-05 15:07:05 [2025-03-05 15:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613952', 'tblTempUsageDetail_20' ) start [2025-03-05 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613952', 'tblTempUsageDetail_20' ) end [2025-03-05 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613952', 'tblTempVendorCDR_20' ) start [2025-03-05 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613952', 'tblTempVendorCDR_20' ) end [2025-03-05 15:07:21] Production.INFO: ProcessCDR(1,14613952,1,1,2) [2025-03-05 15:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613952', 'tblTempUsageDetail_20' ) start [2025-03-05 15:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613952', 'tblTempUsageDetail_20' ) end [2025-03-05 15:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:07:25] Production.INFO: ==16330== Releasing lock... [2025-03-05 15:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:07:25] Production.INFO: 65 MB #Memory Used# [2025-03-05 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:08:05 [end_date_ymd] => 2025-03-05 15:08:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 12:08:05' and `end` < '2025-03-05 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-03-05 15:08:18] Production.INFO: count ==4950 [2025-03-05 15:08:21] Production.ERROR: pbx CDR StartTime 2025-03-05 12:08:05 - End Time 2025-03-05 15:08:05 [2025-03-05 15:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613957', 'tblTempUsageDetail_20' ) start [2025-03-05 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613957', 'tblTempUsageDetail_20' ) end [2025-03-05 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613957', 'tblTempVendorCDR_20' ) start [2025-03-05 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613957', 'tblTempVendorCDR_20' ) end [2025-03-05 15:08:21] Production.INFO: ProcessCDR(1,14613957,1,1,2) [2025-03-05 15:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613957', 'tblTempUsageDetail_20' ) start [2025-03-05 15:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613957', 'tblTempUsageDetail_20' ) end [2025-03-05 15:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:08:26] Production.INFO: ==16452== Releasing lock... [2025-03-05 15:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:08:26] Production.INFO: 65 MB #Memory Used# [2025-03-05 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:09:05 [end_date_ymd] => 2025-03-05 15:09:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 12:09:05' and `end` < '2025-03-05 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-03-05 15:09:18] Production.INFO: count ==4955 [2025-03-05 15:09:20] Production.ERROR: pbx CDR StartTime 2025-03-05 12:09:05 - End Time 2025-03-05 15:09:05 [2025-03-05 15:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613962', 'tblTempUsageDetail_20' ) start [2025-03-05 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613962', 'tblTempUsageDetail_20' ) end [2025-03-05 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613962', 'tblTempVendorCDR_20' ) start [2025-03-05 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613962', 'tblTempVendorCDR_20' ) end [2025-03-05 15:09:21] Production.INFO: ProcessCDR(1,14613962,1,1,2) [2025-03-05 15:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613962', 'tblTempUsageDetail_20' ) start [2025-03-05 15:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613962', 'tblTempUsageDetail_20' ) end [2025-03-05 15:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:09:26] Production.INFO: ==16576== Releasing lock... [2025-03-05 15:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:09:26] Production.INFO: 65 MB #Memory Used# [2025-03-05 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:10:06 [end_date_ymd] => 2025-03-05 15:10:06 [RateCDR] => 1 ) [2025-03-05 15: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-03-05 12:10:06' and `end` < '2025-03-05 15: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-03-05 15:10:19] Production.INFO: count ==4952 [2025-03-05 15:10:21] Production.ERROR: pbx CDR StartTime 2025-03-05 12:10:06 - End Time 2025-03-05 15:10:06 [2025-03-05 15:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613968', 'tblTempUsageDetail_20' ) start [2025-03-05 15:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613968', 'tblTempUsageDetail_20' ) end [2025-03-05 15:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613968', 'tblTempVendorCDR_20' ) start [2025-03-05 15:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613968', 'tblTempVendorCDR_20' ) end [2025-03-05 15:10:21] Production.INFO: ProcessCDR(1,14613968,1,1,2) [2025-03-05 15:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613968', 'tblTempUsageDetail_20' ) start [2025-03-05 15:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613968', 'tblTempUsageDetail_20' ) end [2025-03-05 15:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:10:26] Production.INFO: ==16658== Releasing lock... [2025-03-05 15:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:10:26] Production.INFO: 65 MB #Memory Used# [2025-03-05 15:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:11:06 [end_date_ymd] => 2025-03-05 15:11:06 [RateCDR] => 1 ) [2025-03-05 15:11: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-03-05 12:11:06' and `end` < '2025-03-05 15:11: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-03-05 15:11:19] Production.INFO: count ==4933 [2025-03-05 15:11:21] Production.ERROR: pbx CDR StartTime 2025-03-05 12:11:06 - End Time 2025-03-05 15:11:06 [2025-03-05 15:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613973', 'tblTempUsageDetail_20' ) start [2025-03-05 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613973', 'tblTempUsageDetail_20' ) end [2025-03-05 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613973', 'tblTempVendorCDR_20' ) start [2025-03-05 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613973', 'tblTempVendorCDR_20' ) end [2025-03-05 15:11:21] Production.INFO: ProcessCDR(1,14613973,1,1,2) [2025-03-05 15:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613973', 'tblTempUsageDetail_20' ) start [2025-03-05 15:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613973', 'tblTempUsageDetail_20' ) end [2025-03-05 15:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:11:26] Production.INFO: ==16746== Releasing lock... [2025-03-05 15:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:11:26] Production.INFO: 65 MB #Memory Used# [2025-03-05 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:12:05 [end_date_ymd] => 2025-03-05 15:12:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 12:12:05' and `end` < '2025-03-05 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-03-05 15:12:18] Production.INFO: count ==4954 [2025-03-05 15:12:20] Production.ERROR: pbx CDR StartTime 2025-03-05 12:12:05 - End Time 2025-03-05 15:12:05 [2025-03-05 15:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613978', 'tblTempUsageDetail_20' ) start [2025-03-05 15:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613978', 'tblTempUsageDetail_20' ) end [2025-03-05 15:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613978', 'tblTempVendorCDR_20' ) start [2025-03-05 15:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613978', 'tblTempVendorCDR_20' ) end [2025-03-05 15:12:20] Production.INFO: ProcessCDR(1,14613978,1,1,2) [2025-03-05 15:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613978', 'tblTempUsageDetail_20' ) start [2025-03-05 15:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613978', 'tblTempUsageDetail_20' ) end [2025-03-05 15:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:12:25] Production.INFO: ==16907== Releasing lock... [2025-03-05 15:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:12:25] Production.INFO: 65 MB #Memory Used# [2025-03-05 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:13:05 [end_date_ymd] => 2025-03-05 15:13:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 12:13:05' and `end` < '2025-03-05 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-03-05 15:13:18] Production.INFO: count ==4952 [2025-03-05 15:13:20] Production.ERROR: pbx CDR StartTime 2025-03-05 12:13:05 - End Time 2025-03-05 15:13:05 [2025-03-05 15:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613983', 'tblTempUsageDetail_20' ) start [2025-03-05 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613983', 'tblTempUsageDetail_20' ) end [2025-03-05 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613983', 'tblTempVendorCDR_20' ) start [2025-03-05 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613983', 'tblTempVendorCDR_20' ) end [2025-03-05 15:13:20] Production.INFO: ProcessCDR(1,14613983,1,1,2) [2025-03-05 15:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613983', 'tblTempUsageDetail_20' ) start [2025-03-05 15:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613983', 'tblTempUsageDetail_20' ) end [2025-03-05 15:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:13:25] Production.INFO: ==16998== Releasing lock... [2025-03-05 15:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:13:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-05 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:14:05 [end_date_ymd] => 2025-03-05 15:14:05 [RateCDR] => 1 ) [2025-03-05 15: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-03-05 12:14:05' and `end` < '2025-03-05 15: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-03-05 15:14:18] Production.INFO: count ==4944 [2025-03-05 15:14:20] Production.ERROR: pbx CDR StartTime 2025-03-05 12:14:05 - End Time 2025-03-05 15:14:05 [2025-03-05 15:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613988', 'tblTempUsageDetail_20' ) start [2025-03-05 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613988', 'tblTempUsageDetail_20' ) end [2025-03-05 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613988', 'tblTempVendorCDR_20' ) start [2025-03-05 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613988', 'tblTempVendorCDR_20' ) end [2025-03-05 15:14:20] Production.INFO: ProcessCDR(1,14613988,1,1,2) [2025-03-05 15:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613988', 'tblTempUsageDetail_20' ) start [2025-03-05 15:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613988', 'tblTempUsageDetail_20' ) end [2025-03-05 15:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:14:25] Production.INFO: ==17083== Releasing lock... [2025-03-05 15:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:14:25] Production.INFO: 65 MB #Memory Used# [2025-03-05 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:15:05 [end_date_ymd] => 2025-03-05 15:15:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 12:15:05' and `end` < '2025-03-05 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-03-05 15:15:19] Production.INFO: count ==4942 [2025-03-05 15:15:21] Production.ERROR: pbx CDR StartTime 2025-03-05 12:15:05 - End Time 2025-03-05 15:15:05 [2025-03-05 15:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613993', 'tblTempUsageDetail_20' ) start [2025-03-05 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613993', 'tblTempUsageDetail_20' ) end [2025-03-05 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613993', 'tblTempVendorCDR_20' ) start [2025-03-05 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613993', 'tblTempVendorCDR_20' ) end [2025-03-05 15:15:21] Production.INFO: ProcessCDR(1,14613993,1,1,2) [2025-03-05 15:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613993', 'tblTempUsageDetail_20' ) start [2025-03-05 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613993', 'tblTempUsageDetail_20' ) end [2025-03-05 15:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:15:26] Production.INFO: ==17286== Releasing lock... [2025-03-05 15:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:15:26] Production.INFO: 65 MB #Memory Used# [2025-03-05 15:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:16:06 [end_date_ymd] => 2025-03-05 15:16:06 [RateCDR] => 1 ) [2025-03-05 15:16: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-03-05 12:16:06' and `end` < '2025-03-05 15:16: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-03-05 15:16:21] Production.INFO: count ==4952 [2025-03-05 15:16:23] Production.ERROR: pbx CDR StartTime 2025-03-05 12:16:06 - End Time 2025-03-05 15:16:06 [2025-03-05 15:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613998', 'tblTempUsageDetail_20' ) start [2025-03-05 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14613998', 'tblTempUsageDetail_20' ) end [2025-03-05 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613998', 'tblTempVendorCDR_20' ) start [2025-03-05 15:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14613998', 'tblTempVendorCDR_20' ) end [2025-03-05 15:16:23] Production.INFO: ProcessCDR(1,14613998,1,1,2) [2025-03-05 15:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14613998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14613998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14613998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14613998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613998', 'tblTempUsageDetail_20' ) start [2025-03-05 15:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14613998', 'tblTempUsageDetail_20' ) end [2025-03-05 15:16:28] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:16:28] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:16:28] Production.INFO: ==17373== Releasing lock... [2025-03-05 15:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:16:28] Production.INFO: 65 MB #Memory Used# [2025-03-05 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:17:05 [end_date_ymd] => 2025-03-05 15:17:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 12:17:05' and `end` < '2025-03-05 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-03-05 15:17:19] Production.INFO: count ==4930 [2025-03-05 15:17:22] Production.ERROR: pbx CDR StartTime 2025-03-05 12:17:05 - End Time 2025-03-05 15:17:05 [2025-03-05 15:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614003', 'tblTempUsageDetail_20' ) start [2025-03-05 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614003', 'tblTempUsageDetail_20' ) end [2025-03-05 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614003', 'tblTempVendorCDR_20' ) start [2025-03-05 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614003', 'tblTempVendorCDR_20' ) end [2025-03-05 15:17:22] Production.INFO: ProcessCDR(1,14614003,1,1,2) [2025-03-05 15:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614003', 'tblTempUsageDetail_20' ) start [2025-03-05 15:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614003', 'tblTempUsageDetail_20' ) end [2025-03-05 15:17:28] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:17:28] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:17:28] Production.INFO: ==17455== Releasing lock... [2025-03-05 15:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:17:28] Production.INFO: 65 MB #Memory Used# [2025-03-05 15:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:18:06 [end_date_ymd] => 2025-03-05 15:18:06 [RateCDR] => 1 ) [2025-03-05 15: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-03-05 12:18:06' and `end` < '2025-03-05 15: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-03-05 15:18:19] Production.INFO: count ==4917 [2025-03-05 15:18:21] Production.ERROR: pbx CDR StartTime 2025-03-05 12:18:06 - End Time 2025-03-05 15:18:06 [2025-03-05 15:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614008', 'tblTempUsageDetail_20' ) start [2025-03-05 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614008', 'tblTempUsageDetail_20' ) end [2025-03-05 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614008', 'tblTempVendorCDR_20' ) start [2025-03-05 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614008', 'tblTempVendorCDR_20' ) end [2025-03-05 15:18:21] Production.INFO: ProcessCDR(1,14614008,1,1,2) [2025-03-05 15:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614008', 'tblTempUsageDetail_20' ) start [2025-03-05 15:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614008', 'tblTempUsageDetail_20' ) end [2025-03-05 15:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:18:26] Production.INFO: ==17540== Releasing lock... [2025-03-05 15:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:18:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:19:05 [end_date_ymd] => 2025-03-05 15:19:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 12:19:05' and `end` < '2025-03-05 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-03-05 15:19:18] Production.INFO: count ==4911 [2025-03-05 15:19:20] Production.ERROR: pbx CDR StartTime 2025-03-05 12:19:05 - End Time 2025-03-05 15:19:05 [2025-03-05 15:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614009', 'tblTempUsageDetail_20' ) start [2025-03-05 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614009', 'tblTempUsageDetail_20' ) end [2025-03-05 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614009', 'tblTempVendorCDR_20' ) start [2025-03-05 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614009', 'tblTempVendorCDR_20' ) end [2025-03-05 15:19:20] Production.INFO: ProcessCDR(1,14614009,1,1,2) [2025-03-05 15:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614009', 'tblTempUsageDetail_20' ) start [2025-03-05 15:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614009', 'tblTempUsageDetail_20' ) end [2025-03-05 15:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:19:25] Production.INFO: ==17628== Releasing lock... [2025-03-05 15:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:19:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:20:06 [end_date_ymd] => 2025-03-05 15:20:06 [RateCDR] => 1 ) [2025-03-05 15: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-03-05 12:20:06' and `end` < '2025-03-05 15: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-03-05 15:20:19] Production.INFO: count ==4912 [2025-03-05 15:20:21] Production.ERROR: pbx CDR StartTime 2025-03-05 12:20:06 - End Time 2025-03-05 15:20:06 [2025-03-05 15:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614019', 'tblTempUsageDetail_20' ) start [2025-03-05 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614019', 'tblTempUsageDetail_20' ) end [2025-03-05 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614019', 'tblTempVendorCDR_20' ) start [2025-03-05 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614019', 'tblTempVendorCDR_20' ) end [2025-03-05 15:20:22] Production.INFO: ProcessCDR(1,14614019,1,1,2) [2025-03-05 15:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614019', 'tblTempUsageDetail_20' ) start [2025-03-05 15:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614019', 'tblTempUsageDetail_20' ) end [2025-03-05 15:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:20:27] Production.INFO: ==17720== Releasing lock... [2025-03-05 15:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:20:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:21:05 [end_date_ymd] => 2025-03-05 15:21:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 12:21:05' and `end` < '2025-03-05 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-03-05 15:21:18] Production.INFO: count ==4920 [2025-03-05 15:21:20] Production.ERROR: pbx CDR StartTime 2025-03-05 12:21:05 - End Time 2025-03-05 15:21:05 [2025-03-05 15:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614024', 'tblTempUsageDetail_20' ) start [2025-03-05 15:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614024', 'tblTempUsageDetail_20' ) end [2025-03-05 15:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614024', 'tblTempVendorCDR_20' ) start [2025-03-05 15:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614024', 'tblTempVendorCDR_20' ) end [2025-03-05 15:21:20] Production.INFO: ProcessCDR(1,14614024,1,1,2) [2025-03-05 15:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614024', 'tblTempUsageDetail_20' ) start [2025-03-05 15:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614024', 'tblTempUsageDetail_20' ) end [2025-03-05 15:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:21:25] Production.INFO: ==17806== Releasing lock... [2025-03-05 15:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:21:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:22:05 [end_date_ymd] => 2025-03-05 15:22:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 12:22:05' and `end` < '2025-03-05 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-03-05 15:22:18] Production.INFO: count ==4925 [2025-03-05 15:22:20] Production.ERROR: pbx CDR StartTime 2025-03-05 12:22:05 - End Time 2025-03-05 15:22:05 [2025-03-05 15:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614029', 'tblTempUsageDetail_20' ) start [2025-03-05 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614029', 'tblTempUsageDetail_20' ) end [2025-03-05 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614029', 'tblTempVendorCDR_20' ) start [2025-03-05 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614029', 'tblTempVendorCDR_20' ) end [2025-03-05 15:22:20] Production.INFO: ProcessCDR(1,14614029,1,1,2) [2025-03-05 15:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614029', 'tblTempUsageDetail_20' ) start [2025-03-05 15:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614029', 'tblTempUsageDetail_20' ) end [2025-03-05 15:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:22:25] Production.INFO: ==17895== Releasing lock... [2025-03-05 15:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:22:25] Production.INFO: 65 MB #Memory Used# [2025-03-05 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:23:05 [end_date_ymd] => 2025-03-05 15:23:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 12:23:05' and `end` < '2025-03-05 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-03-05 15:23:18] Production.INFO: count ==4920 [2025-03-05 15:23:20] Production.ERROR: pbx CDR StartTime 2025-03-05 12:23:05 - End Time 2025-03-05 15:23:05 [2025-03-05 15:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614034', 'tblTempUsageDetail_20' ) start [2025-03-05 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614034', 'tblTempUsageDetail_20' ) end [2025-03-05 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614034', 'tblTempVendorCDR_20' ) start [2025-03-05 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614034', 'tblTempVendorCDR_20' ) end [2025-03-05 15:23:20] Production.INFO: ProcessCDR(1,14614034,1,1,2) [2025-03-05 15:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614034', 'tblTempUsageDetail_20' ) start [2025-03-05 15:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614034', 'tblTempUsageDetail_20' ) end [2025-03-05 15:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:23:25] Production.INFO: ==17977== Releasing lock... [2025-03-05 15:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:23:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:24:05 [end_date_ymd] => 2025-03-05 15:24:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 12:24:05' and `end` < '2025-03-05 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-03-05 15:24:18] Production.INFO: count ==4913 [2025-03-05 15:24:20] Production.ERROR: pbx CDR StartTime 2025-03-05 12:24:05 - End Time 2025-03-05 15:24:05 [2025-03-05 15:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614039', 'tblTempUsageDetail_20' ) start [2025-03-05 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614039', 'tblTempUsageDetail_20' ) end [2025-03-05 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614039', 'tblTempVendorCDR_20' ) start [2025-03-05 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614039', 'tblTempVendorCDR_20' ) end [2025-03-05 15:24:20] Production.INFO: ProcessCDR(1,14614039,1,1,2) [2025-03-05 15:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614039', 'tblTempUsageDetail_20' ) start [2025-03-05 15:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614039', 'tblTempUsageDetail_20' ) end [2025-03-05 15:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:24:25] Production.INFO: ==18066== Releasing lock... [2025-03-05 15:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:24:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 15:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:25:04 [end_date_ymd] => 2025-03-05 15:25:04 [RateCDR] => 1 ) [2025-03-05 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-03-05 12:25:04' and `end` < '2025-03-05 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-03-05 15:25:17] Production.INFO: count ==4930 [2025-03-05 15:25:20] Production.ERROR: pbx CDR StartTime 2025-03-05 12:25:04 - End Time 2025-03-05 15:25:04 [2025-03-05 15:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614044', 'tblTempUsageDetail_20' ) start [2025-03-05 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614044', 'tblTempUsageDetail_20' ) end [2025-03-05 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614044', 'tblTempVendorCDR_20' ) start [2025-03-05 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614044', 'tblTempVendorCDR_20' ) end [2025-03-05 15:25:20] Production.INFO: ProcessCDR(1,14614044,1,1,2) [2025-03-05 15:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614044', 'tblTempUsageDetail_20' ) start [2025-03-05 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614044', 'tblTempUsageDetail_20' ) end [2025-03-05 15:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:25:25] Production.INFO: ==18152== Releasing lock... [2025-03-05 15:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:25:25] Production.INFO: 65 MB #Memory Used# [2025-03-05 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:26:05 [end_date_ymd] => 2025-03-05 15:26:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 12:26:05' and `end` < '2025-03-05 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-03-05 15:26:18] Production.INFO: count ==4926 [2025-03-05 15:26:20] Production.ERROR: pbx CDR StartTime 2025-03-05 12:26:05 - End Time 2025-03-05 15:26:05 [2025-03-05 15:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614049', 'tblTempUsageDetail_20' ) start [2025-03-05 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614049', 'tblTempUsageDetail_20' ) end [2025-03-05 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614049', 'tblTempVendorCDR_20' ) start [2025-03-05 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614049', 'tblTempVendorCDR_20' ) end [2025-03-05 15:26:20] Production.INFO: ProcessCDR(1,14614049,1,1,2) [2025-03-05 15:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614049', 'tblTempUsageDetail_20' ) start [2025-03-05 15:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614049', 'tblTempUsageDetail_20' ) end [2025-03-05 15:26:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:26:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:26:26] Production.INFO: ==18237== Releasing lock... [2025-03-05 15:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:26:26] Production.INFO: 65 MB #Memory Used# [2025-03-05 15:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:27:06 [end_date_ymd] => 2025-03-05 15:27:06 [RateCDR] => 1 ) [2025-03-05 15: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-03-05 12:27:06' and `end` < '2025-03-05 15: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-03-05 15:27:19] Production.INFO: count ==4918 [2025-03-05 15:27:21] Production.ERROR: pbx CDR StartTime 2025-03-05 12:27:06 - End Time 2025-03-05 15:27:06 [2025-03-05 15:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614054', 'tblTempUsageDetail_20' ) start [2025-03-05 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614054', 'tblTempUsageDetail_20' ) end [2025-03-05 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614054', 'tblTempVendorCDR_20' ) start [2025-03-05 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614054', 'tblTempVendorCDR_20' ) end [2025-03-05 15:27:21] Production.INFO: ProcessCDR(1,14614054,1,1,2) [2025-03-05 15:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614054', 'tblTempUsageDetail_20' ) start [2025-03-05 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614054', 'tblTempUsageDetail_20' ) end [2025-03-05 15:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:27:26] Production.INFO: ==18322== Releasing lock... [2025-03-05 15:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:27:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:28:05 [end_date_ymd] => 2025-03-05 15:28:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 12:28:05' and `end` < '2025-03-05 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-03-05 15:28:18] Production.INFO: count ==4924 [2025-03-05 15:28:20] Production.ERROR: pbx CDR StartTime 2025-03-05 12:28:05 - End Time 2025-03-05 15:28:05 [2025-03-05 15:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614057', 'tblTempUsageDetail_20' ) start [2025-03-05 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614057', 'tblTempUsageDetail_20' ) end [2025-03-05 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614057', 'tblTempVendorCDR_20' ) start [2025-03-05 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614057', 'tblTempVendorCDR_20' ) end [2025-03-05 15:28:20] Production.INFO: ProcessCDR(1,14614057,1,1,2) [2025-03-05 15:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614057', 'tblTempUsageDetail_20' ) start [2025-03-05 15:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614057', 'tblTempUsageDetail_20' ) end [2025-03-05 15:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:28:25] Production.INFO: ==18409== Releasing lock... [2025-03-05 15:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:28:25] Production.INFO: 65 MB #Memory Used# [2025-03-05 15:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:29:04 [end_date_ymd] => 2025-03-05 15:29:04 [RateCDR] => 1 ) [2025-03-05 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-03-05 12:29:04' and `end` < '2025-03-05 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-03-05 15:29:17] Production.INFO: count ==4929 [2025-03-05 15:29:19] Production.ERROR: pbx CDR StartTime 2025-03-05 12:29:04 - End Time 2025-03-05 15:29:04 [2025-03-05 15:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614064', 'tblTempUsageDetail_20' ) start [2025-03-05 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614064', 'tblTempUsageDetail_20' ) end [2025-03-05 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614064', 'tblTempVendorCDR_20' ) start [2025-03-05 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614064', 'tblTempVendorCDR_20' ) end [2025-03-05 15:29:19] Production.INFO: ProcessCDR(1,14614064,1,1,2) [2025-03-05 15:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614064', 'tblTempUsageDetail_20' ) start [2025-03-05 15:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614064', 'tblTempUsageDetail_20' ) end [2025-03-05 15:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:29:24] Production.INFO: ==18495== Releasing lock... [2025-03-05 15:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:29:24] Production.INFO: 65 MB #Memory Used# [2025-03-05 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:30:06 [end_date_ymd] => 2025-03-05 15:30:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 12:30:06' and `end` < '2025-03-05 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-03-05 15:30:18] Production.INFO: count ==4931 [2025-03-05 15:30:21] Production.ERROR: pbx CDR StartTime 2025-03-05 12:30:06 - End Time 2025-03-05 15:30:06 [2025-03-05 15:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614069', 'tblTempUsageDetail_20' ) start [2025-03-05 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614069', 'tblTempUsageDetail_20' ) end [2025-03-05 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614069', 'tblTempVendorCDR_20' ) start [2025-03-05 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614069', 'tblTempVendorCDR_20' ) end [2025-03-05 15:30:21] Production.INFO: ProcessCDR(1,14614069,1,1,2) [2025-03-05 15:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614069', 'tblTempUsageDetail_20' ) start [2025-03-05 15:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614069', 'tblTempUsageDetail_20' ) end [2025-03-05 15:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:30:24] Production.INFO: ==18620== Releasing lock... [2025-03-05 15:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:30:24] Production.INFO: 65 MB #Memory Used# [2025-03-05 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:31:05 [end_date_ymd] => 2025-03-05 15:31:05 [RateCDR] => 1 ) [2025-03-05 15: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-03-05 12:31:05' and `end` < '2025-03-05 15: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-03-05 15:31:18] Production.INFO: count ==4917 [2025-03-05 15:31:20] Production.ERROR: pbx CDR StartTime 2025-03-05 12:31:05 - End Time 2025-03-05 15:31:05 [2025-03-05 15:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614075', 'tblTempUsageDetail_20' ) start [2025-03-05 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614075', 'tblTempUsageDetail_20' ) end [2025-03-05 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614075', 'tblTempVendorCDR_20' ) start [2025-03-05 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614075', 'tblTempVendorCDR_20' ) end [2025-03-05 15:31:21] Production.INFO: ProcessCDR(1,14614075,1,1,2) [2025-03-05 15:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614075', 'tblTempUsageDetail_20' ) start [2025-03-05 15:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614075', 'tblTempUsageDetail_20' ) end [2025-03-05 15:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:31:26] Production.INFO: ==18712== Releasing lock... [2025-03-05 15:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:31:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:32:05 [end_date_ymd] => 2025-03-05 15:32:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 12:32:05' and `end` < '2025-03-05 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-03-05 15:32:19] Production.INFO: count ==4911 [2025-03-05 15:32:21] Production.ERROR: pbx CDR StartTime 2025-03-05 12:32:05 - End Time 2025-03-05 15:32:05 [2025-03-05 15:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614080', 'tblTempUsageDetail_20' ) start [2025-03-05 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614080', 'tblTempUsageDetail_20' ) end [2025-03-05 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614080', 'tblTempVendorCDR_20' ) start [2025-03-05 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614080', 'tblTempVendorCDR_20' ) end [2025-03-05 15:32:21] Production.INFO: ProcessCDR(1,14614080,1,1,2) [2025-03-05 15:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614080', 'tblTempUsageDetail_20' ) start [2025-03-05 15:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614080', 'tblTempUsageDetail_20' ) end [2025-03-05 15:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:32:26] Production.INFO: ==18796== Releasing lock... [2025-03-05 15:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:32:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:33:05 [end_date_ymd] => 2025-03-05 15:33:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 12:33:05' and `end` < '2025-03-05 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-03-05 15:33:19] Production.INFO: count ==4908 [2025-03-05 15:33:21] Production.ERROR: pbx CDR StartTime 2025-03-05 12:33:05 - End Time 2025-03-05 15:33:05 [2025-03-05 15:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614085', 'tblTempUsageDetail_20' ) start [2025-03-05 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614085', 'tblTempUsageDetail_20' ) end [2025-03-05 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614085', 'tblTempVendorCDR_20' ) start [2025-03-05 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614085', 'tblTempVendorCDR_20' ) end [2025-03-05 15:33:21] Production.INFO: ProcessCDR(1,14614085,1,1,2) [2025-03-05 15:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614085', 'tblTempUsageDetail_20' ) start [2025-03-05 15:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614085', 'tblTempUsageDetail_20' ) end [2025-03-05 15:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:33:25] Production.INFO: ==18885== Releasing lock... [2025-03-05 15:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:33:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 15:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:34:06 [end_date_ymd] => 2025-03-05 15:34:06 [RateCDR] => 1 ) [2025-03-05 15: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-03-05 12:34:06' and `end` < '2025-03-05 15: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-03-05 15:34:19] Production.INFO: count ==4906 [2025-03-05 15:34:21] Production.ERROR: pbx CDR StartTime 2025-03-05 12:34:06 - End Time 2025-03-05 15:34:06 [2025-03-05 15:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614090', 'tblTempUsageDetail_20' ) start [2025-03-05 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614090', 'tblTempUsageDetail_20' ) end [2025-03-05 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614090', 'tblTempVendorCDR_20' ) start [2025-03-05 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614090', 'tblTempVendorCDR_20' ) end [2025-03-05 15:34:21] Production.INFO: ProcessCDR(1,14614090,1,1,2) [2025-03-05 15:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614090', 'tblTempUsageDetail_20' ) start [2025-03-05 15:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614090', 'tblTempUsageDetail_20' ) end [2025-03-05 15:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:34:26] Production.INFO: ==18975== Releasing lock... [2025-03-05 15:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:34:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:35:05 [end_date_ymd] => 2025-03-05 15:35:05 [RateCDR] => 1 ) [2025-03-05 15: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-03-05 12:35:05' and `end` < '2025-03-05 15: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-03-05 15:35:18] Production.INFO: count ==4915 [2025-03-05 15:35:20] Production.ERROR: pbx CDR StartTime 2025-03-05 12:35:05 - End Time 2025-03-05 15:35:05 [2025-03-05 15:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614095', 'tblTempUsageDetail_20' ) start [2025-03-05 15:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614095', 'tblTempUsageDetail_20' ) end [2025-03-05 15:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614095', 'tblTempVendorCDR_20' ) start [2025-03-05 15:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614095', 'tblTempVendorCDR_20' ) end [2025-03-05 15:35:20] Production.INFO: ProcessCDR(1,14614095,1,1,2) [2025-03-05 15:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614095', 'tblTempUsageDetail_20' ) start [2025-03-05 15:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614095', 'tblTempUsageDetail_20' ) end [2025-03-05 15:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:35:25] Production.INFO: ==19056== Releasing lock... [2025-03-05 15:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:35:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:36:05 [end_date_ymd] => 2025-03-05 15:36:05 [RateCDR] => 1 ) [2025-03-05 15: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-03-05 12:36:05' and `end` < '2025-03-05 15: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-03-05 15:36:19] Production.INFO: count ==4917 [2025-03-05 15:36:21] Production.ERROR: pbx CDR StartTime 2025-03-05 12:36:05 - End Time 2025-03-05 15:36:05 [2025-03-05 15:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614100', 'tblTempUsageDetail_20' ) start [2025-03-05 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614100', 'tblTempUsageDetail_20' ) end [2025-03-05 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614100', 'tblTempVendorCDR_20' ) start [2025-03-05 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614100', 'tblTempVendorCDR_20' ) end [2025-03-05 15:36:21] Production.INFO: ProcessCDR(1,14614100,1,1,2) [2025-03-05 15:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614100', 'tblTempUsageDetail_20' ) start [2025-03-05 15:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614100', 'tblTempUsageDetail_20' ) end [2025-03-05 15:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:36:26] Production.INFO: ==19150== Releasing lock... [2025-03-05 15:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:36:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:37:04 [end_date_ymd] => 2025-03-05 15:37:04 [RateCDR] => 1 ) [2025-03-05 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-03-05 12:37:04' and `end` < '2025-03-05 15: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-03-05 15:37:18] Production.INFO: count ==4914 [2025-03-05 15:37:20] Production.ERROR: pbx CDR StartTime 2025-03-05 12:37:04 - End Time 2025-03-05 15:37:04 [2025-03-05 15:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614105', 'tblTempUsageDetail_20' ) start [2025-03-05 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614105', 'tblTempUsageDetail_20' ) end [2025-03-05 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614105', 'tblTempVendorCDR_20' ) start [2025-03-05 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614105', 'tblTempVendorCDR_20' ) end [2025-03-05 15:37:20] Production.INFO: ProcessCDR(1,14614105,1,1,2) [2025-03-05 15:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614105', 'tblTempUsageDetail_20' ) start [2025-03-05 15:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614105', 'tblTempUsageDetail_20' ) end [2025-03-05 15:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:37:25] Production.INFO: ==19232== Releasing lock... [2025-03-05 15:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:37:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:38:05 [end_date_ymd] => 2025-03-05 15:38:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 12:38:05' and `end` < '2025-03-05 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-03-05 15:38:19] Production.INFO: count ==4931 [2025-03-05 15:38:21] Production.ERROR: pbx CDR StartTime 2025-03-05 12:38:05 - End Time 2025-03-05 15:38:05 [2025-03-05 15:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614110', 'tblTempUsageDetail_20' ) start [2025-03-05 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614110', 'tblTempUsageDetail_20' ) end [2025-03-05 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614110', 'tblTempVendorCDR_20' ) start [2025-03-05 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614110', 'tblTempVendorCDR_20' ) end [2025-03-05 15:38:21] Production.INFO: ProcessCDR(1,14614110,1,1,2) [2025-03-05 15:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614110', 'tblTempUsageDetail_20' ) start [2025-03-05 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614110', 'tblTempUsageDetail_20' ) end [2025-03-05 15:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:38:26] Production.INFO: ==19316== Releasing lock... [2025-03-05 15:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:38:26] Production.INFO: 65 MB #Memory Used# [2025-03-05 15:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:39:06 [end_date_ymd] => 2025-03-05 15:39:06 [RateCDR] => 1 ) [2025-03-05 15:39: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-03-05 12:39:06' and `end` < '2025-03-05 15:39: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-03-05 15:39:19] Production.INFO: count ==4927 [2025-03-05 15:39:21] Production.ERROR: pbx CDR StartTime 2025-03-05 12:39:06 - End Time 2025-03-05 15:39:06 [2025-03-05 15:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614115', 'tblTempUsageDetail_20' ) start [2025-03-05 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614115', 'tblTempUsageDetail_20' ) end [2025-03-05 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614115', 'tblTempVendorCDR_20' ) start [2025-03-05 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614115', 'tblTempVendorCDR_20' ) end [2025-03-05 15:39:21] Production.INFO: ProcessCDR(1,14614115,1,1,2) [2025-03-05 15:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614115', 'tblTempUsageDetail_20' ) start [2025-03-05 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614115', 'tblTempUsageDetail_20' ) end [2025-03-05 15:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:39:27] Production.INFO: ==19399== Releasing lock... [2025-03-05 15:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:39:27] Production.INFO: 65 MB #Memory Used# [2025-03-05 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:40:06 [end_date_ymd] => 2025-03-05 15:40:06 [RateCDR] => 1 ) [2025-03-05 15: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-03-05 12:40:06' and `end` < '2025-03-05 15: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-03-05 15:40:19] Production.INFO: count ==4939 [2025-03-05 15:40:21] Production.ERROR: pbx CDR StartTime 2025-03-05 12:40:06 - End Time 2025-03-05 15:40:06 [2025-03-05 15:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614120', 'tblTempUsageDetail_20' ) start [2025-03-05 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614120', 'tblTempUsageDetail_20' ) end [2025-03-05 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614120', 'tblTempVendorCDR_20' ) start [2025-03-05 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614120', 'tblTempVendorCDR_20' ) end [2025-03-05 15:40:21] Production.INFO: ProcessCDR(1,14614120,1,1,2) [2025-03-05 15:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614120', 'tblTempUsageDetail_20' ) start [2025-03-05 15:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614120', 'tblTempUsageDetail_20' ) end [2025-03-05 15:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:40:27] Production.INFO: ==19491== Releasing lock... [2025-03-05 15:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:40:27] Production.INFO: 65 MB #Memory Used# [2025-03-05 15:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:41:06 [end_date_ymd] => 2025-03-05 15:41:06 [RateCDR] => 1 ) [2025-03-05 15:41: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-03-05 12:41:06' and `end` < '2025-03-05 15:41: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-03-05 15:41:19] Production.INFO: count ==4957 [2025-03-05 15:41:21] Production.ERROR: pbx CDR StartTime 2025-03-05 12:41:06 - End Time 2025-03-05 15:41:06 [2025-03-05 15:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614126', 'tblTempUsageDetail_20' ) start [2025-03-05 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614126', 'tblTempUsageDetail_20' ) end [2025-03-05 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614126', 'tblTempVendorCDR_20' ) start [2025-03-05 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614126', 'tblTempVendorCDR_20' ) end [2025-03-05 15:41:21] Production.INFO: ProcessCDR(1,14614126,1,1,2) [2025-03-05 15:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614126', 'tblTempUsageDetail_20' ) start [2025-03-05 15:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614126', 'tblTempUsageDetail_20' ) end [2025-03-05 15:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:41:27] Production.INFO: ==19581== Releasing lock... [2025-03-05 15:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:41:27] Production.INFO: 65 MB #Memory Used# [2025-03-05 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:42:05 [end_date_ymd] => 2025-03-05 15:42:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 12:42:05' and `end` < '2025-03-05 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-03-05 15:42:18] Production.INFO: count ==4949 [2025-03-05 15:42:20] Production.ERROR: pbx CDR StartTime 2025-03-05 12:42:05 - End Time 2025-03-05 15:42:05 [2025-03-05 15:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614131', 'tblTempUsageDetail_20' ) start [2025-03-05 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614131', 'tblTempUsageDetail_20' ) end [2025-03-05 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614131', 'tblTempVendorCDR_20' ) start [2025-03-05 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614131', 'tblTempVendorCDR_20' ) end [2025-03-05 15:42:21] Production.INFO: ProcessCDR(1,14614131,1,1,2) [2025-03-05 15:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614131', 'tblTempUsageDetail_20' ) start [2025-03-05 15:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614131', 'tblTempUsageDetail_20' ) end [2025-03-05 15:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:42:26] Production.INFO: ==19663== Releasing lock... [2025-03-05 15:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:42:26] Production.INFO: 65 MB #Memory Used# [2025-03-05 15:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:43:06 [end_date_ymd] => 2025-03-05 15:43:06 [RateCDR] => 1 ) [2025-03-05 15: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-03-05 12:43:06' and `end` < '2025-03-05 15: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-03-05 15:43:19] Production.INFO: count ==4944 [2025-03-05 15:43:21] Production.ERROR: pbx CDR StartTime 2025-03-05 12:43:06 - End Time 2025-03-05 15:43:06 [2025-03-05 15:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614136', 'tblTempUsageDetail_20' ) start [2025-03-05 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614136', 'tblTempUsageDetail_20' ) end [2025-03-05 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614136', 'tblTempVendorCDR_20' ) start [2025-03-05 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614136', 'tblTempVendorCDR_20' ) end [2025-03-05 15:43:21] Production.INFO: ProcessCDR(1,14614136,1,1,2) [2025-03-05 15:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614136', 'tblTempUsageDetail_20' ) start [2025-03-05 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614136', 'tblTempUsageDetail_20' ) end [2025-03-05 15:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:43:26] Production.INFO: ==19754== Releasing lock... [2025-03-05 15:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:43:26] Production.INFO: 65 MB #Memory Used# [2025-03-05 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:44:05 [end_date_ymd] => 2025-03-05 15:44:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 12:44:05' and `end` < '2025-03-05 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-03-05 15:44:18] Production.INFO: count ==4952 [2025-03-05 15:44:20] Production.ERROR: pbx CDR StartTime 2025-03-05 12:44:05 - End Time 2025-03-05 15:44:05 [2025-03-05 15:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614141', 'tblTempUsageDetail_20' ) start [2025-03-05 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614141', 'tblTempUsageDetail_20' ) end [2025-03-05 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614141', 'tblTempVendorCDR_20' ) start [2025-03-05 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614141', 'tblTempVendorCDR_20' ) end [2025-03-05 15:44:20] Production.INFO: ProcessCDR(1,14614141,1,1,2) [2025-03-05 15:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614141', 'tblTempUsageDetail_20' ) start [2025-03-05 15:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614141', 'tblTempUsageDetail_20' ) end [2025-03-05 15:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:44:25] Production.INFO: ==19837== Releasing lock... [2025-03-05 15:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:44:25] Production.INFO: 65 MB #Memory Used# [2025-03-05 15:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:45:06 [end_date_ymd] => 2025-03-05 15:45:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 12:45:06' and `end` < '2025-03-05 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-03-05 15:45:19] Production.INFO: count ==4922 [2025-03-05 15:45:21] Production.ERROR: pbx CDR StartTime 2025-03-05 12:45:06 - End Time 2025-03-05 15:45:06 [2025-03-05 15:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614146', 'tblTempUsageDetail_20' ) start [2025-03-05 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614146', 'tblTempUsageDetail_20' ) end [2025-03-05 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614146', 'tblTempVendorCDR_20' ) start [2025-03-05 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614146', 'tblTempVendorCDR_20' ) end [2025-03-05 15:45:21] Production.INFO: ProcessCDR(1,14614146,1,1,2) [2025-03-05 15:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614146', 'tblTempUsageDetail_20' ) start [2025-03-05 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614146', 'tblTempUsageDetail_20' ) end [2025-03-05 15:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:45:26] Production.INFO: ==19921== Releasing lock... [2025-03-05 15:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:45:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:46:05 [end_date_ymd] => 2025-03-05 15:46:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 12:46:05' and `end` < '2025-03-05 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-03-05 15:46:18] Production.INFO: count ==4914 [2025-03-05 15:46:20] Production.ERROR: pbx CDR StartTime 2025-03-05 12:46:05 - End Time 2025-03-05 15:46:05 [2025-03-05 15:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614151', 'tblTempUsageDetail_20' ) start [2025-03-05 15:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614151', 'tblTempUsageDetail_20' ) end [2025-03-05 15:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614151', 'tblTempVendorCDR_20' ) start [2025-03-05 15:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614151', 'tblTempVendorCDR_20' ) end [2025-03-05 15:46:20] Production.INFO: ProcessCDR(1,14614151,1,1,2) [2025-03-05 15:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614151', 'tblTempUsageDetail_20' ) start [2025-03-05 15:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614151', 'tblTempUsageDetail_20' ) end [2025-03-05 15:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:46:24] Production.INFO: ==20047== Releasing lock... [2025-03-05 15:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:46:24] Production.INFO: 64.75 MB #Memory Used# [2025-03-05 15:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:47:06 [end_date_ymd] => 2025-03-05 15:47:06 [RateCDR] => 1 ) [2025-03-05 15:47: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-03-05 12:47:06' and `end` < '2025-03-05 15:47: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-03-05 15:47:19] Production.INFO: count ==4880 [2025-03-05 15:47:21] Production.ERROR: pbx CDR StartTime 2025-03-05 12:47:06 - End Time 2025-03-05 15:47:06 [2025-03-05 15:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614156', 'tblTempUsageDetail_20' ) start [2025-03-05 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614156', 'tblTempUsageDetail_20' ) end [2025-03-05 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614156', 'tblTempVendorCDR_20' ) start [2025-03-05 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614156', 'tblTempVendorCDR_20' ) end [2025-03-05 15:47:21] Production.INFO: ProcessCDR(1,14614156,1,1,2) [2025-03-05 15:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614156', 'tblTempUsageDetail_20' ) start [2025-03-05 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614156', 'tblTempUsageDetail_20' ) end [2025-03-05 15:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:47:26] Production.INFO: ==20131== Releasing lock... [2025-03-05 15:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:47:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-05 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:48:05 [end_date_ymd] => 2025-03-05 15:48:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 12:48:05' and `end` < '2025-03-05 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-03-05 15:48:19] Production.INFO: count ==4864 [2025-03-05 15:48:21] Production.ERROR: pbx CDR StartTime 2025-03-05 12:48:05 - End Time 2025-03-05 15:48:05 [2025-03-05 15:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614161', 'tblTempUsageDetail_20' ) start [2025-03-05 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614161', 'tblTempUsageDetail_20' ) end [2025-03-05 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614161', 'tblTempVendorCDR_20' ) start [2025-03-05 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614161', 'tblTempVendorCDR_20' ) end [2025-03-05 15:48:21] Production.INFO: ProcessCDR(1,14614161,1,1,2) [2025-03-05 15:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614161', 'tblTempUsageDetail_20' ) start [2025-03-05 15:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614161', 'tblTempUsageDetail_20' ) end [2025-03-05 15:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:48:25] Production.INFO: ==20219== Releasing lock... [2025-03-05 15:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:48:25] Production.INFO: 64.5 MB #Memory Used# [2025-03-05 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:49:05 [end_date_ymd] => 2025-03-05 15:49:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 12:49:05' and `end` < '2025-03-05 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-03-05 15:49:18] Production.INFO: count ==4873 [2025-03-05 15:49:20] Production.ERROR: pbx CDR StartTime 2025-03-05 12:49:05 - End Time 2025-03-05 15:49:05 [2025-03-05 15:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614166', 'tblTempUsageDetail_20' ) start [2025-03-05 15:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614166', 'tblTempUsageDetail_20' ) end [2025-03-05 15:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614166', 'tblTempVendorCDR_20' ) start [2025-03-05 15:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614166', 'tblTempVendorCDR_20' ) end [2025-03-05 15:49:20] Production.INFO: ProcessCDR(1,14614166,1,1,2) [2025-03-05 15:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614166', 'tblTempUsageDetail_20' ) start [2025-03-05 15:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614166', 'tblTempUsageDetail_20' ) end [2025-03-05 15:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:49:25] Production.INFO: ==20302== Releasing lock... [2025-03-05 15:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:49:25] Production.INFO: 64.5 MB #Memory Used# [2025-03-05 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:50:06 [end_date_ymd] => 2025-03-05 15:50:06 [RateCDR] => 1 ) [2025-03-05 15: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-03-05 12:50:06' and `end` < '2025-03-05 15: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-03-05 15:50:19] Production.INFO: count ==4868 [2025-03-05 15:50:21] Production.ERROR: pbx CDR StartTime 2025-03-05 12:50:06 - End Time 2025-03-05 15:50:06 [2025-03-05 15:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614172', 'tblTempUsageDetail_20' ) start [2025-03-05 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614172', 'tblTempUsageDetail_20' ) end [2025-03-05 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614172', 'tblTempVendorCDR_20' ) start [2025-03-05 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614172', 'tblTempVendorCDR_20' ) end [2025-03-05 15:50:21] Production.INFO: ProcessCDR(1,14614172,1,1,2) [2025-03-05 15:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614172', 'tblTempUsageDetail_20' ) start [2025-03-05 15:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614172', 'tblTempUsageDetail_20' ) end [2025-03-05 15:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:50:26] Production.INFO: ==20387== Releasing lock... [2025-03-05 15:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:50:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-05 15:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:51:06 [end_date_ymd] => 2025-03-05 15:51:06 [RateCDR] => 1 ) [2025-03-05 15: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-03-05 12:51:06' and `end` < '2025-03-05 15: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-03-05 15:51:19] Production.INFO: count ==4857 [2025-03-05 15:51:21] Production.ERROR: pbx CDR StartTime 2025-03-05 12:51:06 - End Time 2025-03-05 15:51:06 [2025-03-05 15:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614177', 'tblTempUsageDetail_20' ) start [2025-03-05 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614177', 'tblTempUsageDetail_20' ) end [2025-03-05 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614177', 'tblTempVendorCDR_20' ) start [2025-03-05 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614177', 'tblTempVendorCDR_20' ) end [2025-03-05 15:51:21] Production.INFO: ProcessCDR(1,14614177,1,1,2) [2025-03-05 15:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614177', 'tblTempUsageDetail_20' ) start [2025-03-05 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614177', 'tblTempUsageDetail_20' ) end [2025-03-05 15:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:51:26] Production.INFO: ==20484== Releasing lock... [2025-03-05 15:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:51:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-05 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:52:05 [end_date_ymd] => 2025-03-05 15:52:05 [RateCDR] => 1 ) [2025-03-05 15: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-03-05 12:52:05' and `end` < '2025-03-05 15: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-03-05 15:52:18] Production.INFO: count ==4863 [2025-03-05 15:52:20] Production.ERROR: pbx CDR StartTime 2025-03-05 12:52:05 - End Time 2025-03-05 15:52:05 [2025-03-05 15:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614182', 'tblTempUsageDetail_20' ) start [2025-03-05 15:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614182', 'tblTempUsageDetail_20' ) end [2025-03-05 15:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614182', 'tblTempVendorCDR_20' ) start [2025-03-05 15:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614182', 'tblTempVendorCDR_20' ) end [2025-03-05 15:52:20] Production.INFO: ProcessCDR(1,14614182,1,1,2) [2025-03-05 15:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614182', 'tblTempUsageDetail_20' ) start [2025-03-05 15:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614182', 'tblTempUsageDetail_20' ) end [2025-03-05 15:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:52:25] Production.INFO: ==20573== Releasing lock... [2025-03-05 15:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:52:25] Production.INFO: 64.5 MB #Memory Used# [2025-03-05 15:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:53:05 [end_date_ymd] => 2025-03-05 15:53:05 [RateCDR] => 1 ) [2025-03-05 15: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-03-05 12:53:05' and `end` < '2025-03-05 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-03-05 15:53:19] Production.INFO: count ==4860 [2025-03-05 15:53:20] Production.ERROR: pbx CDR StartTime 2025-03-05 12:53:05 - End Time 2025-03-05 15:53:05 [2025-03-05 15:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614187', 'tblTempUsageDetail_20' ) start [2025-03-05 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614187', 'tblTempUsageDetail_20' ) end [2025-03-05 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614187', 'tblTempVendorCDR_20' ) start [2025-03-05 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614187', 'tblTempVendorCDR_20' ) end [2025-03-05 15:53:21] Production.INFO: ProcessCDR(1,14614187,1,1,2) [2025-03-05 15:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614187', 'tblTempUsageDetail_20' ) start [2025-03-05 15:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614187', 'tblTempUsageDetail_20' ) end [2025-03-05 15:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:53:25] Production.INFO: ==20662== Releasing lock... [2025-03-05 15:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:53:25] Production.INFO: 64.5 MB #Memory Used# [2025-03-05 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:54:05 [end_date_ymd] => 2025-03-05 15:54:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 12:54:05' and `end` < '2025-03-05 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-03-05 15:54:18] Production.INFO: count ==4852 [2025-03-05 15:54:20] Production.ERROR: pbx CDR StartTime 2025-03-05 12:54:05 - End Time 2025-03-05 15:54:05 [2025-03-05 15:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614192', 'tblTempUsageDetail_20' ) start [2025-03-05 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614192', 'tblTempUsageDetail_20' ) end [2025-03-05 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614192', 'tblTempVendorCDR_20' ) start [2025-03-05 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614192', 'tblTempVendorCDR_20' ) end [2025-03-05 15:54:20] Production.INFO: ProcessCDR(1,14614192,1,1,2) [2025-03-05 15:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614192', 'tblTempUsageDetail_20' ) start [2025-03-05 15:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614192', 'tblTempUsageDetail_20' ) end [2025-03-05 15:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:54:25] Production.INFO: ==20748== Releasing lock... [2025-03-05 15:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:54:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-05 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:55:05 [end_date_ymd] => 2025-03-05 15:55:05 [RateCDR] => 1 ) [2025-03-05 15: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-03-05 12:55:05' and `end` < '2025-03-05 15: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-03-05 15:55:19] Production.INFO: count ==4860 [2025-03-05 15:55:21] Production.ERROR: pbx CDR StartTime 2025-03-05 12:55:05 - End Time 2025-03-05 15:55:05 [2025-03-05 15:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614197', 'tblTempUsageDetail_20' ) start [2025-03-05 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614197', 'tblTempUsageDetail_20' ) end [2025-03-05 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614197', 'tblTempVendorCDR_20' ) start [2025-03-05 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614197', 'tblTempVendorCDR_20' ) end [2025-03-05 15:55:21] Production.INFO: ProcessCDR(1,14614197,1,1,2) [2025-03-05 15:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614197', 'tblTempUsageDetail_20' ) start [2025-03-05 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614197', 'tblTempUsageDetail_20' ) end [2025-03-05 15:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:55:26] Production.INFO: ==20832== Releasing lock... [2025-03-05 15:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:55:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-05 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:56:05 [end_date_ymd] => 2025-03-05 15:56:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 12:56:05' and `end` < '2025-03-05 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-03-05 15:56:18] Production.INFO: count ==4832 [2025-03-05 15:56:20] Production.ERROR: pbx CDR StartTime 2025-03-05 12:56:05 - End Time 2025-03-05 15:56:05 [2025-03-05 15:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614202', 'tblTempUsageDetail_20' ) start [2025-03-05 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614202', 'tblTempUsageDetail_20' ) end [2025-03-05 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614202', 'tblTempVendorCDR_20' ) start [2025-03-05 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614202', 'tblTempVendorCDR_20' ) end [2025-03-05 15:56:20] Production.INFO: ProcessCDR(1,14614202,1,1,2) [2025-03-05 15:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614202', 'tblTempUsageDetail_20' ) start [2025-03-05 15:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614202', 'tblTempUsageDetail_20' ) end [2025-03-05 15:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:56:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:56:25] Production.INFO: ==20919== Releasing lock... [2025-03-05 15:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:56:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-05 15:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:57:06 [end_date_ymd] => 2025-03-05 15:57:06 [RateCDR] => 1 ) [2025-03-05 15:57: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-03-05 12:57:06' and `end` < '2025-03-05 15:57: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-03-05 15:57:19] Production.INFO: count ==4809 [2025-03-05 15:57:21] Production.ERROR: pbx CDR StartTime 2025-03-05 12:57:06 - End Time 2025-03-05 15:57:06 [2025-03-05 15:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614207', 'tblTempUsageDetail_20' ) start [2025-03-05 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614207', 'tblTempUsageDetail_20' ) end [2025-03-05 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614207', 'tblTempVendorCDR_20' ) start [2025-03-05 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614207', 'tblTempVendorCDR_20' ) end [2025-03-05 15:57:21] Production.INFO: ProcessCDR(1,14614207,1,1,2) [2025-03-05 15:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614207', 'tblTempUsageDetail_20' ) start [2025-03-05 15:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614207', 'tblTempUsageDetail_20' ) end [2025-03-05 15:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:57:25] Production.INFO: ==21003== Releasing lock... [2025-03-05 15:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:57:25] Production.INFO: 64 MB #Memory Used# [2025-03-05 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:58:05 [end_date_ymd] => 2025-03-05 15:58:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 12:58:05' and `end` < '2025-03-05 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-03-05 15:58:18] Production.INFO: count ==4790 [2025-03-05 15:58:20] Production.ERROR: pbx CDR StartTime 2025-03-05 12:58:05 - End Time 2025-03-05 15:58:05 [2025-03-05 15:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614212', 'tblTempUsageDetail_20' ) start [2025-03-05 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614212', 'tblTempUsageDetail_20' ) end [2025-03-05 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614212', 'tblTempVendorCDR_20' ) start [2025-03-05 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614212', 'tblTempVendorCDR_20' ) end [2025-03-05 15:58:20] Production.INFO: ProcessCDR(1,14614212,1,1,2) [2025-03-05 15:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614212', 'tblTempUsageDetail_20' ) start [2025-03-05 15:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614212', 'tblTempUsageDetail_20' ) end [2025-03-05 15:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:58:25] Production.INFO: ==21096== Releasing lock... [2025-03-05 15:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:58:25] Production.INFO: 64 MB #Memory Used# [2025-03-05 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 12:59:05 [end_date_ymd] => 2025-03-05 15:59:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 12:59:05' and `end` < '2025-03-05 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-03-05 15:59:18] Production.INFO: count ==4776 [2025-03-05 15:59:20] Production.ERROR: pbx CDR StartTime 2025-03-05 12:59:05 - End Time 2025-03-05 15:59:05 [2025-03-05 15:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614217', 'tblTempUsageDetail_20' ) start [2025-03-05 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614217', 'tblTempUsageDetail_20' ) end [2025-03-05 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614217', 'tblTempVendorCDR_20' ) start [2025-03-05 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614217', 'tblTempVendorCDR_20' ) end [2025-03-05 15:59:20] Production.INFO: ProcessCDR(1,14614217,1,1,2) [2025-03-05 15:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 15:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 15:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614217', 'tblTempUsageDetail_20' ) start [2025-03-05 15:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614217', 'tblTempUsageDetail_20' ) end [2025-03-05 15:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 15:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 15:59:25] Production.INFO: ==21188== Releasing lock... [2025-03-05 15:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 15:59:25] Production.INFO: 63.75 MB #Memory Used# [2025-03-05 16:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:00:05 [end_date_ymd] => 2025-03-05 16:00:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 13:00:05' and `end` < '2025-03-05 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-03-05 16:00:18] Production.INFO: count ==4780 [2025-03-05 16:00:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:00:05 - End Time 2025-03-05 16:00:05 [2025-03-05 16:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614222', 'tblTempUsageDetail_20' ) start [2025-03-05 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614222', 'tblTempUsageDetail_20' ) end [2025-03-05 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614222', 'tblTempVendorCDR_20' ) start [2025-03-05 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614222', 'tblTempVendorCDR_20' ) end [2025-03-05 16:00:20] Production.INFO: ProcessCDR(1,14614222,1,1,2) [2025-03-05 16:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614222', 'tblTempUsageDetail_20' ) start [2025-03-05 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614222', 'tblTempUsageDetail_20' ) end [2025-03-05 16:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:00:23] Production.INFO: ==21276== Releasing lock... [2025-03-05 16:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:00:23] Production.INFO: 63.75 MB #Memory Used# [2025-03-05 16:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:01:06 [end_date_ymd] => 2025-03-05 16:01:06 [RateCDR] => 1 ) [2025-03-05 16: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-03-05 13:01:06' and `end` < '2025-03-05 16: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-03-05 16:01:19] Production.INFO: count ==4739 [2025-03-05 16:01:21] Production.ERROR: pbx CDR StartTime 2025-03-05 13:01:06 - End Time 2025-03-05 16:01:06 [2025-03-05 16:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614228', 'tblTempUsageDetail_20' ) start [2025-03-05 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614228', 'tblTempUsageDetail_20' ) end [2025-03-05 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614228', 'tblTempVendorCDR_20' ) start [2025-03-05 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614228', 'tblTempVendorCDR_20' ) end [2025-03-05 16:01:21] Production.INFO: ProcessCDR(1,14614228,1,1,2) [2025-03-05 16:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614228', 'tblTempUsageDetail_20' ) start [2025-03-05 16:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614228', 'tblTempUsageDetail_20' ) end [2025-03-05 16:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:01:26] Production.INFO: ==21419== Releasing lock... [2025-03-05 16:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:01:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-05 16:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:02:06 [end_date_ymd] => 2025-03-05 16:02:06 [RateCDR] => 1 ) [2025-03-05 16:02: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-03-05 13:02:06' and `end` < '2025-03-05 16:02: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-03-05 16:02:19] Production.INFO: count ==4714 [2025-03-05 16:02:21] Production.ERROR: pbx CDR StartTime 2025-03-05 13:02:06 - End Time 2025-03-05 16:02:06 [2025-03-05 16:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614233', 'tblTempUsageDetail_20' ) start [2025-03-05 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614233', 'tblTempUsageDetail_20' ) end [2025-03-05 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614233', 'tblTempVendorCDR_20' ) start [2025-03-05 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614233', 'tblTempVendorCDR_20' ) end [2025-03-05 16:02:21] Production.INFO: ProcessCDR(1,14614233,1,1,2) [2025-03-05 16:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614233', 'tblTempUsageDetail_20' ) start [2025-03-05 16:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614233', 'tblTempUsageDetail_20' ) end [2025-03-05 16:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:02:26] Production.INFO: ==21508== Releasing lock... [2025-03-05 16:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:02:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-05 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:03:05 [end_date_ymd] => 2025-03-05 16:03:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 13:03:05' and `end` < '2025-03-05 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-03-05 16:03:18] Production.INFO: count ==4703 [2025-03-05 16:03:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:03:05 - End Time 2025-03-05 16:03:05 [2025-03-05 16:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614238', 'tblTempUsageDetail_20' ) start [2025-03-05 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614238', 'tblTempUsageDetail_20' ) end [2025-03-05 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614238', 'tblTempVendorCDR_20' ) start [2025-03-05 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614238', 'tblTempVendorCDR_20' ) end [2025-03-05 16:03:20] Production.INFO: ProcessCDR(1,14614238,1,1,2) [2025-03-05 16:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614238', 'tblTempUsageDetail_20' ) start [2025-03-05 16:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614238', 'tblTempUsageDetail_20' ) end [2025-03-05 16:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:03:25] Production.INFO: ==21596== Releasing lock... [2025-03-05 16:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:03:25] Production.INFO: 63.25 MB #Memory Used# [2025-03-05 16:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:04:06 [end_date_ymd] => 2025-03-05 16:04:06 [RateCDR] => 1 ) [2025-03-05 16:04: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-03-05 13:04:06' and `end` < '2025-03-05 16:04: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-03-05 16:04:19] Production.INFO: count ==4679 [2025-03-05 16:04:21] Production.ERROR: pbx CDR StartTime 2025-03-05 13:04:06 - End Time 2025-03-05 16:04:06 [2025-03-05 16:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614243', 'tblTempUsageDetail_20' ) start [2025-03-05 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614243', 'tblTempUsageDetail_20' ) end [2025-03-05 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614243', 'tblTempVendorCDR_20' ) start [2025-03-05 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614243', 'tblTempVendorCDR_20' ) end [2025-03-05 16:04:21] Production.INFO: ProcessCDR(1,14614243,1,1,2) [2025-03-05 16:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614243', 'tblTempUsageDetail_20' ) start [2025-03-05 16:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614243', 'tblTempUsageDetail_20' ) end [2025-03-05 16:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:04:26] Production.INFO: ==21682== Releasing lock... [2025-03-05 16:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:04:26] Production.INFO: 63 MB #Memory Used# [2025-03-05 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:05:05 [end_date_ymd] => 2025-03-05 16:05:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 13:05:05' and `end` < '2025-03-05 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-03-05 16:05:18] Production.INFO: count ==4672 [2025-03-05 16:05:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:05:05 - End Time 2025-03-05 16:05:05 [2025-03-05 16:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614248', 'tblTempUsageDetail_20' ) start [2025-03-05 16:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614248', 'tblTempUsageDetail_20' ) end [2025-03-05 16:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614248', 'tblTempVendorCDR_20' ) start [2025-03-05 16:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614248', 'tblTempVendorCDR_20' ) end [2025-03-05 16:05:20] Production.INFO: ProcessCDR(1,14614248,1,1,2) [2025-03-05 16:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614248', 'tblTempUsageDetail_20' ) start [2025-03-05 16:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614248', 'tblTempUsageDetail_20' ) end [2025-03-05 16:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:05:26] Production.INFO: ==21771== Releasing lock... [2025-03-05 16:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:05:26] Production.INFO: 63 MB #Memory Used# [2025-03-05 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:06:05 [end_date_ymd] => 2025-03-05 16:06:05 [RateCDR] => 1 ) [2025-03-05 16: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-03-05 13:06:05' and `end` < '2025-03-05 16: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-03-05 16:06:18] Production.INFO: count ==4692 [2025-03-05 16:06:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:06:05 - End Time 2025-03-05 16:06:05 [2025-03-05 16:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614253', 'tblTempUsageDetail_20' ) start [2025-03-05 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614253', 'tblTempUsageDetail_20' ) end [2025-03-05 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614253', 'tblTempVendorCDR_20' ) start [2025-03-05 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614253', 'tblTempVendorCDR_20' ) end [2025-03-05 16:06:21] Production.INFO: ProcessCDR(1,14614253,1,1,2) [2025-03-05 16:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614253', 'tblTempUsageDetail_20' ) start [2025-03-05 16:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614253', 'tblTempUsageDetail_20' ) end [2025-03-05 16:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:06:26] Production.INFO: ==21855== Releasing lock... [2025-03-05 16:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:06:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-05 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:07:05 [end_date_ymd] => 2025-03-05 16:07:05 [RateCDR] => 1 ) [2025-03-05 16: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-03-05 13:07:05' and `end` < '2025-03-05 16: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-03-05 16:07:18] Production.INFO: count ==4668 [2025-03-05 16:07:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:07:05 - End Time 2025-03-05 16:07:05 [2025-03-05 16:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614258', 'tblTempUsageDetail_20' ) start [2025-03-05 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614258', 'tblTempUsageDetail_20' ) end [2025-03-05 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614258', 'tblTempVendorCDR_20' ) start [2025-03-05 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614258', 'tblTempVendorCDR_20' ) end [2025-03-05 16:07:20] Production.INFO: ProcessCDR(1,14614258,1,1,2) [2025-03-05 16:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614258', 'tblTempUsageDetail_20' ) start [2025-03-05 16:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614258', 'tblTempUsageDetail_20' ) end [2025-03-05 16:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:07:25] Production.INFO: ==21942== Releasing lock... [2025-03-05 16:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:07:25] Production.INFO: 63 MB #Memory Used# [2025-03-05 16:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:08:06 [end_date_ymd] => 2025-03-05 16:08:06 [RateCDR] => 1 ) [2025-03-05 16:08: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-03-05 13:08:06' and `end` < '2025-03-05 16:08: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-03-05 16:08:19] Production.INFO: count ==4678 [2025-03-05 16:08:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:08:06 - End Time 2025-03-05 16:08:06 [2025-03-05 16:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614263', 'tblTempUsageDetail_20' ) start [2025-03-05 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614263', 'tblTempUsageDetail_20' ) end [2025-03-05 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614263', 'tblTempVendorCDR_20' ) start [2025-03-05 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614263', 'tblTempVendorCDR_20' ) end [2025-03-05 16:08:21] Production.INFO: ProcessCDR(1,14614263,1,1,2) [2025-03-05 16:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614263', 'tblTempUsageDetail_20' ) start [2025-03-05 16:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614263', 'tblTempUsageDetail_20' ) end [2025-03-05 16:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:08:26] Production.INFO: ==22026== Releasing lock... [2025-03-05 16:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:08:26] Production.INFO: 63 MB #Memory Used# [2025-03-05 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:09:05 [end_date_ymd] => 2025-03-05 16:09:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 13:09:05' and `end` < '2025-03-05 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-03-05 16:09:18] Production.INFO: count ==4668 [2025-03-05 16:09:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:09:05 - End Time 2025-03-05 16:09:05 [2025-03-05 16:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614268', 'tblTempUsageDetail_20' ) start [2025-03-05 16:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614268', 'tblTempUsageDetail_20' ) end [2025-03-05 16:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614268', 'tblTempVendorCDR_20' ) start [2025-03-05 16:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614268', 'tblTempVendorCDR_20' ) end [2025-03-05 16:09:20] Production.INFO: ProcessCDR(1,14614268,1,1,2) [2025-03-05 16:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614268', 'tblTempUsageDetail_20' ) start [2025-03-05 16:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614268', 'tblTempUsageDetail_20' ) end [2025-03-05 16:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:09:25] Production.INFO: ==22114== Releasing lock... [2025-03-05 16:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:09:25] Production.INFO: 63 MB #Memory Used# [2025-03-05 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:10:06 [end_date_ymd] => 2025-03-05 16:10:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 13:10:06' and `end` < '2025-03-05 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-03-05 16:10:20] Production.INFO: count ==4672 [2025-03-05 16:10:22] Production.ERROR: pbx CDR StartTime 2025-03-05 13:10:06 - End Time 2025-03-05 16:10:06 [2025-03-05 16:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614273', 'tblTempUsageDetail_20' ) start [2025-03-05 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614273', 'tblTempUsageDetail_20' ) end [2025-03-05 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614273', 'tblTempVendorCDR_20' ) start [2025-03-05 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614273', 'tblTempVendorCDR_20' ) end [2025-03-05 16:10:22] Production.INFO: ProcessCDR(1,14614273,1,1,2) [2025-03-05 16:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614273', 'tblTempUsageDetail_20' ) start [2025-03-05 16:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614273', 'tblTempUsageDetail_20' ) end [2025-03-05 16:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:10:27] Production.INFO: ==22199== Releasing lock... [2025-03-05 16:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:10:27] Production.INFO: 63 MB #Memory Used# [2025-03-05 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:11:05 [end_date_ymd] => 2025-03-05 16:11:05 [RateCDR] => 1 ) [2025-03-05 16: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-03-05 13:11:05' and `end` < '2025-03-05 16: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-03-05 16:11:18] Production.INFO: count ==4725 [2025-03-05 16:11:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:11:05 - End Time 2025-03-05 16:11:05 [2025-03-05 16:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614279', 'tblTempUsageDetail_20' ) start [2025-03-05 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614279', 'tblTempUsageDetail_20' ) end [2025-03-05 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614279', 'tblTempVendorCDR_20' ) start [2025-03-05 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614279', 'tblTempVendorCDR_20' ) end [2025-03-05 16:11:20] Production.INFO: ProcessCDR(1,14614279,1,1,2) [2025-03-05 16:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614279', 'tblTempUsageDetail_20' ) start [2025-03-05 16:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614279', 'tblTempUsageDetail_20' ) end [2025-03-05 16:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:11:25] Production.INFO: ==22292== Releasing lock... [2025-03-05 16:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:11:25] Production.INFO: 63.5 MB #Memory Used# [2025-03-05 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:12:05 [end_date_ymd] => 2025-03-05 16:12:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 13:12:05' and `end` < '2025-03-05 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-03-05 16:12:18] Production.INFO: count ==4718 [2025-03-05 16:12:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:12:05 - End Time 2025-03-05 16:12:05 [2025-03-05 16:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614284', 'tblTempUsageDetail_20' ) start [2025-03-05 16:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614284', 'tblTempUsageDetail_20' ) end [2025-03-05 16:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614284', 'tblTempVendorCDR_20' ) start [2025-03-05 16:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614284', 'tblTempVendorCDR_20' ) end [2025-03-05 16:12:20] Production.INFO: ProcessCDR(1,14614284,1,1,2) [2025-03-05 16:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614284', 'tblTempUsageDetail_20' ) start [2025-03-05 16:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614284', 'tblTempUsageDetail_20' ) end [2025-03-05 16:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:12:25] Production.INFO: ==22379== Releasing lock... [2025-03-05 16:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:12:25] Production.INFO: 63.25 MB #Memory Used# [2025-03-05 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:13:05 [end_date_ymd] => 2025-03-05 16:13:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 13:13:05' and `end` < '2025-03-05 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-03-05 16:13:18] Production.INFO: count ==4733 [2025-03-05 16:13:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:13:05 - End Time 2025-03-05 16:13:05 [2025-03-05 16:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614289', 'tblTempUsageDetail_20' ) start [2025-03-05 16:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614289', 'tblTempUsageDetail_20' ) end [2025-03-05 16:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614289', 'tblTempVendorCDR_20' ) start [2025-03-05 16:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614289', 'tblTempVendorCDR_20' ) end [2025-03-05 16:13:20] Production.INFO: ProcessCDR(1,14614289,1,1,2) [2025-03-05 16:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614289', 'tblTempUsageDetail_20' ) start [2025-03-05 16:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614289', 'tblTempUsageDetail_20' ) end [2025-03-05 16:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:13:25] Production.INFO: ==22465== Releasing lock... [2025-03-05 16:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:13:25] Production.INFO: 63.75 MB #Memory Used# [2025-03-05 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:14:05 [end_date_ymd] => 2025-03-05 16:14:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 13:14:05' and `end` < '2025-03-05 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-03-05 16:14:18] Production.INFO: count ==4756 [2025-03-05 16:14:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:14:05 - End Time 2025-03-05 16:14:05 [2025-03-05 16:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614294', 'tblTempUsageDetail_20' ) start [2025-03-05 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614294', 'tblTempUsageDetail_20' ) end [2025-03-05 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614294', 'tblTempVendorCDR_20' ) start [2025-03-05 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614294', 'tblTempVendorCDR_20' ) end [2025-03-05 16:14:21] Production.INFO: ProcessCDR(1,14614294,1,1,2) [2025-03-05 16:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614294', 'tblTempUsageDetail_20' ) start [2025-03-05 16:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614294', 'tblTempUsageDetail_20' ) end [2025-03-05 16:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:14:25] Production.INFO: ==22551== Releasing lock... [2025-03-05 16:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:14:25] Production.INFO: 63.75 MB #Memory Used# [2025-03-05 16:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:15:04 [end_date_ymd] => 2025-03-05 16:15:04 [RateCDR] => 1 ) [2025-03-05 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-03-05 13:15:04' and `end` < '2025-03-05 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-03-05 16:15:18] Production.INFO: count ==4790 [2025-03-05 16:15:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:15:04 - End Time 2025-03-05 16:15:04 [2025-03-05 16:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614299', 'tblTempUsageDetail_20' ) start [2025-03-05 16:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614299', 'tblTempUsageDetail_20' ) end [2025-03-05 16:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614299', 'tblTempVendorCDR_20' ) start [2025-03-05 16:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614299', 'tblTempVendorCDR_20' ) end [2025-03-05 16:15:20] Production.INFO: ProcessCDR(1,14614299,1,1,2) [2025-03-05 16:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614299', 'tblTempUsageDetail_20' ) start [2025-03-05 16:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614299', 'tblTempUsageDetail_20' ) end [2025-03-05 16:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:15:25] Production.INFO: ==22639== Releasing lock... [2025-03-05 16:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:15:25] Production.INFO: 64 MB #Memory Used# [2025-03-05 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:16:05 [end_date_ymd] => 2025-03-05 16:16:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 13:16:05' and `end` < '2025-03-05 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-03-05 16:16:18] Production.INFO: count ==4801 [2025-03-05 16:16:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:16:05 - End Time 2025-03-05 16:16:05 [2025-03-05 16:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614304', 'tblTempUsageDetail_20' ) start [2025-03-05 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614304', 'tblTempUsageDetail_20' ) end [2025-03-05 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614304', 'tblTempVendorCDR_20' ) start [2025-03-05 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614304', 'tblTempVendorCDR_20' ) end [2025-03-05 16:16:20] Production.INFO: ProcessCDR(1,14614304,1,1,2) [2025-03-05 16:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614304', 'tblTempUsageDetail_20' ) start [2025-03-05 16:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614304', 'tblTempUsageDetail_20' ) end [2025-03-05 16:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:16:25] Production.INFO: ==22729== Releasing lock... [2025-03-05 16:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:16:25] Production.INFO: 64 MB #Memory Used# [2025-03-05 16:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:17:06 [end_date_ymd] => 2025-03-05 16:17:06 [RateCDR] => 1 ) [2025-03-05 16: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-03-05 13:17:06' and `end` < '2025-03-05 16: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-03-05 16:17:19] Production.INFO: count ==4790 [2025-03-05 16:17:21] Production.ERROR: pbx CDR StartTime 2025-03-05 13:17:06 - End Time 2025-03-05 16:17:06 [2025-03-05 16:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614309', 'tblTempUsageDetail_20' ) start [2025-03-05 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614309', 'tblTempUsageDetail_20' ) end [2025-03-05 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614309', 'tblTempVendorCDR_20' ) start [2025-03-05 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614309', 'tblTempVendorCDR_20' ) end [2025-03-05 16:17:21] Production.INFO: ProcessCDR(1,14614309,1,1,2) [2025-03-05 16:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614309', 'tblTempUsageDetail_20' ) start [2025-03-05 16:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614309', 'tblTempUsageDetail_20' ) end [2025-03-05 16:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:17:27] Production.INFO: ==22857== Releasing lock... [2025-03-05 16:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:17:27] Production.INFO: 64 MB #Memory Used# [2025-03-05 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:18:05 [end_date_ymd] => 2025-03-05 16:18:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 13:18:05' and `end` < '2025-03-05 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-03-05 16:18:18] Production.INFO: count ==4797 [2025-03-05 16:18:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:18:05 - End Time 2025-03-05 16:18:05 [2025-03-05 16:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614314', 'tblTempUsageDetail_20' ) start [2025-03-05 16:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614314', 'tblTempUsageDetail_20' ) end [2025-03-05 16:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614314', 'tblTempVendorCDR_20' ) start [2025-03-05 16:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614314', 'tblTempVendorCDR_20' ) end [2025-03-05 16:18:20] Production.INFO: ProcessCDR(1,14614314,1,1,2) [2025-03-05 16:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614314', 'tblTempUsageDetail_20' ) start [2025-03-05 16:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614314', 'tblTempUsageDetail_20' ) end [2025-03-05 16:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:18:26] Production.INFO: ==22959== Releasing lock... [2025-03-05 16:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:18:26] Production.INFO: 64 MB #Memory Used# [2025-03-05 16:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:19:06 [end_date_ymd] => 2025-03-05 16:19:06 [RateCDR] => 1 ) [2025-03-05 16:19: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-03-05 13:19:06' and `end` < '2025-03-05 16:19: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-03-05 16:19:19] Production.INFO: count ==4815 [2025-03-05 16:19:21] Production.ERROR: pbx CDR StartTime 2025-03-05 13:19:06 - End Time 2025-03-05 16:19:06 [2025-03-05 16:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614319', 'tblTempUsageDetail_20' ) start [2025-03-05 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614319', 'tblTempUsageDetail_20' ) end [2025-03-05 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614319', 'tblTempVendorCDR_20' ) start [2025-03-05 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614319', 'tblTempVendorCDR_20' ) end [2025-03-05 16:19:21] Production.INFO: ProcessCDR(1,14614319,1,1,2) [2025-03-05 16:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614319', 'tblTempUsageDetail_20' ) start [2025-03-05 16:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614319', 'tblTempUsageDetail_20' ) end [2025-03-05 16:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:19:26] Production.INFO: ==23051== Releasing lock... [2025-03-05 16:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:19:26] Production.INFO: 64 MB #Memory Used# [2025-03-05 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:20:06 [end_date_ymd] => 2025-03-05 16:20:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 13:20:06' and `end` < '2025-03-05 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-03-05 16:20:20] Production.INFO: count ==4820 [2025-03-05 16:20:22] Production.ERROR: pbx CDR StartTime 2025-03-05 13:20:06 - End Time 2025-03-05 16:20:06 [2025-03-05 16:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614324', 'tblTempUsageDetail_20' ) start [2025-03-05 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614324', 'tblTempUsageDetail_20' ) end [2025-03-05 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614324', 'tblTempVendorCDR_20' ) start [2025-03-05 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614324', 'tblTempVendorCDR_20' ) end [2025-03-05 16:20:22] Production.INFO: ProcessCDR(1,14614324,1,1,2) [2025-03-05 16:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614324', 'tblTempUsageDetail_20' ) start [2025-03-05 16:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614324', 'tblTempUsageDetail_20' ) end [2025-03-05 16:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:20:27] Production.INFO: ==23137== Releasing lock... [2025-03-05 16:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:20:27] Production.INFO: 64 MB #Memory Used# [2025-03-05 16:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:21:06 [end_date_ymd] => 2025-03-05 16:21:06 [RateCDR] => 1 ) [2025-03-05 16:21: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-03-05 13:21:06' and `end` < '2025-03-05 16:21: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-03-05 16:21:19] Production.INFO: count ==4883 [2025-03-05 16:21:21] Production.ERROR: pbx CDR StartTime 2025-03-05 13:21:06 - End Time 2025-03-05 16:21:06 [2025-03-05 16:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614330', 'tblTempUsageDetail_20' ) start [2025-03-05 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614330', 'tblTempUsageDetail_20' ) end [2025-03-05 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614330', 'tblTempVendorCDR_20' ) start [2025-03-05 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614330', 'tblTempVendorCDR_20' ) end [2025-03-05 16:21:21] Production.INFO: ProcessCDR(1,14614330,1,1,2) [2025-03-05 16:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614330', 'tblTempUsageDetail_20' ) start [2025-03-05 16:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614330', 'tblTempUsageDetail_20' ) end [2025-03-05 16:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:21:26] Production.INFO: ==23225== Releasing lock... [2025-03-05 16:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:21:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-05 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:22:05 [end_date_ymd] => 2025-03-05 16:22:05 [RateCDR] => 1 ) [2025-03-05 16: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-03-05 13:22:05' and `end` < '2025-03-05 16: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-03-05 16:22:18] Production.INFO: count ==4882 [2025-03-05 16:22:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:22:05 - End Time 2025-03-05 16:22:05 [2025-03-05 16:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614335', 'tblTempUsageDetail_20' ) start [2025-03-05 16:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614335', 'tblTempUsageDetail_20' ) end [2025-03-05 16:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614335', 'tblTempVendorCDR_20' ) start [2025-03-05 16:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614335', 'tblTempVendorCDR_20' ) end [2025-03-05 16:22:20] Production.INFO: ProcessCDR(1,14614335,1,1,2) [2025-03-05 16:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614335', 'tblTempUsageDetail_20' ) start [2025-03-05 16:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614335', 'tblTempUsageDetail_20' ) end [2025-03-05 16:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:22:25] Production.INFO: ==23318== Releasing lock... [2025-03-05 16:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:22:25] Production.INFO: 64.5 MB #Memory Used# [2025-03-05 16:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:23:06 [end_date_ymd] => 2025-03-05 16:23:06 [RateCDR] => 1 ) [2025-03-05 16:23: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-03-05 13:23:06' and `end` < '2025-03-05 16:23: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-03-05 16:23:19] Production.INFO: count ==4885 [2025-03-05 16:23:21] Production.ERROR: pbx CDR StartTime 2025-03-05 13:23:06 - End Time 2025-03-05 16:23:06 [2025-03-05 16:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614340', 'tblTempUsageDetail_20' ) start [2025-03-05 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614340', 'tblTempUsageDetail_20' ) end [2025-03-05 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614340', 'tblTempVendorCDR_20' ) start [2025-03-05 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614340', 'tblTempVendorCDR_20' ) end [2025-03-05 16:23:21] Production.INFO: ProcessCDR(1,14614340,1,1,2) [2025-03-05 16:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614340', 'tblTempUsageDetail_20' ) start [2025-03-05 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614340', 'tblTempUsageDetail_20' ) end [2025-03-05 16:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:23:26] Production.INFO: ==23404== Releasing lock... [2025-03-05 16:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:23:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-05 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:24:05 [end_date_ymd] => 2025-03-05 16:24:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 13:24:05' and `end` < '2025-03-05 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-03-05 16:24:18] Production.INFO: count ==4888 [2025-03-05 16:24:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:24:05 - End Time 2025-03-05 16:24:05 [2025-03-05 16:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614345', 'tblTempUsageDetail_20' ) start [2025-03-05 16:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614345', 'tblTempUsageDetail_20' ) end [2025-03-05 16:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614345', 'tblTempVendorCDR_20' ) start [2025-03-05 16:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614345', 'tblTempVendorCDR_20' ) end [2025-03-05 16:24:20] Production.INFO: ProcessCDR(1,14614345,1,1,2) [2025-03-05 16:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614345', 'tblTempUsageDetail_20' ) start [2025-03-05 16:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614345', 'tblTempUsageDetail_20' ) end [2025-03-05 16:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:24:25] Production.INFO: ==23496== Releasing lock... [2025-03-05 16:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:24:25] Production.INFO: 64.5 MB #Memory Used# [2025-03-05 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:25:05 [end_date_ymd] => 2025-03-05 16:25:05 [RateCDR] => 1 ) [2025-03-05 16: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-03-05 13:25:05' and `end` < '2025-03-05 16: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-03-05 16:25:18] Production.INFO: count ==4879 [2025-03-05 16:25:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:25:05 - End Time 2025-03-05 16:25:05 [2025-03-05 16:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614350', 'tblTempUsageDetail_20' ) start [2025-03-05 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614350', 'tblTempUsageDetail_20' ) end [2025-03-05 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614350', 'tblTempVendorCDR_20' ) start [2025-03-05 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614350', 'tblTempVendorCDR_20' ) end [2025-03-05 16:25:21] Production.INFO: ProcessCDR(1,14614350,1,1,2) [2025-03-05 16:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614350', 'tblTempUsageDetail_20' ) start [2025-03-05 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614350', 'tblTempUsageDetail_20' ) end [2025-03-05 16:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:25:26] Production.INFO: ==23586== Releasing lock... [2025-03-05 16:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:25:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-05 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:26:05 [end_date_ymd] => 2025-03-05 16:26:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 13:26:05' and `end` < '2025-03-05 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-03-05 16:26:18] Production.INFO: count ==4836 [2025-03-05 16:26:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:26:05 - End Time 2025-03-05 16:26:05 [2025-03-05 16:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614355', 'tblTempUsageDetail_20' ) start [2025-03-05 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614355', 'tblTempUsageDetail_20' ) end [2025-03-05 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614355', 'tblTempVendorCDR_20' ) start [2025-03-05 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614355', 'tblTempVendorCDR_20' ) end [2025-03-05 16:26:20] Production.INFO: ProcessCDR(1,14614355,1,1,2) [2025-03-05 16:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614355', 'tblTempUsageDetail_20' ) start [2025-03-05 16:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614355', 'tblTempUsageDetail_20' ) end [2025-03-05 16:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:26:24] Production.INFO: ==23675== Releasing lock... [2025-03-05 16:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:26:24] Production.INFO: 64.25 MB #Memory Used# [2025-03-05 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:27:05 [end_date_ymd] => 2025-03-05 16:27:05 [RateCDR] => 1 ) [2025-03-05 16: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-03-05 13:27:05' and `end` < '2025-03-05 16: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-03-05 16:27:18] Production.INFO: count ==4831 [2025-03-05 16:27:21] Production.ERROR: pbx CDR StartTime 2025-03-05 13:27:05 - End Time 2025-03-05 16:27:05 [2025-03-05 16:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614360', 'tblTempUsageDetail_20' ) start [2025-03-05 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614360', 'tblTempUsageDetail_20' ) end [2025-03-05 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614360', 'tblTempVendorCDR_20' ) start [2025-03-05 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614360', 'tblTempVendorCDR_20' ) end [2025-03-05 16:27:21] Production.INFO: ProcessCDR(1,14614360,1,1,2) [2025-03-05 16:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614360', 'tblTempUsageDetail_20' ) start [2025-03-05 16:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614360', 'tblTempUsageDetail_20' ) end [2025-03-05 16:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:27:26] Production.INFO: ==23764== Releasing lock... [2025-03-05 16:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:27:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-05 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:28:05 [end_date_ymd] => 2025-03-05 16:28:05 [RateCDR] => 1 ) [2025-03-05 16: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-03-05 13:28:05' and `end` < '2025-03-05 16: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-03-05 16:28:18] Production.INFO: count ==4819 [2025-03-05 16:28:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:28:05 - End Time 2025-03-05 16:28:05 [2025-03-05 16:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614365', 'tblTempUsageDetail_20' ) start [2025-03-05 16:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614365', 'tblTempUsageDetail_20' ) end [2025-03-05 16:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614365', 'tblTempVendorCDR_20' ) start [2025-03-05 16:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614365', 'tblTempVendorCDR_20' ) end [2025-03-05 16:28:20] Production.INFO: ProcessCDR(1,14614365,1,1,2) [2025-03-05 16:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614365', 'tblTempUsageDetail_20' ) start [2025-03-05 16:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614365', 'tblTempUsageDetail_20' ) end [2025-03-05 16:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:28:23] Production.INFO: ==23854== Releasing lock... [2025-03-05 16:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:28:23] Production.INFO: 64 MB #Memory Used# [2025-03-05 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:29:05 [end_date_ymd] => 2025-03-05 16:29:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 13:29:05' and `end` < '2025-03-05 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-03-05 16:29:18] Production.INFO: count ==4812 [2025-03-05 16:29:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:29:05 - End Time 2025-03-05 16:29:05 [2025-03-05 16:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614370', 'tblTempUsageDetail_20' ) start [2025-03-05 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614370', 'tblTempUsageDetail_20' ) end [2025-03-05 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614370', 'tblTempVendorCDR_20' ) start [2025-03-05 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614370', 'tblTempVendorCDR_20' ) end [2025-03-05 16:29:20] Production.INFO: ProcessCDR(1,14614370,1,1,2) [2025-03-05 16:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614370', 'tblTempUsageDetail_20' ) start [2025-03-05 16:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614370', 'tblTempUsageDetail_20' ) end [2025-03-05 16:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:29:25] Production.INFO: ==23944== Releasing lock... [2025-03-05 16:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:29:25] Production.INFO: 64 MB #Memory Used# [2025-03-05 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:30:06 [end_date_ymd] => 2025-03-05 16:30:06 [RateCDR] => 1 ) [2025-03-05 16: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-03-05 13:30:06' and `end` < '2025-03-05 16: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-03-05 16:30:19] Production.INFO: count ==4822 [2025-03-05 16:30:21] Production.ERROR: pbx CDR StartTime 2025-03-05 13:30:06 - End Time 2025-03-05 16:30:06 [2025-03-05 16:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614376', 'tblTempUsageDetail_20' ) start [2025-03-05 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614376', 'tblTempUsageDetail_20' ) end [2025-03-05 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614376', 'tblTempVendorCDR_20' ) start [2025-03-05 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614376', 'tblTempVendorCDR_20' ) end [2025-03-05 16:30:21] Production.INFO: ProcessCDR(1,14614376,1,1,2) [2025-03-05 16:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614376', 'tblTempUsageDetail_20' ) start [2025-03-05 16:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614376', 'tblTempUsageDetail_20' ) end [2025-03-05 16:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:30:26] Production.INFO: ==24047== Releasing lock... [2025-03-05 16:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:30:26] Production.INFO: 64 MB #Memory Used# [2025-03-05 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:31:05 [end_date_ymd] => 2025-03-05 16:31:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 13:31:05' and `end` < '2025-03-05 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-03-05 16:31:19] Production.INFO: count ==4829 [2025-03-05 16:31:21] Production.ERROR: pbx CDR StartTime 2025-03-05 13:31:05 - End Time 2025-03-05 16:31:05 [2025-03-05 16:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614381', 'tblTempUsageDetail_20' ) start [2025-03-05 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614381', 'tblTempUsageDetail_20' ) end [2025-03-05 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614381', 'tblTempVendorCDR_20' ) start [2025-03-05 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614381', 'tblTempVendorCDR_20' ) end [2025-03-05 16:31:21] Production.INFO: ProcessCDR(1,14614381,1,1,2) [2025-03-05 16:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614381', 'tblTempUsageDetail_20' ) start [2025-03-05 16:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614381', 'tblTempUsageDetail_20' ) end [2025-03-05 16:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:31:27] Production.INFO: ==24148== Releasing lock... [2025-03-05 16:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:31:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-05 16:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:32:06 [end_date_ymd] => 2025-03-05 16:32:06 [RateCDR] => 1 ) [2025-03-05 16: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-03-05 13:32:06' and `end` < '2025-03-05 16: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-03-05 16:32:19] Production.INFO: count ==4823 [2025-03-05 16:32:21] Production.ERROR: pbx CDR StartTime 2025-03-05 13:32:06 - End Time 2025-03-05 16:32:06 [2025-03-05 16:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614386', 'tblTempUsageDetail_20' ) start [2025-03-05 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614386', 'tblTempUsageDetail_20' ) end [2025-03-05 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614386', 'tblTempVendorCDR_20' ) start [2025-03-05 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614386', 'tblTempVendorCDR_20' ) end [2025-03-05 16:32:21] Production.INFO: ProcessCDR(1,14614386,1,1,2) [2025-03-05 16:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614386', 'tblTempUsageDetail_20' ) start [2025-03-05 16:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614386', 'tblTempUsageDetail_20' ) end [2025-03-05 16:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:32:26] Production.INFO: ==24283== Releasing lock... [2025-03-05 16:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:32:26] Production.INFO: 64 MB #Memory Used# [2025-03-05 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:33:05 [end_date_ymd] => 2025-03-05 16:33:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 13:33:05' and `end` < '2025-03-05 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-03-05 16:33:18] Production.INFO: count ==4829 [2025-03-05 16:33:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:33:05 - End Time 2025-03-05 16:33:05 [2025-03-05 16:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614391', 'tblTempUsageDetail_20' ) start [2025-03-05 16:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614391', 'tblTempUsageDetail_20' ) end [2025-03-05 16:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614391', 'tblTempVendorCDR_20' ) start [2025-03-05 16:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614391', 'tblTempVendorCDR_20' ) end [2025-03-05 16:33:20] Production.INFO: ProcessCDR(1,14614391,1,1,2) [2025-03-05 16:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614391', 'tblTempUsageDetail_20' ) start [2025-03-05 16:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614391', 'tblTempUsageDetail_20' ) end [2025-03-05 16:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:33:25] Production.INFO: ==24371== Releasing lock... [2025-03-05 16:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:33:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-05 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:34:05 [end_date_ymd] => 2025-03-05 16:34:05 [RateCDR] => 1 ) [2025-03-05 16: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-03-05 13:34:05' and `end` < '2025-03-05 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-03-05 16:34:18] Production.INFO: count ==4829 [2025-03-05 16:34:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:34:05 - End Time 2025-03-05 16:34:05 [2025-03-05 16:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614396', 'tblTempUsageDetail_20' ) start [2025-03-05 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614396', 'tblTempUsageDetail_20' ) end [2025-03-05 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614396', 'tblTempVendorCDR_20' ) start [2025-03-05 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614396', 'tblTempVendorCDR_20' ) end [2025-03-05 16:34:20] Production.INFO: ProcessCDR(1,14614396,1,1,2) [2025-03-05 16:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614396', 'tblTempUsageDetail_20' ) start [2025-03-05 16:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614396', 'tblTempUsageDetail_20' ) end [2025-03-05 16:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:34:25] Production.INFO: ==24449== Releasing lock... [2025-03-05 16:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:34:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-05 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:35:05 [end_date_ymd] => 2025-03-05 16:35:05 [RateCDR] => 1 ) [2025-03-05 16: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-03-05 13:35:05' and `end` < '2025-03-05 16: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-03-05 16:35:18] Production.INFO: count ==4821 [2025-03-05 16:35:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:35:05 - End Time 2025-03-05 16:35:05 [2025-03-05 16:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614401', 'tblTempUsageDetail_20' ) start [2025-03-05 16:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614401', 'tblTempUsageDetail_20' ) end [2025-03-05 16:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614401', 'tblTempVendorCDR_20' ) start [2025-03-05 16:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614401', 'tblTempVendorCDR_20' ) end [2025-03-05 16:35:20] Production.INFO: ProcessCDR(1,14614401,1,1,2) [2025-03-05 16:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614401', 'tblTempUsageDetail_20' ) start [2025-03-05 16:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614401', 'tblTempUsageDetail_20' ) end [2025-03-05 16:35:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:35:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:35:24] Production.INFO: ==24524== Releasing lock... [2025-03-05 16:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:35:24] Production.INFO: 64 MB #Memory Used# [2025-03-05 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:36:05 [end_date_ymd] => 2025-03-05 16:36:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 13:36:05' and `end` < '2025-03-05 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-03-05 16:36:18] Production.INFO: count ==4811 [2025-03-05 16:36:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:36:05 - End Time 2025-03-05 16:36:05 [2025-03-05 16:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614406', 'tblTempUsageDetail_20' ) start [2025-03-05 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614406', 'tblTempUsageDetail_20' ) end [2025-03-05 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614406', 'tblTempVendorCDR_20' ) start [2025-03-05 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614406', 'tblTempVendorCDR_20' ) end [2025-03-05 16:36:20] Production.INFO: ProcessCDR(1,14614406,1,1,2) [2025-03-05 16:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614406', 'tblTempUsageDetail_20' ) start [2025-03-05 16:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614406', 'tblTempUsageDetail_20' ) end [2025-03-05 16:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:36:26] Production.INFO: ==24603== Releasing lock... [2025-03-05 16:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:36:26] Production.INFO: 64 MB #Memory Used# [2025-03-05 16:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:37:04 [end_date_ymd] => 2025-03-05 16:37:04 [RateCDR] => 1 ) [2025-03-05 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-03-05 13:37:04' and `end` < '2025-03-05 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-03-05 16:37:18] Production.INFO: count ==4810 [2025-03-05 16:37:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:37:04 - End Time 2025-03-05 16:37:04 [2025-03-05 16:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614411', 'tblTempUsageDetail_20' ) start [2025-03-05 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614411', 'tblTempUsageDetail_20' ) end [2025-03-05 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614411', 'tblTempVendorCDR_20' ) start [2025-03-05 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614411', 'tblTempVendorCDR_20' ) end [2025-03-05 16:37:20] Production.INFO: ProcessCDR(1,14614411,1,1,2) [2025-03-05 16:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614411', 'tblTempUsageDetail_20' ) start [2025-03-05 16:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614411', 'tblTempUsageDetail_20' ) end [2025-03-05 16:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:37:25] Production.INFO: ==24681== Releasing lock... [2025-03-05 16:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:37:25] Production.INFO: 64 MB #Memory Used# [2025-03-05 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:38:05 [end_date_ymd] => 2025-03-05 16:38:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 13:38:05' and `end` < '2025-03-05 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-03-05 16:38:18] Production.INFO: count ==4815 [2025-03-05 16:38:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:38:05 - End Time 2025-03-05 16:38:05 [2025-03-05 16:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614416', 'tblTempUsageDetail_20' ) start [2025-03-05 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614416', 'tblTempUsageDetail_20' ) end [2025-03-05 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614416', 'tblTempVendorCDR_20' ) start [2025-03-05 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614416', 'tblTempVendorCDR_20' ) end [2025-03-05 16:38:20] Production.INFO: ProcessCDR(1,14614416,1,1,2) [2025-03-05 16:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614416', 'tblTempUsageDetail_20' ) start [2025-03-05 16:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614416', 'tblTempUsageDetail_20' ) end [2025-03-05 16:38:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:38:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:38:25] Production.INFO: ==24788== Releasing lock... [2025-03-05 16:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:38:25] Production.INFO: 64 MB #Memory Used# [2025-03-05 16:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:39:06 [end_date_ymd] => 2025-03-05 16:39:06 [RateCDR] => 1 ) [2025-03-05 16:39: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-03-05 13:39:06' and `end` < '2025-03-05 16:39: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-03-05 16:39:18] Production.INFO: count ==4809 [2025-03-05 16:39:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:39:06 - End Time 2025-03-05 16:39:06 [2025-03-05 16:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614421', 'tblTempUsageDetail_20' ) start [2025-03-05 16:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614421', 'tblTempUsageDetail_20' ) end [2025-03-05 16:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614421', 'tblTempVendorCDR_20' ) start [2025-03-05 16:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614421', 'tblTempVendorCDR_20' ) end [2025-03-05 16:39:20] Production.INFO: ProcessCDR(1,14614421,1,1,2) [2025-03-05 16:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614421', 'tblTempUsageDetail_20' ) start [2025-03-05 16:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614421', 'tblTempUsageDetail_20' ) end [2025-03-05 16:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:39:25] Production.INFO: ==24878== Releasing lock... [2025-03-05 16:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:39:25] Production.INFO: 64 MB #Memory Used# [2025-03-05 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:40:06 [end_date_ymd] => 2025-03-05 16:40:06 [RateCDR] => 1 ) [2025-03-05 16: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-03-05 13:40:06' and `end` < '2025-03-05 16: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-03-05 16:40:19] Production.INFO: count ==4817 [2025-03-05 16:40:21] Production.ERROR: pbx CDR StartTime 2025-03-05 13:40:06 - End Time 2025-03-05 16:40:06 [2025-03-05 16:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614427', 'tblTempUsageDetail_20' ) start [2025-03-05 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614427', 'tblTempUsageDetail_20' ) end [2025-03-05 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614427', 'tblTempVendorCDR_20' ) start [2025-03-05 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614427', 'tblTempVendorCDR_20' ) end [2025-03-05 16:40:21] Production.INFO: ProcessCDR(1,14614427,1,1,2) [2025-03-05 16:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614427', 'tblTempUsageDetail_20' ) start [2025-03-05 16:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614427', 'tblTempUsageDetail_20' ) end [2025-03-05 16:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:40:26] Production.INFO: ==24971== Releasing lock... [2025-03-05 16:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:40:26] Production.INFO: 64 MB #Memory Used# [2025-03-05 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:41:05 [end_date_ymd] => 2025-03-05 16:41:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 13:41:05' and `end` < '2025-03-05 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-03-05 16:41:18] Production.INFO: count ==4847 [2025-03-05 16:41:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:41:05 - End Time 2025-03-05 16:41:05 [2025-03-05 16:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614432', 'tblTempUsageDetail_20' ) start [2025-03-05 16:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614432', 'tblTempUsageDetail_20' ) end [2025-03-05 16:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614432', 'tblTempVendorCDR_20' ) start [2025-03-05 16:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614432', 'tblTempVendorCDR_20' ) end [2025-03-05 16:41:20] Production.INFO: ProcessCDR(1,14614432,1,1,2) [2025-03-05 16:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614432', 'tblTempUsageDetail_20' ) start [2025-03-05 16:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614432', 'tblTempUsageDetail_20' ) end [2025-03-05 16:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:41:25] Production.INFO: ==25067== Releasing lock... [2025-03-05 16:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:41:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-05 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:42:05 [end_date_ymd] => 2025-03-05 16:42:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 13:42:05' and `end` < '2025-03-05 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-03-05 16:42:18] Production.INFO: count ==4837 [2025-03-05 16:42:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:42:05 - End Time 2025-03-05 16:42:05 [2025-03-05 16:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614437', 'tblTempUsageDetail_20' ) start [2025-03-05 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614437', 'tblTempUsageDetail_20' ) end [2025-03-05 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614437', 'tblTempVendorCDR_20' ) start [2025-03-05 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614437', 'tblTempVendorCDR_20' ) end [2025-03-05 16:42:20] Production.INFO: ProcessCDR(1,14614437,1,1,2) [2025-03-05 16:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614437', 'tblTempUsageDetail_20' ) start [2025-03-05 16:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614437', 'tblTempUsageDetail_20' ) end [2025-03-05 16:42:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:42:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:42:25] Production.INFO: ==25153== Releasing lock... [2025-03-05 16:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:42:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-05 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:43:05 [end_date_ymd] => 2025-03-05 16:43:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 13:43:05' and `end` < '2025-03-05 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-03-05 16:43:18] Production.INFO: count ==4825 [2025-03-05 16:43:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:43:05 - End Time 2025-03-05 16:43:05 [2025-03-05 16:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614442', 'tblTempUsageDetail_20' ) start [2025-03-05 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614442', 'tblTempUsageDetail_20' ) end [2025-03-05 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614442', 'tblTempVendorCDR_20' ) start [2025-03-05 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614442', 'tblTempVendorCDR_20' ) end [2025-03-05 16:43:20] Production.INFO: ProcessCDR(1,14614442,1,1,2) [2025-03-05 16:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614442', 'tblTempUsageDetail_20' ) start [2025-03-05 16:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614442', 'tblTempUsageDetail_20' ) end [2025-03-05 16:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:43:25] Production.INFO: ==25244== Releasing lock... [2025-03-05 16:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:43:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-05 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:44:05 [end_date_ymd] => 2025-03-05 16:44:05 [RateCDR] => 1 ) [2025-03-05 16: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-03-05 13:44:05' and `end` < '2025-03-05 16: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-03-05 16:44:18] Production.INFO: count ==4827 [2025-03-05 16:44:19] Production.ERROR: pbx CDR StartTime 2025-03-05 13:44:05 - End Time 2025-03-05 16:44:05 [2025-03-05 16:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614447', 'tblTempUsageDetail_20' ) start [2025-03-05 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614447', 'tblTempUsageDetail_20' ) end [2025-03-05 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614447', 'tblTempVendorCDR_20' ) start [2025-03-05 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614447', 'tblTempVendorCDR_20' ) end [2025-03-05 16:44:20] Production.INFO: ProcessCDR(1,14614447,1,1,2) [2025-03-05 16:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614447', 'tblTempUsageDetail_20' ) start [2025-03-05 16:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614447', 'tblTempUsageDetail_20' ) end [2025-03-05 16:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:44:24] Production.INFO: ==25331== Releasing lock... [2025-03-05 16:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:44:24] Production.INFO: 64.25 MB #Memory Used# [2025-03-05 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:45:05 [end_date_ymd] => 2025-03-05 16:45:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 13:45:05' and `end` < '2025-03-05 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-03-05 16:45:18] Production.INFO: count ==4848 [2025-03-05 16:45:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:45:05 - End Time 2025-03-05 16:45:05 [2025-03-05 16:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614452', 'tblTempUsageDetail_20' ) start [2025-03-05 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614452', 'tblTempUsageDetail_20' ) end [2025-03-05 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614452', 'tblTempVendorCDR_20' ) start [2025-03-05 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614452', 'tblTempVendorCDR_20' ) end [2025-03-05 16:45:20] Production.INFO: ProcessCDR(1,14614452,1,1,2) [2025-03-05 16:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614452', 'tblTempUsageDetail_20' ) start [2025-03-05 16:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614452', 'tblTempUsageDetail_20' ) end [2025-03-05 16:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:45:25] Production.INFO: ==25428== Releasing lock... [2025-03-05 16:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:45:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-05 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:46:05 [end_date_ymd] => 2025-03-05 16:46:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 13:46:05' and `end` < '2025-03-05 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-03-05 16:46:18] Production.INFO: count ==4840 [2025-03-05 16:46:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:46:05 - End Time 2025-03-05 16:46:05 [2025-03-05 16:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614457', 'tblTempUsageDetail_20' ) start [2025-03-05 16:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614457', 'tblTempUsageDetail_20' ) end [2025-03-05 16:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614457', 'tblTempVendorCDR_20' ) start [2025-03-05 16:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614457', 'tblTempVendorCDR_20' ) end [2025-03-05 16:46:20] Production.INFO: ProcessCDR(1,14614457,1,1,2) [2025-03-05 16:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614457', 'tblTempUsageDetail_20' ) start [2025-03-05 16:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614457', 'tblTempUsageDetail_20' ) end [2025-03-05 16:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:46:25] Production.INFO: ==25517== Releasing lock... [2025-03-05 16:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:46:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-05 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:47:05 [end_date_ymd] => 2025-03-05 16:47:05 [RateCDR] => 1 ) [2025-03-05 16: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-03-05 13:47:05' and `end` < '2025-03-05 16: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-03-05 16:47:18] Production.INFO: count ==4845 [2025-03-05 16:47:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:47:05 - End Time 2025-03-05 16:47:05 [2025-03-05 16:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614462', 'tblTempUsageDetail_20' ) start [2025-03-05 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614462', 'tblTempUsageDetail_20' ) end [2025-03-05 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614462', 'tblTempVendorCDR_20' ) start [2025-03-05 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614462', 'tblTempVendorCDR_20' ) end [2025-03-05 16:47:20] Production.INFO: ProcessCDR(1,14614462,1,1,2) [2025-03-05 16:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614462', 'tblTempUsageDetail_20' ) start [2025-03-05 16:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614462', 'tblTempUsageDetail_20' ) end [2025-03-05 16:47:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:47:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:47:25] Production.INFO: ==25604== Releasing lock... [2025-03-05 16:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:47:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-05 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:48:05 [end_date_ymd] => 2025-03-05 16:48:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 13:48:05' and `end` < '2025-03-05 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-03-05 16:48:18] Production.INFO: count ==4841 [2025-03-05 16:48:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:48:05 - End Time 2025-03-05 16:48:05 [2025-03-05 16:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614467', 'tblTempUsageDetail_20' ) start [2025-03-05 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614467', 'tblTempUsageDetail_20' ) end [2025-03-05 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614467', 'tblTempVendorCDR_20' ) start [2025-03-05 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614467', 'tblTempVendorCDR_20' ) end [2025-03-05 16:48:20] Production.INFO: ProcessCDR(1,14614467,1,1,2) [2025-03-05 16:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614467', 'tblTempUsageDetail_20' ) start [2025-03-05 16:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614467', 'tblTempUsageDetail_20' ) end [2025-03-05 16:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:48:25] Production.INFO: ==25724== Releasing lock... [2025-03-05 16:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:48:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-05 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:49:05 [end_date_ymd] => 2025-03-05 16:49:05 [RateCDR] => 1 ) [2025-03-05 16: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-03-05 13:49:05' and `end` < '2025-03-05 16: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-03-05 16:49:18] Production.INFO: count ==4828 [2025-03-05 16:49:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:49:05 - End Time 2025-03-05 16:49:05 [2025-03-05 16:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614472', 'tblTempUsageDetail_20' ) start [2025-03-05 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614472', 'tblTempUsageDetail_20' ) end [2025-03-05 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614472', 'tblTempVendorCDR_20' ) start [2025-03-05 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614472', 'tblTempVendorCDR_20' ) end [2025-03-05 16:49:20] Production.INFO: ProcessCDR(1,14614472,1,1,2) [2025-03-05 16:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614472', 'tblTempUsageDetail_20' ) start [2025-03-05 16:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614472', 'tblTempUsageDetail_20' ) end [2025-03-05 16:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:49:25] Production.INFO: ==25806== Releasing lock... [2025-03-05 16:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:49:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-05 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:50:06 [end_date_ymd] => 2025-03-05 16:50:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 13:50:06' and `end` < '2025-03-05 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-03-05 16:50:19] Production.INFO: count ==4827 [2025-03-05 16:50:21] Production.ERROR: pbx CDR StartTime 2025-03-05 13:50:06 - End Time 2025-03-05 16:50:06 [2025-03-05 16:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614477', 'tblTempUsageDetail_20' ) start [2025-03-05 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614477', 'tblTempUsageDetail_20' ) end [2025-03-05 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614477', 'tblTempVendorCDR_20' ) start [2025-03-05 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614477', 'tblTempVendorCDR_20' ) end [2025-03-05 16:50:22] Production.INFO: ProcessCDR(1,14614477,1,1,2) [2025-03-05 16:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614477', 'tblTempUsageDetail_20' ) start [2025-03-05 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614477', 'tblTempUsageDetail_20' ) end [2025-03-05 16:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:50:27] Production.INFO: ==25889== Releasing lock... [2025-03-05 16:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:50:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-05 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:51:05 [end_date_ymd] => 2025-03-05 16:51:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 13:51:05' and `end` < '2025-03-05 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-03-05 16:51:18] Production.INFO: count ==4816 [2025-03-05 16:51:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:51:05 - End Time 2025-03-05 16:51:05 [2025-03-05 16:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614483', 'tblTempUsageDetail_20' ) start [2025-03-05 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614483', 'tblTempUsageDetail_20' ) end [2025-03-05 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614483', 'tblTempVendorCDR_20' ) start [2025-03-05 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614483', 'tblTempVendorCDR_20' ) end [2025-03-05 16:51:20] Production.INFO: ProcessCDR(1,14614483,1,1,2) [2025-03-05 16:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614483', 'tblTempUsageDetail_20' ) start [2025-03-05 16:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614483', 'tblTempUsageDetail_20' ) end [2025-03-05 16:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:51:25] Production.INFO: ==25977== Releasing lock... [2025-03-05 16:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:51:25] Production.INFO: 64 MB #Memory Used# [2025-03-05 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:52:05 [end_date_ymd] => 2025-03-05 16:52:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 13:52:05' and `end` < '2025-03-05 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-03-05 16:52:18] Production.INFO: count ==4791 [2025-03-05 16:52:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:52:05 - End Time 2025-03-05 16:52:05 [2025-03-05 16:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614488', 'tblTempUsageDetail_20' ) start [2025-03-05 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614488', 'tblTempUsageDetail_20' ) end [2025-03-05 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614488', 'tblTempVendorCDR_20' ) start [2025-03-05 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614488', 'tblTempVendorCDR_20' ) end [2025-03-05 16:52:20] Production.INFO: ProcessCDR(1,14614488,1,1,2) [2025-03-05 16:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614488', 'tblTempUsageDetail_20' ) start [2025-03-05 16:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614488', 'tblTempUsageDetail_20' ) end [2025-03-05 16:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:52:25] Production.INFO: ==26052== Releasing lock... [2025-03-05 16:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:52:25] Production.INFO: 64 MB #Memory Used# [2025-03-05 16:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:53:06 [end_date_ymd] => 2025-03-05 16:53:06 [RateCDR] => 1 ) [2025-03-05 16: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-03-05 13:53:06' and `end` < '2025-03-05 16: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-03-05 16:53:19] Production.INFO: count ==4786 [2025-03-05 16:53:21] Production.ERROR: pbx CDR StartTime 2025-03-05 13:53:06 - End Time 2025-03-05 16:53:06 [2025-03-05 16:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614493', 'tblTempUsageDetail_20' ) start [2025-03-05 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614493', 'tblTempUsageDetail_20' ) end [2025-03-05 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614493', 'tblTempVendorCDR_20' ) start [2025-03-05 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614493', 'tblTempVendorCDR_20' ) end [2025-03-05 16:53:21] Production.INFO: ProcessCDR(1,14614493,1,1,2) [2025-03-05 16:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614493', 'tblTempUsageDetail_20' ) start [2025-03-05 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614493', 'tblTempUsageDetail_20' ) end [2025-03-05 16:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:53:26] Production.INFO: ==26132== Releasing lock... [2025-03-05 16:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:53:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-05 16:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:54:06 [end_date_ymd] => 2025-03-05 16:54:06 [RateCDR] => 1 ) [2025-03-05 16:54: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-03-05 13:54:06' and `end` < '2025-03-05 16:54: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-03-05 16:54:19] Production.INFO: count ==4784 [2025-03-05 16:54:21] Production.ERROR: pbx CDR StartTime 2025-03-05 13:54:06 - End Time 2025-03-05 16:54:06 [2025-03-05 16:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614498', 'tblTempUsageDetail_20' ) start [2025-03-05 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614498', 'tblTempUsageDetail_20' ) end [2025-03-05 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614498', 'tblTempVendorCDR_20' ) start [2025-03-05 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614498', 'tblTempVendorCDR_20' ) end [2025-03-05 16:54:21] Production.INFO: ProcessCDR(1,14614498,1,1,2) [2025-03-05 16:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614498', 'tblTempUsageDetail_20' ) start [2025-03-05 16:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614498', 'tblTempUsageDetail_20' ) end [2025-03-05 16:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:54:26] Production.INFO: ==26214== Releasing lock... [2025-03-05 16:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:54:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-05 16:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:55:06 [end_date_ymd] => 2025-03-05 16:55:06 [RateCDR] => 1 ) [2025-03-05 16:55: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-03-05 13:55:06' and `end` < '2025-03-05 16:55: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-03-05 16:55:19] Production.INFO: count ==4791 [2025-03-05 16:55:21] Production.ERROR: pbx CDR StartTime 2025-03-05 13:55:06 - End Time 2025-03-05 16:55:06 [2025-03-05 16:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614503', 'tblTempUsageDetail_20' ) start [2025-03-05 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614503', 'tblTempUsageDetail_20' ) end [2025-03-05 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614503', 'tblTempVendorCDR_20' ) start [2025-03-05 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614503', 'tblTempVendorCDR_20' ) end [2025-03-05 16:55:21] Production.INFO: ProcessCDR(1,14614503,1,1,2) [2025-03-05 16:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614503', 'tblTempUsageDetail_20' ) start [2025-03-05 16:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614503', 'tblTempUsageDetail_20' ) end [2025-03-05 16:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:55:26] Production.INFO: ==26294== Releasing lock... [2025-03-05 16:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:55:26] Production.INFO: 64 MB #Memory Used# [2025-03-05 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:56:05 [end_date_ymd] => 2025-03-05 16:56:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 13:56:05' and `end` < '2025-03-05 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-03-05 16:56:18] Production.INFO: count ==4791 [2025-03-05 16:56:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:56:05 - End Time 2025-03-05 16:56:05 [2025-03-05 16:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614508', 'tblTempUsageDetail_20' ) start [2025-03-05 16:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614508', 'tblTempUsageDetail_20' ) end [2025-03-05 16:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614508', 'tblTempVendorCDR_20' ) start [2025-03-05 16:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614508', 'tblTempVendorCDR_20' ) end [2025-03-05 16:56:20] Production.INFO: ProcessCDR(1,14614508,1,1,2) [2025-03-05 16:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614508', 'tblTempUsageDetail_20' ) start [2025-03-05 16:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614508', 'tblTempUsageDetail_20' ) end [2025-03-05 16:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:56:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:56:25] Production.INFO: ==26371== Releasing lock... [2025-03-05 16:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:56:25] Production.INFO: 64 MB #Memory Used# [2025-03-05 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:57:05 [end_date_ymd] => 2025-03-05 16:57:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 13:57:05' and `end` < '2025-03-05 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-03-05 16:57:18] Production.INFO: count ==4779 [2025-03-05 16:57:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:57:05 - End Time 2025-03-05 16:57:05 [2025-03-05 16:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614513', 'tblTempUsageDetail_20' ) start [2025-03-05 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614513', 'tblTempUsageDetail_20' ) end [2025-03-05 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614513', 'tblTempVendorCDR_20' ) start [2025-03-05 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614513', 'tblTempVendorCDR_20' ) end [2025-03-05 16:57:20] Production.INFO: ProcessCDR(1,14614513,1,1,2) [2025-03-05 16:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614513', 'tblTempUsageDetail_20' ) start [2025-03-05 16:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614513', 'tblTempUsageDetail_20' ) end [2025-03-05 16:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:57:25] Production.INFO: ==26457== Releasing lock... [2025-03-05 16:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:57:25] Production.INFO: 63.75 MB #Memory Used# [2025-03-05 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:58:05 [end_date_ymd] => 2025-03-05 16:58:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 13:58:05' and `end` < '2025-03-05 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-03-05 16:58:18] Production.INFO: count ==4733 [2025-03-05 16:58:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:58:05 - End Time 2025-03-05 16:58:05 [2025-03-05 16:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614518', 'tblTempUsageDetail_20' ) start [2025-03-05 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614518', 'tblTempUsageDetail_20' ) end [2025-03-05 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614518', 'tblTempVendorCDR_20' ) start [2025-03-05 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614518', 'tblTempVendorCDR_20' ) end [2025-03-05 16:58:20] Production.INFO: ProcessCDR(1,14614518,1,1,2) [2025-03-05 16:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614518', 'tblTempUsageDetail_20' ) start [2025-03-05 16:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614518', 'tblTempUsageDetail_20' ) end [2025-03-05 16:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:58:23] Production.INFO: ==26541== Releasing lock... [2025-03-05 16:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:58:23] Production.INFO: 63.5 MB #Memory Used# [2025-03-05 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 13:59:05 [end_date_ymd] => 2025-03-05 16:59:05 [RateCDR] => 1 ) [2025-03-05 16: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-03-05 13:59:05' and `end` < '2025-03-05 16: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-03-05 16:59:18] Production.INFO: count ==4731 [2025-03-05 16:59:20] Production.ERROR: pbx CDR StartTime 2025-03-05 13:59:05 - End Time 2025-03-05 16:59:05 [2025-03-05 16:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614523', 'tblTempUsageDetail_20' ) start [2025-03-05 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614523', 'tblTempUsageDetail_20' ) end [2025-03-05 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614523', 'tblTempVendorCDR_20' ) start [2025-03-05 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614523', 'tblTempVendorCDR_20' ) end [2025-03-05 16:59:20] Production.INFO: ProcessCDR(1,14614523,1,1,2) [2025-03-05 16:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 16:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 16:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614523', 'tblTempUsageDetail_20' ) start [2025-03-05 16:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614523', 'tblTempUsageDetail_20' ) end [2025-03-05 16:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 16:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 16:59:26] Production.INFO: ==26622== Releasing lock... [2025-03-05 16:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 16:59:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-05 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:00:06 [end_date_ymd] => 2025-03-05 17:00:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 14:00:06' and `end` < '2025-03-05 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-03-05 17:00:19] Production.INFO: count ==4728 [2025-03-05 17:00:21] Production.ERROR: pbx CDR StartTime 2025-03-05 14:00:06 - End Time 2025-03-05 17:00:06 [2025-03-05 17:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614529', 'tblTempUsageDetail_20' ) start [2025-03-05 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614529', 'tblTempUsageDetail_20' ) end [2025-03-05 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614529', 'tblTempVendorCDR_20' ) start [2025-03-05 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614529', 'tblTempVendorCDR_20' ) end [2025-03-05 17:00:21] Production.INFO: ProcessCDR(1,14614529,1,1,2) [2025-03-05 17:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614529', 'tblTempUsageDetail_20' ) start [2025-03-05 17:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614529', 'tblTempUsageDetail_20' ) end [2025-03-05 17:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:00:25] Production.INFO: ==26707== Releasing lock... [2025-03-05 17:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:00:25] Production.INFO: 63.5 MB #Memory Used# [2025-03-05 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:01:05 [end_date_ymd] => 2025-03-05 17:01:05 [RateCDR] => 1 ) [2025-03-05 17: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-03-05 14:01:05' and `end` < '2025-03-05 17: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-03-05 17:01:18] Production.INFO: count ==4692 [2025-03-05 17:01:20] Production.ERROR: pbx CDR StartTime 2025-03-05 14:01:05 - End Time 2025-03-05 17:01:05 [2025-03-05 17:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614534', 'tblTempUsageDetail_20' ) start [2025-03-05 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614534', 'tblTempUsageDetail_20' ) end [2025-03-05 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614534', 'tblTempVendorCDR_20' ) start [2025-03-05 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614534', 'tblTempVendorCDR_20' ) end [2025-03-05 17:01:20] Production.INFO: ProcessCDR(1,14614534,1,1,2) [2025-03-05 17:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614534', 'tblTempUsageDetail_20' ) start [2025-03-05 17:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614534', 'tblTempUsageDetail_20' ) end [2025-03-05 17:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:01:25] Production.INFO: ==26808== Releasing lock... [2025-03-05 17:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:01:25] Production.INFO: 63.25 MB #Memory Used# [2025-03-05 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:02:05 [end_date_ymd] => 2025-03-05 17:02:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 14:02:05' and `end` < '2025-03-05 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-03-05 17:02:18] Production.INFO: count ==4694 [2025-03-05 17:02:21] Production.ERROR: pbx CDR StartTime 2025-03-05 14:02:05 - End Time 2025-03-05 17:02:05 [2025-03-05 17:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614539', 'tblTempUsageDetail_20' ) start [2025-03-05 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614539', 'tblTempUsageDetail_20' ) end [2025-03-05 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614539', 'tblTempVendorCDR_20' ) start [2025-03-05 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614539', 'tblTempVendorCDR_20' ) end [2025-03-05 17:02:21] Production.INFO: ProcessCDR(1,14614539,1,1,2) [2025-03-05 17:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614539', 'tblTempUsageDetail_20' ) start [2025-03-05 17:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614539', 'tblTempUsageDetail_20' ) end [2025-03-05 17:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:02:24] Production.INFO: ==26890== Releasing lock... [2025-03-05 17:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:02:24] Production.INFO: 63.25 MB #Memory Used# [2025-03-05 17:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:03:06 [end_date_ymd] => 2025-03-05 17:03:06 [RateCDR] => 1 ) [2025-03-05 17: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-03-05 14:03:06' and `end` < '2025-03-05 17: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-03-05 17:03:18] Production.INFO: count ==4705 [2025-03-05 17:03:21] Production.ERROR: pbx CDR StartTime 2025-03-05 14:03:06 - End Time 2025-03-05 17:03:06 [2025-03-05 17:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614544', 'tblTempUsageDetail_20' ) start [2025-03-05 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614544', 'tblTempUsageDetail_20' ) end [2025-03-05 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614544', 'tblTempVendorCDR_20' ) start [2025-03-05 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614544', 'tblTempVendorCDR_20' ) end [2025-03-05 17:03:21] Production.INFO: ProcessCDR(1,14614544,1,1,2) [2025-03-05 17:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614544', 'tblTempUsageDetail_20' ) start [2025-03-05 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614544', 'tblTempUsageDetail_20' ) end [2025-03-05 17:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:03:27] Production.INFO: ==27012== Releasing lock... [2025-03-05 17:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:03:27] Production.INFO: 63.25 MB #Memory Used# [2025-03-05 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:04:06 [end_date_ymd] => 2025-03-05 17:04:06 [RateCDR] => 1 ) [2025-03-05 17:04: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-03-05 14:04:06' and `end` < '2025-03-05 17:04: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-03-05 17:04:19] Production.INFO: count ==4687 [2025-03-05 17:04:21] Production.ERROR: pbx CDR StartTime 2025-03-05 14:04:06 - End Time 2025-03-05 17:04:06 [2025-03-05 17:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614549', 'tblTempUsageDetail_20' ) start [2025-03-05 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614549', 'tblTempUsageDetail_20' ) end [2025-03-05 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614549', 'tblTempVendorCDR_20' ) start [2025-03-05 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614549', 'tblTempVendorCDR_20' ) end [2025-03-05 17:04:21] Production.INFO: ProcessCDR(1,14614549,1,1,2) [2025-03-05 17:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614549', 'tblTempUsageDetail_20' ) start [2025-03-05 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614549', 'tblTempUsageDetail_20' ) end [2025-03-05 17:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:04:26] Production.INFO: ==27098== Releasing lock... [2025-03-05 17:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:04:26] Production.INFO: 63 MB #Memory Used# [2025-03-05 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:05:05 [end_date_ymd] => 2025-03-05 17:05:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 14:05:05' and `end` < '2025-03-05 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-03-05 17:05:18] Production.INFO: count ==4691 [2025-03-05 17:05:20] Production.ERROR: pbx CDR StartTime 2025-03-05 14:05:05 - End Time 2025-03-05 17:05:05 [2025-03-05 17:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614554', 'tblTempUsageDetail_20' ) start [2025-03-05 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614554', 'tblTempUsageDetail_20' ) end [2025-03-05 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614554', 'tblTempVendorCDR_20' ) start [2025-03-05 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614554', 'tblTempVendorCDR_20' ) end [2025-03-05 17:05:21] Production.INFO: ProcessCDR(1,14614554,1,1,2) [2025-03-05 17:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614554', 'tblTempUsageDetail_20' ) start [2025-03-05 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614554', 'tblTempUsageDetail_20' ) end [2025-03-05 17:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:05:26] Production.INFO: ==27179== Releasing lock... [2025-03-05 17:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:05:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-05 17:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:06:06 [end_date_ymd] => 2025-03-05 17:06:06 [RateCDR] => 1 ) [2025-03-05 17:06: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-03-05 14:06:06' and `end` < '2025-03-05 17:06: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-03-05 17:06:19] Production.INFO: count ==4676 [2025-03-05 17:06:21] Production.ERROR: pbx CDR StartTime 2025-03-05 14:06:06 - End Time 2025-03-05 17:06:06 [2025-03-05 17:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614559', 'tblTempUsageDetail_20' ) start [2025-03-05 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614559', 'tblTempUsageDetail_20' ) end [2025-03-05 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614559', 'tblTempVendorCDR_20' ) start [2025-03-05 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614559', 'tblTempVendorCDR_20' ) end [2025-03-05 17:06:21] Production.INFO: ProcessCDR(1,14614559,1,1,2) [2025-03-05 17:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614559', 'tblTempUsageDetail_20' ) start [2025-03-05 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614559', 'tblTempUsageDetail_20' ) end [2025-03-05 17:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:06:27] Production.INFO: ==27259== Releasing lock... [2025-03-05 17:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:06:27] Production.INFO: 63 MB #Memory Used# [2025-03-05 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:07:05 [end_date_ymd] => 2025-03-05 17:07:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 14:07:05' and `end` < '2025-03-05 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-03-05 17:07:18] Production.INFO: count ==4697 [2025-03-05 17:07:20] Production.ERROR: pbx CDR StartTime 2025-03-05 14:07:05 - End Time 2025-03-05 17:07:05 [2025-03-05 17:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614564', 'tblTempUsageDetail_20' ) start [2025-03-05 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614564', 'tblTempUsageDetail_20' ) end [2025-03-05 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614564', 'tblTempVendorCDR_20' ) start [2025-03-05 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614564', 'tblTempVendorCDR_20' ) end [2025-03-05 17:07:21] Production.INFO: ProcessCDR(1,14614564,1,1,2) [2025-03-05 17:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614564', 'tblTempUsageDetail_20' ) start [2025-03-05 17:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614564', 'tblTempUsageDetail_20' ) end [2025-03-05 17:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:07:26] Production.INFO: ==27344== Releasing lock... [2025-03-05 17:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:07:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-05 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:08:05 [end_date_ymd] => 2025-03-05 17:08:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 14:08:05' and `end` < '2025-03-05 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-03-05 17:08:18] Production.INFO: count ==4684 [2025-03-05 17:08:20] Production.ERROR: pbx CDR StartTime 2025-03-05 14:08:05 - End Time 2025-03-05 17:08:05 [2025-03-05 17:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614569', 'tblTempUsageDetail_20' ) start [2025-03-05 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614569', 'tblTempUsageDetail_20' ) end [2025-03-05 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614569', 'tblTempVendorCDR_20' ) start [2025-03-05 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614569', 'tblTempVendorCDR_20' ) end [2025-03-05 17:08:21] Production.INFO: ProcessCDR(1,14614569,1,1,2) [2025-03-05 17:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614569', 'tblTempUsageDetail_20' ) start [2025-03-05 17:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614569', 'tblTempUsageDetail_20' ) end [2025-03-05 17:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:08:24] Production.INFO: ==27426== Releasing lock... [2025-03-05 17:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:08:24] Production.INFO: 63 MB #Memory Used# [2025-03-05 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:09:05 [end_date_ymd] => 2025-03-05 17:09:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 14:09:05' and `end` < '2025-03-05 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-03-05 17:09:18] Production.INFO: count ==4675 [2025-03-05 17:09:20] Production.ERROR: pbx CDR StartTime 2025-03-05 14:09:05 - End Time 2025-03-05 17:09:05 [2025-03-05 17:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614574', 'tblTempUsageDetail_20' ) start [2025-03-05 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614574', 'tblTempUsageDetail_20' ) end [2025-03-05 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614574', 'tblTempVendorCDR_20' ) start [2025-03-05 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614574', 'tblTempVendorCDR_20' ) end [2025-03-05 17:09:21] Production.INFO: ProcessCDR(1,14614574,1,1,2) [2025-03-05 17:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614574', 'tblTempUsageDetail_20' ) start [2025-03-05 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614574', 'tblTempUsageDetail_20' ) end [2025-03-05 17:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:09:26] Production.INFO: ==27510== Releasing lock... [2025-03-05 17:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:09:26] Production.INFO: 63 MB #Memory Used# [2025-03-05 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:10:06 [end_date_ymd] => 2025-03-05 17:10:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 14:10:06' and `end` < '2025-03-05 17: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-03-05 17:10:19] Production.INFO: count ==4653 [2025-03-05 17:10:21] Production.ERROR: pbx CDR StartTime 2025-03-05 14:10:06 - End Time 2025-03-05 17:10:06 [2025-03-05 17:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614580', 'tblTempUsageDetail_20' ) start [2025-03-05 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614580', 'tblTempUsageDetail_20' ) end [2025-03-05 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614580', 'tblTempVendorCDR_20' ) start [2025-03-05 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614580', 'tblTempVendorCDR_20' ) end [2025-03-05 17:10:21] Production.INFO: ProcessCDR(1,14614580,1,1,2) [2025-03-05 17:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614580', 'tblTempUsageDetail_20' ) start [2025-03-05 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614580', 'tblTempUsageDetail_20' ) end [2025-03-05 17:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:10:26] Production.INFO: ==27596== Releasing lock... [2025-03-05 17:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:10:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-05 17:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:11:06 [end_date_ymd] => 2025-03-05 17:11:06 [RateCDR] => 1 ) [2025-03-05 17:11: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-03-05 14:11:06' and `end` < '2025-03-05 17:11: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-03-05 17:11:19] Production.INFO: count ==4639 [2025-03-05 17:11:21] Production.ERROR: pbx CDR StartTime 2025-03-05 14:11:06 - End Time 2025-03-05 17:11:06 [2025-03-05 17:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614585', 'tblTempUsageDetail_20' ) start [2025-03-05 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614585', 'tblTempUsageDetail_20' ) end [2025-03-05 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614585', 'tblTempVendorCDR_20' ) start [2025-03-05 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614585', 'tblTempVendorCDR_20' ) end [2025-03-05 17:11:21] Production.INFO: ProcessCDR(1,14614585,1,1,2) [2025-03-05 17:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614585', 'tblTempUsageDetail_20' ) start [2025-03-05 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614585', 'tblTempUsageDetail_20' ) end [2025-03-05 17:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:11:26] Production.INFO: ==27682== Releasing lock... [2025-03-05 17:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:11:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-05 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:12:05 [end_date_ymd] => 2025-03-05 17:12:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 14:12:05' and `end` < '2025-03-05 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-03-05 17:12:18] Production.INFO: count ==4638 [2025-03-05 17:12:20] Production.ERROR: pbx CDR StartTime 2025-03-05 14:12:05 - End Time 2025-03-05 17:12:05 [2025-03-05 17:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614590', 'tblTempUsageDetail_20' ) start [2025-03-05 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614590', 'tblTempUsageDetail_20' ) end [2025-03-05 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614590', 'tblTempVendorCDR_20' ) start [2025-03-05 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614590', 'tblTempVendorCDR_20' ) end [2025-03-05 17:12:21] Production.INFO: ProcessCDR(1,14614590,1,1,2) [2025-03-05 17:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614590', 'tblTempUsageDetail_20' ) start [2025-03-05 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614590', 'tblTempUsageDetail_20' ) end [2025-03-05 17:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:12:26] Production.INFO: ==27760== Releasing lock... [2025-03-05 17:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:12:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-05 17:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:13:05 [end_date_ymd] => 2025-03-05 17:13:05 [RateCDR] => 1 ) [2025-03-05 17:13: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-03-05 14:13:05' and `end` < '2025-03-05 17: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-03-05 17:13:18] Production.INFO: count ==4650 [2025-03-05 17:13:21] Production.ERROR: pbx CDR StartTime 2025-03-05 14:13:05 - End Time 2025-03-05 17:13:05 [2025-03-05 17:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614595', 'tblTempUsageDetail_20' ) start [2025-03-05 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614595', 'tblTempUsageDetail_20' ) end [2025-03-05 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614595', 'tblTempVendorCDR_20' ) start [2025-03-05 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614595', 'tblTempVendorCDR_20' ) end [2025-03-05 17:13:21] Production.INFO: ProcessCDR(1,14614595,1,1,2) [2025-03-05 17:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614595', 'tblTempUsageDetail_20' ) start [2025-03-05 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614595', 'tblTempUsageDetail_20' ) end [2025-03-05 17:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:13:26] Production.INFO: ==27835== Releasing lock... [2025-03-05 17:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:13:26] Production.INFO: 63 MB #Memory Used# [2025-03-05 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:14:05 [end_date_ymd] => 2025-03-05 17:14:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 14:14:05' and `end` < '2025-03-05 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-03-05 17:14:18] Production.INFO: count ==4657 [2025-03-05 17:14:20] Production.ERROR: pbx CDR StartTime 2025-03-05 14:14:05 - End Time 2025-03-05 17:14:05 [2025-03-05 17:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614600', 'tblTempUsageDetail_20' ) start [2025-03-05 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614600', 'tblTempUsageDetail_20' ) end [2025-03-05 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614600', 'tblTempVendorCDR_20' ) start [2025-03-05 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614600', 'tblTempVendorCDR_20' ) end [2025-03-05 17:14:21] Production.INFO: ProcessCDR(1,14614600,1,1,2) [2025-03-05 17:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614600', 'tblTempUsageDetail_20' ) start [2025-03-05 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614600', 'tblTempUsageDetail_20' ) end [2025-03-05 17:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:14:26] Production.INFO: ==27916== Releasing lock... [2025-03-05 17:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:14:26] Production.INFO: 63 MB #Memory Used# [2025-03-05 17:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:15:06 [end_date_ymd] => 2025-03-05 17:15:06 [RateCDR] => 1 ) [2025-03-05 17: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-03-05 14:15:06' and `end` < '2025-03-05 17: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-03-05 17:15:19] Production.INFO: count ==4634 [2025-03-05 17:15:21] Production.ERROR: pbx CDR StartTime 2025-03-05 14:15:06 - End Time 2025-03-05 17:15:06 [2025-03-05 17:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614605', 'tblTempUsageDetail_20' ) start [2025-03-05 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614605', 'tblTempUsageDetail_20' ) end [2025-03-05 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614605', 'tblTempVendorCDR_20' ) start [2025-03-05 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614605', 'tblTempVendorCDR_20' ) end [2025-03-05 17:15:21] Production.INFO: ProcessCDR(1,14614605,1,1,2) [2025-03-05 17:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614605', 'tblTempUsageDetail_20' ) start [2025-03-05 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614605', 'tblTempUsageDetail_20' ) end [2025-03-05 17:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:15:26] Production.INFO: ==28002== Releasing lock... [2025-03-05 17:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:15:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-05 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:16:05 [end_date_ymd] => 2025-03-05 17:16:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 14:16:05' and `end` < '2025-03-05 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-03-05 17:16:18] Production.INFO: count ==4619 [2025-03-05 17:16:20] Production.ERROR: pbx CDR StartTime 2025-03-05 14:16:05 - End Time 2025-03-05 17:16:05 [2025-03-05 17:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614610', 'tblTempUsageDetail_20' ) start [2025-03-05 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614610', 'tblTempUsageDetail_20' ) end [2025-03-05 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614610', 'tblTempVendorCDR_20' ) start [2025-03-05 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614610', 'tblTempVendorCDR_20' ) end [2025-03-05 17:16:20] Production.INFO: ProcessCDR(1,14614610,1,1,2) [2025-03-05 17:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614610', 'tblTempUsageDetail_20' ) start [2025-03-05 17:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614610', 'tblTempUsageDetail_20' ) end [2025-03-05 17:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:16:24] Production.INFO: ==28084== Releasing lock... [2025-03-05 17:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:16:24] Production.INFO: 62.5 MB #Memory Used# [2025-03-05 17:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:17:06 [end_date_ymd] => 2025-03-05 17:17:06 [RateCDR] => 1 ) [2025-03-05 17: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-03-05 14:17:06' and `end` < '2025-03-05 17: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-03-05 17:17:19] Production.INFO: count ==4618 [2025-03-05 17:17:21] Production.ERROR: pbx CDR StartTime 2025-03-05 14:17:06 - End Time 2025-03-05 17:17:06 [2025-03-05 17:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614615', 'tblTempUsageDetail_20' ) start [2025-03-05 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614615', 'tblTempUsageDetail_20' ) end [2025-03-05 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614615', 'tblTempVendorCDR_20' ) start [2025-03-05 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614615', 'tblTempVendorCDR_20' ) end [2025-03-05 17:17:21] Production.INFO: ProcessCDR(1,14614615,1,1,2) [2025-03-05 17:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614615', 'tblTempUsageDetail_20' ) start [2025-03-05 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614615', 'tblTempUsageDetail_20' ) end [2025-03-05 17:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:17:27] Production.INFO: ==28172== Releasing lock... [2025-03-05 17:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:17:27] Production.INFO: 62.5 MB #Memory Used# [2025-03-05 17:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:18:06 [end_date_ymd] => 2025-03-05 17:18:06 [RateCDR] => 1 ) [2025-03-05 17: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-03-05 14:18:06' and `end` < '2025-03-05 17: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-03-05 17:18:18] Production.INFO: count ==4595 [2025-03-05 17:18:20] Production.ERROR: pbx CDR StartTime 2025-03-05 14:18:06 - End Time 2025-03-05 17:18:06 [2025-03-05 17:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614620', 'tblTempUsageDetail_20' ) start [2025-03-05 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614620', 'tblTempUsageDetail_20' ) end [2025-03-05 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614620', 'tblTempVendorCDR_20' ) start [2025-03-05 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614620', 'tblTempVendorCDR_20' ) end [2025-03-05 17:18:21] Production.INFO: ProcessCDR(1,14614620,1,1,2) [2025-03-05 17:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614620', 'tblTempUsageDetail_20' ) start [2025-03-05 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614620', 'tblTempUsageDetail_20' ) end [2025-03-05 17:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:18:26] Production.INFO: ==28254== Releasing lock... [2025-03-05 17:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:18:26] Production.INFO: 62.5 MB #Memory Used# [2025-03-05 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:19:05 [end_date_ymd] => 2025-03-05 17:19:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 14:19:05' and `end` < '2025-03-05 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-03-05 17:19:18] Production.INFO: count ==4602 [2025-03-05 17:19:20] Production.ERROR: pbx CDR StartTime 2025-03-05 14:19:05 - End Time 2025-03-05 17:19:05 [2025-03-05 17:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614625', 'tblTempUsageDetail_20' ) start [2025-03-05 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614625', 'tblTempUsageDetail_20' ) end [2025-03-05 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614625', 'tblTempVendorCDR_20' ) start [2025-03-05 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614625', 'tblTempVendorCDR_20' ) end [2025-03-05 17:19:20] Production.INFO: ProcessCDR(1,14614625,1,1,2) [2025-03-05 17:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614625', 'tblTempUsageDetail_20' ) start [2025-03-05 17:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614625', 'tblTempUsageDetail_20' ) end [2025-03-05 17:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:19:23] Production.INFO: ==28375== Releasing lock... [2025-03-05 17:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:19:23] Production.INFO: 62.5 MB #Memory Used# [2025-03-05 17:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:20:05 [end_date_ymd] => 2025-03-05 17:20:05 [RateCDR] => 1 ) [2025-03-05 17: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-03-05 14:20:05' and `end` < '2025-03-05 17: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-03-05 17:20:18] Production.INFO: count ==4609 [2025-03-05 17:20:20] Production.ERROR: pbx CDR StartTime 2025-03-05 14:20:05 - End Time 2025-03-05 17:20:05 [2025-03-05 17:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614631', 'tblTempUsageDetail_20' ) start [2025-03-05 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614631', 'tblTempUsageDetail_20' ) end [2025-03-05 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614631', 'tblTempVendorCDR_20' ) start [2025-03-05 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614631', 'tblTempVendorCDR_20' ) end [2025-03-05 17:20:20] Production.INFO: ProcessCDR(1,14614631,1,1,2) [2025-03-05 17:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614631', 'tblTempUsageDetail_20' ) start [2025-03-05 17:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614631', 'tblTempUsageDetail_20' ) end [2025-03-05 17:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:20:25] Production.INFO: ==28454== Releasing lock... [2025-03-05 17:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:20:25] Production.INFO: 62.5 MB #Memory Used# [2025-03-05 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:21:05 [end_date_ymd] => 2025-03-05 17:21:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 14:21:05' and `end` < '2025-03-05 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-03-05 17:21:18] Production.INFO: count ==4549 [2025-03-05 17:21:20] Production.ERROR: pbx CDR StartTime 2025-03-05 14:21:05 - End Time 2025-03-05 17:21:05 [2025-03-05 17:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614636', 'tblTempUsageDetail_20' ) start [2025-03-05 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614636', 'tblTempUsageDetail_20' ) end [2025-03-05 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614636', 'tblTempVendorCDR_20' ) start [2025-03-05 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614636', 'tblTempVendorCDR_20' ) end [2025-03-05 17:21:20] Production.INFO: ProcessCDR(1,14614636,1,1,2) [2025-03-05 17:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614636', 'tblTempUsageDetail_20' ) start [2025-03-05 17:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614636', 'tblTempUsageDetail_20' ) end [2025-03-05 17:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:21:24] Production.INFO: ==28532== Releasing lock... [2025-03-05 17:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:21:24] Production.INFO: 62 MB #Memory Used# [2025-03-05 17:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:22:06 [end_date_ymd] => 2025-03-05 17:22:06 [RateCDR] => 1 ) [2025-03-05 17: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-03-05 14:22:06' and `end` < '2025-03-05 17:22: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-03-05 17:22:18] Production.INFO: count ==4532 [2025-03-05 17:22:20] Production.ERROR: pbx CDR StartTime 2025-03-05 14:22:06 - End Time 2025-03-05 17:22:06 [2025-03-05 17:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614641', 'tblTempUsageDetail_20' ) start [2025-03-05 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614641', 'tblTempUsageDetail_20' ) end [2025-03-05 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614641', 'tblTempVendorCDR_20' ) start [2025-03-05 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614641', 'tblTempVendorCDR_20' ) end [2025-03-05 17:22:20] Production.INFO: ProcessCDR(1,14614641,1,1,2) [2025-03-05 17:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614641', 'tblTempUsageDetail_20' ) start [2025-03-05 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614641', 'tblTempUsageDetail_20' ) end [2025-03-05 17:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:22:25] Production.INFO: ==28608== Releasing lock... [2025-03-05 17:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:22:25] Production.INFO: 62 MB #Memory Used# [2025-03-05 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:23:05 [end_date_ymd] => 2025-03-05 17:23:05 [RateCDR] => 1 ) [2025-03-05 17: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-03-05 14:23:05' and `end` < '2025-03-05 17: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-03-05 17:23:18] Production.INFO: count ==4515 [2025-03-05 17:23:19] Production.ERROR: pbx CDR StartTime 2025-03-05 14:23:05 - End Time 2025-03-05 17:23:05 [2025-03-05 17:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614646', 'tblTempUsageDetail_20' ) start [2025-03-05 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614646', 'tblTempUsageDetail_20' ) end [2025-03-05 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614646', 'tblTempVendorCDR_20' ) start [2025-03-05 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614646', 'tblTempVendorCDR_20' ) end [2025-03-05 17:23:20] Production.INFO: ProcessCDR(1,14614646,1,1,2) [2025-03-05 17:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614646', 'tblTempUsageDetail_20' ) start [2025-03-05 17:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614646', 'tblTempUsageDetail_20' ) end [2025-03-05 17:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:23:24] Production.INFO: ==28687== Releasing lock... [2025-03-05 17:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:23:24] Production.INFO: 61.75 MB #Memory Used# [2025-03-05 17:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:24:06 [end_date_ymd] => 2025-03-05 17:24:06 [RateCDR] => 1 ) [2025-03-05 17: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-03-05 14:24:06' and `end` < '2025-03-05 17: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-03-05 17:24:19] Production.INFO: count ==4517 [2025-03-05 17:24:20] Production.ERROR: pbx CDR StartTime 2025-03-05 14:24:06 - End Time 2025-03-05 17:24:06 [2025-03-05 17:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614651', 'tblTempUsageDetail_20' ) start [2025-03-05 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614651', 'tblTempUsageDetail_20' ) end [2025-03-05 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614651', 'tblTempVendorCDR_20' ) start [2025-03-05 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614651', 'tblTempVendorCDR_20' ) end [2025-03-05 17:24:21] Production.INFO: ProcessCDR(1,14614651,1,1,2) [2025-03-05 17:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614651', 'tblTempUsageDetail_20' ) start [2025-03-05 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614651', 'tblTempUsageDetail_20' ) end [2025-03-05 17:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:24:25] Production.INFO: ==28765== Releasing lock... [2025-03-05 17:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:24:25] Production.INFO: 61.75 MB #Memory Used# [2025-03-05 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:25:05 [end_date_ymd] => 2025-03-05 17:25:05 [RateCDR] => 1 ) [2025-03-05 17: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-03-05 14:25:05' and `end` < '2025-03-05 17: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-03-05 17:25:18] Production.INFO: count ==4498 [2025-03-05 17:26:05] Production.ERROR: pbx CDR StartTime 2025-03-05 14:25:05 - End Time 2025-03-05 17:25:05 [2025-03-05 17:26:05] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:26:05] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614656', 'tblTempUsageDetail_20' ) start [2025-03-05 17:26:10] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614656', 'tblTempUsageDetail_20' ) end [2025-03-05 17:26:10] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614656', 'tblTempVendorCDR_20' ) start [2025-03-05 17:26:12] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614656', 'tblTempVendorCDR_20' ) end [2025-03-05 17:26:12] Production.INFO: ProcessCDR(1,14614656,1,1,2) [2025-03-05 17:26:12] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:26:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:26:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:26:49] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:26:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614656', 'tblTempUsageDetail_20' ) start [2025-03-05 17:26:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614656', 'tblTempUsageDetail_20' ) end [2025-03-05 17:26:49] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:26:49] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:26:55] Production.INFO: ==28840== Releasing lock... [2025-03-05 17:26:55] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:26:55] Production.INFO: 61.75 MB #Memory Used# [2025-03-05 17:27:30] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:27:30 [end_date_ymd] => 2025-03-05 17:27:30 [RateCDR] => 1 ) [2025-03-05 17:27:30] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 14:27:30' and `end` < '2025-03-05 17:27:30' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-05 17:27:43] Production.INFO: count ==4481 [2025-03-05 17:28:28] Production.ERROR: pbx CDR StartTime 2025-03-05 14:27:30 - End Time 2025-03-05 17:27:30 [2025-03-05 17:28:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614664', 'tblTempUsageDetail_20' ) start [2025-03-05 17:28:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614664', 'tblTempUsageDetail_20' ) end [2025-03-05 17:28:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614664', 'tblTempVendorCDR_20' ) start [2025-03-05 17:28:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614664', 'tblTempVendorCDR_20' ) end [2025-03-05 17:28:32] Production.INFO: ProcessCDR(1,14614664,1,1,2) [2025-03-05 17:28:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:28:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:28:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:29:05] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:29:05] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614664', 'tblTempUsageDetail_20' ) start [2025-03-05 17:29:08] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614664', 'tblTempUsageDetail_20' ) end [2025-03-05 17:29:08] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:29:08] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:29:11] Production.INFO: ==28990== Releasing lock... [2025-03-05 17:29:11] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:29:11] Production.INFO: 61.5 MB #Memory Used# [2025-03-05 17:30:21] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:30:21 [end_date_ymd] => 2025-03-05 17:30:21 [RateCDR] => 1 ) [2025-03-05 17:30:21] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 14:30:21' and `end` < '2025-03-05 17:30:21' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-05 17:30:34] Production.INFO: count ==4444 [2025-03-05 17:31:09] Production.ERROR: pbx CDR StartTime 2025-03-05 14:30:21 - End Time 2025-03-05 17:30:21 [2025-03-05 17:31:09] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:31:09] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614676', 'tblTempUsageDetail_20' ) start [2025-03-05 17:31:11] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614676', 'tblTempUsageDetail_20' ) end [2025-03-05 17:31:11] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614676', 'tblTempVendorCDR_20' ) start [2025-03-05 17:31:11] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614676', 'tblTempVendorCDR_20' ) end [2025-03-05 17:31:11] Production.INFO: ProcessCDR(1,14614676,1,1,2) [2025-03-05 17:31:11] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:31:49] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:31:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614676', 'tblTempUsageDetail_20' ) start [2025-03-05 17:31:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614676', 'tblTempUsageDetail_20' ) end [2025-03-05 17:31:49] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:31:49] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:31:49] Production.INFO: ==29188== Releasing lock... [2025-03-05 17:31:49] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:31:49] Production.INFO: 61.25 MB #Memory Used# [2025-03-05 17:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:32:06 [end_date_ymd] => 2025-03-05 17:32:06 [RateCDR] => 1 ) [2025-03-05 17: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-03-05 14:32:06' and `end` < '2025-03-05 17: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-03-05 17:32:19] Production.INFO: count ==4420 [2025-03-05 17:32:21] Production.ERROR: pbx CDR StartTime 2025-03-05 14:32:06 - End Time 2025-03-05 17:32:06 [2025-03-05 17:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614685', 'tblTempUsageDetail_20' ) start [2025-03-05 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614685', 'tblTempUsageDetail_20' ) end [2025-03-05 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614685', 'tblTempVendorCDR_20' ) start [2025-03-05 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614685', 'tblTempVendorCDR_20' ) end [2025-03-05 17:32:21] Production.INFO: ProcessCDR(1,14614685,1,1,2) [2025-03-05 17:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614685', 'tblTempUsageDetail_20' ) start [2025-03-05 17:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614685', 'tblTempUsageDetail_20' ) end [2025-03-05 17:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:32:26] Production.INFO: ==29338== Releasing lock... [2025-03-05 17:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:32:26] Production.INFO: 61 MB #Memory Used# [2025-03-05 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:33:05 [end_date_ymd] => 2025-03-05 17:33:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 14:33:05' and `end` < '2025-03-05 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-03-05 17:33:19] Production.INFO: count ==4405 [2025-03-05 17:33:21] Production.ERROR: pbx CDR StartTime 2025-03-05 14:33:05 - End Time 2025-03-05 17:33:05 [2025-03-05 17:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614690', 'tblTempUsageDetail_20' ) start [2025-03-05 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614690', 'tblTempUsageDetail_20' ) end [2025-03-05 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614690', 'tblTempVendorCDR_20' ) start [2025-03-05 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614690', 'tblTempVendorCDR_20' ) end [2025-03-05 17:33:21] Production.INFO: ProcessCDR(1,14614690,1,1,2) [2025-03-05 17:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614690', 'tblTempUsageDetail_20' ) start [2025-03-05 17:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614690', 'tblTempUsageDetail_20' ) end [2025-03-05 17:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:33:27] Production.INFO: ==29408== Releasing lock... [2025-03-05 17:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:33:27] Production.INFO: 61 MB #Memory Used# [2025-03-05 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:34:05 [end_date_ymd] => 2025-03-05 17:34:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 14:34:05' and `end` < '2025-03-05 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-03-05 17:34:18] Production.INFO: count ==4375 [2025-03-05 17:34:20] Production.ERROR: pbx CDR StartTime 2025-03-05 14:34:05 - End Time 2025-03-05 17:34:05 [2025-03-05 17:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614695', 'tblTempUsageDetail_20' ) start [2025-03-05 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614695', 'tblTempUsageDetail_20' ) end [2025-03-05 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614695', 'tblTempVendorCDR_20' ) start [2025-03-05 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614695', 'tblTempVendorCDR_20' ) end [2025-03-05 17:34:20] Production.INFO: ProcessCDR(1,14614695,1,1,2) [2025-03-05 17:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614695', 'tblTempUsageDetail_20' ) start [2025-03-05 17:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614695', 'tblTempUsageDetail_20' ) end [2025-03-05 17:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:34:25] Production.INFO: ==29521== Releasing lock... [2025-03-05 17:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:34:25] Production.INFO: 60.75 MB #Memory Used# [2025-03-05 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:35:05 [end_date_ymd] => 2025-03-05 17:35:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 14:35:05' and `end` < '2025-03-05 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-03-05 17:35:18] Production.INFO: count ==4383 [2025-03-05 17:35:20] Production.ERROR: pbx CDR StartTime 2025-03-05 14:35:05 - End Time 2025-03-05 17:35:05 [2025-03-05 17:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614700', 'tblTempUsageDetail_20' ) start [2025-03-05 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614700', 'tblTempUsageDetail_20' ) end [2025-03-05 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614700', 'tblTempVendorCDR_20' ) start [2025-03-05 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614700', 'tblTempVendorCDR_20' ) end [2025-03-05 17:35:20] Production.INFO: ProcessCDR(1,14614700,1,1,2) [2025-03-05 17:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614700', 'tblTempUsageDetail_20' ) start [2025-03-05 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614700', 'tblTempUsageDetail_20' ) end [2025-03-05 17:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:35:25] Production.INFO: ==29594== Releasing lock... [2025-03-05 17:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:35:25] Production.INFO: 61 MB #Memory Used# [2025-03-05 17:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:36:06 [end_date_ymd] => 2025-03-05 17:36:06 [RateCDR] => 1 ) [2025-03-05 17:36: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-03-05 14:36:06' and `end` < '2025-03-05 17:36: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-03-05 17:36:19] Production.INFO: count ==4375 [2025-03-05 17:36:20] Production.ERROR: pbx CDR StartTime 2025-03-05 14:36:06 - End Time 2025-03-05 17:36:06 [2025-03-05 17:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614705', 'tblTempUsageDetail_20' ) start [2025-03-05 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614705', 'tblTempUsageDetail_20' ) end [2025-03-05 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614705', 'tblTempVendorCDR_20' ) start [2025-03-05 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614705', 'tblTempVendorCDR_20' ) end [2025-03-05 17:36:20] Production.INFO: ProcessCDR(1,14614705,1,1,2) [2025-03-05 17:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614705', 'tblTempUsageDetail_20' ) start [2025-03-05 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614705', 'tblTempUsageDetail_20' ) end [2025-03-05 17:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:36:24] Production.INFO: ==29673== Releasing lock... [2025-03-05 17:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:36:24] Production.INFO: 61 MB #Memory Used# [2025-03-05 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:37:05 [end_date_ymd] => 2025-03-05 17:37:05 [RateCDR] => 1 ) [2025-03-05 17: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-03-05 14:37:05' and `end` < '2025-03-05 17: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-03-05 17:37:18] Production.INFO: count ==4364 [2025-03-05 17:37:20] Production.ERROR: pbx CDR StartTime 2025-03-05 14:37:05 - End Time 2025-03-05 17:37:05 [2025-03-05 17:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614710', 'tblTempUsageDetail_20' ) start [2025-03-05 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614710', 'tblTempUsageDetail_20' ) end [2025-03-05 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614710', 'tblTempVendorCDR_20' ) start [2025-03-05 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614710', 'tblTempVendorCDR_20' ) end [2025-03-05 17:37:20] Production.INFO: ProcessCDR(1,14614710,1,1,2) [2025-03-05 17:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614710', 'tblTempUsageDetail_20' ) start [2025-03-05 17:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614710', 'tblTempUsageDetail_20' ) end [2025-03-05 17:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:37:23] Production.INFO: ==29743== Releasing lock... [2025-03-05 17:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:37:23] Production.INFO: 60.75 MB #Memory Used# [2025-03-05 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:38:05 [end_date_ymd] => 2025-03-05 17:38:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 14:38:05' and `end` < '2025-03-05 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-03-05 17:38:18] Production.INFO: count ==4368 [2025-03-05 17:38:20] Production.ERROR: pbx CDR StartTime 2025-03-05 14:38:05 - End Time 2025-03-05 17:38:05 [2025-03-05 17:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614715', 'tblTempUsageDetail_20' ) start [2025-03-05 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614715', 'tblTempUsageDetail_20' ) end [2025-03-05 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614715', 'tblTempVendorCDR_20' ) start [2025-03-05 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614715', 'tblTempVendorCDR_20' ) end [2025-03-05 17:38:20] Production.INFO: ProcessCDR(1,14614715,1,1,2) [2025-03-05 17:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614715', 'tblTempUsageDetail_20' ) start [2025-03-05 17:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614715', 'tblTempUsageDetail_20' ) end [2025-03-05 17:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:38:24] Production.INFO: ==29820== Releasing lock... [2025-03-05 17:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:38:24] Production.INFO: 60.75 MB #Memory Used# [2025-03-05 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:39:05 [end_date_ymd] => 2025-03-05 17:39:05 [RateCDR] => 1 ) [2025-03-05 17: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-03-05 14:39:05' and `end` < '2025-03-05 17: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-03-05 17:39:18] Production.INFO: count ==4358 [2025-03-05 17:39:19] Production.ERROR: pbx CDR StartTime 2025-03-05 14:39:05 - End Time 2025-03-05 17:39:05 [2025-03-05 17:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614720', 'tblTempUsageDetail_20' ) start [2025-03-05 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614720', 'tblTempUsageDetail_20' ) end [2025-03-05 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614720', 'tblTempVendorCDR_20' ) start [2025-03-05 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614720', 'tblTempVendorCDR_20' ) end [2025-03-05 17:39:20] Production.INFO: ProcessCDR(1,14614720,1,1,2) [2025-03-05 17:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614720', 'tblTempUsageDetail_20' ) start [2025-03-05 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614720', 'tblTempUsageDetail_20' ) end [2025-03-05 17:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:39:23] Production.INFO: ==29894== Releasing lock... [2025-03-05 17:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:39:23] Production.INFO: 60.75 MB #Memory Used# [2025-03-05 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:40:06 [end_date_ymd] => 2025-03-05 17:40:06 [RateCDR] => 1 ) [2025-03-05 17: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-03-05 14:40:06' and `end` < '2025-03-05 17: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-03-05 17:40:19] Production.INFO: count ==4360 [2025-03-05 17:40:20] Production.ERROR: pbx CDR StartTime 2025-03-05 14:40:06 - End Time 2025-03-05 17:40:06 [2025-03-05 17:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614725', 'tblTempUsageDetail_20' ) start [2025-03-05 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614725', 'tblTempUsageDetail_20' ) end [2025-03-05 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614725', 'tblTempVendorCDR_20' ) start [2025-03-05 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614725', 'tblTempVendorCDR_20' ) end [2025-03-05 17:40:20] Production.INFO: ProcessCDR(1,14614725,1,1,2) [2025-03-05 17:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614725', 'tblTempUsageDetail_20' ) start [2025-03-05 17:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614725', 'tblTempUsageDetail_20' ) end [2025-03-05 17:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:40:25] Production.INFO: ==29969== Releasing lock... [2025-03-05 17:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:40:25] Production.INFO: 60.75 MB #Memory Used# [2025-03-05 17:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:41:06 [end_date_ymd] => 2025-03-05 17:41:06 [RateCDR] => 1 ) [2025-03-05 17:41: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-03-05 14:41:06' and `end` < '2025-03-05 17:41: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-03-05 17:41:19] Production.INFO: count ==4363 [2025-03-05 17:41:21] Production.ERROR: pbx CDR StartTime 2025-03-05 14:41:06 - End Time 2025-03-05 17:41:06 [2025-03-05 17:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614731', 'tblTempUsageDetail_20' ) start [2025-03-05 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614731', 'tblTempUsageDetail_20' ) end [2025-03-05 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614731', 'tblTempVendorCDR_20' ) start [2025-03-05 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614731', 'tblTempVendorCDR_20' ) end [2025-03-05 17:41:21] Production.INFO: ProcessCDR(1,14614731,1,1,2) [2025-03-05 17:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614731', 'tblTempUsageDetail_20' ) start [2025-03-05 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614731', 'tblTempUsageDetail_20' ) end [2025-03-05 17:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:41:26] Production.INFO: ==30050== Releasing lock... [2025-03-05 17:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:41:26] Production.INFO: 60.75 MB #Memory Used# [2025-03-05 17:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:42:06 [end_date_ymd] => 2025-03-05 17:42:06 [RateCDR] => 1 ) [2025-03-05 17: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-03-05 14:42:06' and `end` < '2025-03-05 17: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-03-05 17:42:18] Production.INFO: count ==4358 [2025-03-05 17:42:20] Production.ERROR: pbx CDR StartTime 2025-03-05 14:42:06 - End Time 2025-03-05 17:42:06 [2025-03-05 17:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614736', 'tblTempUsageDetail_20' ) start [2025-03-05 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614736', 'tblTempUsageDetail_20' ) end [2025-03-05 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614736', 'tblTempVendorCDR_20' ) start [2025-03-05 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614736', 'tblTempVendorCDR_20' ) end [2025-03-05 17:42:20] Production.INFO: ProcessCDR(1,14614736,1,1,2) [2025-03-05 17:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614736', 'tblTempUsageDetail_20' ) start [2025-03-05 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614736', 'tblTempUsageDetail_20' ) end [2025-03-05 17:42:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:42:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:42:25] Production.INFO: ==30123== Releasing lock... [2025-03-05 17:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:42:25] Production.INFO: 60.5 MB #Memory Used# [2025-03-05 17:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:43:06 [end_date_ymd] => 2025-03-05 17:43:06 [RateCDR] => 1 ) [2025-03-05 17: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-03-05 14:43:06' and `end` < '2025-03-05 17: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-03-05 17:43:18] Production.INFO: count ==4369 [2025-03-05 17:43:20] Production.ERROR: pbx CDR StartTime 2025-03-05 14:43:06 - End Time 2025-03-05 17:43:06 [2025-03-05 17:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614741', 'tblTempUsageDetail_20' ) start [2025-03-05 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614741', 'tblTempUsageDetail_20' ) end [2025-03-05 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614741', 'tblTempVendorCDR_20' ) start [2025-03-05 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614741', 'tblTempVendorCDR_20' ) end [2025-03-05 17:43:20] Production.INFO: ProcessCDR(1,14614741,1,1,2) [2025-03-05 17:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614741', 'tblTempUsageDetail_20' ) start [2025-03-05 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614741', 'tblTempUsageDetail_20' ) end [2025-03-05 17:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:43:25] Production.INFO: ==30196== Releasing lock... [2025-03-05 17:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:43:25] Production.INFO: 60.75 MB #Memory Used# [2025-03-05 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:44:05 [end_date_ymd] => 2025-03-05 17:44:05 [RateCDR] => 1 ) [2025-03-05 17: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-03-05 14:44:05' and `end` < '2025-03-05 17: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-03-05 17:44:18] Production.INFO: count ==4369 [2025-03-05 17:44:19] Production.ERROR: pbx CDR StartTime 2025-03-05 14:44:05 - End Time 2025-03-05 17:44:05 [2025-03-05 17:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614746', 'tblTempUsageDetail_20' ) start [2025-03-05 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614746', 'tblTempUsageDetail_20' ) end [2025-03-05 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614746', 'tblTempVendorCDR_20' ) start [2025-03-05 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614746', 'tblTempVendorCDR_20' ) end [2025-03-05 17:44:19] Production.INFO: ProcessCDR(1,14614746,1,1,2) [2025-03-05 17:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614746', 'tblTempUsageDetail_20' ) start [2025-03-05 17:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614746', 'tblTempUsageDetail_20' ) end [2025-03-05 17:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:44:24] Production.INFO: ==30268== Releasing lock... [2025-03-05 17:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:44:24] Production.INFO: 60.75 MB #Memory Used# [2025-03-05 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:45:05 [end_date_ymd] => 2025-03-05 17:45:05 [RateCDR] => 1 ) [2025-03-05 17: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-03-05 14:45:05' and `end` < '2025-03-05 17: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-03-05 17:45:18] Production.INFO: count ==4345 [2025-03-05 17:45:20] Production.ERROR: pbx CDR StartTime 2025-03-05 14:45:05 - End Time 2025-03-05 17:45:05 [2025-03-05 17:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614751', 'tblTempUsageDetail_20' ) start [2025-03-05 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614751', 'tblTempUsageDetail_20' ) end [2025-03-05 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614751', 'tblTempVendorCDR_20' ) start [2025-03-05 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614751', 'tblTempVendorCDR_20' ) end [2025-03-05 17:45:20] Production.INFO: ProcessCDR(1,14614751,1,1,2) [2025-03-05 17:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614751', 'tblTempUsageDetail_20' ) start [2025-03-05 17:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614751', 'tblTempUsageDetail_20' ) end [2025-03-05 17:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:45:23] Production.INFO: ==30348== Releasing lock... [2025-03-05 17:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:45:23] Production.INFO: 60.5 MB #Memory Used# [2025-03-05 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:46:05 [end_date_ymd] => 2025-03-05 17:46:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 14:46:05' and `end` < '2025-03-05 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-03-05 17:46:18] Production.INFO: count ==4306 [2025-03-05 17:46:19] Production.ERROR: pbx CDR StartTime 2025-03-05 14:46:05 - End Time 2025-03-05 17:46:05 [2025-03-05 17:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614756', 'tblTempUsageDetail_20' ) start [2025-03-05 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614756', 'tblTempUsageDetail_20' ) end [2025-03-05 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614756', 'tblTempVendorCDR_20' ) start [2025-03-05 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614756', 'tblTempVendorCDR_20' ) end [2025-03-05 17:46:19] Production.INFO: ProcessCDR(1,14614756,1,1,2) [2025-03-05 17:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614756', 'tblTempUsageDetail_20' ) start [2025-03-05 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614756', 'tblTempUsageDetail_20' ) end [2025-03-05 17:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:46:24] Production.INFO: ==30427== Releasing lock... [2025-03-05 17:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:46:24] Production.INFO: 60.25 MB #Memory Used# [2025-03-05 17:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:47:06 [end_date_ymd] => 2025-03-05 17:47:06 [RateCDR] => 1 ) [2025-03-05 17:47: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-03-05 14:47:06' and `end` < '2025-03-05 17:47: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-03-05 17:47:18] Production.INFO: count ==4260 [2025-03-05 17:47:20] Production.ERROR: pbx CDR StartTime 2025-03-05 14:47:06 - End Time 2025-03-05 17:47:06 [2025-03-05 17:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614761', 'tblTempUsageDetail_20' ) start [2025-03-05 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614761', 'tblTempUsageDetail_20' ) end [2025-03-05 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614761', 'tblTempVendorCDR_20' ) start [2025-03-05 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614761', 'tblTempVendorCDR_20' ) end [2025-03-05 17:47:20] Production.INFO: ProcessCDR(1,14614761,1,1,2) [2025-03-05 17:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614761', 'tblTempUsageDetail_20' ) start [2025-03-05 17:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614761', 'tblTempUsageDetail_20' ) end [2025-03-05 17:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:47:23] Production.INFO: ==30500== Releasing lock... [2025-03-05 17:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:47:23] Production.INFO: 60 MB #Memory Used# [2025-03-05 17:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:48:04 [end_date_ymd] => 2025-03-05 17:48:04 [RateCDR] => 1 ) [2025-03-05 17: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-03-05 14:48:04' and `end` < '2025-03-05 17: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-03-05 17:48:17] Production.INFO: count ==4257 [2025-03-05 17:48:19] Production.ERROR: pbx CDR StartTime 2025-03-05 14:48:04 - End Time 2025-03-05 17:48:04 [2025-03-05 17:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614766', 'tblTempUsageDetail_20' ) start [2025-03-05 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614766', 'tblTempUsageDetail_20' ) end [2025-03-05 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614766', 'tblTempVendorCDR_20' ) start [2025-03-05 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614766', 'tblTempVendorCDR_20' ) end [2025-03-05 17:48:19] Production.INFO: ProcessCDR(1,14614766,1,1,2) [2025-03-05 17:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614766', 'tblTempUsageDetail_20' ) start [2025-03-05 17:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614766', 'tblTempUsageDetail_20' ) end [2025-03-05 17:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:48:24] Production.INFO: ==30574== Releasing lock... [2025-03-05 17:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:48:24] Production.INFO: 60 MB #Memory Used# [2025-03-05 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:49:05 [end_date_ymd] => 2025-03-05 17:49:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 14:49:05' and `end` < '2025-03-05 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-03-05 17:49:18] Production.INFO: count ==4240 [2025-03-05 17:49:19] Production.ERROR: pbx CDR StartTime 2025-03-05 14:49:05 - End Time 2025-03-05 17:49:05 [2025-03-05 17:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614771', 'tblTempUsageDetail_20' ) start [2025-03-05 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614771', 'tblTempUsageDetail_20' ) end [2025-03-05 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614771', 'tblTempVendorCDR_20' ) start [2025-03-05 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614771', 'tblTempVendorCDR_20' ) end [2025-03-05 17:49:19] Production.INFO: ProcessCDR(1,14614771,1,1,2) [2025-03-05 17:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614771', 'tblTempUsageDetail_20' ) start [2025-03-05 17:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614771', 'tblTempUsageDetail_20' ) end [2025-03-05 17:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:49:23] Production.INFO: ==30687== Releasing lock... [2025-03-05 17:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:49:23] Production.INFO: 60 MB #Memory Used# [2025-03-05 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:50:06 [end_date_ymd] => 2025-03-05 17:50:06 [RateCDR] => 1 ) [2025-03-05 17: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-03-05 14:50:06' and `end` < '2025-03-05 17: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-03-05 17:50:19] Production.INFO: count ==4213 [2025-03-05 17:50:20] Production.ERROR: pbx CDR StartTime 2025-03-05 14:50:06 - End Time 2025-03-05 17:50:06 [2025-03-05 17:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614777', 'tblTempUsageDetail_20' ) start [2025-03-05 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614777', 'tblTempUsageDetail_20' ) end [2025-03-05 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614777', 'tblTempVendorCDR_20' ) start [2025-03-05 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614777', 'tblTempVendorCDR_20' ) end [2025-03-05 17:50:20] Production.INFO: ProcessCDR(1,14614777,1,1,2) [2025-03-05 17:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614777', 'tblTempUsageDetail_20' ) start [2025-03-05 17:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614777', 'tblTempUsageDetail_20' ) end [2025-03-05 17:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:50:23] Production.INFO: ==30764== Releasing lock... [2025-03-05 17:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:50:23] Production.INFO: 59.5 MB #Memory Used# [2025-03-05 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:51:05 [end_date_ymd] => 2025-03-05 17:51:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 14:51:05' and `end` < '2025-03-05 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-03-05 17:51:18] Production.INFO: count ==4183 [2025-03-05 17:51:19] Production.ERROR: pbx CDR StartTime 2025-03-05 14:51:05 - End Time 2025-03-05 17:51:05 [2025-03-05 17:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614782', 'tblTempUsageDetail_20' ) start [2025-03-05 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614782', 'tblTempUsageDetail_20' ) end [2025-03-05 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614782', 'tblTempVendorCDR_20' ) start [2025-03-05 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614782', 'tblTempVendorCDR_20' ) end [2025-03-05 17:51:19] Production.INFO: ProcessCDR(1,14614782,1,1,2) [2025-03-05 17:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614782', 'tblTempUsageDetail_20' ) start [2025-03-05 17:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614782', 'tblTempUsageDetail_20' ) end [2025-03-05 17:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:51:24] Production.INFO: ==30842== Releasing lock... [2025-03-05 17:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:51:24] Production.INFO: 59.25 MB #Memory Used# [2025-03-05 17:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:52:06 [end_date_ymd] => 2025-03-05 17:52:06 [RateCDR] => 1 ) [2025-03-05 17: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-03-05 14:52:06' and `end` < '2025-03-05 17: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-03-05 17:52:19] Production.INFO: count ==4167 [2025-03-05 17:52:20] Production.ERROR: pbx CDR StartTime 2025-03-05 14:52:06 - End Time 2025-03-05 17:52:06 [2025-03-05 17:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614787', 'tblTempUsageDetail_20' ) start [2025-03-05 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614787', 'tblTempUsageDetail_20' ) end [2025-03-05 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614787', 'tblTempVendorCDR_20' ) start [2025-03-05 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614787', 'tblTempVendorCDR_20' ) end [2025-03-05 17:52:21] Production.INFO: ProcessCDR(1,14614787,1,1,2) [2025-03-05 17:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614787', 'tblTempUsageDetail_20' ) start [2025-03-05 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614787', 'tblTempUsageDetail_20' ) end [2025-03-05 17:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:52:24] Production.INFO: ==30916== Releasing lock... [2025-03-05 17:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:52:24] Production.INFO: 59.25 MB #Memory Used# [2025-03-05 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:53:05 [end_date_ymd] => 2025-03-05 17:53:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 14:53:05' and `end` < '2025-03-05 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-03-05 17:53:18] Production.INFO: count ==4162 [2025-03-05 17:53:20] Production.ERROR: pbx CDR StartTime 2025-03-05 14:53:05 - End Time 2025-03-05 17:53:05 [2025-03-05 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614792', 'tblTempUsageDetail_20' ) start [2025-03-05 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614792', 'tblTempUsageDetail_20' ) end [2025-03-05 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614792', 'tblTempVendorCDR_20' ) start [2025-03-05 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614792', 'tblTempVendorCDR_20' ) end [2025-03-05 17:53:20] Production.INFO: ProcessCDR(1,14614792,1,1,2) [2025-03-05 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614792', 'tblTempUsageDetail_20' ) start [2025-03-05 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614792', 'tblTempUsageDetail_20' ) end [2025-03-05 17:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:53:25] Production.INFO: ==30987== Releasing lock... [2025-03-05 17:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:53:25] Production.INFO: 59.25 MB #Memory Used# [2025-03-05 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:54:05 [end_date_ymd] => 2025-03-05 17:54:05 [RateCDR] => 1 ) [2025-03-05 17: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-03-05 14:54:05' and `end` < '2025-03-05 17: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-03-05 17:54:18] Production.INFO: count ==4142 [2025-03-05 17:54:19] Production.ERROR: pbx CDR StartTime 2025-03-05 14:54:05 - End Time 2025-03-05 17:54:05 [2025-03-05 17:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614797', 'tblTempUsageDetail_20' ) start [2025-03-05 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614797', 'tblTempUsageDetail_20' ) end [2025-03-05 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614797', 'tblTempVendorCDR_20' ) start [2025-03-05 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614797', 'tblTempVendorCDR_20' ) end [2025-03-05 17:54:19] Production.INFO: ProcessCDR(1,14614797,1,1,2) [2025-03-05 17:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614797', 'tblTempUsageDetail_20' ) start [2025-03-05 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614797', 'tblTempUsageDetail_20' ) end [2025-03-05 17:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:54:22] Production.INFO: ==31066== Releasing lock... [2025-03-05 17:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:54:22] Production.INFO: 59.25 MB #Memory Used# [2025-03-05 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:55:05 [end_date_ymd] => 2025-03-05 17:55:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 14:55:05' and `end` < '2025-03-05 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-03-05 17:55:18] Production.INFO: count ==4155 [2025-03-05 17:55:20] Production.ERROR: pbx CDR StartTime 2025-03-05 14:55:05 - End Time 2025-03-05 17:55:05 [2025-03-05 17:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614802', 'tblTempUsageDetail_20' ) start [2025-03-05 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614802', 'tblTempUsageDetail_20' ) end [2025-03-05 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614802', 'tblTempVendorCDR_20' ) start [2025-03-05 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614802', 'tblTempVendorCDR_20' ) end [2025-03-05 17:55:20] Production.INFO: ProcessCDR(1,14614802,1,1,2) [2025-03-05 17:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614802', 'tblTempUsageDetail_20' ) start [2025-03-05 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614802', 'tblTempUsageDetail_20' ) end [2025-03-05 17:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:55:25] Production.INFO: ==31147== Releasing lock... [2025-03-05 17:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:55:25] Production.INFO: 59 MB #Memory Used# [2025-03-05 17:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:56:06 [end_date_ymd] => 2025-03-05 17:56:06 [RateCDR] => 1 ) [2025-03-05 17: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-03-05 14:56:06' and `end` < '2025-03-05 17: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-03-05 17:56:19] Production.INFO: count ==4128 [2025-03-05 17:56:20] Production.ERROR: pbx CDR StartTime 2025-03-05 14:56:06 - End Time 2025-03-05 17:56:06 [2025-03-05 17:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614807', 'tblTempUsageDetail_20' ) start [2025-03-05 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614807', 'tblTempUsageDetail_20' ) end [2025-03-05 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614807', 'tblTempVendorCDR_20' ) start [2025-03-05 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614807', 'tblTempVendorCDR_20' ) end [2025-03-05 17:56:20] Production.INFO: ProcessCDR(1,14614807,1,1,2) [2025-03-05 17:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614807', 'tblTempUsageDetail_20' ) start [2025-03-05 17:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614807', 'tblTempUsageDetail_20' ) end [2025-03-05 17:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:56:23] Production.INFO: ==31221== Releasing lock... [2025-03-05 17:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:56:23] Production.INFO: 59 MB #Memory Used# [2025-03-05 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:57:05 [end_date_ymd] => 2025-03-05 17:57:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 14:57:05' and `end` < '2025-03-05 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-03-05 17:57:18] Production.INFO: count ==4118 [2025-03-05 17:57:20] Production.ERROR: pbx CDR StartTime 2025-03-05 14:57:05 - End Time 2025-03-05 17:57:05 [2025-03-05 17:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614812', 'tblTempUsageDetail_20' ) start [2025-03-05 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614812', 'tblTempUsageDetail_20' ) end [2025-03-05 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614812', 'tblTempVendorCDR_20' ) start [2025-03-05 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614812', 'tblTempVendorCDR_20' ) end [2025-03-05 17:57:20] Production.INFO: ProcessCDR(1,14614812,1,1,2) [2025-03-05 17:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614812', 'tblTempUsageDetail_20' ) start [2025-03-05 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614812', 'tblTempUsageDetail_20' ) end [2025-03-05 17:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:57:25] Production.INFO: ==31306== Releasing lock... [2025-03-05 17:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:57:25] Production.INFO: 58.75 MB #Memory Used# [2025-03-05 17:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:58:06 [end_date_ymd] => 2025-03-05 17:58:06 [RateCDR] => 1 ) [2025-03-05 17: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-03-05 14:58:06' and `end` < '2025-03-05 17: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-03-05 17:58:18] Production.INFO: count ==4111 [2025-03-05 17:58:20] Production.ERROR: pbx CDR StartTime 2025-03-05 14:58:06 - End Time 2025-03-05 17:58:06 [2025-03-05 17:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614817', 'tblTempUsageDetail_20' ) start [2025-03-05 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614817', 'tblTempUsageDetail_20' ) end [2025-03-05 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614817', 'tblTempVendorCDR_20' ) start [2025-03-05 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614817', 'tblTempVendorCDR_20' ) end [2025-03-05 17:58:20] Production.INFO: ProcessCDR(1,14614817,1,1,2) [2025-03-05 17:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614817', 'tblTempUsageDetail_20' ) start [2025-03-05 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614817', 'tblTempUsageDetail_20' ) end [2025-03-05 17:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:58:25] Production.INFO: ==31386== Releasing lock... [2025-03-05 17:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:58:25] Production.INFO: 58.75 MB #Memory Used# [2025-03-05 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 14:59:05 [end_date_ymd] => 2025-03-05 17:59:05 [RateCDR] => 1 ) [2025-03-05 17: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-03-05 14:59:05' and `end` < '2025-03-05 17: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-03-05 17:59:18] Production.INFO: count ==4089 [2025-03-05 17:59:19] Production.ERROR: pbx CDR StartTime 2025-03-05 14:59:05 - End Time 2025-03-05 17:59:05 [2025-03-05 17:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614822', 'tblTempUsageDetail_20' ) start [2025-03-05 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614822', 'tblTempUsageDetail_20' ) end [2025-03-05 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614822', 'tblTempVendorCDR_20' ) start [2025-03-05 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614822', 'tblTempVendorCDR_20' ) end [2025-03-05 17:59:19] Production.INFO: ProcessCDR(1,14614822,1,1,2) [2025-03-05 17:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 17:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 17:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614822', 'tblTempUsageDetail_20' ) start [2025-03-05 17:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614822', 'tblTempUsageDetail_20' ) end [2025-03-05 17:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 17:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 17:59:22] Production.INFO: ==31461== Releasing lock... [2025-03-05 17:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 17:59:22] Production.INFO: 58.5 MB #Memory Used# [2025-03-05 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:00:06 [end_date_ymd] => 2025-03-05 18:00:06 [RateCDR] => 1 ) [2025-03-05 18: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-03-05 15:00:06' and `end` < '2025-03-05 18: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-03-05 18:00:19] Production.INFO: count ==4078 [2025-03-05 18:00:20] Production.ERROR: pbx CDR StartTime 2025-03-05 15:00:06 - End Time 2025-03-05 18:00:06 [2025-03-05 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614827', 'tblTempUsageDetail_20' ) start [2025-03-05 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614827', 'tblTempUsageDetail_20' ) end [2025-03-05 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614827', 'tblTempVendorCDR_20' ) start [2025-03-05 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614827', 'tblTempVendorCDR_20' ) end [2025-03-05 18:00:21] Production.INFO: ProcessCDR(1,14614827,1,1,2) [2025-03-05 18:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614827', 'tblTempUsageDetail_20' ) start [2025-03-05 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614827', 'tblTempUsageDetail_20' ) end [2025-03-05 18:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:00:25] Production.INFO: ==31546== Releasing lock... [2025-03-05 18:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:00:25] Production.INFO: 58.5 MB #Memory Used# [2025-03-05 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:01:05 [end_date_ymd] => 2025-03-05 18:01:05 [RateCDR] => 1 ) [2025-03-05 18: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-03-05 15:01:05' and `end` < '2025-03-05 18: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-03-05 18:01:17] Production.INFO: count ==4085 [2025-03-05 18:01:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:01:05 - End Time 2025-03-05 18:01:05 [2025-03-05 18:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614833', 'tblTempUsageDetail_20' ) start [2025-03-05 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614833', 'tblTempUsageDetail_20' ) end [2025-03-05 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614833', 'tblTempVendorCDR_20' ) start [2025-03-05 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614833', 'tblTempVendorCDR_20' ) end [2025-03-05 18:01:19] Production.INFO: ProcessCDR(1,14614833,1,1,2) [2025-03-05 18:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614833', 'tblTempUsageDetail_20' ) start [2025-03-05 18:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614833', 'tblTempUsageDetail_20' ) end [2025-03-05 18:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:01:23] Production.INFO: ==31645== Releasing lock... [2025-03-05 18:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:01:23] Production.INFO: 58.5 MB #Memory Used# [2025-03-05 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:02:05 [end_date_ymd] => 2025-03-05 18:02:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 15:02:05' and `end` < '2025-03-05 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-03-05 18:02:18] Production.INFO: count ==4063 [2025-03-05 18:02:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:02:05 - End Time 2025-03-05 18:02:05 [2025-03-05 18:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614838', 'tblTempUsageDetail_20' ) start [2025-03-05 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614838', 'tblTempUsageDetail_20' ) end [2025-03-05 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614838', 'tblTempVendorCDR_20' ) start [2025-03-05 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614838', 'tblTempVendorCDR_20' ) end [2025-03-05 18:02:19] Production.INFO: ProcessCDR(1,14614838,1,1,2) [2025-03-05 18:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614838', 'tblTempUsageDetail_20' ) start [2025-03-05 18:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614838', 'tblTempUsageDetail_20' ) end [2025-03-05 18:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:02:24] Production.INFO: ==31723== Releasing lock... [2025-03-05 18:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:02:24] Production.INFO: 58.5 MB #Memory Used# [2025-03-05 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:03:05 [end_date_ymd] => 2025-03-05 18:03:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 15:03:05' and `end` < '2025-03-05 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-03-05 18:03:18] Production.INFO: count ==4038 [2025-03-05 18:03:20] Production.ERROR: pbx CDR StartTime 2025-03-05 15:03:05 - End Time 2025-03-05 18:03:05 [2025-03-05 18:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614843', 'tblTempUsageDetail_20' ) start [2025-03-05 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614843', 'tblTempUsageDetail_20' ) end [2025-03-05 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614843', 'tblTempVendorCDR_20' ) start [2025-03-05 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614843', 'tblTempVendorCDR_20' ) end [2025-03-05 18:03:20] Production.INFO: ProcessCDR(1,14614843,1,1,2) [2025-03-05 18:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614843', 'tblTempUsageDetail_20' ) start [2025-03-05 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614843', 'tblTempUsageDetail_20' ) end [2025-03-05 18:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:03:24] Production.INFO: ==31799== Releasing lock... [2025-03-05 18:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:03:24] Production.INFO: 58.75 MB #Memory Used# [2025-03-05 18:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:04:06 [end_date_ymd] => 2025-03-05 18:04:06 [RateCDR] => 1 ) [2025-03-05 18:04: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-03-05 15:04:06' and `end` < '2025-03-05 18:04: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-03-05 18:04:18] Production.INFO: count ==4034 [2025-03-05 18:04:20] Production.ERROR: pbx CDR StartTime 2025-03-05 15:04:06 - End Time 2025-03-05 18:04:06 [2025-03-05 18:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614848', 'tblTempUsageDetail_20' ) start [2025-03-05 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614848', 'tblTempUsageDetail_20' ) end [2025-03-05 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614848', 'tblTempVendorCDR_20' ) start [2025-03-05 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614848', 'tblTempVendorCDR_20' ) end [2025-03-05 18:04:20] Production.INFO: ProcessCDR(1,14614848,1,1,2) [2025-03-05 18:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614848', 'tblTempUsageDetail_20' ) start [2025-03-05 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614848', 'tblTempUsageDetail_20' ) end [2025-03-05 18:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:04:25] Production.INFO: ==31875== Releasing lock... [2025-03-05 18:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:04:25] Production.INFO: 58.25 MB #Memory Used# [2025-03-05 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:05:05 [end_date_ymd] => 2025-03-05 18:05:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 15:05:05' and `end` < '2025-03-05 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-03-05 18:05:18] Production.INFO: count ==4022 [2025-03-05 18:05:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:05:05 - End Time 2025-03-05 18:05:05 [2025-03-05 18:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614853', 'tblTempUsageDetail_20' ) start [2025-03-05 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614853', 'tblTempUsageDetail_20' ) end [2025-03-05 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614853', 'tblTempVendorCDR_20' ) start [2025-03-05 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614853', 'tblTempVendorCDR_20' ) end [2025-03-05 18:05:19] Production.INFO: ProcessCDR(1,14614853,1,1,2) [2025-03-05 18:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614853', 'tblTempUsageDetail_20' ) start [2025-03-05 18:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614853', 'tblTempUsageDetail_20' ) end [2025-03-05 18:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:05:24] Production.INFO: ==31986== Releasing lock... [2025-03-05 18:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:05:24] Production.INFO: 58 MB #Memory Used# [2025-03-05 18:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:06:06 [end_date_ymd] => 2025-03-05 18:06:06 [RateCDR] => 1 ) [2025-03-05 18:06: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-03-05 15:06:06' and `end` < '2025-03-05 18:06: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-03-05 18:06:18] Production.INFO: count ==4021 [2025-03-05 18:06:20] Production.ERROR: pbx CDR StartTime 2025-03-05 15:06:06 - End Time 2025-03-05 18:06:06 [2025-03-05 18:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614858', 'tblTempUsageDetail_20' ) start [2025-03-05 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614858', 'tblTempUsageDetail_20' ) end [2025-03-05 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614858', 'tblTempVendorCDR_20' ) start [2025-03-05 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614858', 'tblTempVendorCDR_20' ) end [2025-03-05 18:06:20] Production.INFO: ProcessCDR(1,14614858,1,1,2) [2025-03-05 18:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614858', 'tblTempUsageDetail_20' ) start [2025-03-05 18:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614858', 'tblTempUsageDetail_20' ) end [2025-03-05 18:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:06:23] Production.INFO: ==32063== Releasing lock... [2025-03-05 18:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:06:23] Production.INFO: 58.25 MB #Memory Used# [2025-03-05 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:07:05 [end_date_ymd] => 2025-03-05 18:07:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 15:07:05' and `end` < '2025-03-05 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-03-05 18:07:18] Production.INFO: count ==3988 [2025-03-05 18:07:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:07:05 - End Time 2025-03-05 18:07:05 [2025-03-05 18:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614863', 'tblTempUsageDetail_20' ) start [2025-03-05 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614863', 'tblTempUsageDetail_20' ) end [2025-03-05 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614863', 'tblTempVendorCDR_20' ) start [2025-03-05 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614863', 'tblTempVendorCDR_20' ) end [2025-03-05 18:07:20] Production.INFO: ProcessCDR(1,14614863,1,1,2) [2025-03-05 18:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614863', 'tblTempUsageDetail_20' ) start [2025-03-05 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614863', 'tblTempUsageDetail_20' ) end [2025-03-05 18:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:07:24] Production.INFO: ==32137== Releasing lock... [2025-03-05 18:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:07:24] Production.INFO: 57.75 MB #Memory Used# [2025-03-05 18:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:08:06 [end_date_ymd] => 2025-03-05 18:08:06 [RateCDR] => 1 ) [2025-03-05 18:08: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-03-05 15:08:06' and `end` < '2025-03-05 18:08: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-03-05 18:08:18] Production.INFO: count ==3969 [2025-03-05 18:08:20] Production.ERROR: pbx CDR StartTime 2025-03-05 15:08:06 - End Time 2025-03-05 18:08:06 [2025-03-05 18:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614868', 'tblTempUsageDetail_20' ) start [2025-03-05 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614868', 'tblTempUsageDetail_20' ) end [2025-03-05 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614868', 'tblTempVendorCDR_20' ) start [2025-03-05 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614868', 'tblTempVendorCDR_20' ) end [2025-03-05 18:08:20] Production.INFO: ProcessCDR(1,14614868,1,1,2) [2025-03-05 18:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614868', 'tblTempUsageDetail_20' ) start [2025-03-05 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614868', 'tblTempUsageDetail_20' ) end [2025-03-05 18:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:08:23] Production.INFO: ==32214== Releasing lock... [2025-03-05 18:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:08:23] Production.INFO: 57.75 MB #Memory Used# [2025-03-05 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:09:05 [end_date_ymd] => 2025-03-05 18:09:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 15:09:05' and `end` < '2025-03-05 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-03-05 18:09:18] Production.INFO: count ==3940 [2025-03-05 18:09:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:09:05 - End Time 2025-03-05 18:09:05 [2025-03-05 18:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614873', 'tblTempUsageDetail_20' ) start [2025-03-05 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614873', 'tblTempUsageDetail_20' ) end [2025-03-05 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614873', 'tblTempVendorCDR_20' ) start [2025-03-05 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614873', 'tblTempVendorCDR_20' ) end [2025-03-05 18:09:19] Production.INFO: ProcessCDR(1,14614873,1,1,2) [2025-03-05 18:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614873', 'tblTempUsageDetail_20' ) start [2025-03-05 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614873', 'tblTempUsageDetail_20' ) end [2025-03-05 18:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:09:23] Production.INFO: ==32291== Releasing lock... [2025-03-05 18:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:09:23] Production.INFO: 57.5 MB #Memory Used# [2025-03-05 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:10:06 [end_date_ymd] => 2025-03-05 18:10:06 [RateCDR] => 1 ) [2025-03-05 18: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-03-05 15:10:06' and `end` < '2025-03-05 18: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-03-05 18:10:19] Production.INFO: count ==3955 [2025-03-05 18:10:20] Production.ERROR: pbx CDR StartTime 2025-03-05 15:10:06 - End Time 2025-03-05 18:10:06 [2025-03-05 18:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614879', 'tblTempUsageDetail_20' ) start [2025-03-05 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614879', 'tblTempUsageDetail_20' ) end [2025-03-05 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614879', 'tblTempVendorCDR_20' ) start [2025-03-05 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614879', 'tblTempVendorCDR_20' ) end [2025-03-05 18:10:21] Production.INFO: ProcessCDR(1,14614879,1,1,2) [2025-03-05 18:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614879', 'tblTempUsageDetail_20' ) start [2025-03-05 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614879', 'tblTempUsageDetail_20' ) end [2025-03-05 18:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:10:24] Production.INFO: ==32365== Releasing lock... [2025-03-05 18:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:10:24] Production.INFO: 57.5 MB #Memory Used# [2025-03-05 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:11:05 [end_date_ymd] => 2025-03-05 18:11:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 15:11:05' and `end` < '2025-03-05 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-03-05 18:11:18] Production.INFO: count ==3928 [2025-03-05 18:11:20] Production.ERROR: pbx CDR StartTime 2025-03-05 15:11:05 - End Time 2025-03-05 18:11:05 [2025-03-05 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614884', 'tblTempUsageDetail_20' ) start [2025-03-05 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614884', 'tblTempUsageDetail_20' ) end [2025-03-05 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614884', 'tblTempVendorCDR_20' ) start [2025-03-05 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614884', 'tblTempVendorCDR_20' ) end [2025-03-05 18:11:20] Production.INFO: ProcessCDR(1,14614884,1,1,2) [2025-03-05 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614884', 'tblTempUsageDetail_20' ) start [2025-03-05 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614884', 'tblTempUsageDetail_20' ) end [2025-03-05 18:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:11:25] Production.INFO: ==32444== Releasing lock... [2025-03-05 18:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:11:25] Production.INFO: 57.75 MB #Memory Used# [2025-03-05 18:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:12:06 [end_date_ymd] => 2025-03-05 18:12:06 [RateCDR] => 1 ) [2025-03-05 18:12: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-03-05 15:12:06' and `end` < '2025-03-05 18:12: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-03-05 18:12:19] Production.INFO: count ==3886 [2025-03-05 18:12:20] Production.ERROR: pbx CDR StartTime 2025-03-05 15:12:06 - End Time 2025-03-05 18:12:06 [2025-03-05 18:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614889', 'tblTempUsageDetail_20' ) start [2025-03-05 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614889', 'tblTempUsageDetail_20' ) end [2025-03-05 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614889', 'tblTempVendorCDR_20' ) start [2025-03-05 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614889', 'tblTempVendorCDR_20' ) end [2025-03-05 18:12:20] Production.INFO: ProcessCDR(1,14614889,1,1,2) [2025-03-05 18:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614889', 'tblTempUsageDetail_20' ) start [2025-03-05 18:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614889', 'tblTempUsageDetail_20' ) end [2025-03-05 18:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:12:26] Production.INFO: ==32518== Releasing lock... [2025-03-05 18:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:12:26] Production.INFO: 57 MB #Memory Used# [2025-03-05 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:13:05 [end_date_ymd] => 2025-03-05 18:13:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 15:13:05' and `end` < '2025-03-05 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-03-05 18:13:18] Production.INFO: count ==3895 [2025-03-05 18:13:20] Production.ERROR: pbx CDR StartTime 2025-03-05 15:13:05 - End Time 2025-03-05 18:13:05 [2025-03-05 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614894', 'tblTempUsageDetail_20' ) start [2025-03-05 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614894', 'tblTempUsageDetail_20' ) end [2025-03-05 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614894', 'tblTempVendorCDR_20' ) start [2025-03-05 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614894', 'tblTempVendorCDR_20' ) end [2025-03-05 18:13:20] Production.INFO: ProcessCDR(1,14614894,1,1,2) [2025-03-05 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614894', 'tblTempUsageDetail_20' ) start [2025-03-05 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614894', 'tblTempUsageDetail_20' ) end [2025-03-05 18:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:13:25] Production.INFO: ==32590== Releasing lock... [2025-03-05 18:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:13:25] Production.INFO: 57.25 MB #Memory Used# [2025-03-05 18:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:14:06 [end_date_ymd] => 2025-03-05 18:14:06 [RateCDR] => 1 ) [2025-03-05 18:14: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-03-05 15:14:06' and `end` < '2025-03-05 18:14: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-03-05 18:14:18] Production.INFO: count ==3878 [2025-03-05 18:14:20] Production.ERROR: pbx CDR StartTime 2025-03-05 15:14:06 - End Time 2025-03-05 18:14:06 [2025-03-05 18:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614899', 'tblTempUsageDetail_20' ) start [2025-03-05 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614899', 'tblTempUsageDetail_20' ) end [2025-03-05 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614899', 'tblTempVendorCDR_20' ) start [2025-03-05 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614899', 'tblTempVendorCDR_20' ) end [2025-03-05 18:14:20] Production.INFO: ProcessCDR(1,14614899,1,1,2) [2025-03-05 18:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614899', 'tblTempUsageDetail_20' ) start [2025-03-05 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614899', 'tblTempUsageDetail_20' ) end [2025-03-05 18:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:14:25] Production.INFO: ==32668== Releasing lock... [2025-03-05 18:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:14:25] Production.INFO: 57.5 MB #Memory Used# [2025-03-05 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:15:05 [end_date_ymd] => 2025-03-05 18:15:05 [RateCDR] => 1 ) [2025-03-05 18: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-03-05 15:15:05' and `end` < '2025-03-05 18: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-03-05 18:15:18] Production.INFO: count ==3874 [2025-03-05 18:15:20] Production.ERROR: pbx CDR StartTime 2025-03-05 15:15:05 - End Time 2025-03-05 18:15:05 [2025-03-05 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614904', 'tblTempUsageDetail_20' ) start [2025-03-05 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614904', 'tblTempUsageDetail_20' ) end [2025-03-05 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614904', 'tblTempVendorCDR_20' ) start [2025-03-05 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614904', 'tblTempVendorCDR_20' ) end [2025-03-05 18:15:20] Production.INFO: ProcessCDR(1,14614904,1,1,2) [2025-03-05 18:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614904', 'tblTempUsageDetail_20' ) start [2025-03-05 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614904', 'tblTempUsageDetail_20' ) end [2025-03-05 18:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:15:25] Production.INFO: ==32754== Releasing lock... [2025-03-05 18:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:15:25] Production.INFO: 57.5 MB #Memory Used# [2025-03-05 18:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:16:06 [end_date_ymd] => 2025-03-05 18:16:06 [RateCDR] => 1 ) [2025-03-05 18:16: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-03-05 15:16:06' and `end` < '2025-03-05 18:16: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-03-05 18:16:19] Production.INFO: count ==3875 [2025-03-05 18:16:20] Production.ERROR: pbx CDR StartTime 2025-03-05 15:16:06 - End Time 2025-03-05 18:16:06 [2025-03-05 18:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614909', 'tblTempUsageDetail_20' ) start [2025-03-05 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614909', 'tblTempUsageDetail_20' ) end [2025-03-05 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614909', 'tblTempVendorCDR_20' ) start [2025-03-05 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614909', 'tblTempVendorCDR_20' ) end [2025-03-05 18:16:20] Production.INFO: ProcessCDR(1,14614909,1,1,2) [2025-03-05 18:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614909', 'tblTempUsageDetail_20' ) start [2025-03-05 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614909', 'tblTempUsageDetail_20' ) end [2025-03-05 18:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:16:24] Production.INFO: ==378== Releasing lock... [2025-03-05 18:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:16:24] Production.INFO: 57 MB #Memory Used# [2025-03-05 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:17:05 [end_date_ymd] => 2025-03-05 18:17:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 15:17:05' and `end` < '2025-03-05 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-03-05 18:17:18] Production.INFO: count ==3851 [2025-03-05 18:17:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:17:05 - End Time 2025-03-05 18:17:05 [2025-03-05 18:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614914', 'tblTempUsageDetail_20' ) start [2025-03-05 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614914', 'tblTempUsageDetail_20' ) end [2025-03-05 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614914', 'tblTempVendorCDR_20' ) start [2025-03-05 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614914', 'tblTempVendorCDR_20' ) end [2025-03-05 18:17:19] Production.INFO: ProcessCDR(1,14614914,1,1,2) [2025-03-05 18:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614914', 'tblTempUsageDetail_20' ) start [2025-03-05 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614914', 'tblTempUsageDetail_20' ) end [2025-03-05 18:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:17:24] Production.INFO: ==455== Releasing lock... [2025-03-05 18:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:17:24] Production.INFO: 56.75 MB #Memory Used# [2025-03-05 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:18:05 [end_date_ymd] => 2025-03-05 18:18:05 [RateCDR] => 1 ) [2025-03-05 18: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-03-05 15:18:05' and `end` < '2025-03-05 18: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-03-05 18:18:18] Production.INFO: count ==3853 [2025-03-05 18:18:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:18:05 - End Time 2025-03-05 18:18:05 [2025-03-05 18:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614919', 'tblTempUsageDetail_20' ) start [2025-03-05 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614919', 'tblTempUsageDetail_20' ) end [2025-03-05 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614919', 'tblTempVendorCDR_20' ) start [2025-03-05 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614919', 'tblTempVendorCDR_20' ) end [2025-03-05 18:18:20] Production.INFO: ProcessCDR(1,14614919,1,1,2) [2025-03-05 18:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614919', 'tblTempUsageDetail_20' ) start [2025-03-05 18:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614919', 'tblTempUsageDetail_20' ) end [2025-03-05 18:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:18:23] Production.INFO: ==533== Releasing lock... [2025-03-05 18:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:18:23] Production.INFO: 57.25 MB #Memory Used# [2025-03-05 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:19:05 [end_date_ymd] => 2025-03-05 18:19:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 15:19:05' and `end` < '2025-03-05 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-03-05 18:19:18] Production.INFO: count ==3841 [2025-03-05 18:19:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:19:05 - End Time 2025-03-05 18:19:05 [2025-03-05 18:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614924', 'tblTempUsageDetail_20' ) start [2025-03-05 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614924', 'tblTempUsageDetail_20' ) end [2025-03-05 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614924', 'tblTempVendorCDR_20' ) start [2025-03-05 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614924', 'tblTempVendorCDR_20' ) end [2025-03-05 18:19:19] Production.INFO: ProcessCDR(1,14614924,1,1,2) [2025-03-05 18:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614924', 'tblTempUsageDetail_20' ) start [2025-03-05 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614924', 'tblTempUsageDetail_20' ) end [2025-03-05 18:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:19:23] Production.INFO: ==609== Releasing lock... [2025-03-05 18:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:19:23] Production.INFO: 56.75 MB #Memory Used# [2025-03-05 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:20:06 [end_date_ymd] => 2025-03-05 18:20:06 [RateCDR] => 1 ) [2025-03-05 18: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-03-05 15:20:06' and `end` < '2025-03-05 18: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-03-05 18:20:19] Production.INFO: count ==3845 [2025-03-05 18:20:20] Production.ERROR: pbx CDR StartTime 2025-03-05 15:20:06 - End Time 2025-03-05 18:20:06 [2025-03-05 18:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614930', 'tblTempUsageDetail_20' ) start [2025-03-05 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614930', 'tblTempUsageDetail_20' ) end [2025-03-05 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614930', 'tblTempVendorCDR_20' ) start [2025-03-05 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614930', 'tblTempVendorCDR_20' ) end [2025-03-05 18:20:21] Production.INFO: ProcessCDR(1,14614930,1,1,2) [2025-03-05 18:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614930', 'tblTempUsageDetail_20' ) start [2025-03-05 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614930', 'tblTempUsageDetail_20' ) end [2025-03-05 18:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:20:25] Production.INFO: ==756== Releasing lock... [2025-03-05 18:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:20:25] Production.INFO: 57 MB #Memory Used# [2025-03-05 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:21:05 [end_date_ymd] => 2025-03-05 18:21:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 15:21:05' and `end` < '2025-03-05 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-03-05 18:21:17] Production.INFO: count ==3800 [2025-03-05 18:21:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:21:05 - End Time 2025-03-05 18:21:05 [2025-03-05 18:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614935', 'tblTempUsageDetail_20' ) start [2025-03-05 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614935', 'tblTempUsageDetail_20' ) end [2025-03-05 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614935', 'tblTempVendorCDR_20' ) start [2025-03-05 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614935', 'tblTempVendorCDR_20' ) end [2025-03-05 18:21:19] Production.INFO: ProcessCDR(1,14614935,1,1,2) [2025-03-05 18:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614935', 'tblTempUsageDetail_20' ) start [2025-03-05 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614935', 'tblTempUsageDetail_20' ) end [2025-03-05 18:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:21:23] Production.INFO: ==831== Releasing lock... [2025-03-05 18:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:21:23] Production.INFO: 56.5 MB #Memory Used# [2025-03-05 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:22:05 [end_date_ymd] => 2025-03-05 18:22:05 [RateCDR] => 1 ) [2025-03-05 18: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-03-05 15:22:05' and `end` < '2025-03-05 18: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-03-05 18:22:18] Production.INFO: count ==3791 [2025-03-05 18:22:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:22:05 - End Time 2025-03-05 18:22:05 [2025-03-05 18:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614940', 'tblTempUsageDetail_20' ) start [2025-03-05 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614940', 'tblTempUsageDetail_20' ) end [2025-03-05 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614940', 'tblTempVendorCDR_20' ) start [2025-03-05 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614940', 'tblTempVendorCDR_20' ) end [2025-03-05 18:22:20] Production.INFO: ProcessCDR(1,14614940,1,1,2) [2025-03-05 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614940', 'tblTempUsageDetail_20' ) start [2025-03-05 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614940', 'tblTempUsageDetail_20' ) end [2025-03-05 18:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:22:25] Production.INFO: ==901== Releasing lock... [2025-03-05 18:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:22:25] Production.INFO: 57 MB #Memory Used# [2025-03-05 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:23:05 [end_date_ymd] => 2025-03-05 18:23:05 [RateCDR] => 1 ) [2025-03-05 18: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-03-05 15:23:05' and `end` < '2025-03-05 18: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-03-05 18:23:18] Production.INFO: count ==3773 [2025-03-05 18:23:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:23:05 - End Time 2025-03-05 18:23:05 [2025-03-05 18:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614945', 'tblTempUsageDetail_20' ) start [2025-03-05 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614945', 'tblTempUsageDetail_20' ) end [2025-03-05 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614945', 'tblTempVendorCDR_20' ) start [2025-03-05 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614945', 'tblTempVendorCDR_20' ) end [2025-03-05 18:23:20] Production.INFO: ProcessCDR(1,14614945,1,1,2) [2025-03-05 18:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614945', 'tblTempUsageDetail_20' ) start [2025-03-05 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614945', 'tblTempUsageDetail_20' ) end [2025-03-05 18:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:23:24] Production.INFO: ==978== Releasing lock... [2025-03-05 18:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:23:24] Production.INFO: 56.5 MB #Memory Used# [2025-03-05 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:24:05 [end_date_ymd] => 2025-03-05 18:24:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 15:24:05' and `end` < '2025-03-05 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-03-05 18:24:18] Production.INFO: count ==3761 [2025-03-05 18:24:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:24:05 - End Time 2025-03-05 18:24:05 [2025-03-05 18:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614950', 'tblTempUsageDetail_20' ) start [2025-03-05 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614950', 'tblTempUsageDetail_20' ) end [2025-03-05 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614950', 'tblTempVendorCDR_20' ) start [2025-03-05 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614950', 'tblTempVendorCDR_20' ) end [2025-03-05 18:24:19] Production.INFO: ProcessCDR(1,14614950,1,1,2) [2025-03-05 18:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614950', 'tblTempUsageDetail_20' ) start [2025-03-05 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614950', 'tblTempUsageDetail_20' ) end [2025-03-05 18:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:24:23] Production.INFO: ==1057== Releasing lock... [2025-03-05 18:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:24:23] Production.INFO: 56 MB #Memory Used# [2025-03-05 18:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:25:04 [end_date_ymd] => 2025-03-05 18:25:04 [RateCDR] => 1 ) [2025-03-05 18: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-03-05 15:25:04' and `end` < '2025-03-05 18: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-03-05 18:25:17] Production.INFO: count ==3746 [2025-03-05 18:25:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:25:04 - End Time 2025-03-05 18:25:04 [2025-03-05 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614955', 'tblTempUsageDetail_20' ) start [2025-03-05 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614955', 'tblTempUsageDetail_20' ) end [2025-03-05 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614955', 'tblTempVendorCDR_20' ) start [2025-03-05 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614955', 'tblTempVendorCDR_20' ) end [2025-03-05 18:25:19] Production.INFO: ProcessCDR(1,14614955,1,1,2) [2025-03-05 18:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614955', 'tblTempUsageDetail_20' ) start [2025-03-05 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614955', 'tblTempUsageDetail_20' ) end [2025-03-05 18:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:25:23] Production.INFO: ==1128== Releasing lock... [2025-03-05 18:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:25:23] Production.INFO: 56.25 MB #Memory Used# [2025-03-05 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:26:05 [end_date_ymd] => 2025-03-05 18:26:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 15:26:05' and `end` < '2025-03-05 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-03-05 18:26:18] Production.INFO: count ==3745 [2025-03-05 18:26:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:26:05 - End Time 2025-03-05 18:26:05 [2025-03-05 18:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614960', 'tblTempUsageDetail_20' ) start [2025-03-05 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614960', 'tblTempUsageDetail_20' ) end [2025-03-05 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614960', 'tblTempVendorCDR_20' ) start [2025-03-05 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614960', 'tblTempVendorCDR_20' ) end [2025-03-05 18:26:19] Production.INFO: ProcessCDR(1,14614960,1,1,2) [2025-03-05 18:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614960', 'tblTempUsageDetail_20' ) start [2025-03-05 18:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614960', 'tblTempUsageDetail_20' ) end [2025-03-05 18:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:26:24] Production.INFO: ==1213== Releasing lock... [2025-03-05 18:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:26:24] Production.INFO: 56.5 MB #Memory Used# [2025-03-05 18:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:27:06 [end_date_ymd] => 2025-03-05 18:27:06 [RateCDR] => 1 ) [2025-03-05 18: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-03-05 15:27:06' and `end` < '2025-03-05 18: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-03-05 18:27:19] Production.INFO: count ==3750 [2025-03-05 18:27:20] Production.ERROR: pbx CDR StartTime 2025-03-05 15:27:06 - End Time 2025-03-05 18:27:06 [2025-03-05 18:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614965', 'tblTempUsageDetail_20' ) start [2025-03-05 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614965', 'tblTempUsageDetail_20' ) end [2025-03-05 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614965', 'tblTempVendorCDR_20' ) start [2025-03-05 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614965', 'tblTempVendorCDR_20' ) end [2025-03-05 18:27:20] Production.INFO: ProcessCDR(1,14614965,1,1,2) [2025-03-05 18:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614965', 'tblTempUsageDetail_20' ) start [2025-03-05 18:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614965', 'tblTempUsageDetail_20' ) end [2025-03-05 18:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:27:24] Production.INFO: ==1300== Releasing lock... [2025-03-05 18:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:27:24] Production.INFO: 57 MB #Memory Used# [2025-03-05 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:28:05 [end_date_ymd] => 2025-03-05 18:28:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 15:28:05' and `end` < '2025-03-05 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-03-05 18:28:18] Production.INFO: count ==3737 [2025-03-05 18:28:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:28:05 - End Time 2025-03-05 18:28:05 [2025-03-05 18:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614970', 'tblTempUsageDetail_20' ) start [2025-03-05 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614970', 'tblTempUsageDetail_20' ) end [2025-03-05 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614970', 'tblTempVendorCDR_20' ) start [2025-03-05 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614970', 'tblTempVendorCDR_20' ) end [2025-03-05 18:28:19] Production.INFO: ProcessCDR(1,14614970,1,1,2) [2025-03-05 18:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614970', 'tblTempUsageDetail_20' ) start [2025-03-05 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614970', 'tblTempUsageDetail_20' ) end [2025-03-05 18:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:28:24] Production.INFO: ==1369== Releasing lock... [2025-03-05 18:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:28:24] Production.INFO: 56 MB #Memory Used# [2025-03-05 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:29:05 [end_date_ymd] => 2025-03-05 18:29:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 15:29:05' and `end` < '2025-03-05 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-03-05 18:29:18] Production.INFO: count ==3726 [2025-03-05 18:29:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:29:05 - End Time 2025-03-05 18:29:05 [2025-03-05 18:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614975', 'tblTempUsageDetail_20' ) start [2025-03-05 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614975', 'tblTempUsageDetail_20' ) end [2025-03-05 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614975', 'tblTempVendorCDR_20' ) start [2025-03-05 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614975', 'tblTempVendorCDR_20' ) end [2025-03-05 18:29:19] Production.INFO: ProcessCDR(1,14614975,1,1,2) [2025-03-05 18:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614975', 'tblTempUsageDetail_20' ) start [2025-03-05 18:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614975', 'tblTempUsageDetail_20' ) end [2025-03-05 18:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:29:24] Production.INFO: ==1450== Releasing lock... [2025-03-05 18:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:29:24] Production.INFO: 55.75 MB #Memory Used# [2025-03-05 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:30:06 [end_date_ymd] => 2025-03-05 18:30:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 15:30:06' and `end` < '2025-03-05 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-03-05 18:30:18] Production.INFO: count ==3722 [2025-03-05 18:30:20] Production.ERROR: pbx CDR StartTime 2025-03-05 15:30:06 - End Time 2025-03-05 18:30:06 [2025-03-05 18:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614981', 'tblTempUsageDetail_20' ) start [2025-03-05 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614981', 'tblTempUsageDetail_20' ) end [2025-03-05 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614981', 'tblTempVendorCDR_20' ) start [2025-03-05 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614981', 'tblTempVendorCDR_20' ) end [2025-03-05 18:30:20] Production.INFO: ProcessCDR(1,14614981,1,1,2) [2025-03-05 18:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614981', 'tblTempUsageDetail_20' ) start [2025-03-05 18:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614981', 'tblTempUsageDetail_20' ) end [2025-03-05 18:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:30:23] Production.INFO: ==1562== Releasing lock... [2025-03-05 18:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:30:23] Production.INFO: 56.5 MB #Memory Used# [2025-03-05 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:31:05 [end_date_ymd] => 2025-03-05 18:31:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 15:31:05' and `end` < '2025-03-05 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-03-05 18:31:18] Production.INFO: count ==3695 [2025-03-05 18:31:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:31:05 - End Time 2025-03-05 18:31:05 [2025-03-05 18:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614986', 'tblTempUsageDetail_20' ) start [2025-03-05 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614986', 'tblTempUsageDetail_20' ) end [2025-03-05 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614986', 'tblTempVendorCDR_20' ) start [2025-03-05 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614986', 'tblTempVendorCDR_20' ) end [2025-03-05 18:31:19] Production.INFO: ProcessCDR(1,14614986,1,1,2) [2025-03-05 18:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614986', 'tblTempUsageDetail_20' ) start [2025-03-05 18:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614986', 'tblTempUsageDetail_20' ) end [2025-03-05 18:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:31:22] Production.INFO: ==1643== Releasing lock... [2025-03-05 18:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:31:22] Production.INFO: 55.75 MB #Memory Used# [2025-03-05 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:32:05 [end_date_ymd] => 2025-03-05 18:32:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 15:32:05' and `end` < '2025-03-05 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-03-05 18:32:18] Production.INFO: count ==3677 [2025-03-05 18:32:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:32:05 - End Time 2025-03-05 18:32:05 [2025-03-05 18:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614991', 'tblTempUsageDetail_20' ) start [2025-03-05 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614991', 'tblTempUsageDetail_20' ) end [2025-03-05 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614991', 'tblTempVendorCDR_20' ) start [2025-03-05 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614991', 'tblTempVendorCDR_20' ) end [2025-03-05 18:32:19] Production.INFO: ProcessCDR(1,14614991,1,1,2) [2025-03-05 18:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614991', 'tblTempUsageDetail_20' ) start [2025-03-05 18:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614991', 'tblTempUsageDetail_20' ) end [2025-03-05 18:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:32:25] Production.INFO: ==1713== Releasing lock... [2025-03-05 18:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:32:25] Production.INFO: 55.75 MB #Memory Used# [2025-03-05 18:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:33:06 [end_date_ymd] => 2025-03-05 18:33:06 [RateCDR] => 1 ) [2025-03-05 18: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-03-05 15:33:06' and `end` < '2025-03-05 18: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-03-05 18:33:18] Production.INFO: count ==3667 [2025-03-05 18:33:20] Production.ERROR: pbx CDR StartTime 2025-03-05 15:33:06 - End Time 2025-03-05 18:33:06 [2025-03-05 18:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614996', 'tblTempUsageDetail_20' ) start [2025-03-05 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14614996', 'tblTempUsageDetail_20' ) end [2025-03-05 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614996', 'tblTempVendorCDR_20' ) start [2025-03-05 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14614996', 'tblTempVendorCDR_20' ) end [2025-03-05 18:33:20] Production.INFO: ProcessCDR(1,14614996,1,1,2) [2025-03-05 18:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14614996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14614996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14614996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14614996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614996', 'tblTempUsageDetail_20' ) start [2025-03-05 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14614996', 'tblTempUsageDetail_20' ) end [2025-03-05 18:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:33:24] Production.INFO: ==1789== Releasing lock... [2025-03-05 18:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:33:24] Production.INFO: 55.5 MB #Memory Used# [2025-03-05 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:34:05 [end_date_ymd] => 2025-03-05 18:34:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 15:34:05' and `end` < '2025-03-05 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-03-05 18:34:18] Production.INFO: count ==3644 [2025-03-05 18:34:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:34:05 - End Time 2025-03-05 18:34:05 [2025-03-05 18:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615001', 'tblTempUsageDetail_20' ) start [2025-03-05 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615001', 'tblTempUsageDetail_20' ) end [2025-03-05 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615001', 'tblTempVendorCDR_20' ) start [2025-03-05 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615001', 'tblTempVendorCDR_20' ) end [2025-03-05 18:34:20] Production.INFO: ProcessCDR(1,14615001,1,1,2) [2025-03-05 18:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615001', 'tblTempUsageDetail_20' ) start [2025-03-05 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615001', 'tblTempUsageDetail_20' ) end [2025-03-05 18:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:34:23] Production.INFO: ==1870== Releasing lock... [2025-03-05 18:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:34:23] Production.INFO: 56.25 MB #Memory Used# [2025-03-05 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:35:05 [end_date_ymd] => 2025-03-05 18:35:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 15:35:05' and `end` < '2025-03-05 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-03-05 18:35:18] Production.INFO: count ==3626 [2025-03-05 18:35:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:35:05 - End Time 2025-03-05 18:35:05 [2025-03-05 18:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615006', 'tblTempUsageDetail_20' ) start [2025-03-05 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615006', 'tblTempUsageDetail_20' ) end [2025-03-05 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615006', 'tblTempVendorCDR_20' ) start [2025-03-05 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615006', 'tblTempVendorCDR_20' ) end [2025-03-05 18:35:19] Production.INFO: ProcessCDR(1,14615006,1,1,2) [2025-03-05 18:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615006', 'tblTempUsageDetail_20' ) start [2025-03-05 18:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615006', 'tblTempUsageDetail_20' ) end [2025-03-05 18:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:35:23] Production.INFO: ==1940== Releasing lock... [2025-03-05 18:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:35:23] Production.INFO: 55.5 MB #Memory Used# [2025-03-05 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:36:05 [end_date_ymd] => 2025-03-05 18:36:05 [RateCDR] => 1 ) [2025-03-05 18: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-03-05 15:36:05' and `end` < '2025-03-05 18: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-03-05 18:36:18] Production.INFO: count ==3610 [2025-03-05 18:36:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:36:05 - End Time 2025-03-05 18:36:05 [2025-03-05 18:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615011', 'tblTempUsageDetail_20' ) start [2025-03-05 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615011', 'tblTempUsageDetail_20' ) end [2025-03-05 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615011', 'tblTempVendorCDR_20' ) start [2025-03-05 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615011', 'tblTempVendorCDR_20' ) end [2025-03-05 18:36:19] Production.INFO: ProcessCDR(1,14615011,1,1,2) [2025-03-05 18:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615011', 'tblTempUsageDetail_20' ) start [2025-03-05 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615011', 'tblTempUsageDetail_20' ) end [2025-03-05 18:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:36:23] Production.INFO: ==2053== Releasing lock... [2025-03-05 18:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:36:23] Production.INFO: 56 MB #Memory Used# [2025-03-05 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:37:05 [end_date_ymd] => 2025-03-05 18:37:05 [RateCDR] => 1 ) [2025-03-05 18: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-03-05 15:37:05' and `end` < '2025-03-05 18: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-03-05 18:37:18] Production.INFO: count ==3597 [2025-03-05 18:37:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:37:05 - End Time 2025-03-05 18:37:05 [2025-03-05 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615016', 'tblTempUsageDetail_20' ) start [2025-03-05 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615016', 'tblTempUsageDetail_20' ) end [2025-03-05 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615016', 'tblTempVendorCDR_20' ) start [2025-03-05 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615016', 'tblTempVendorCDR_20' ) end [2025-03-05 18:37:20] Production.INFO: ProcessCDR(1,14615016,1,1,2) [2025-03-05 18:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615016', 'tblTempUsageDetail_20' ) start [2025-03-05 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615016', 'tblTempUsageDetail_20' ) end [2025-03-05 18:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:37:25] Production.INFO: ==2128== Releasing lock... [2025-03-05 18:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:37:25] Production.INFO: 55.25 MB #Memory Used# [2025-03-05 18:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:38:06 [end_date_ymd] => 2025-03-05 18:38:06 [RateCDR] => 1 ) [2025-03-05 18:38: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-03-05 15:38:06' and `end` < '2025-03-05 18:38: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-03-05 18:38:19] Production.INFO: count ==3590 [2025-03-05 18:38:20] Production.ERROR: pbx CDR StartTime 2025-03-05 15:38:06 - End Time 2025-03-05 18:38:06 [2025-03-05 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615021', 'tblTempUsageDetail_20' ) start [2025-03-05 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615021', 'tblTempUsageDetail_20' ) end [2025-03-05 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615021', 'tblTempVendorCDR_20' ) start [2025-03-05 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615021', 'tblTempVendorCDR_20' ) end [2025-03-05 18:38:20] Production.INFO: ProcessCDR(1,14615021,1,1,2) [2025-03-05 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615021', 'tblTempUsageDetail_20' ) start [2025-03-05 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615021', 'tblTempUsageDetail_20' ) end [2025-03-05 18:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:38:24] Production.INFO: ==2205== Releasing lock... [2025-03-05 18:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:38:24] Production.INFO: 55.75 MB #Memory Used# [2025-03-05 18:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:39:06 [end_date_ymd] => 2025-03-05 18:39:06 [RateCDR] => 1 ) [2025-03-05 18:39: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-03-05 15:39:06' and `end` < '2025-03-05 18:39: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-03-05 18:39:19] Production.INFO: count ==3579 [2025-03-05 18:39:20] Production.ERROR: pbx CDR StartTime 2025-03-05 15:39:06 - End Time 2025-03-05 18:39:06 [2025-03-05 18:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615026', 'tblTempUsageDetail_20' ) start [2025-03-05 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615026', 'tblTempUsageDetail_20' ) end [2025-03-05 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615026', 'tblTempVendorCDR_20' ) start [2025-03-05 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615026', 'tblTempVendorCDR_20' ) end [2025-03-05 18:39:20] Production.INFO: ProcessCDR(1,14615026,1,1,2) [2025-03-05 18:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615026', 'tblTempUsageDetail_20' ) start [2025-03-05 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615026', 'tblTempUsageDetail_20' ) end [2025-03-05 18:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:39:25] Production.INFO: ==2277== Releasing lock... [2025-03-05 18:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:39:25] Production.INFO: 55.75 MB #Memory Used# [2025-03-05 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:40:06 [end_date_ymd] => 2025-03-05 18:40:06 [RateCDR] => 1 ) [2025-03-05 18: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-03-05 15:40:06' and `end` < '2025-03-05 18: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-03-05 18:40:19] Production.INFO: count ==3579 [2025-03-05 18:40:20] Production.ERROR: pbx CDR StartTime 2025-03-05 15:40:06 - End Time 2025-03-05 18:40:06 [2025-03-05 18:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615031', 'tblTempUsageDetail_20' ) start [2025-03-05 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615031', 'tblTempUsageDetail_20' ) end [2025-03-05 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615031', 'tblTempVendorCDR_20' ) start [2025-03-05 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615031', 'tblTempVendorCDR_20' ) end [2025-03-05 18:40:20] Production.INFO: ProcessCDR(1,14615031,1,1,2) [2025-03-05 18:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615031', 'tblTempUsageDetail_20' ) start [2025-03-05 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615031', 'tblTempUsageDetail_20' ) end [2025-03-05 18:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:40:25] Production.INFO: ==2350== Releasing lock... [2025-03-05 18:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:40:25] Production.INFO: 55.75 MB #Memory Used# [2025-03-05 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:41:05 [end_date_ymd] => 2025-03-05 18:41:05 [RateCDR] => 1 ) [2025-03-05 18: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-03-05 15:41:05' and `end` < '2025-03-05 18: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-03-05 18:41:17] Production.INFO: count ==3546 [2025-03-05 18:41:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:41:05 - End Time 2025-03-05 18:41:05 [2025-03-05 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615037', 'tblTempUsageDetail_20' ) start [2025-03-05 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615037', 'tblTempUsageDetail_20' ) end [2025-03-05 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615037', 'tblTempVendorCDR_20' ) start [2025-03-05 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615037', 'tblTempVendorCDR_20' ) end [2025-03-05 18:41:19] Production.INFO: ProcessCDR(1,14615037,1,1,2) [2025-03-05 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615037', 'tblTempUsageDetail_20' ) start [2025-03-05 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615037', 'tblTempUsageDetail_20' ) end [2025-03-05 18:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:41:22] Production.INFO: ==2430== Releasing lock... [2025-03-05 18:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:41:22] Production.INFO: 55 MB #Memory Used# [2025-03-05 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:42:05 [end_date_ymd] => 2025-03-05 18:42:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 15:42:05' and `end` < '2025-03-05 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-03-05 18:42:18] Production.INFO: count ==3537 [2025-03-05 18:42:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:42:05 - End Time 2025-03-05 18:42:05 [2025-03-05 18:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615042', 'tblTempUsageDetail_20' ) start [2025-03-05 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615042', 'tblTempUsageDetail_20' ) end [2025-03-05 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615042', 'tblTempVendorCDR_20' ) start [2025-03-05 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615042', 'tblTempVendorCDR_20' ) end [2025-03-05 18:42:19] Production.INFO: ProcessCDR(1,14615042,1,1,2) [2025-03-05 18:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615042', 'tblTempUsageDetail_20' ) start [2025-03-05 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615042', 'tblTempUsageDetail_20' ) end [2025-03-05 18:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:42:24] Production.INFO: ==2501== Releasing lock... [2025-03-05 18:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:42:24] Production.INFO: 54.75 MB #Memory Used# [2025-03-05 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:43:05 [end_date_ymd] => 2025-03-05 18:43:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 15:43:05' and `end` < '2025-03-05 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-03-05 18:43:17] Production.INFO: count ==3522 [2025-03-05 18:43:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:43:05 - End Time 2025-03-05 18:43:05 [2025-03-05 18:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615047', 'tblTempUsageDetail_20' ) start [2025-03-05 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615047', 'tblTempUsageDetail_20' ) end [2025-03-05 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615047', 'tblTempVendorCDR_20' ) start [2025-03-05 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615047', 'tblTempVendorCDR_20' ) end [2025-03-05 18:43:19] Production.INFO: ProcessCDR(1,14615047,1,1,2) [2025-03-05 18:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615047', 'tblTempUsageDetail_20' ) start [2025-03-05 18:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615047', 'tblTempUsageDetail_20' ) end [2025-03-05 18:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:43:22] Production.INFO: ==2574== Releasing lock... [2025-03-05 18:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:43:22] Production.INFO: 55.25 MB #Memory Used# [2025-03-05 18:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:44:06 [end_date_ymd] => 2025-03-05 18:44:06 [RateCDR] => 1 ) [2025-03-05 18:44: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-03-05 15:44:06' and `end` < '2025-03-05 18:44: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-03-05 18:44:18] Production.INFO: count ==3512 [2025-03-05 18:44:20] Production.ERROR: pbx CDR StartTime 2025-03-05 15:44:06 - End Time 2025-03-05 18:44:06 [2025-03-05 18:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615052', 'tblTempUsageDetail_20' ) start [2025-03-05 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615052', 'tblTempUsageDetail_20' ) end [2025-03-05 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615052', 'tblTempVendorCDR_20' ) start [2025-03-05 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615052', 'tblTempVendorCDR_20' ) end [2025-03-05 18:44:20] Production.INFO: ProcessCDR(1,14615052,1,1,2) [2025-03-05 18:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615052', 'tblTempUsageDetail_20' ) start [2025-03-05 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615052', 'tblTempUsageDetail_20' ) end [2025-03-05 18:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:44:24] Production.INFO: ==2648== Releasing lock... [2025-03-05 18:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:44:24] Production.INFO: 55.25 MB #Memory Used# [2025-03-05 18:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:45:06 [end_date_ymd] => 2025-03-05 18:45:06 [RateCDR] => 1 ) [2025-03-05 18: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-03-05 15:45:06' and `end` < '2025-03-05 18: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-03-05 18:45:18] Production.INFO: count ==3505 [2025-03-05 18:45:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:45:06 - End Time 2025-03-05 18:45:06 [2025-03-05 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615057', 'tblTempUsageDetail_20' ) start [2025-03-05 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615057', 'tblTempUsageDetail_20' ) end [2025-03-05 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615057', 'tblTempVendorCDR_20' ) start [2025-03-05 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615057', 'tblTempVendorCDR_20' ) end [2025-03-05 18:45:20] Production.INFO: ProcessCDR(1,14615057,1,1,2) [2025-03-05 18:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615057', 'tblTempUsageDetail_20' ) start [2025-03-05 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615057', 'tblTempUsageDetail_20' ) end [2025-03-05 18:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:45:24] Production.INFO: ==2725== Releasing lock... [2025-03-05 18:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:45:24] Production.INFO: 55.25 MB #Memory Used# [2025-03-05 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:46:05 [end_date_ymd] => 2025-03-05 18:46:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 15:46:05' and `end` < '2025-03-05 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-03-05 18:46:18] Production.INFO: count ==3498 [2025-03-05 18:46:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:46:05 - End Time 2025-03-05 18:46:05 [2025-03-05 18:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615062', 'tblTempUsageDetail_20' ) start [2025-03-05 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615062', 'tblTempUsageDetail_20' ) end [2025-03-05 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615062', 'tblTempVendorCDR_20' ) start [2025-03-05 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615062', 'tblTempVendorCDR_20' ) end [2025-03-05 18:46:19] Production.INFO: ProcessCDR(1,14615062,1,1,2) [2025-03-05 18:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615062', 'tblTempUsageDetail_20' ) start [2025-03-05 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615062', 'tblTempUsageDetail_20' ) end [2025-03-05 18:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:46:24] Production.INFO: ==2804== Releasing lock... [2025-03-05 18:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:46:24] Production.INFO: 54.25 MB #Memory Used# [2025-03-05 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:47:05 [end_date_ymd] => 2025-03-05 18:47:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 15:47:05' and `end` < '2025-03-05 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-03-05 18:47:18] Production.INFO: count ==3490 [2025-03-05 18:47:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:47:05 - End Time 2025-03-05 18:47:05 [2025-03-05 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615067', 'tblTempUsageDetail_20' ) start [2025-03-05 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615067', 'tblTempUsageDetail_20' ) end [2025-03-05 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615067', 'tblTempVendorCDR_20' ) start [2025-03-05 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615067', 'tblTempVendorCDR_20' ) end [2025-03-05 18:47:19] Production.INFO: ProcessCDR(1,14615067,1,1,2) [2025-03-05 18:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615067', 'tblTempUsageDetail_20' ) start [2025-03-05 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615067', 'tblTempUsageDetail_20' ) end [2025-03-05 18:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:47:24] Production.INFO: ==2875== Releasing lock... [2025-03-05 18:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:47:24] Production.INFO: 55.75 MB #Memory Used# [2025-03-05 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:48:05 [end_date_ymd] => 2025-03-05 18:48:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 15:48:05' and `end` < '2025-03-05 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-03-05 18:48:18] Production.INFO: count ==3467 [2025-03-05 18:48:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:48:05 - End Time 2025-03-05 18:48:05 [2025-03-05 18:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615072', 'tblTempUsageDetail_20' ) start [2025-03-05 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615072', 'tblTempUsageDetail_20' ) end [2025-03-05 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615072', 'tblTempVendorCDR_20' ) start [2025-03-05 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615072', 'tblTempVendorCDR_20' ) end [2025-03-05 18:48:19] Production.INFO: ProcessCDR(1,14615072,1,1,2) [2025-03-05 18:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615072', 'tblTempUsageDetail_20' ) start [2025-03-05 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615072', 'tblTempUsageDetail_20' ) end [2025-03-05 18:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:48:24] Production.INFO: ==2952== Releasing lock... [2025-03-05 18:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:48:24] Production.INFO: 54 MB #Memory Used# [2025-03-05 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:49:05 [end_date_ymd] => 2025-03-05 18:49:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 15:49:05' and `end` < '2025-03-05 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-03-05 18:49:18] Production.INFO: count ==3460 [2025-03-05 18:49:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:49:05 - End Time 2025-03-05 18:49:05 [2025-03-05 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615077', 'tblTempUsageDetail_20' ) start [2025-03-05 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615077', 'tblTempUsageDetail_20' ) end [2025-03-05 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615077', 'tblTempVendorCDR_20' ) start [2025-03-05 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615077', 'tblTempVendorCDR_20' ) end [2025-03-05 18:49:19] Production.INFO: ProcessCDR(1,14615077,1,1,2) [2025-03-05 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615077', 'tblTempUsageDetail_20' ) start [2025-03-05 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615077', 'tblTempUsageDetail_20' ) end [2025-03-05 18:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:49:22] Production.INFO: ==3032== Releasing lock... [2025-03-05 18:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:49:22] Production.INFO: 53.75 MB #Memory Used# [2025-03-05 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:50:06 [end_date_ymd] => 2025-03-05 18:50:06 [RateCDR] => 1 ) [2025-03-05 18: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-03-05 15:50:06' and `end` < '2025-03-05 18: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-03-05 18:50:19] Production.INFO: count ==3460 [2025-03-05 18:50:20] Production.ERROR: pbx CDR StartTime 2025-03-05 15:50:06 - End Time 2025-03-05 18:50:06 [2025-03-05 18:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615083', 'tblTempUsageDetail_20' ) start [2025-03-05 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615083', 'tblTempUsageDetail_20' ) end [2025-03-05 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615083', 'tblTempVendorCDR_20' ) start [2025-03-05 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615083', 'tblTempVendorCDR_20' ) end [2025-03-05 18:50:20] Production.INFO: ProcessCDR(1,14615083,1,1,2) [2025-03-05 18:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615083', 'tblTempUsageDetail_20' ) start [2025-03-05 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615083', 'tblTempUsageDetail_20' ) end [2025-03-05 18:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:50:25] Production.INFO: ==3114== Releasing lock... [2025-03-05 18:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:50:25] Production.INFO: 53.75 MB #Memory Used# [2025-03-05 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:51:05 [end_date_ymd] => 2025-03-05 18:51:05 [RateCDR] => 1 ) [2025-03-05 18: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-03-05 15:51:05' and `end` < '2025-03-05 18: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-03-05 18:51:18] Production.INFO: count ==3427 [2025-03-05 18:51:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:51:05 - End Time 2025-03-05 18:51:05 [2025-03-05 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615088', 'tblTempUsageDetail_20' ) start [2025-03-05 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615088', 'tblTempUsageDetail_20' ) end [2025-03-05 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615088', 'tblTempVendorCDR_20' ) start [2025-03-05 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615088', 'tblTempVendorCDR_20' ) end [2025-03-05 18:51:19] Production.INFO: ProcessCDR(1,14615088,1,1,2) [2025-03-05 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615088', 'tblTempUsageDetail_20' ) start [2025-03-05 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615088', 'tblTempUsageDetail_20' ) end [2025-03-05 18:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:51:22] Production.INFO: ==3234== Releasing lock... [2025-03-05 18:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:51:22] Production.INFO: 53.75 MB #Memory Used# [2025-03-05 18:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:52:05 [end_date_ymd] => 2025-03-05 18:52:05 [RateCDR] => 1 ) [2025-03-05 18: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-03-05 15:52:05' and `end` < '2025-03-05 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-03-05 18:52:18] Production.INFO: count ==3420 [2025-03-05 18:52:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:52:05 - End Time 2025-03-05 18:52:05 [2025-03-05 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615093', 'tblTempUsageDetail_20' ) start [2025-03-05 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615093', 'tblTempUsageDetail_20' ) end [2025-03-05 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615093', 'tblTempVendorCDR_20' ) start [2025-03-05 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615093', 'tblTempVendorCDR_20' ) end [2025-03-05 18:52:19] Production.INFO: ProcessCDR(1,14615093,1,1,2) [2025-03-05 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615093', 'tblTempUsageDetail_20' ) start [2025-03-05 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615093', 'tblTempUsageDetail_20' ) end [2025-03-05 18:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:52:24] Production.INFO: ==3309== Releasing lock... [2025-03-05 18:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:52:24] Production.INFO: 53.5 MB #Memory Used# [2025-03-05 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:53:05 [end_date_ymd] => 2025-03-05 18:53:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 15:53:05' and `end` < '2025-03-05 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-03-05 18:53:18] Production.INFO: count ==3428 [2025-03-05 18:53:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:53:05 - End Time 2025-03-05 18:53:05 [2025-03-05 18:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615098', 'tblTempUsageDetail_20' ) start [2025-03-05 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615098', 'tblTempUsageDetail_20' ) end [2025-03-05 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615098', 'tblTempVendorCDR_20' ) start [2025-03-05 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615098', 'tblTempVendorCDR_20' ) end [2025-03-05 18:53:19] Production.INFO: ProcessCDR(1,14615098,1,1,2) [2025-03-05 18:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615098', 'tblTempUsageDetail_20' ) start [2025-03-05 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615098', 'tblTempUsageDetail_20' ) end [2025-03-05 18:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:53:22] Production.INFO: ==3387== Releasing lock... [2025-03-05 18:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:53:22] Production.INFO: 53.5 MB #Memory Used# [2025-03-05 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:54:05 [end_date_ymd] => 2025-03-05 18:54:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 15:54:05' and `end` < '2025-03-05 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-03-05 18:54:18] Production.INFO: count ==3413 [2025-03-05 18:54:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:54:05 - End Time 2025-03-05 18:54:05 [2025-03-05 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615103', 'tblTempUsageDetail_20' ) start [2025-03-05 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615103', 'tblTempUsageDetail_20' ) end [2025-03-05 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615103', 'tblTempVendorCDR_20' ) start [2025-03-05 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615103', 'tblTempVendorCDR_20' ) end [2025-03-05 18:54:19] Production.INFO: ProcessCDR(1,14615103,1,1,2) [2025-03-05 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615103', 'tblTempUsageDetail_20' ) start [2025-03-05 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615103', 'tblTempUsageDetail_20' ) end [2025-03-05 18:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:54:24] Production.INFO: ==3468== Releasing lock... [2025-03-05 18:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:54:24] Production.INFO: 53.5 MB #Memory Used# [2025-03-05 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:55:05 [end_date_ymd] => 2025-03-05 18:55:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 15:55:05' and `end` < '2025-03-05 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-03-05 18:55:17] Production.INFO: count ==3417 [2025-03-05 18:55:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:55:05 - End Time 2025-03-05 18:55:05 [2025-03-05 18:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615108', 'tblTempUsageDetail_20' ) start [2025-03-05 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615108', 'tblTempUsageDetail_20' ) end [2025-03-05 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615108', 'tblTempVendorCDR_20' ) start [2025-03-05 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615108', 'tblTempVendorCDR_20' ) end [2025-03-05 18:55:19] Production.INFO: ProcessCDR(1,14615108,1,1,2) [2025-03-05 18:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615108', 'tblTempUsageDetail_20' ) start [2025-03-05 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615108', 'tblTempUsageDetail_20' ) end [2025-03-05 18:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:55:22] Production.INFO: ==3542== Releasing lock... [2025-03-05 18:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:55:22] Production.INFO: 53.75 MB #Memory Used# [2025-03-05 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:56:05 [end_date_ymd] => 2025-03-05 18:56:05 [RateCDR] => 1 ) [2025-03-05 18: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-03-05 15:56:05' and `end` < '2025-03-05 18: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-03-05 18:56:18] Production.INFO: count ==3418 [2025-03-05 18:56:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:56:05 - End Time 2025-03-05 18:56:05 [2025-03-05 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615113', 'tblTempUsageDetail_20' ) start [2025-03-05 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615113', 'tblTempUsageDetail_20' ) end [2025-03-05 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615113', 'tblTempVendorCDR_20' ) start [2025-03-05 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615113', 'tblTempVendorCDR_20' ) end [2025-03-05 18:56:19] Production.INFO: ProcessCDR(1,14615113,1,1,2) [2025-03-05 18:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615113', 'tblTempUsageDetail_20' ) start [2025-03-05 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615113', 'tblTempUsageDetail_20' ) end [2025-03-05 18:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:56:23] Production.INFO: ==3622== Releasing lock... [2025-03-05 18:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:56:23] Production.INFO: 54 MB #Memory Used# [2025-03-05 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:57:05 [end_date_ymd] => 2025-03-05 18:57:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 15:57:05' and `end` < '2025-03-05 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-03-05 18:57:17] Production.INFO: count ==3405 [2025-03-05 18:57:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:57:05 - End Time 2025-03-05 18:57:05 [2025-03-05 18:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615118', 'tblTempUsageDetail_20' ) start [2025-03-05 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615118', 'tblTempUsageDetail_20' ) end [2025-03-05 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615118', 'tblTempVendorCDR_20' ) start [2025-03-05 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615118', 'tblTempVendorCDR_20' ) end [2025-03-05 18:57:19] Production.INFO: ProcessCDR(1,14615118,1,1,2) [2025-03-05 18:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615118', 'tblTempUsageDetail_20' ) start [2025-03-05 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615118', 'tblTempUsageDetail_20' ) end [2025-03-05 18:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:57:22] Production.INFO: ==3738== Releasing lock... [2025-03-05 18:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:57:22] Production.INFO: 53.5 MB #Memory Used# [2025-03-05 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:58:05 [end_date_ymd] => 2025-03-05 18:58:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 15:58:05' and `end` < '2025-03-05 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-03-05 18:58:18] Production.INFO: count ==3388 [2025-03-05 18:58:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:58:05 - End Time 2025-03-05 18:58:05 [2025-03-05 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615123', 'tblTempUsageDetail_20' ) start [2025-03-05 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615123', 'tblTempUsageDetail_20' ) end [2025-03-05 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615123', 'tblTempVendorCDR_20' ) start [2025-03-05 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615123', 'tblTempVendorCDR_20' ) end [2025-03-05 18:58:19] Production.INFO: ProcessCDR(1,14615123,1,1,2) [2025-03-05 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615123', 'tblTempUsageDetail_20' ) start [2025-03-05 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615123', 'tblTempUsageDetail_20' ) end [2025-03-05 18:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:58:22] Production.INFO: ==3835== Releasing lock... [2025-03-05 18:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:58:22] Production.INFO: 53.25 MB #Memory Used# [2025-03-05 18:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 15:59:06 [end_date_ymd] => 2025-03-05 18:59:06 [RateCDR] => 1 ) [2025-03-05 18: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-03-05 15:59:06' and `end` < '2025-03-05 18: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-03-05 18:59:18] Production.INFO: count ==3380 [2025-03-05 18:59:19] Production.ERROR: pbx CDR StartTime 2025-03-05 15:59:06 - End Time 2025-03-05 18:59:06 [2025-03-05 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615128', 'tblTempUsageDetail_20' ) start [2025-03-05 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615128', 'tblTempUsageDetail_20' ) end [2025-03-05 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615128', 'tblTempVendorCDR_20' ) start [2025-03-05 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615128', 'tblTempVendorCDR_20' ) end [2025-03-05 18:59:19] Production.INFO: ProcessCDR(1,14615128,1,1,2) [2025-03-05 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 18:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615128', 'tblTempUsageDetail_20' ) start [2025-03-05 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615128', 'tblTempUsageDetail_20' ) end [2025-03-05 18:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 18:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 18:59:23] Production.INFO: ==3933== Releasing lock... [2025-03-05 18:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 18:59:23] Production.INFO: 53.25 MB #Memory Used# [2025-03-05 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:00:06 [end_date_ymd] => 2025-03-05 19:00:06 [RateCDR] => 1 ) [2025-03-05 19: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-03-05 16:00:06' and `end` < '2025-03-05 19: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-03-05 19:00:18] Production.INFO: count ==3364 [2025-03-05 19:00:20] Production.ERROR: pbx CDR StartTime 2025-03-05 16:00:06 - End Time 2025-03-05 19:00:06 [2025-03-05 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615133', 'tblTempUsageDetail_20' ) start [2025-03-05 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615133', 'tblTempUsageDetail_20' ) end [2025-03-05 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615133', 'tblTempVendorCDR_20' ) start [2025-03-05 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615133', 'tblTempVendorCDR_20' ) end [2025-03-05 19:00:20] Production.INFO: ProcessCDR(1,14615133,1,1,2) [2025-03-05 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615133', 'tblTempUsageDetail_20' ) start [2025-03-05 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615133', 'tblTempUsageDetail_20' ) end [2025-03-05 19:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:00:23] Production.INFO: ==4065== Releasing lock... [2025-03-05 19:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:00:23] Production.INFO: 53.75 MB #Memory Used# [2025-03-05 19:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:01:06 [end_date_ymd] => 2025-03-05 19:01:06 [RateCDR] => 1 ) [2025-03-05 19: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-03-05 16:01:06' and `end` < '2025-03-05 19: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-03-05 19:01:18] Production.INFO: count ==3315 [2025-03-05 19:01:20] Production.ERROR: pbx CDR StartTime 2025-03-05 16:01:06 - End Time 2025-03-05 19:01:06 [2025-03-05 19:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615139', 'tblTempUsageDetail_20' ) start [2025-03-05 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615139', 'tblTempUsageDetail_20' ) end [2025-03-05 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615139', 'tblTempVendorCDR_20' ) start [2025-03-05 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615139', 'tblTempVendorCDR_20' ) end [2025-03-05 19:01:20] Production.INFO: ProcessCDR(1,14615139,1,1,2) [2025-03-05 19:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615139', 'tblTempUsageDetail_20' ) start [2025-03-05 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615139', 'tblTempUsageDetail_20' ) end [2025-03-05 19:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:01:23] Production.INFO: ==4209== Releasing lock... [2025-03-05 19:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:01:23] Production.INFO: 52.75 MB #Memory Used# [2025-03-05 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:02:05 [end_date_ymd] => 2025-03-05 19:02:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 16:02:05' and `end` < '2025-03-05 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-03-05 19:02:18] Production.INFO: count ==3311 [2025-03-05 19:02:19] Production.ERROR: pbx CDR StartTime 2025-03-05 16:02:05 - End Time 2025-03-05 19:02:05 [2025-03-05 19:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615144', 'tblTempUsageDetail_20' ) start [2025-03-05 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615144', 'tblTempUsageDetail_20' ) end [2025-03-05 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615144', 'tblTempVendorCDR_20' ) start [2025-03-05 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615144', 'tblTempVendorCDR_20' ) end [2025-03-05 19:02:19] Production.INFO: ProcessCDR(1,14615144,1,1,2) [2025-03-05 19:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615144', 'tblTempUsageDetail_20' ) start [2025-03-05 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615144', 'tblTempUsageDetail_20' ) end [2025-03-05 19:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:02:24] Production.INFO: ==4340== Releasing lock... [2025-03-05 19:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:02:24] Production.INFO: 53.5 MB #Memory Used# [2025-03-05 19:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:03:06 [end_date_ymd] => 2025-03-05 19:03:06 [RateCDR] => 1 ) [2025-03-05 19: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-03-05 16:03:06' and `end` < '2025-03-05 19: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-03-05 19:03:18] Production.INFO: count ==3308 [2025-03-05 19:03:19] Production.ERROR: pbx CDR StartTime 2025-03-05 16:03:06 - End Time 2025-03-05 19:03:06 [2025-03-05 19:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615149', 'tblTempUsageDetail_20' ) start [2025-03-05 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615149', 'tblTempUsageDetail_20' ) end [2025-03-05 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615149', 'tblTempVendorCDR_20' ) start [2025-03-05 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615149', 'tblTempVendorCDR_20' ) end [2025-03-05 19:03:19] Production.INFO: ProcessCDR(1,14615149,1,1,2) [2025-03-05 19:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615149', 'tblTempUsageDetail_20' ) start [2025-03-05 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615149', 'tblTempUsageDetail_20' ) end [2025-03-05 19:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:03:24] Production.INFO: ==4418== Releasing lock... [2025-03-05 19:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:03:24] Production.INFO: 53 MB #Memory Used# [2025-03-05 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:04:05 [end_date_ymd] => 2025-03-05 19:04:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 16:04:05' and `end` < '2025-03-05 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-03-05 19:04:18] Production.INFO: count ==3303 [2025-03-05 19:04:19] Production.ERROR: pbx CDR StartTime 2025-03-05 16:04:05 - End Time 2025-03-05 19:04:05 [2025-03-05 19:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615154', 'tblTempUsageDetail_20' ) start [2025-03-05 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615154', 'tblTempUsageDetail_20' ) end [2025-03-05 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615154', 'tblTempVendorCDR_20' ) start [2025-03-05 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615154', 'tblTempVendorCDR_20' ) end [2025-03-05 19:04:19] Production.INFO: ProcessCDR(1,14615154,1,1,2) [2025-03-05 19:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615154', 'tblTempUsageDetail_20' ) start [2025-03-05 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615154', 'tblTempUsageDetail_20' ) end [2025-03-05 19:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:04:22] Production.INFO: ==4494== Releasing lock... [2025-03-05 19:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:04:22] Production.INFO: 52.75 MB #Memory Used# [2025-03-05 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:05:05 [end_date_ymd] => 2025-03-05 19:05:05 [RateCDR] => 1 ) [2025-03-05 19: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-03-05 16:05:05' and `end` < '2025-03-05 19: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-03-05 19:05:18] Production.INFO: count ==3268 [2025-03-05 19:05:19] Production.ERROR: pbx CDR StartTime 2025-03-05 16:05:05 - End Time 2025-03-05 19:05:05 [2025-03-05 19:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615159', 'tblTempUsageDetail_20' ) start [2025-03-05 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615159', 'tblTempUsageDetail_20' ) end [2025-03-05 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615159', 'tblTempVendorCDR_20' ) start [2025-03-05 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615159', 'tblTempVendorCDR_20' ) end [2025-03-05 19:05:19] Production.INFO: ProcessCDR(1,14615159,1,1,2) [2025-03-05 19:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615159', 'tblTempUsageDetail_20' ) start [2025-03-05 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615159', 'tblTempUsageDetail_20' ) end [2025-03-05 19:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:05:22] Production.INFO: ==4657== Releasing lock... [2025-03-05 19:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:05:22] Production.INFO: 52.5 MB #Memory Used# [2025-03-05 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:06:05 [end_date_ymd] => 2025-03-05 19:06:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 16:06:05' and `end` < '2025-03-05 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-03-05 19:06:17] Production.INFO: count ==3246 [2025-03-05 19:06:19] Production.ERROR: pbx CDR StartTime 2025-03-05 16:06:05 - End Time 2025-03-05 19:06:05 [2025-03-05 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615160', 'tblTempUsageDetail_20' ) start [2025-03-05 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615160', 'tblTempUsageDetail_20' ) end [2025-03-05 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615160', 'tblTempVendorCDR_20' ) start [2025-03-05 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615160', 'tblTempVendorCDR_20' ) end [2025-03-05 19:06:19] Production.INFO: ProcessCDR(1,14615160,1,1,2) [2025-03-05 19:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615160', 'tblTempUsageDetail_20' ) start [2025-03-05 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615160', 'tblTempUsageDetail_20' ) end [2025-03-05 19:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:06:24] Production.INFO: ==4734== Releasing lock... [2025-03-05 19:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:06:24] Production.INFO: 52.5 MB #Memory Used# [2025-03-05 19:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:07:06 [end_date_ymd] => 2025-03-05 19:07:06 [RateCDR] => 1 ) [2025-03-05 19: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-03-05 16:07:06' and `end` < '2025-03-05 19: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-03-05 19:07:18] Production.INFO: count ==3238 [2025-03-05 19:07:19] Production.ERROR: pbx CDR StartTime 2025-03-05 16:07:06 - End Time 2025-03-05 19:07:06 [2025-03-05 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615169', 'tblTempUsageDetail_20' ) start [2025-03-05 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615169', 'tblTempUsageDetail_20' ) end [2025-03-05 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615169', 'tblTempVendorCDR_20' ) start [2025-03-05 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615169', 'tblTempVendorCDR_20' ) end [2025-03-05 19:07:19] Production.INFO: ProcessCDR(1,14615169,1,1,2) [2025-03-05 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615169', 'tblTempUsageDetail_20' ) start [2025-03-05 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615169', 'tblTempUsageDetail_20' ) end [2025-03-05 19:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:07:24] Production.INFO: ==4845== Releasing lock... [2025-03-05 19:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:07:24] Production.INFO: 52.5 MB #Memory Used# [2025-03-05 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:08:05 [end_date_ymd] => 2025-03-05 19:08:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 16:08:05' and `end` < '2025-03-05 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-03-05 19:08:17] Production.INFO: count ==3207 [2025-03-05 19:08:18] Production.ERROR: pbx CDR StartTime 2025-03-05 16:08:05 - End Time 2025-03-05 19:08:05 [2025-03-05 19:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615174', 'tblTempUsageDetail_20' ) start [2025-03-05 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615174', 'tblTempUsageDetail_20' ) end [2025-03-05 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615174', 'tblTempVendorCDR_20' ) start [2025-03-05 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615174', 'tblTempVendorCDR_20' ) end [2025-03-05 19:08:18] Production.INFO: ProcessCDR(1,14615174,1,1,2) [2025-03-05 19:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615174', 'tblTempUsageDetail_20' ) start [2025-03-05 19:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615174', 'tblTempUsageDetail_20' ) end [2025-03-05 19:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:08:21] Production.INFO: ==5005== Releasing lock... [2025-03-05 19:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:08:21] Production.INFO: 52.25 MB #Memory Used# [2025-03-05 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:09:05 [end_date_ymd] => 2025-03-05 19:09:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 16:09:05' and `end` < '2025-03-05 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-03-05 19:09:18] Production.INFO: count ==3195 [2025-03-05 19:09:19] Production.ERROR: pbx CDR StartTime 2025-03-05 16:09:05 - End Time 2025-03-05 19:09:05 [2025-03-05 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615179', 'tblTempUsageDetail_20' ) start [2025-03-05 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615179', 'tblTempUsageDetail_20' ) end [2025-03-05 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615179', 'tblTempVendorCDR_20' ) start [2025-03-05 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615179', 'tblTempVendorCDR_20' ) end [2025-03-05 19:09:19] Production.INFO: ProcessCDR(1,14615179,1,1,2) [2025-03-05 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615179', 'tblTempUsageDetail_20' ) start [2025-03-05 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615179', 'tblTempUsageDetail_20' ) end [2025-03-05 19:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:09:22] Production.INFO: ==5079== Releasing lock... [2025-03-05 19:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:09:22] Production.INFO: 52 MB #Memory Used# [2025-03-05 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:10:06 [end_date_ymd] => 2025-03-05 19:10:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 16:10:06' and `end` < '2025-03-05 19: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-03-05 19:10:18] Production.INFO: count ==3180 [2025-03-05 19:10:19] Production.ERROR: pbx CDR StartTime 2025-03-05 16:10:06 - End Time 2025-03-05 19:10:06 [2025-03-05 19:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615185', 'tblTempUsageDetail_20' ) start [2025-03-05 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615185', 'tblTempUsageDetail_20' ) end [2025-03-05 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615185', 'tblTempVendorCDR_20' ) start [2025-03-05 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615185', 'tblTempVendorCDR_20' ) end [2025-03-05 19:10:19] Production.INFO: ProcessCDR(1,14615185,1,1,2) [2025-03-05 19:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615185', 'tblTempUsageDetail_20' ) start [2025-03-05 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615185', 'tblTempUsageDetail_20' ) end [2025-03-05 19:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:10:24] Production.INFO: ==5159== Releasing lock... [2025-03-05 19:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:10:24] Production.INFO: 52 MB #Memory Used# [2025-03-05 19:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:11:06 [end_date_ymd] => 2025-03-05 19:11:06 [RateCDR] => 1 ) [2025-03-05 19:11: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-03-05 16:11:06' and `end` < '2025-03-05 19:11: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-03-05 19:11:18] Production.INFO: count ==3129 [2025-03-05 19:11:19] Production.ERROR: pbx CDR StartTime 2025-03-05 16:11:06 - End Time 2025-03-05 19:11:06 [2025-03-05 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615190', 'tblTempUsageDetail_20' ) start [2025-03-05 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615190', 'tblTempUsageDetail_20' ) end [2025-03-05 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615190', 'tblTempVendorCDR_20' ) start [2025-03-05 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615190', 'tblTempVendorCDR_20' ) end [2025-03-05 19:11:19] Production.INFO: ProcessCDR(1,14615190,1,1,2) [2025-03-05 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615190', 'tblTempUsageDetail_20' ) start [2025-03-05 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615190', 'tblTempUsageDetail_20' ) end [2025-03-05 19:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:11:23] Production.INFO: ==5239== Releasing lock... [2025-03-05 19:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:11:23] Production.INFO: 51.25 MB #Memory Used# [2025-03-05 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:12:05 [end_date_ymd] => 2025-03-05 19:12:05 [RateCDR] => 1 ) [2025-03-05 19: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-03-05 16:12:05' and `end` < '2025-03-05 19: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-03-05 19:12:17] Production.INFO: count ==3107 [2025-03-05 19:12:19] Production.ERROR: pbx CDR StartTime 2025-03-05 16:12:05 - End Time 2025-03-05 19:12:05 [2025-03-05 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615195', 'tblTempUsageDetail_20' ) start [2025-03-05 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615195', 'tblTempUsageDetail_20' ) end [2025-03-05 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615195', 'tblTempVendorCDR_20' ) start [2025-03-05 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615195', 'tblTempVendorCDR_20' ) end [2025-03-05 19:12:19] Production.INFO: ProcessCDR(1,14615195,1,1,2) [2025-03-05 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615195', 'tblTempUsageDetail_20' ) start [2025-03-05 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615195', 'tblTempUsageDetail_20' ) end [2025-03-05 19:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:12:23] Production.INFO: ==5394== Releasing lock... [2025-03-05 19:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:12:23] Production.INFO: 51.5 MB #Memory Used# [2025-03-05 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:13:05 [end_date_ymd] => 2025-03-05 19:13:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 16:13:05' and `end` < '2025-03-05 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-03-05 19:13:17] Production.INFO: count ==3085 [2025-03-05 19:13:18] Production.ERROR: pbx CDR StartTime 2025-03-05 16:13:05 - End Time 2025-03-05 19:13:05 [2025-03-05 19:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615200', 'tblTempUsageDetail_20' ) start [2025-03-05 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615200', 'tblTempUsageDetail_20' ) end [2025-03-05 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615200', 'tblTempVendorCDR_20' ) start [2025-03-05 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615200', 'tblTempVendorCDR_20' ) end [2025-03-05 19:13:18] Production.INFO: ProcessCDR(1,14615200,1,1,2) [2025-03-05 19:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615200', 'tblTempUsageDetail_20' ) start [2025-03-05 19:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615200', 'tblTempUsageDetail_20' ) end [2025-03-05 19:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:13:21] Production.INFO: ==5481== Releasing lock... [2025-03-05 19:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:13:21] Production.INFO: 51.25 MB #Memory Used# [2025-03-05 19:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:14:06 [end_date_ymd] => 2025-03-05 19:14:06 [RateCDR] => 1 ) [2025-03-05 19:14: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-03-05 16:14:06' and `end` < '2025-03-05 19:14: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-03-05 19:14:18] Production.INFO: count ==3051 [2025-03-05 19:14:19] Production.ERROR: pbx CDR StartTime 2025-03-05 16:14:06 - End Time 2025-03-05 19:14:06 [2025-03-05 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615205', 'tblTempUsageDetail_20' ) start [2025-03-05 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615205', 'tblTempUsageDetail_20' ) end [2025-03-05 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615205', 'tblTempVendorCDR_20' ) start [2025-03-05 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615205', 'tblTempVendorCDR_20' ) end [2025-03-05 19:14:19] Production.INFO: ProcessCDR(1,14615205,1,1,2) [2025-03-05 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615205', 'tblTempUsageDetail_20' ) start [2025-03-05 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615205', 'tblTempUsageDetail_20' ) end [2025-03-05 19:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:14:23] Production.INFO: ==5562== Releasing lock... [2025-03-05 19:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:14:23] Production.INFO: 51.25 MB #Memory Used# [2025-03-05 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:15:05 [end_date_ymd] => 2025-03-05 19:15:05 [RateCDR] => 1 ) [2025-03-05 19: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-03-05 16:15:05' and `end` < '2025-03-05 19: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-03-05 19:15:18] Production.INFO: count ==3015 [2025-03-05 19:15:18] Production.ERROR: pbx CDR StartTime 2025-03-05 16:15:05 - End Time 2025-03-05 19:15:05 [2025-03-05 19:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615210', 'tblTempUsageDetail_20' ) start [2025-03-05 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615210', 'tblTempUsageDetail_20' ) end [2025-03-05 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615210', 'tblTempVendorCDR_20' ) start [2025-03-05 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615210', 'tblTempVendorCDR_20' ) end [2025-03-05 19:15:19] Production.INFO: ProcessCDR(1,14615210,1,1,2) [2025-03-05 19:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615210', 'tblTempUsageDetail_20' ) start [2025-03-05 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615210', 'tblTempUsageDetail_20' ) end [2025-03-05 19:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:15:22] Production.INFO: ==5724== Releasing lock... [2025-03-05 19:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:15:22] Production.INFO: 50.5 MB #Memory Used# [2025-03-05 19:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:16:06 [end_date_ymd] => 2025-03-05 19:16:06 [RateCDR] => 1 ) [2025-03-05 19:16: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-03-05 16:16:06' and `end` < '2025-03-05 19:16: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-03-05 19:16:19] Production.INFO: count ==2992 [2025-03-05 19:16:19] Production.ERROR: pbx CDR StartTime 2025-03-05 16:16:06 - End Time 2025-03-05 19:16:06 [2025-03-05 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615215', 'tblTempUsageDetail_20' ) start [2025-03-05 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615215', 'tblTempUsageDetail_20' ) end [2025-03-05 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615215', 'tblTempVendorCDR_20' ) start [2025-03-05 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615215', 'tblTempVendorCDR_20' ) end [2025-03-05 19:16:20] Production.INFO: ProcessCDR(1,14615215,1,1,2) [2025-03-05 19:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615215', 'tblTempUsageDetail_20' ) start [2025-03-05 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615215', 'tblTempUsageDetail_20' ) end [2025-03-05 19:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:16:23] Production.INFO: ==5803== Releasing lock... [2025-03-05 19:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:16:23] Production.INFO: 50.25 MB #Memory Used# [2025-03-05 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:17:05 [end_date_ymd] => 2025-03-05 19:17:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 16:17:05' and `end` < '2025-03-05 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-03-05 19:17:18] Production.INFO: count ==2979 [2025-03-05 19:17:19] Production.ERROR: pbx CDR StartTime 2025-03-05 16:17:05 - End Time 2025-03-05 19:17:05 [2025-03-05 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615220', 'tblTempUsageDetail_20' ) start [2025-03-05 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615220', 'tblTempUsageDetail_20' ) end [2025-03-05 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615220', 'tblTempVendorCDR_20' ) start [2025-03-05 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615220', 'tblTempVendorCDR_20' ) end [2025-03-05 19:17:19] Production.INFO: ProcessCDR(1,14615220,1,1,2) [2025-03-05 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615220', 'tblTempUsageDetail_20' ) start [2025-03-05 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615220', 'tblTempUsageDetail_20' ) end [2025-03-05 19:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:17:22] Production.INFO: ==5879== Releasing lock... [2025-03-05 19:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:17:22] Production.INFO: 50.25 MB #Memory Used# [2025-03-05 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:18:05 [end_date_ymd] => 2025-03-05 19:18:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 16:18:05' and `end` < '2025-03-05 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-03-05 19:18:17] Production.INFO: count ==2953 [2025-03-05 19:18:18] Production.ERROR: pbx CDR StartTime 2025-03-05 16:18:05 - End Time 2025-03-05 19:18:05 [2025-03-05 19:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615225', 'tblTempUsageDetail_20' ) start [2025-03-05 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615225', 'tblTempUsageDetail_20' ) end [2025-03-05 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615225', 'tblTempVendorCDR_20' ) start [2025-03-05 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615225', 'tblTempVendorCDR_20' ) end [2025-03-05 19:18:18] Production.INFO: ProcessCDR(1,14615225,1,1,2) [2025-03-05 19:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615225', 'tblTempUsageDetail_20' ) start [2025-03-05 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615225', 'tblTempUsageDetail_20' ) end [2025-03-05 19:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:18:22] Production.INFO: ==5957== Releasing lock... [2025-03-05 19:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:18:22] Production.INFO: 49.75 MB #Memory Used# [2025-03-05 19:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:19:06 [end_date_ymd] => 2025-03-05 19:19:06 [RateCDR] => 1 ) [2025-03-05 19:19: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-03-05 16:19:06' and `end` < '2025-03-05 19:19: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-03-05 19:19:18] Production.INFO: count ==2933 [2025-03-05 19:19:19] Production.ERROR: pbx CDR StartTime 2025-03-05 16:19:06 - End Time 2025-03-05 19:19:06 [2025-03-05 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615230', 'tblTempUsageDetail_20' ) start [2025-03-05 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615230', 'tblTempUsageDetail_20' ) end [2025-03-05 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615230', 'tblTempVendorCDR_20' ) start [2025-03-05 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615230', 'tblTempVendorCDR_20' ) end [2025-03-05 19:19:19] Production.INFO: ProcessCDR(1,14615230,1,1,2) [2025-03-05 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615230', 'tblTempUsageDetail_20' ) start [2025-03-05 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615230', 'tblTempUsageDetail_20' ) end [2025-03-05 19:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:19:24] Production.INFO: ==6035== Releasing lock... [2025-03-05 19:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:19:24] Production.INFO: 49.75 MB #Memory Used# [2025-03-05 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:20:05 [end_date_ymd] => 2025-03-05 19:20:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 16:20:05' and `end` < '2025-03-05 19: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-03-05 19:20:18] Production.INFO: count ==2927 [2025-03-05 19:20:19] Production.ERROR: pbx CDR StartTime 2025-03-05 16:20:05 - End Time 2025-03-05 19:20:05 [2025-03-05 19:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615236', 'tblTempUsageDetail_20' ) start [2025-03-05 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615236', 'tblTempUsageDetail_20' ) end [2025-03-05 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615236', 'tblTempVendorCDR_20' ) start [2025-03-05 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615236', 'tblTempVendorCDR_20' ) end [2025-03-05 19:20:19] Production.INFO: ProcessCDR(1,14615236,1,1,2) [2025-03-05 19:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615236', 'tblTempUsageDetail_20' ) start [2025-03-05 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615236', 'tblTempUsageDetail_20' ) end [2025-03-05 19:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:20:24] Production.INFO: ==6109== Releasing lock... [2025-03-05 19:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:20:24] Production.INFO: 49.75 MB #Memory Used# [2025-03-05 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:21:05 [end_date_ymd] => 2025-03-05 19:21:05 [RateCDR] => 1 ) [2025-03-05 19: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-03-05 16:21:05' and `end` < '2025-03-05 19: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-03-05 19:21:17] Production.INFO: count ==2830 [2025-03-05 19:21:18] Production.ERROR: pbx CDR StartTime 2025-03-05 16:21:05 - End Time 2025-03-05 19:21:05 [2025-03-05 19:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615241', 'tblTempUsageDetail_20' ) start [2025-03-05 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615241', 'tblTempUsageDetail_20' ) end [2025-03-05 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615241', 'tblTempVendorCDR_20' ) start [2025-03-05 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615241', 'tblTempVendorCDR_20' ) end [2025-03-05 19:21:18] Production.INFO: ProcessCDR(1,14615241,1,1,2) [2025-03-05 19:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615241', 'tblTempUsageDetail_20' ) start [2025-03-05 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615241', 'tblTempUsageDetail_20' ) end [2025-03-05 19:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:21:23] Production.INFO: ==6192== Releasing lock... [2025-03-05 19:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:21:23] Production.INFO: 49.25 MB #Memory Used# [2025-03-05 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:22:05 [end_date_ymd] => 2025-03-05 19:22:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 16:22:05' and `end` < '2025-03-05 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-03-05 19:22:18] Production.INFO: count ==2807 [2025-03-05 19:22:19] Production.ERROR: pbx CDR StartTime 2025-03-05 16:22:05 - End Time 2025-03-05 19:22:05 [2025-03-05 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615246', 'tblTempUsageDetail_20' ) start [2025-03-05 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615246', 'tblTempUsageDetail_20' ) end [2025-03-05 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615246', 'tblTempVendorCDR_20' ) start [2025-03-05 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615246', 'tblTempVendorCDR_20' ) end [2025-03-05 19:22:19] Production.INFO: ProcessCDR(1,14615246,1,1,2) [2025-03-05 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615246', 'tblTempUsageDetail_20' ) start [2025-03-05 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615246', 'tblTempUsageDetail_20' ) end [2025-03-05 19:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:22:22] Production.INFO: ==6308== Releasing lock... [2025-03-05 19:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:22:22] Production.INFO: 49.25 MB #Memory Used# [2025-03-05 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:23:05 [end_date_ymd] => 2025-03-05 19:23:05 [RateCDR] => 1 ) [2025-03-05 19: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-03-05 16:23:05' and `end` < '2025-03-05 19: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-03-05 19:23:18] Production.INFO: count ==2803 [2025-03-05 19:23:19] Production.ERROR: pbx CDR StartTime 2025-03-05 16:23:05 - End Time 2025-03-05 19:23:05 [2025-03-05 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615251', 'tblTempUsageDetail_20' ) start [2025-03-05 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615251', 'tblTempUsageDetail_20' ) end [2025-03-05 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615251', 'tblTempVendorCDR_20' ) start [2025-03-05 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615251', 'tblTempVendorCDR_20' ) end [2025-03-05 19:23:19] Production.INFO: ProcessCDR(1,14615251,1,1,2) [2025-03-05 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615251', 'tblTempUsageDetail_20' ) start [2025-03-05 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615251', 'tblTempUsageDetail_20' ) end [2025-03-05 19:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:23:23] Production.INFO: ==6390== Releasing lock... [2025-03-05 19:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:23:23] Production.INFO: 49 MB #Memory Used# [2025-03-05 19:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:24:06 [end_date_ymd] => 2025-03-05 19:24:06 [RateCDR] => 1 ) [2025-03-05 19: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-03-05 16:24:06' and `end` < '2025-03-05 19: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-03-05 19:24:18] Production.INFO: count ==2789 [2025-03-05 19:24:19] Production.ERROR: pbx CDR StartTime 2025-03-05 16:24:06 - End Time 2025-03-05 19:24:06 [2025-03-05 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615256', 'tblTempUsageDetail_20' ) start [2025-03-05 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615256', 'tblTempUsageDetail_20' ) end [2025-03-05 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615256', 'tblTempVendorCDR_20' ) start [2025-03-05 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615256', 'tblTempVendorCDR_20' ) end [2025-03-05 19:24:19] Production.INFO: ProcessCDR(1,14615256,1,1,2) [2025-03-05 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615256', 'tblTempUsageDetail_20' ) start [2025-03-05 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615256', 'tblTempUsageDetail_20' ) end [2025-03-05 19:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:24:23] Production.INFO: ==6472== Releasing lock... [2025-03-05 19:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:24:23] Production.INFO: 49 MB #Memory Used# [2025-03-05 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:25:05 [end_date_ymd] => 2025-03-05 19:25:05 [RateCDR] => 1 ) [2025-03-05 19: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-03-05 16:25:05' and `end` < '2025-03-05 19: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-03-05 19:25:18] Production.INFO: count ==2783 [2025-03-05 19:25:19] Production.ERROR: pbx CDR StartTime 2025-03-05 16:25:05 - End Time 2025-03-05 19:25:05 [2025-03-05 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615261', 'tblTempUsageDetail_20' ) start [2025-03-05 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615261', 'tblTempUsageDetail_20' ) end [2025-03-05 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615261', 'tblTempVendorCDR_20' ) start [2025-03-05 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615261', 'tblTempVendorCDR_20' ) end [2025-03-05 19:25:19] Production.INFO: ProcessCDR(1,14615261,1,1,2) [2025-03-05 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615261', 'tblTempUsageDetail_20' ) start [2025-03-05 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615261', 'tblTempUsageDetail_20' ) end [2025-03-05 19:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:25:22] Production.INFO: ==6555== Releasing lock... [2025-03-05 19:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:25:22] Production.INFO: 49 MB #Memory Used# [2025-03-05 19:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:26:06 [end_date_ymd] => 2025-03-05 19:26:06 [RateCDR] => 1 ) [2025-03-05 19: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-03-05 16:26:06' and `end` < '2025-03-05 19: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-03-05 19:26:19] Production.INFO: count ==2777 [2025-03-05 19:26:19] Production.ERROR: pbx CDR StartTime 2025-03-05 16:26:06 - End Time 2025-03-05 19:26:06 [2025-03-05 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615266', 'tblTempUsageDetail_20' ) start [2025-03-05 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615266', 'tblTempUsageDetail_20' ) end [2025-03-05 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615266', 'tblTempVendorCDR_20' ) start [2025-03-05 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615266', 'tblTempVendorCDR_20' ) end [2025-03-05 19:26:20] Production.INFO: ProcessCDR(1,14615266,1,1,2) [2025-03-05 19:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615266', 'tblTempUsageDetail_20' ) start [2025-03-05 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615266', 'tblTempUsageDetail_20' ) end [2025-03-05 19:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:26:23] Production.INFO: ==6638== Releasing lock... [2025-03-05 19:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:26:23] Production.INFO: 49 MB #Memory Used# [2025-03-05 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:27:05 [end_date_ymd] => 2025-03-05 19:27:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 16:27:05' and `end` < '2025-03-05 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-03-05 19:27:17] Production.INFO: count ==2758 [2025-03-05 19:27:18] Production.ERROR: pbx CDR StartTime 2025-03-05 16:27:05 - End Time 2025-03-05 19:27:05 [2025-03-05 19:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615271', 'tblTempUsageDetail_20' ) start [2025-03-05 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615271', 'tblTempUsageDetail_20' ) end [2025-03-05 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615271', 'tblTempVendorCDR_20' ) start [2025-03-05 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615271', 'tblTempVendorCDR_20' ) end [2025-03-05 19:27:18] Production.INFO: ProcessCDR(1,14615271,1,1,2) [2025-03-05 19:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615271', 'tblTempUsageDetail_20' ) start [2025-03-05 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615271', 'tblTempUsageDetail_20' ) end [2025-03-05 19:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:27:23] Production.INFO: ==6726== Releasing lock... [2025-03-05 19:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:27:23] Production.INFO: 48.75 MB #Memory Used# [2025-03-05 19:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:28:06 [end_date_ymd] => 2025-03-05 19:28:06 [RateCDR] => 1 ) [2025-03-05 19: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-03-05 16:28:06' and `end` < '2025-03-05 19: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-03-05 19:28:18] Production.INFO: count ==2762 [2025-03-05 19:28:19] Production.ERROR: pbx CDR StartTime 2025-03-05 16:28:06 - End Time 2025-03-05 19:28:06 [2025-03-05 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615276', 'tblTempUsageDetail_20' ) start [2025-03-05 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615276', 'tblTempUsageDetail_20' ) end [2025-03-05 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615276', 'tblTempVendorCDR_20' ) start [2025-03-05 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615276', 'tblTempVendorCDR_20' ) end [2025-03-05 19:28:19] Production.INFO: ProcessCDR(1,14615276,1,1,2) [2025-03-05 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615276', 'tblTempUsageDetail_20' ) start [2025-03-05 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615276', 'tblTempUsageDetail_20' ) end [2025-03-05 19:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:28:23] Production.INFO: ==6808== Releasing lock... [2025-03-05 19:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:28:23] Production.INFO: 48.75 MB #Memory Used# [2025-03-05 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:29:05 [end_date_ymd] => 2025-03-05 19:29:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 16:29:05' and `end` < '2025-03-05 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-03-05 19:29:17] Production.INFO: count ==2760 [2025-03-05 19:29:18] Production.ERROR: pbx CDR StartTime 2025-03-05 16:29:05 - End Time 2025-03-05 19:29:05 [2025-03-05 19:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615281', 'tblTempUsageDetail_20' ) start [2025-03-05 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615281', 'tblTempUsageDetail_20' ) end [2025-03-05 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615281', 'tblTempVendorCDR_20' ) start [2025-03-05 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615281', 'tblTempVendorCDR_20' ) end [2025-03-05 19:29:18] Production.INFO: ProcessCDR(1,14615281,1,1,2) [2025-03-05 19:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615281', 'tblTempUsageDetail_20' ) start [2025-03-05 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615281', 'tblTempUsageDetail_20' ) end [2025-03-05 19:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:29:22] Production.INFO: ==6894== Releasing lock... [2025-03-05 19:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:29:22] Production.INFO: 48.75 MB #Memory Used# [2025-03-05 19:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:30:07 [end_date_ymd] => 2025-03-05 19:30:07 [RateCDR] => 1 ) [2025-03-05 19:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 16:30:07' and `end` < '2025-03-05 19:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-05 19:30:19] Production.INFO: count ==2738 [2025-03-05 19:30:20] Production.ERROR: pbx CDR StartTime 2025-03-05 16:30:07 - End Time 2025-03-05 19:30:07 [2025-03-05 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615287', 'tblTempUsageDetail_20' ) start [2025-03-05 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615287', 'tblTempUsageDetail_20' ) end [2025-03-05 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615287', 'tblTempVendorCDR_20' ) start [2025-03-05 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615287', 'tblTempVendorCDR_20' ) end [2025-03-05 19:30:20] Production.INFO: ProcessCDR(1,14615287,1,1,2) [2025-03-05 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615287', 'tblTempUsageDetail_20' ) start [2025-03-05 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615287', 'tblTempUsageDetail_20' ) end [2025-03-05 19:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:30:23] Production.INFO: ==6982== Releasing lock... [2025-03-05 19:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:30:23] Production.INFO: 48.5 MB #Memory Used# [2025-03-05 19:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:31:06 [end_date_ymd] => 2025-03-05 19:31:06 [RateCDR] => 1 ) [2025-03-05 19:31: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-03-05 16:31:06' and `end` < '2025-03-05 19:31: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-03-05 19:31:18] Production.INFO: count ==2661 [2025-03-05 19:31:19] Production.ERROR: pbx CDR StartTime 2025-03-05 16:31:06 - End Time 2025-03-05 19:31:06 [2025-03-05 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615292', 'tblTempUsageDetail_20' ) start [2025-03-05 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615292', 'tblTempUsageDetail_20' ) end [2025-03-05 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615292', 'tblTempVendorCDR_20' ) start [2025-03-05 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615292', 'tblTempVendorCDR_20' ) end [2025-03-05 19:31:19] Production.INFO: ProcessCDR(1,14615292,1,1,2) [2025-03-05 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615292', 'tblTempUsageDetail_20' ) start [2025-03-05 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615292', 'tblTempUsageDetail_20' ) end [2025-03-05 19:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:31:23] Production.INFO: ==7067== Releasing lock... [2025-03-05 19:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:31:23] Production.INFO: 48 MB #Memory Used# [2025-03-05 19:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:32:06 [end_date_ymd] => 2025-03-05 19:32:06 [RateCDR] => 1 ) [2025-03-05 19: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-03-05 16:32:06' and `end` < '2025-03-05 19: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-03-05 19:32:18] Production.INFO: count ==2640 [2025-03-05 19:32:19] Production.ERROR: pbx CDR StartTime 2025-03-05 16:32:06 - End Time 2025-03-05 19:32:06 [2025-03-05 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615297', 'tblTempUsageDetail_20' ) start [2025-03-05 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615297', 'tblTempUsageDetail_20' ) end [2025-03-05 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615297', 'tblTempVendorCDR_20' ) start [2025-03-05 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615297', 'tblTempVendorCDR_20' ) end [2025-03-05 19:32:19] Production.INFO: ProcessCDR(1,14615297,1,1,2) [2025-03-05 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615297', 'tblTempUsageDetail_20' ) start [2025-03-05 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615297', 'tblTempUsageDetail_20' ) end [2025-03-05 19:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:32:24] Production.INFO: ==7154== Releasing lock... [2025-03-05 19:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:32:24] Production.INFO: 48 MB #Memory Used# [2025-03-05 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:33:05 [end_date_ymd] => 2025-03-05 19:33:05 [RateCDR] => 1 ) [2025-03-05 19: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-03-05 16:33:05' and `end` < '2025-03-05 19: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-03-05 19:33:18] Production.INFO: count ==2620 [2025-03-05 19:33:18] Production.ERROR: pbx CDR StartTime 2025-03-05 16:33:05 - End Time 2025-03-05 19:33:05 [2025-03-05 19:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615302', 'tblTempUsageDetail_20' ) start [2025-03-05 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615302', 'tblTempUsageDetail_20' ) end [2025-03-05 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615302', 'tblTempVendorCDR_20' ) start [2025-03-05 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615302', 'tblTempVendorCDR_20' ) end [2025-03-05 19:33:18] Production.INFO: ProcessCDR(1,14615302,1,1,2) [2025-03-05 19:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615302', 'tblTempUsageDetail_20' ) start [2025-03-05 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615302', 'tblTempUsageDetail_20' ) end [2025-03-05 19:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:33:22] Production.INFO: ==7239== Releasing lock... [2025-03-05 19:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:33:22] Production.INFO: 48 MB #Memory Used# [2025-03-05 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:34:05 [end_date_ymd] => 2025-03-05 19:34:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 16:34:05' and `end` < '2025-03-05 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-03-05 19:34:18] Production.INFO: count ==2604 [2025-03-05 19:34:18] Production.ERROR: pbx CDR StartTime 2025-03-05 16:34:05 - End Time 2025-03-05 19:34:05 [2025-03-05 19:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615307', 'tblTempUsageDetail_20' ) start [2025-03-05 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615307', 'tblTempUsageDetail_20' ) end [2025-03-05 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615307', 'tblTempVendorCDR_20' ) start [2025-03-05 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615307', 'tblTempVendorCDR_20' ) end [2025-03-05 19:34:18] Production.INFO: ProcessCDR(1,14615307,1,1,2) [2025-03-05 19:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615307', 'tblTempUsageDetail_20' ) start [2025-03-05 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615307', 'tblTempUsageDetail_20' ) end [2025-03-05 19:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:34:23] Production.INFO: ==7313== Releasing lock... [2025-03-05 19:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:34:23] Production.INFO: 47.5 MB #Memory Used# [2025-03-05 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:35:05 [end_date_ymd] => 2025-03-05 19:35:05 [RateCDR] => 1 ) [2025-03-05 19: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-03-05 16:35:05' and `end` < '2025-03-05 19: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-03-05 19:35:17] Production.INFO: count ==2601 [2025-03-05 19:35:18] Production.ERROR: pbx CDR StartTime 2025-03-05 16:35:05 - End Time 2025-03-05 19:35:05 [2025-03-05 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615312', 'tblTempUsageDetail_20' ) start [2025-03-05 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615312', 'tblTempUsageDetail_20' ) end [2025-03-05 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615312', 'tblTempVendorCDR_20' ) start [2025-03-05 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615312', 'tblTempVendorCDR_20' ) end [2025-03-05 19:35:18] Production.INFO: ProcessCDR(1,14615312,1,1,2) [2025-03-05 19:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615312', 'tblTempUsageDetail_20' ) start [2025-03-05 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615312', 'tblTempUsageDetail_20' ) end [2025-03-05 19:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:35:21] Production.INFO: ==7398== Releasing lock... [2025-03-05 19:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:35:21] Production.INFO: 47.5 MB #Memory Used# [2025-03-05 19:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:36:06 [end_date_ymd] => 2025-03-05 19:36:06 [RateCDR] => 1 ) [2025-03-05 19:36: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-03-05 16:36:06' and `end` < '2025-03-05 19:36: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-03-05 19:36:18] Production.INFO: count ==2562 [2025-03-05 19:36:19] Production.ERROR: pbx CDR StartTime 2025-03-05 16:36:06 - End Time 2025-03-05 19:36:06 [2025-03-05 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615317', 'tblTempUsageDetail_20' ) start [2025-03-05 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615317', 'tblTempUsageDetail_20' ) end [2025-03-05 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615317', 'tblTempVendorCDR_20' ) start [2025-03-05 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615317', 'tblTempVendorCDR_20' ) end [2025-03-05 19:36:19] Production.INFO: ProcessCDR(1,14615317,1,1,2) [2025-03-05 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615317', 'tblTempUsageDetail_20' ) start [2025-03-05 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615317', 'tblTempUsageDetail_20' ) end [2025-03-05 19:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:36:24] Production.INFO: ==7479== Releasing lock... [2025-03-05 19:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:36:24] Production.INFO: 47.25 MB #Memory Used# [2025-03-05 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:37:05 [end_date_ymd] => 2025-03-05 19:37:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 16:37:05' and `end` < '2025-03-05 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-03-05 19:37:17] Production.INFO: count ==2514 [2025-03-05 19:37:18] Production.ERROR: pbx CDR StartTime 2025-03-05 16:37:05 - End Time 2025-03-05 19:37:05 [2025-03-05 19:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615322', 'tblTempUsageDetail_20' ) start [2025-03-05 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615322', 'tblTempUsageDetail_20' ) end [2025-03-05 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615322', 'tblTempVendorCDR_20' ) start [2025-03-05 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615322', 'tblTempVendorCDR_20' ) end [2025-03-05 19:37:18] Production.INFO: ProcessCDR(1,14615322,1,1,2) [2025-03-05 19:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615322', 'tblTempUsageDetail_20' ) start [2025-03-05 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615322', 'tblTempUsageDetail_20' ) end [2025-03-05 19:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:37:22] Production.INFO: ==7558== Releasing lock... [2025-03-05 19:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:37:22] Production.INFO: 47 MB #Memory Used# [2025-03-05 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:38:05 [end_date_ymd] => 2025-03-05 19:38:05 [RateCDR] => 1 ) [2025-03-05 19: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-03-05 16:38:05' and `end` < '2025-03-05 19: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-03-05 19:38:18] Production.INFO: count ==2463 [2025-03-05 19:38:18] Production.ERROR: pbx CDR StartTime 2025-03-05 16:38:05 - End Time 2025-03-05 19:38:05 [2025-03-05 19:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615327', 'tblTempUsageDetail_20' ) start [2025-03-05 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615327', 'tblTempUsageDetail_20' ) end [2025-03-05 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615327', 'tblTempVendorCDR_20' ) start [2025-03-05 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615327', 'tblTempVendorCDR_20' ) end [2025-03-05 19:38:18] Production.INFO: ProcessCDR(1,14615327,1,1,2) [2025-03-05 19:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615327', 'tblTempUsageDetail_20' ) start [2025-03-05 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615327', 'tblTempUsageDetail_20' ) end [2025-03-05 19:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:38:22] Production.INFO: ==7669== Releasing lock... [2025-03-05 19:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:38:22] Production.INFO: 46.5 MB #Memory Used# [2025-03-05 19:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:39:04 [end_date_ymd] => 2025-03-05 19:39:04 [RateCDR] => 1 ) [2025-03-05 19: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-03-05 16:39:04' and `end` < '2025-03-05 19: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-03-05 19:39:17] Production.INFO: count ==2459 [2025-03-05 19:39:18] Production.ERROR: pbx CDR StartTime 2025-03-05 16:39:04 - End Time 2025-03-05 19:39:04 [2025-03-05 19:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615332', 'tblTempUsageDetail_20' ) start [2025-03-05 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615332', 'tblTempUsageDetail_20' ) end [2025-03-05 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615332', 'tblTempVendorCDR_20' ) start [2025-03-05 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615332', 'tblTempVendorCDR_20' ) end [2025-03-05 19:39:18] Production.INFO: ProcessCDR(1,14615332,1,1,2) [2025-03-05 19:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615332', 'tblTempUsageDetail_20' ) start [2025-03-05 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615332', 'tblTempUsageDetail_20' ) end [2025-03-05 19:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:39:22] Production.INFO: ==7748== Releasing lock... [2025-03-05 19:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:39:22] Production.INFO: 46.5 MB #Memory Used# [2025-03-05 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:40:06 [end_date_ymd] => 2025-03-05 19:40:06 [RateCDR] => 1 ) [2025-03-05 19: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-03-05 16:40:06' and `end` < '2025-03-05 19: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-03-05 19:40:18] Production.INFO: count ==2448 [2025-03-05 19:40:19] Production.ERROR: pbx CDR StartTime 2025-03-05 16:40:06 - End Time 2025-03-05 19:40:06 [2025-03-05 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615338', 'tblTempUsageDetail_20' ) start [2025-03-05 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615338', 'tblTempUsageDetail_20' ) end [2025-03-05 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615338', 'tblTempVendorCDR_20' ) start [2025-03-05 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615338', 'tblTempVendorCDR_20' ) end [2025-03-05 19:40:19] Production.INFO: ProcessCDR(1,14615338,1,1,2) [2025-03-05 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615338', 'tblTempUsageDetail_20' ) start [2025-03-05 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615338', 'tblTempUsageDetail_20' ) end [2025-03-05 19:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:40:24] Production.INFO: ==7825== Releasing lock... [2025-03-05 19:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:40:24] Production.INFO: 46.75 MB #Memory Used# [2025-03-05 19:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:41:06 [end_date_ymd] => 2025-03-05 19:41:06 [RateCDR] => 1 ) [2025-03-05 19:41: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-03-05 16:41:06' and `end` < '2025-03-05 19:41: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-03-05 19:41:18] Production.INFO: count ==2349 [2025-03-05 19:41:19] Production.ERROR: pbx CDR StartTime 2025-03-05 16:41:06 - End Time 2025-03-05 19:41:06 [2025-03-05 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615343', 'tblTempUsageDetail_20' ) start [2025-03-05 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615343', 'tblTempUsageDetail_20' ) end [2025-03-05 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615343', 'tblTempVendorCDR_20' ) start [2025-03-05 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615343', 'tblTempVendorCDR_20' ) end [2025-03-05 19:41:19] Production.INFO: ProcessCDR(1,14615343,1,1,2) [2025-03-05 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615343', 'tblTempUsageDetail_20' ) start [2025-03-05 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615343', 'tblTempUsageDetail_20' ) end [2025-03-05 19:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:41:22] Production.INFO: ==7904== Releasing lock... [2025-03-05 19:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:41:22] Production.INFO: 45.75 MB #Memory Used# [2025-03-05 19:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:42:06 [end_date_ymd] => 2025-03-05 19:42:06 [RateCDR] => 1 ) [2025-03-05 19: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-03-05 16:42:06' and `end` < '2025-03-05 19: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-03-05 19:42:18] Production.INFO: count ==2347 [2025-03-05 19:42:19] Production.ERROR: pbx CDR StartTime 2025-03-05 16:42:06 - End Time 2025-03-05 19:42:06 [2025-03-05 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615348', 'tblTempUsageDetail_20' ) start [2025-03-05 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615348', 'tblTempUsageDetail_20' ) end [2025-03-05 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615348', 'tblTempVendorCDR_20' ) start [2025-03-05 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615348', 'tblTempVendorCDR_20' ) end [2025-03-05 19:42:19] Production.INFO: ProcessCDR(1,14615348,1,1,2) [2025-03-05 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615348', 'tblTempUsageDetail_20' ) start [2025-03-05 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615348', 'tblTempUsageDetail_20' ) end [2025-03-05 19:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:42:22] Production.INFO: ==7981== Releasing lock... [2025-03-05 19:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:42:22] Production.INFO: 45.75 MB #Memory Used# [2025-03-05 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:43:05 [end_date_ymd] => 2025-03-05 19:43:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 16:43:05' and `end` < '2025-03-05 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-03-05 19:43:18] Production.INFO: count ==2340 [2025-03-05 19:43:18] Production.ERROR: pbx CDR StartTime 2025-03-05 16:43:05 - End Time 2025-03-05 19:43:05 [2025-03-05 19:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615353', 'tblTempUsageDetail_20' ) start [2025-03-05 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615353', 'tblTempUsageDetail_20' ) end [2025-03-05 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615353', 'tblTempVendorCDR_20' ) start [2025-03-05 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615353', 'tblTempVendorCDR_20' ) end [2025-03-05 19:43:18] Production.INFO: ProcessCDR(1,14615353,1,1,2) [2025-03-05 19:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615353', 'tblTempUsageDetail_20' ) start [2025-03-05 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615353', 'tblTempUsageDetail_20' ) end [2025-03-05 19:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:43:23] Production.INFO: ==8062== Releasing lock... [2025-03-05 19:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:43:23] Production.INFO: 45.75 MB #Memory Used# [2025-03-05 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:44:05 [end_date_ymd] => 2025-03-05 19:44:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 16:44:05' and `end` < '2025-03-05 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-03-05 19:44:18] Production.INFO: count ==2338 [2025-03-05 19:44:18] Production.ERROR: pbx CDR StartTime 2025-03-05 16:44:05 - End Time 2025-03-05 19:44:05 [2025-03-05 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615358', 'tblTempUsageDetail_20' ) start [2025-03-05 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615358', 'tblTempUsageDetail_20' ) end [2025-03-05 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615358', 'tblTempVendorCDR_20' ) start [2025-03-05 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615358', 'tblTempVendorCDR_20' ) end [2025-03-05 19:44:18] Production.INFO: ProcessCDR(1,14615358,1,1,2) [2025-03-05 19:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615358', 'tblTempUsageDetail_20' ) start [2025-03-05 19:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615358', 'tblTempUsageDetail_20' ) end [2025-03-05 19:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:44:21] Production.INFO: ==8139== Releasing lock... [2025-03-05 19:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:44:21] Production.INFO: 45.5 MB #Memory Used# [2025-03-05 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:45:05 [end_date_ymd] => 2025-03-05 19:45:05 [RateCDR] => 1 ) [2025-03-05 19: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-03-05 16:45:05' and `end` < '2025-03-05 19: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-03-05 19:45:18] Production.INFO: count ==2324 [2025-03-05 19:45:18] Production.ERROR: pbx CDR StartTime 2025-03-05 16:45:05 - End Time 2025-03-05 19:45:05 [2025-03-05 19:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615363', 'tblTempUsageDetail_20' ) start [2025-03-05 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615363', 'tblTempUsageDetail_20' ) end [2025-03-05 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615363', 'tblTempVendorCDR_20' ) start [2025-03-05 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615363', 'tblTempVendorCDR_20' ) end [2025-03-05 19:45:18] Production.INFO: ProcessCDR(1,14615363,1,1,2) [2025-03-05 19:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615363', 'tblTempUsageDetail_20' ) start [2025-03-05 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615363', 'tblTempUsageDetail_20' ) end [2025-03-05 19:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:45:23] Production.INFO: ==8216== Releasing lock... [2025-03-05 19:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:45:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-05 19:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:46:06 [end_date_ymd] => 2025-03-05 19:46:06 [RateCDR] => 1 ) [2025-03-05 19: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-03-05 16:46:06' and `end` < '2025-03-05 19: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-03-05 19:46:18] Production.INFO: count ==2318 [2025-03-05 19:46:18] Production.ERROR: pbx CDR StartTime 2025-03-05 16:46:06 - End Time 2025-03-05 19:46:06 [2025-03-05 19:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615368', 'tblTempUsageDetail_20' ) start [2025-03-05 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615368', 'tblTempUsageDetail_20' ) end [2025-03-05 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615368', 'tblTempVendorCDR_20' ) start [2025-03-05 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615368', 'tblTempVendorCDR_20' ) end [2025-03-05 19:46:19] Production.INFO: ProcessCDR(1,14615368,1,1,2) [2025-03-05 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615368', 'tblTempUsageDetail_20' ) start [2025-03-05 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615368', 'tblTempUsageDetail_20' ) end [2025-03-05 19:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:46:23] Production.INFO: ==8295== Releasing lock... [2025-03-05 19:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:46:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-05 19:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:47:06 [end_date_ymd] => 2025-03-05 19:47:06 [RateCDR] => 1 ) [2025-03-05 19:47: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-03-05 16:47:06' and `end` < '2025-03-05 19:47: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-03-05 19:47:18] Production.INFO: count ==2317 [2025-03-05 19:47:19] Production.ERROR: pbx CDR StartTime 2025-03-05 16:47:06 - End Time 2025-03-05 19:47:06 [2025-03-05 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615373', 'tblTempUsageDetail_20' ) start [2025-03-05 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615373', 'tblTempUsageDetail_20' ) end [2025-03-05 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615373', 'tblTempVendorCDR_20' ) start [2025-03-05 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615373', 'tblTempVendorCDR_20' ) end [2025-03-05 19:47:19] Production.INFO: ProcessCDR(1,14615373,1,1,2) [2025-03-05 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615373', 'tblTempUsageDetail_20' ) start [2025-03-05 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615373', 'tblTempUsageDetail_20' ) end [2025-03-05 19:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:47:22] Production.INFO: ==8368== Releasing lock... [2025-03-05 19:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:47:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-05 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:48:05 [end_date_ymd] => 2025-03-05 19:48:05 [RateCDR] => 1 ) [2025-03-05 19: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-03-05 16:48:05' and `end` < '2025-03-05 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-03-05 19:48:17] Production.INFO: count ==2311 [2025-03-05 19:48:18] Production.ERROR: pbx CDR StartTime 2025-03-05 16:48:05 - End Time 2025-03-05 19:48:05 [2025-03-05 19:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615378', 'tblTempUsageDetail_20' ) start [2025-03-05 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615378', 'tblTempUsageDetail_20' ) end [2025-03-05 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615378', 'tblTempVendorCDR_20' ) start [2025-03-05 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615378', 'tblTempVendorCDR_20' ) end [2025-03-05 19:48:18] Production.INFO: ProcessCDR(1,14615378,1,1,2) [2025-03-05 19:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615378', 'tblTempUsageDetail_20' ) start [2025-03-05 19:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615378', 'tblTempUsageDetail_20' ) end [2025-03-05 19:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:48:21] Production.INFO: ==8443== Releasing lock... [2025-03-05 19:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:48:21] Production.INFO: 45.5 MB #Memory Used# [2025-03-05 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:49:05 [end_date_ymd] => 2025-03-05 19:49:05 [RateCDR] => 1 ) [2025-03-05 19: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-03-05 16:49:05' and `end` < '2025-03-05 19: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-03-05 19:49:18] Production.INFO: count ==2296 [2025-03-05 19:49:18] Production.ERROR: pbx CDR StartTime 2025-03-05 16:49:05 - End Time 2025-03-05 19:49:05 [2025-03-05 19:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615383', 'tblTempUsageDetail_20' ) start [2025-03-05 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615383', 'tblTempUsageDetail_20' ) end [2025-03-05 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615383', 'tblTempVendorCDR_20' ) start [2025-03-05 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615383', 'tblTempVendorCDR_20' ) end [2025-03-05 19:49:18] Production.INFO: ProcessCDR(1,14615383,1,1,2) [2025-03-05 19:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615383', 'tblTempUsageDetail_20' ) start [2025-03-05 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615383', 'tblTempUsageDetail_20' ) end [2025-03-05 19:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:49:22] Production.INFO: ==8516== Releasing lock... [2025-03-05 19:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:49:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-05 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:50:05 [end_date_ymd] => 2025-03-05 19:50:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 16:50:05' and `end` < '2025-03-05 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-03-05 19:50:18] Production.INFO: count ==2290 [2025-03-05 19:50:18] Production.ERROR: pbx CDR StartTime 2025-03-05 16:50:05 - End Time 2025-03-05 19:50:05 [2025-03-05 19:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615389', 'tblTempUsageDetail_20' ) start [2025-03-05 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615389', 'tblTempUsageDetail_20' ) end [2025-03-05 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615389', 'tblTempVendorCDR_20' ) start [2025-03-05 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615389', 'tblTempVendorCDR_20' ) end [2025-03-05 19:50:18] Production.INFO: ProcessCDR(1,14615389,1,1,2) [2025-03-05 19:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615389', 'tblTempUsageDetail_20' ) start [2025-03-05 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615389', 'tblTempUsageDetail_20' ) end [2025-03-05 19:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:50:22] Production.INFO: ==8597== Releasing lock... [2025-03-05 19:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:50:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-05 19:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:51:06 [end_date_ymd] => 2025-03-05 19:51:06 [RateCDR] => 1 ) [2025-03-05 19: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-03-05 16:51:06' and `end` < '2025-03-05 19: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-03-05 19:51:18] Production.INFO: count ==2225 [2025-03-05 19:51:19] Production.ERROR: pbx CDR StartTime 2025-03-05 16:51:06 - End Time 2025-03-05 19:51:06 [2025-03-05 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615394', 'tblTempUsageDetail_20' ) start [2025-03-05 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615394', 'tblTempUsageDetail_20' ) end [2025-03-05 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615394', 'tblTempVendorCDR_20' ) start [2025-03-05 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615394', 'tblTempVendorCDR_20' ) end [2025-03-05 19:51:19] Production.INFO: ProcessCDR(1,14615394,1,1,2) [2025-03-05 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615394', 'tblTempUsageDetail_20' ) start [2025-03-05 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615394', 'tblTempUsageDetail_20' ) end [2025-03-05 19:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:51:22] Production.INFO: ==8670== Releasing lock... [2025-03-05 19:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:51:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-05 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:52:05 [end_date_ymd] => 2025-03-05 19:52:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 16:52:05' and `end` < '2025-03-05 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-03-05 19:52:17] Production.INFO: count ==2224 [2025-03-05 19:52:18] Production.ERROR: pbx CDR StartTime 2025-03-05 16:52:05 - End Time 2025-03-05 19:52:05 [2025-03-05 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615399', 'tblTempUsageDetail_20' ) start [2025-03-05 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615399', 'tblTempUsageDetail_20' ) end [2025-03-05 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615399', 'tblTempVendorCDR_20' ) start [2025-03-05 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615399', 'tblTempVendorCDR_20' ) end [2025-03-05 19:52:18] Production.INFO: ProcessCDR(1,14615399,1,1,2) [2025-03-05 19:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615399', 'tblTempUsageDetail_20' ) start [2025-03-05 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615399', 'tblTempUsageDetail_20' ) end [2025-03-05 19:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:52:21] Production.INFO: ==8752== Releasing lock... [2025-03-05 19:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:52:21] Production.INFO: 44.75 MB #Memory Used# [2025-03-05 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:53:05 [end_date_ymd] => 2025-03-05 19:53:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 16:53:05' and `end` < '2025-03-05 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-03-05 19:53:18] Production.INFO: count ==2213 [2025-03-05 19:53:18] Production.ERROR: pbx CDR StartTime 2025-03-05 16:53:05 - End Time 2025-03-05 19:53:05 [2025-03-05 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615404', 'tblTempUsageDetail_20' ) start [2025-03-05 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615404', 'tblTempUsageDetail_20' ) end [2025-03-05 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615404', 'tblTempVendorCDR_20' ) start [2025-03-05 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615404', 'tblTempVendorCDR_20' ) end [2025-03-05 19:53:18] Production.INFO: ProcessCDR(1,14615404,1,1,2) [2025-03-05 19:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615404', 'tblTempUsageDetail_20' ) start [2025-03-05 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615404', 'tblTempUsageDetail_20' ) end [2025-03-05 19:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:53:22] Production.INFO: ==8865== Releasing lock... [2025-03-05 19:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:53:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-05 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:54:05 [end_date_ymd] => 2025-03-05 19:54:05 [RateCDR] => 1 ) [2025-03-05 19: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-03-05 16:54:05' and `end` < '2025-03-05 19: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-03-05 19:54:17] Production.INFO: count ==2208 [2025-03-05 19:54:18] Production.ERROR: pbx CDR StartTime 2025-03-05 16:54:05 - End Time 2025-03-05 19:54:05 [2025-03-05 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615409', 'tblTempUsageDetail_20' ) start [2025-03-05 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615409', 'tblTempUsageDetail_20' ) end [2025-03-05 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615409', 'tblTempVendorCDR_20' ) start [2025-03-05 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615409', 'tblTempVendorCDR_20' ) end [2025-03-05 19:54:18] Production.INFO: ProcessCDR(1,14615409,1,1,2) [2025-03-05 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615409', 'tblTempUsageDetail_20' ) start [2025-03-05 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615409', 'tblTempUsageDetail_20' ) end [2025-03-05 19:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:54:21] Production.INFO: ==8945== Releasing lock... [2025-03-05 19:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:54:21] Production.INFO: 44.75 MB #Memory Used# [2025-03-05 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:55:05 [end_date_ymd] => 2025-03-05 19:55:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 16:55:05' and `end` < '2025-03-05 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-03-05 19:55:17] Production.INFO: count ==2205 [2025-03-05 19:55:18] Production.ERROR: pbx CDR StartTime 2025-03-05 16:55:05 - End Time 2025-03-05 19:55:05 [2025-03-05 19:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615414', 'tblTempUsageDetail_20' ) start [2025-03-05 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615414', 'tblTempUsageDetail_20' ) end [2025-03-05 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615414', 'tblTempVendorCDR_20' ) start [2025-03-05 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615414', 'tblTempVendorCDR_20' ) end [2025-03-05 19:55:18] Production.INFO: ProcessCDR(1,14615414,1,1,2) [2025-03-05 19:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615414', 'tblTempUsageDetail_20' ) start [2025-03-05 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615414', 'tblTempUsageDetail_20' ) end [2025-03-05 19:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:55:22] Production.INFO: ==9015== Releasing lock... [2025-03-05 19:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:55:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-05 19:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:56:06 [end_date_ymd] => 2025-03-05 19:56:06 [RateCDR] => 1 ) [2025-03-05 19: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-03-05 16:56:06' and `end` < '2025-03-05 19: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-03-05 19:56:18] Production.INFO: count ==2199 [2025-03-05 19:56:19] Production.ERROR: pbx CDR StartTime 2025-03-05 16:56:06 - End Time 2025-03-05 19:56:06 [2025-03-05 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615419', 'tblTempUsageDetail_20' ) start [2025-03-05 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615419', 'tblTempUsageDetail_20' ) end [2025-03-05 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615419', 'tblTempVendorCDR_20' ) start [2025-03-05 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615419', 'tblTempVendorCDR_20' ) end [2025-03-05 19:56:19] Production.INFO: ProcessCDR(1,14615419,1,1,2) [2025-03-05 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615419', 'tblTempUsageDetail_20' ) start [2025-03-05 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615419', 'tblTempUsageDetail_20' ) end [2025-03-05 19:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:56:23] Production.INFO: ==9092== Releasing lock... [2025-03-05 19:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:56:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-05 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:57:05 [end_date_ymd] => 2025-03-05 19:57:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 16:57:05' and `end` < '2025-03-05 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-03-05 19:57:18] Production.INFO: count ==2190 [2025-03-05 19:57:18] Production.ERROR: pbx CDR StartTime 2025-03-05 16:57:05 - End Time 2025-03-05 19:57:05 [2025-03-05 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615424', 'tblTempUsageDetail_20' ) start [2025-03-05 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615424', 'tblTempUsageDetail_20' ) end [2025-03-05 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615424', 'tblTempVendorCDR_20' ) start [2025-03-05 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615424', 'tblTempVendorCDR_20' ) end [2025-03-05 19:57:18] Production.INFO: ProcessCDR(1,14615424,1,1,2) [2025-03-05 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615424', 'tblTempUsageDetail_20' ) start [2025-03-05 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615424', 'tblTempUsageDetail_20' ) end [2025-03-05 19:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:57:21] Production.INFO: ==9162== Releasing lock... [2025-03-05 19:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:57:21] Production.INFO: 44.5 MB #Memory Used# [2025-03-05 19:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:58:04 [end_date_ymd] => 2025-03-05 19:58:04 [RateCDR] => 1 ) [2025-03-05 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-03-05 16:58:04' and `end` < '2025-03-05 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-03-05 19:58:17] Production.INFO: count ==2189 [2025-03-05 19:58:17] Production.ERROR: pbx CDR StartTime 2025-03-05 16:58:04 - End Time 2025-03-05 19:58:04 [2025-03-05 19:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615429', 'tblTempUsageDetail_20' ) start [2025-03-05 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615429', 'tblTempUsageDetail_20' ) end [2025-03-05 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615429', 'tblTempVendorCDR_20' ) start [2025-03-05 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615429', 'tblTempVendorCDR_20' ) end [2025-03-05 19:58:17] Production.INFO: ProcessCDR(1,14615429,1,1,2) [2025-03-05 19:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615429', 'tblTempUsageDetail_20' ) start [2025-03-05 19:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615429', 'tblTempUsageDetail_20' ) end [2025-03-05 19:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:58:21] Production.INFO: ==9234== Releasing lock... [2025-03-05 19:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:58:21] Production.INFO: 44.5 MB #Memory Used# [2025-03-05 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 16:59:05 [end_date_ymd] => 2025-03-05 19:59:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 16:59:05' and `end` < '2025-03-05 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-03-05 19:59:17] Production.INFO: count ==2191 [2025-03-05 19:59:18] Production.ERROR: pbx CDR StartTime 2025-03-05 16:59:05 - End Time 2025-03-05 19:59:05 [2025-03-05 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615434', 'tblTempUsageDetail_20' ) start [2025-03-05 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615434', 'tblTempUsageDetail_20' ) end [2025-03-05 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615434', 'tblTempVendorCDR_20' ) start [2025-03-05 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615434', 'tblTempVendorCDR_20' ) end [2025-03-05 19:59:18] Production.INFO: ProcessCDR(1,14615434,1,1,2) [2025-03-05 19:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 19:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615434', 'tblTempUsageDetail_20' ) start [2025-03-05 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615434', 'tblTempUsageDetail_20' ) end [2025-03-05 19:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 19:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 19:59:21] Production.INFO: ==9305== Releasing lock... [2025-03-05 19:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 19:59:21] Production.INFO: 44.5 MB #Memory Used# [2025-03-05 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:00:06 [end_date_ymd] => 2025-03-05 20:00:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 17:00:06' and `end` < '2025-03-05 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-03-05 20:00:19] Production.INFO: count ==2194 [2025-03-05 20:00:19] Production.ERROR: pbx CDR StartTime 2025-03-05 17:00:06 - End Time 2025-03-05 20:00:06 [2025-03-05 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615439', 'tblTempUsageDetail_20' ) start [2025-03-05 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615439', 'tblTempUsageDetail_20' ) end [2025-03-05 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615439', 'tblTempVendorCDR_20' ) start [2025-03-05 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615439', 'tblTempVendorCDR_20' ) end [2025-03-05 20:00:19] Production.INFO: ProcessCDR(1,14615439,1,1,2) [2025-03-05 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615439', 'tblTempUsageDetail_20' ) start [2025-03-05 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615439', 'tblTempUsageDetail_20' ) end [2025-03-05 20:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:00:23] Production.INFO: ==9381== Releasing lock... [2025-03-05 20:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:00:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-05 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:01:05 [end_date_ymd] => 2025-03-05 20:01:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 17:01:05' and `end` < '2025-03-05 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-03-05 20:01:17] Production.INFO: count ==2128 [2025-03-05 20:01:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:01:05 - End Time 2025-03-05 20:01:05 [2025-03-05 20:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615445', 'tblTempUsageDetail_20' ) start [2025-03-05 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615445', 'tblTempUsageDetail_20' ) end [2025-03-05 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615445', 'tblTempVendorCDR_20' ) start [2025-03-05 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615445', 'tblTempVendorCDR_20' ) end [2025-03-05 20:01:18] Production.INFO: ProcessCDR(1,14615445,1,1,2) [2025-03-05 20:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615445', 'tblTempUsageDetail_20' ) start [2025-03-05 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615445', 'tblTempUsageDetail_20' ) end [2025-03-05 20:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:01:22] Production.INFO: ==9508== Releasing lock... [2025-03-05 20:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:01:22] Production.INFO: 44 MB #Memory Used# [2025-03-05 20:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:02:06 [end_date_ymd] => 2025-03-05 20:02:06 [RateCDR] => 1 ) [2025-03-05 20:02: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-03-05 17:02:06' and `end` < '2025-03-05 20:02: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-03-05 20:02:18] Production.INFO: count ==2117 [2025-03-05 20:02:19] Production.ERROR: pbx CDR StartTime 2025-03-05 17:02:06 - End Time 2025-03-05 20:02:06 [2025-03-05 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615450', 'tblTempUsageDetail_20' ) start [2025-03-05 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615450', 'tblTempUsageDetail_20' ) end [2025-03-05 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615450', 'tblTempVendorCDR_20' ) start [2025-03-05 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615450', 'tblTempVendorCDR_20' ) end [2025-03-05 20:02:19] Production.INFO: ProcessCDR(1,14615450,1,1,2) [2025-03-05 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615450', 'tblTempUsageDetail_20' ) start [2025-03-05 20:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615450', 'tblTempUsageDetail_20' ) end [2025-03-05 20:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:02:24] Production.INFO: ==9583== Releasing lock... [2025-03-05 20:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:02:24] Production.INFO: 44 MB #Memory Used# [2025-03-05 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:03:05 [end_date_ymd] => 2025-03-05 20:03:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 17:03:05' and `end` < '2025-03-05 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-03-05 20:03:17] Production.INFO: count ==2113 [2025-03-05 20:03:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:03:05 - End Time 2025-03-05 20:03:05 [2025-03-05 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615455', 'tblTempUsageDetail_20' ) start [2025-03-05 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615455', 'tblTempUsageDetail_20' ) end [2025-03-05 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615455', 'tblTempVendorCDR_20' ) start [2025-03-05 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615455', 'tblTempVendorCDR_20' ) end [2025-03-05 20:03:18] Production.INFO: ProcessCDR(1,14615455,1,1,2) [2025-03-05 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615455', 'tblTempUsageDetail_20' ) start [2025-03-05 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615455', 'tblTempUsageDetail_20' ) end [2025-03-05 20:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:03:22] Production.INFO: ==9653== Releasing lock... [2025-03-05 20:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:03:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-05 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:04:05 [end_date_ymd] => 2025-03-05 20:04:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 17:04:05' and `end` < '2025-03-05 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-03-05 20:04:18] Production.INFO: count ==2107 [2025-03-05 20:04:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:04:05 - End Time 2025-03-05 20:04:05 [2025-03-05 20:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615460', 'tblTempUsageDetail_20' ) start [2025-03-05 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615460', 'tblTempUsageDetail_20' ) end [2025-03-05 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615460', 'tblTempVendorCDR_20' ) start [2025-03-05 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615460', 'tblTempVendorCDR_20' ) end [2025-03-05 20:04:18] Production.INFO: ProcessCDR(1,14615460,1,1,2) [2025-03-05 20:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615460', 'tblTempUsageDetail_20' ) start [2025-03-05 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615460', 'tblTempUsageDetail_20' ) end [2025-03-05 20:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:04:23] Production.INFO: ==9728== Releasing lock... [2025-03-05 20:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:04:23] Production.INFO: 43.75 MB #Memory Used# [2025-03-05 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:05:05 [end_date_ymd] => 2025-03-05 20:05:05 [RateCDR] => 1 ) [2025-03-05 20: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-03-05 17:05:05' and `end` < '2025-03-05 20: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-03-05 20:05:17] Production.INFO: count ==2091 [2025-03-05 20:05:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:05:05 - End Time 2025-03-05 20:05:05 [2025-03-05 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615465', 'tblTempUsageDetail_20' ) start [2025-03-05 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615465', 'tblTempUsageDetail_20' ) end [2025-03-05 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615465', 'tblTempVendorCDR_20' ) start [2025-03-05 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615465', 'tblTempVendorCDR_20' ) end [2025-03-05 20:05:18] Production.INFO: ProcessCDR(1,14615465,1,1,2) [2025-03-05 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615465', 'tblTempUsageDetail_20' ) start [2025-03-05 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615465', 'tblTempUsageDetail_20' ) end [2025-03-05 20:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:05:23] Production.INFO: ==9801== Releasing lock... [2025-03-05 20:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:05:23] Production.INFO: 43.5 MB #Memory Used# [2025-03-05 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:06:05 [end_date_ymd] => 2025-03-05 20:06:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 17:06:05' and `end` < '2025-03-05 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-03-05 20:06:17] Production.INFO: count ==2080 [2025-03-05 20:06:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:06:05 - End Time 2025-03-05 20:06:05 [2025-03-05 20:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615470', 'tblTempUsageDetail_20' ) start [2025-03-05 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615470', 'tblTempUsageDetail_20' ) end [2025-03-05 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615470', 'tblTempVendorCDR_20' ) start [2025-03-05 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615470', 'tblTempVendorCDR_20' ) end [2025-03-05 20:06:18] Production.INFO: ProcessCDR(1,14615470,1,1,2) [2025-03-05 20:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615470', 'tblTempUsageDetail_20' ) start [2025-03-05 20:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615470', 'tblTempUsageDetail_20' ) end [2025-03-05 20:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:06:21] Production.INFO: ==9873== Releasing lock... [2025-03-05 20:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:06:21] Production.INFO: 43.5 MB #Memory Used# [2025-03-05 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:07:05 [end_date_ymd] => 2025-03-05 20:07:05 [RateCDR] => 1 ) [2025-03-05 20: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-03-05 17:07:05' and `end` < '2025-03-05 20: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-03-05 20:07:17] Production.INFO: count ==2058 [2025-03-05 20:07:17] Production.ERROR: pbx CDR StartTime 2025-03-05 17:07:05 - End Time 2025-03-05 20:07:05 [2025-03-05 20:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615475', 'tblTempUsageDetail_20' ) start [2025-03-05 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615475', 'tblTempUsageDetail_20' ) end [2025-03-05 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615475', 'tblTempVendorCDR_20' ) start [2025-03-05 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615475', 'tblTempVendorCDR_20' ) end [2025-03-05 20:07:17] Production.INFO: ProcessCDR(1,14615475,1,1,2) [2025-03-05 20:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615475', 'tblTempUsageDetail_20' ) start [2025-03-05 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615475', 'tblTempUsageDetail_20' ) end [2025-03-05 20:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:07:22] Production.INFO: ==9942== Releasing lock... [2025-03-05 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:07:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-05 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:08:05 [end_date_ymd] => 2025-03-05 20:08:05 [RateCDR] => 1 ) [2025-03-05 20: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-03-05 17:08:05' and `end` < '2025-03-05 20: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-03-05 20:08:17] Production.INFO: count ==2055 [2025-03-05 20:08:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:08:05 - End Time 2025-03-05 20:08:05 [2025-03-05 20:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615480', 'tblTempUsageDetail_20' ) start [2025-03-05 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615480', 'tblTempUsageDetail_20' ) end [2025-03-05 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615480', 'tblTempVendorCDR_20' ) start [2025-03-05 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615480', 'tblTempVendorCDR_20' ) end [2025-03-05 20:08:18] Production.INFO: ProcessCDR(1,14615480,1,1,2) [2025-03-05 20:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615480', 'tblTempUsageDetail_20' ) start [2025-03-05 20:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615480', 'tblTempUsageDetail_20' ) end [2025-03-05 20:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:08:21] Production.INFO: ==10056== Releasing lock... [2025-03-05 20:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:08:21] Production.INFO: 43.25 MB #Memory Used# [2025-03-05 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:09:05 [end_date_ymd] => 2025-03-05 20:09:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 17:09:05' and `end` < '2025-03-05 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-03-05 20:09:17] Production.INFO: count ==2040 [2025-03-05 20:09:17] Production.ERROR: pbx CDR StartTime 2025-03-05 17:09:05 - End Time 2025-03-05 20:09:05 [2025-03-05 20:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615485', 'tblTempUsageDetail_20' ) start [2025-03-05 20:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615485', 'tblTempUsageDetail_20' ) end [2025-03-05 20:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615485', 'tblTempVendorCDR_20' ) start [2025-03-05 20:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615485', 'tblTempVendorCDR_20' ) end [2025-03-05 20:09:17] Production.INFO: ProcessCDR(1,14615485,1,1,2) [2025-03-05 20:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615485', 'tblTempUsageDetail_20' ) start [2025-03-05 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615485', 'tblTempUsageDetail_20' ) end [2025-03-05 20:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:09:21] Production.INFO: ==10129== Releasing lock... [2025-03-05 20:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:09:21] Production.INFO: 43 MB #Memory Used# [2025-03-05 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:10:06 [end_date_ymd] => 2025-03-05 20:10:06 [RateCDR] => 1 ) [2025-03-05 20: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-03-05 17:10:06' and `end` < '2025-03-05 20: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-03-05 20:10:18] Production.INFO: count ==2041 [2025-03-05 20:10:19] Production.ERROR: pbx CDR StartTime 2025-03-05 17:10:06 - End Time 2025-03-05 20:10:06 [2025-03-05 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615491', 'tblTempUsageDetail_20' ) start [2025-03-05 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615491', 'tblTempUsageDetail_20' ) end [2025-03-05 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615491', 'tblTempVendorCDR_20' ) start [2025-03-05 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615491', 'tblTempVendorCDR_20' ) end [2025-03-05 20:10:19] Production.INFO: ProcessCDR(1,14615491,1,1,2) [2025-03-05 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615491', 'tblTempUsageDetail_20' ) start [2025-03-05 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615491', 'tblTempUsageDetail_20' ) end [2025-03-05 20:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:10:22] Production.INFO: ==10202== Releasing lock... [2025-03-05 20:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:10:22] Production.INFO: 43 MB #Memory Used# [2025-03-05 20:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:11:04 [end_date_ymd] => 2025-03-05 20:11:04 [RateCDR] => 1 ) [2025-03-05 20: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-03-05 17:11:04' and `end` < '2025-03-05 20: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-03-05 20:11:16] Production.INFO: count ==1974 [2025-03-05 20:11:17] Production.ERROR: pbx CDR StartTime 2025-03-05 17:11:04 - End Time 2025-03-05 20:11:04 [2025-03-05 20:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615496', 'tblTempUsageDetail_20' ) start [2025-03-05 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615496', 'tblTempUsageDetail_20' ) end [2025-03-05 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615496', 'tblTempVendorCDR_20' ) start [2025-03-05 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615496', 'tblTempVendorCDR_20' ) end [2025-03-05 20:11:17] Production.INFO: ProcessCDR(1,14615496,1,1,2) [2025-03-05 20:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615496', 'tblTempUsageDetail_20' ) start [2025-03-05 20:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615496', 'tblTempUsageDetail_20' ) end [2025-03-05 20:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:11:20] Production.INFO: ==10282== Releasing lock... [2025-03-05 20:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:11:20] Production.INFO: 42.5 MB #Memory Used# [2025-03-05 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:12:05 [end_date_ymd] => 2025-03-05 20:12:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 17:12:05' and `end` < '2025-03-05 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-03-05 20:12:17] Production.INFO: count ==1959 [2025-03-05 20:12:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:12:05 - End Time 2025-03-05 20:12:05 [2025-03-05 20:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615501', 'tblTempUsageDetail_20' ) start [2025-03-05 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615501', 'tblTempUsageDetail_20' ) end [2025-03-05 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615501', 'tblTempVendorCDR_20' ) start [2025-03-05 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615501', 'tblTempVendorCDR_20' ) end [2025-03-05 20:12:18] Production.INFO: ProcessCDR(1,14615501,1,1,2) [2025-03-05 20:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615501', 'tblTempUsageDetail_20' ) start [2025-03-05 20:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615501', 'tblTempUsageDetail_20' ) end [2025-03-05 20:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:12:21] Production.INFO: ==10360== Releasing lock... [2025-03-05 20:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:12:21] Production.INFO: 42.5 MB #Memory Used# [2025-03-05 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:13:05 [end_date_ymd] => 2025-03-05 20:13:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 17:13:05' and `end` < '2025-03-05 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-03-05 20:13:17] Production.INFO: count ==1943 [2025-03-05 20:13:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:13:05 - End Time 2025-03-05 20:13:05 [2025-03-05 20:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615506', 'tblTempUsageDetail_20' ) start [2025-03-05 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615506', 'tblTempUsageDetail_20' ) end [2025-03-05 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615506', 'tblTempVendorCDR_20' ) start [2025-03-05 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615506', 'tblTempVendorCDR_20' ) end [2025-03-05 20:13:18] Production.INFO: ProcessCDR(1,14615506,1,1,2) [2025-03-05 20:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615506', 'tblTempUsageDetail_20' ) start [2025-03-05 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615506', 'tblTempUsageDetail_20' ) end [2025-03-05 20:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:13:23] Production.INFO: ==10454== Releasing lock... [2025-03-05 20:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:13:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-05 20:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:14:06 [end_date_ymd] => 2025-03-05 20:14:06 [RateCDR] => 1 ) [2025-03-05 20:14: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-03-05 17:14:06' and `end` < '2025-03-05 20:14: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-03-05 20:14:18] Production.INFO: count ==1931 [2025-03-05 20:14:19] Production.ERROR: pbx CDR StartTime 2025-03-05 17:14:06 - End Time 2025-03-05 20:14:06 [2025-03-05 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615511', 'tblTempUsageDetail_20' ) start [2025-03-05 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615511', 'tblTempUsageDetail_20' ) end [2025-03-05 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615511', 'tblTempVendorCDR_20' ) start [2025-03-05 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615511', 'tblTempVendorCDR_20' ) end [2025-03-05 20:14:19] Production.INFO: ProcessCDR(1,14615511,1,1,2) [2025-03-05 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615511', 'tblTempUsageDetail_20' ) start [2025-03-05 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615511', 'tblTempUsageDetail_20' ) end [2025-03-05 20:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:14:22] Production.INFO: ==10549== Releasing lock... [2025-03-05 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:14:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-05 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:15:05 [end_date_ymd] => 2025-03-05 20:15:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 17:15:05' and `end` < '2025-03-05 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-03-05 20:15:17] Production.INFO: count ==1912 [2025-03-05 20:15:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:15:05 - End Time 2025-03-05 20:15:05 [2025-03-05 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615516', 'tblTempUsageDetail_20' ) start [2025-03-05 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615516', 'tblTempUsageDetail_20' ) end [2025-03-05 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615516', 'tblTempVendorCDR_20' ) start [2025-03-05 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615516', 'tblTempVendorCDR_20' ) end [2025-03-05 20:15:18] Production.INFO: ProcessCDR(1,14615516,1,1,2) [2025-03-05 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615516', 'tblTempUsageDetail_20' ) start [2025-03-05 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615516', 'tblTempUsageDetail_20' ) end [2025-03-05 20:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:15:21] Production.INFO: ==10640== Releasing lock... [2025-03-05 20:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:15:21] Production.INFO: 42.5 MB #Memory Used# [2025-03-05 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:16:05 [end_date_ymd] => 2025-03-05 20:16:05 [RateCDR] => 1 ) [2025-03-05 20: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-03-05 17:16:05' and `end` < '2025-03-05 20: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-03-05 20:16:17] Production.INFO: count ==1901 [2025-03-05 20:16:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:16:05 - End Time 2025-03-05 20:16:05 [2025-03-05 20:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615521', 'tblTempUsageDetail_20' ) start [2025-03-05 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615521', 'tblTempUsageDetail_20' ) end [2025-03-05 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615521', 'tblTempVendorCDR_20' ) start [2025-03-05 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615521', 'tblTempVendorCDR_20' ) end [2025-03-05 20:16:18] Production.INFO: ProcessCDR(1,14615521,1,1,2) [2025-03-05 20:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615521', 'tblTempUsageDetail_20' ) start [2025-03-05 20:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615521', 'tblTempUsageDetail_20' ) end [2025-03-05 20:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:16:21] Production.INFO: ==10731== Releasing lock... [2025-03-05 20:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:16:21] Production.INFO: 42.25 MB #Memory Used# [2025-03-05 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:17:05 [end_date_ymd] => 2025-03-05 20:17:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 17:17:05' and `end` < '2025-03-05 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-03-05 20:17:17] Production.INFO: count ==1897 [2025-03-05 20:17:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:17:05 - End Time 2025-03-05 20:17:05 [2025-03-05 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615526', 'tblTempUsageDetail_20' ) start [2025-03-05 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615526', 'tblTempUsageDetail_20' ) end [2025-03-05 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615526', 'tblTempVendorCDR_20' ) start [2025-03-05 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615526', 'tblTempVendorCDR_20' ) end [2025-03-05 20:17:18] Production.INFO: ProcessCDR(1,14615526,1,1,2) [2025-03-05 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615526', 'tblTempUsageDetail_20' ) start [2025-03-05 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615526', 'tblTempUsageDetail_20' ) end [2025-03-05 20:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:17:21] Production.INFO: ==10829== Releasing lock... [2025-03-05 20:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:17:21] Production.INFO: 42 MB #Memory Used# [2025-03-05 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:18:05 [end_date_ymd] => 2025-03-05 20:18:05 [RateCDR] => 1 ) [2025-03-05 20: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-03-05 17:18:05' and `end` < '2025-03-05 20: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-03-05 20:18:17] Production.INFO: count ==1899 [2025-03-05 20:18:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:18:05 - End Time 2025-03-05 20:18:05 [2025-03-05 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615531', 'tblTempUsageDetail_20' ) start [2025-03-05 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615531', 'tblTempUsageDetail_20' ) end [2025-03-05 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615531', 'tblTempVendorCDR_20' ) start [2025-03-05 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615531', 'tblTempVendorCDR_20' ) end [2025-03-05 20:18:18] Production.INFO: ProcessCDR(1,14615531,1,1,2) [2025-03-05 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615531', 'tblTempUsageDetail_20' ) start [2025-03-05 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615531', 'tblTempUsageDetail_20' ) end [2025-03-05 20:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:18:23] Production.INFO: ==10936== Releasing lock... [2025-03-05 20:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:18:23] Production.INFO: 42 MB #Memory Used# [2025-03-05 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:19:05 [end_date_ymd] => 2025-03-05 20:19:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 17:19:05' and `end` < '2025-03-05 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-03-05 20:19:17] Production.INFO: count ==1900 [2025-03-05 20:19:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:19:05 - End Time 2025-03-05 20:19:05 [2025-03-05 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615536', 'tblTempUsageDetail_20' ) start [2025-03-05 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615536', 'tblTempUsageDetail_20' ) end [2025-03-05 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615536', 'tblTempVendorCDR_20' ) start [2025-03-05 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615536', 'tblTempVendorCDR_20' ) end [2025-03-05 20:19:18] Production.INFO: ProcessCDR(1,14615536,1,1,2) [2025-03-05 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615536', 'tblTempUsageDetail_20' ) start [2025-03-05 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615536', 'tblTempUsageDetail_20' ) end [2025-03-05 20:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:19:21] Production.INFO: ==11031== Releasing lock... [2025-03-05 20:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:19:21] Production.INFO: 42.25 MB #Memory Used# [2025-03-05 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:20:06 [end_date_ymd] => 2025-03-05 20:20:06 [RateCDR] => 1 ) [2025-03-05 20: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-03-05 17:20:06' and `end` < '2025-03-05 20: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-03-05 20:20:18] Production.INFO: count ==1883 [2025-03-05 20:20:19] Production.ERROR: pbx CDR StartTime 2025-03-05 17:20:06 - End Time 2025-03-05 20:20:06 [2025-03-05 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615542', 'tblTempUsageDetail_20' ) start [2025-03-05 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615542', 'tblTempUsageDetail_20' ) end [2025-03-05 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615542', 'tblTempVendorCDR_20' ) start [2025-03-05 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615542', 'tblTempVendorCDR_20' ) end [2025-03-05 20:20:19] Production.INFO: ProcessCDR(1,14615542,1,1,2) [2025-03-05 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615542', 'tblTempUsageDetail_20' ) start [2025-03-05 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615542', 'tblTempUsageDetail_20' ) end [2025-03-05 20:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:20:22] Production.INFO: ==11124== Releasing lock... [2025-03-05 20:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:20:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-05 20:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:21:06 [end_date_ymd] => 2025-03-05 20:21:06 [RateCDR] => 1 ) [2025-03-05 20:21: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-03-05 17:21:06' and `end` < '2025-03-05 20:21: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-03-05 20:21:18] Production.INFO: count ==1852 [2025-03-05 20:21:19] Production.ERROR: pbx CDR StartTime 2025-03-05 17:21:06 - End Time 2025-03-05 20:21:06 [2025-03-05 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615547', 'tblTempUsageDetail_20' ) start [2025-03-05 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615547', 'tblTempUsageDetail_20' ) end [2025-03-05 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615547', 'tblTempVendorCDR_20' ) start [2025-03-05 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615547', 'tblTempVendorCDR_20' ) end [2025-03-05 20:21:19] Production.INFO: ProcessCDR(1,14615547,1,1,2) [2025-03-05 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615547', 'tblTempUsageDetail_20' ) start [2025-03-05 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615547', 'tblTempUsageDetail_20' ) end [2025-03-05 20:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:21:22] Production.INFO: ==11219== Releasing lock... [2025-03-05 20:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:21:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-05 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:22:05 [end_date_ymd] => 2025-03-05 20:22:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 17:22:05' and `end` < '2025-03-05 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-03-05 20:22:17] Production.INFO: count ==1842 [2025-03-05 20:22:17] Production.ERROR: pbx CDR StartTime 2025-03-05 17:22:05 - End Time 2025-03-05 20:22:05 [2025-03-05 20:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615552', 'tblTempUsageDetail_20' ) start [2025-03-05 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615552', 'tblTempUsageDetail_20' ) end [2025-03-05 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615552', 'tblTempVendorCDR_20' ) start [2025-03-05 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615552', 'tblTempVendorCDR_20' ) end [2025-03-05 20:22:18] Production.INFO: ProcessCDR(1,14615552,1,1,2) [2025-03-05 20:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615552', 'tblTempUsageDetail_20' ) start [2025-03-05 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615552', 'tblTempUsageDetail_20' ) end [2025-03-05 20:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:22:21] Production.INFO: ==11308== Releasing lock... [2025-03-05 20:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:22:21] Production.INFO: 41.5 MB #Memory Used# [2025-03-05 20:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:23:04 [end_date_ymd] => 2025-03-05 20:23:04 [RateCDR] => 1 ) [2025-03-05 20: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-03-05 17:23:04' and `end` < '2025-03-05 20: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-03-05 20:23:16] Production.INFO: count ==1837 [2025-03-05 20:23:17] Production.ERROR: pbx CDR StartTime 2025-03-05 17:23:04 - End Time 2025-03-05 20:23:04 [2025-03-05 20:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615557', 'tblTempUsageDetail_20' ) start [2025-03-05 20:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615557', 'tblTempUsageDetail_20' ) end [2025-03-05 20:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615557', 'tblTempVendorCDR_20' ) start [2025-03-05 20:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615557', 'tblTempVendorCDR_20' ) end [2025-03-05 20:23:17] Production.INFO: ProcessCDR(1,14615557,1,1,2) [2025-03-05 20:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615557', 'tblTempUsageDetail_20' ) start [2025-03-05 20:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615557', 'tblTempUsageDetail_20' ) end [2025-03-05 20:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:23:20] Production.INFO: ==11401== Releasing lock... [2025-03-05 20:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:23:20] Production.INFO: 42 MB #Memory Used# [2025-03-05 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:24:05 [end_date_ymd] => 2025-03-05 20:24:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 17:24:05' and `end` < '2025-03-05 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-03-05 20:24:17] Production.INFO: count ==1833 [2025-03-05 20:24:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:24:05 - End Time 2025-03-05 20:24:05 [2025-03-05 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615562', 'tblTempUsageDetail_20' ) start [2025-03-05 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615562', 'tblTempUsageDetail_20' ) end [2025-03-05 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615562', 'tblTempVendorCDR_20' ) start [2025-03-05 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615562', 'tblTempVendorCDR_20' ) end [2025-03-05 20:24:18] Production.INFO: ProcessCDR(1,14615562,1,1,2) [2025-03-05 20:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615562', 'tblTempUsageDetail_20' ) start [2025-03-05 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615562', 'tblTempUsageDetail_20' ) end [2025-03-05 20:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:24:21] Production.INFO: ==11535== Releasing lock... [2025-03-05 20:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:24:21] Production.INFO: 41.75 MB #Memory Used# [2025-03-05 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:25:06 [end_date_ymd] => 2025-03-05 20:25:06 [RateCDR] => 1 ) [2025-03-05 20:25: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-03-05 17:25:06' and `end` < '2025-03-05 20:25: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-03-05 20:25:18] Production.INFO: count ==1825 [2025-03-05 20:25:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:25:06 - End Time 2025-03-05 20:25:06 [2025-03-05 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615567', 'tblTempUsageDetail_20' ) start [2025-03-05 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615567', 'tblTempUsageDetail_20' ) end [2025-03-05 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615567', 'tblTempVendorCDR_20' ) start [2025-03-05 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615567', 'tblTempVendorCDR_20' ) end [2025-03-05 20:25:18] Production.INFO: ProcessCDR(1,14615567,1,1,2) [2025-03-05 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615567', 'tblTempUsageDetail_20' ) start [2025-03-05 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615567', 'tblTempUsageDetail_20' ) end [2025-03-05 20:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:25:21] Production.INFO: ==11632== Releasing lock... [2025-03-05 20:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:25:21] Production.INFO: 42 MB #Memory Used# [2025-03-05 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:26:05 [end_date_ymd] => 2025-03-05 20:26:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 17:26:05' and `end` < '2025-03-05 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-03-05 20:26:17] Production.INFO: count ==1808 [2025-03-05 20:26:17] Production.ERROR: pbx CDR StartTime 2025-03-05 17:26:05 - End Time 2025-03-05 20:26:05 [2025-03-05 20:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615572', 'tblTempUsageDetail_20' ) start [2025-03-05 20:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615572', 'tblTempUsageDetail_20' ) end [2025-03-05 20:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615572', 'tblTempVendorCDR_20' ) start [2025-03-05 20:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615572', 'tblTempVendorCDR_20' ) end [2025-03-05 20:26:17] Production.INFO: ProcessCDR(1,14615572,1,1,2) [2025-03-05 20:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615572', 'tblTempUsageDetail_20' ) start [2025-03-05 20:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615572', 'tblTempUsageDetail_20' ) end [2025-03-05 20:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:26:20] Production.INFO: ==11724== Releasing lock... [2025-03-05 20:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:26:20] Production.INFO: 41.25 MB #Memory Used# [2025-03-05 20:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:27:06 [end_date_ymd] => 2025-03-05 20:27:06 [RateCDR] => 1 ) [2025-03-05 20: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-03-05 17:27:06' and `end` < '2025-03-05 20: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-03-05 20:27:18] Production.INFO: count ==1810 [2025-03-05 20:27:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:27:06 - End Time 2025-03-05 20:27:06 [2025-03-05 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615577', 'tblTempUsageDetail_20' ) start [2025-03-05 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615577', 'tblTempUsageDetail_20' ) end [2025-03-05 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615577', 'tblTempVendorCDR_20' ) start [2025-03-05 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615577', 'tblTempVendorCDR_20' ) end [2025-03-05 20:27:18] Production.INFO: ProcessCDR(1,14615577,1,1,2) [2025-03-05 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615577', 'tblTempUsageDetail_20' ) start [2025-03-05 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615577', 'tblTempUsageDetail_20' ) end [2025-03-05 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:27:22] Production.INFO: ==11822== Releasing lock... [2025-03-05 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:27:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-05 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:28:05 [end_date_ymd] => 2025-03-05 20:28:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 17:28:05' and `end` < '2025-03-05 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-03-05 20:28:17] Production.INFO: count ==1809 [2025-03-05 20:28:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:28:05 - End Time 2025-03-05 20:28:05 [2025-03-05 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615582', 'tblTempUsageDetail_20' ) start [2025-03-05 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615582', 'tblTempUsageDetail_20' ) end [2025-03-05 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615582', 'tblTempVendorCDR_20' ) start [2025-03-05 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615582', 'tblTempVendorCDR_20' ) end [2025-03-05 20:28:18] Production.INFO: ProcessCDR(1,14615582,1,1,2) [2025-03-05 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615582', 'tblTempUsageDetail_20' ) start [2025-03-05 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615582', 'tblTempUsageDetail_20' ) end [2025-03-05 20:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:28:21] Production.INFO: ==11913== Releasing lock... [2025-03-05 20:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:28:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-05 20:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:29:06 [end_date_ymd] => 2025-03-05 20:29:06 [RateCDR] => 1 ) [2025-03-05 20:29: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-03-05 17:29:06' and `end` < '2025-03-05 20:29: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-03-05 20:29:18] Production.INFO: count ==1812 [2025-03-05 20:29:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:29:06 - End Time 2025-03-05 20:29:06 [2025-03-05 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615587', 'tblTempUsageDetail_20' ) start [2025-03-05 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615587', 'tblTempUsageDetail_20' ) end [2025-03-05 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615587', 'tblTempVendorCDR_20' ) start [2025-03-05 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615587', 'tblTempVendorCDR_20' ) end [2025-03-05 20:29:19] Production.INFO: ProcessCDR(1,14615587,1,1,2) [2025-03-05 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615587', 'tblTempUsageDetail_20' ) start [2025-03-05 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615587', 'tblTempUsageDetail_20' ) end [2025-03-05 20:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:29:23] Production.INFO: ==12008== Releasing lock... [2025-03-05 20:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:29:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-05 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:30:06 [end_date_ymd] => 2025-03-05 20:30:06 [RateCDR] => 1 ) [2025-03-05 20: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-03-05 17:30:06' and `end` < '2025-03-05 20: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-03-05 20:30:18] Production.INFO: count ==1804 [2025-03-05 20:30:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:30:06 - End Time 2025-03-05 20:30:06 [2025-03-05 20:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615593', 'tblTempUsageDetail_20' ) start [2025-03-05 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615593', 'tblTempUsageDetail_20' ) end [2025-03-05 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615593', 'tblTempVendorCDR_20' ) start [2025-03-05 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615593', 'tblTempVendorCDR_20' ) end [2025-03-05 20:30:18] Production.INFO: ProcessCDR(1,14615593,1,1,2) [2025-03-05 20:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615593', 'tblTempUsageDetail_20' ) start [2025-03-05 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615593', 'tblTempUsageDetail_20' ) end [2025-03-05 20:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:30:22] Production.INFO: ==12108== Releasing lock... [2025-03-05 20:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:30:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-05 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:31:05 [end_date_ymd] => 2025-03-05 20:31:05 [RateCDR] => 1 ) [2025-03-05 20: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-03-05 17:31:05' and `end` < '2025-03-05 20: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-03-05 20:31:17] Production.INFO: count ==1774 [2025-03-05 20:31:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:31:05 - End Time 2025-03-05 20:31:05 [2025-03-05 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615598', 'tblTempUsageDetail_20' ) start [2025-03-05 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615598', 'tblTempUsageDetail_20' ) end [2025-03-05 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615598', 'tblTempVendorCDR_20' ) start [2025-03-05 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615598', 'tblTempVendorCDR_20' ) end [2025-03-05 20:31:18] Production.INFO: ProcessCDR(1,14615598,1,1,2) [2025-03-05 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615598', 'tblTempUsageDetail_20' ) start [2025-03-05 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615598', 'tblTempUsageDetail_20' ) end [2025-03-05 20:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:31:21] Production.INFO: ==12201== Releasing lock... [2025-03-05 20:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:31:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-05 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:32:05 [end_date_ymd] => 2025-03-05 20:32:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 17:32:05' and `end` < '2025-03-05 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-03-05 20:32:17] Production.INFO: count ==1772 [2025-03-05 20:32:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:32:05 - End Time 2025-03-05 20:32:05 [2025-03-05 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615603', 'tblTempUsageDetail_20' ) start [2025-03-05 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615603', 'tblTempUsageDetail_20' ) end [2025-03-05 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615603', 'tblTempVendorCDR_20' ) start [2025-03-05 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615603', 'tblTempVendorCDR_20' ) end [2025-03-05 20:32:18] Production.INFO: ProcessCDR(1,14615603,1,1,2) [2025-03-05 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615603', 'tblTempUsageDetail_20' ) start [2025-03-05 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615603', 'tblTempUsageDetail_20' ) end [2025-03-05 20:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:32:23] Production.INFO: ==12294== Releasing lock... [2025-03-05 20:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:32:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-05 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:33:05 [end_date_ymd] => 2025-03-05 20:33:05 [RateCDR] => 1 ) [2025-03-05 20: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-03-05 17:33:05' and `end` < '2025-03-05 20: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-03-05 20:33:18] Production.INFO: count ==1770 [2025-03-05 20:33:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:33:05 - End Time 2025-03-05 20:33:05 [2025-03-05 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615608', 'tblTempUsageDetail_20' ) start [2025-03-05 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615608', 'tblTempUsageDetail_20' ) end [2025-03-05 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615608', 'tblTempVendorCDR_20' ) start [2025-03-05 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615608', 'tblTempVendorCDR_20' ) end [2025-03-05 20:33:18] Production.INFO: ProcessCDR(1,14615608,1,1,2) [2025-03-05 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615608', 'tblTempUsageDetail_20' ) start [2025-03-05 20:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615608', 'tblTempUsageDetail_20' ) end [2025-03-05 20:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:33:21] Production.INFO: ==12390== Releasing lock... [2025-03-05 20:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:33:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-05 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:34:05 [end_date_ymd] => 2025-03-05 20:34:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 17:34:05' and `end` < '2025-03-05 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-03-05 20:34:17] Production.INFO: count ==1765 [2025-03-05 20:34:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:34:05 - End Time 2025-03-05 20:34:05 [2025-03-05 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615613', 'tblTempUsageDetail_20' ) start [2025-03-05 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615613', 'tblTempUsageDetail_20' ) end [2025-03-05 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615613', 'tblTempVendorCDR_20' ) start [2025-03-05 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615613', 'tblTempVendorCDR_20' ) end [2025-03-05 20:34:18] Production.INFO: ProcessCDR(1,14615613,1,1,2) [2025-03-05 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615613', 'tblTempUsageDetail_20' ) start [2025-03-05 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615613', 'tblTempUsageDetail_20' ) end [2025-03-05 20:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:34:21] Production.INFO: ==12483== Releasing lock... [2025-03-05 20:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:34:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-05 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:35:05 [end_date_ymd] => 2025-03-05 20:35:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 17:35:05' and `end` < '2025-03-05 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-03-05 20:35:17] Production.INFO: count ==1758 [2025-03-05 20:35:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:35:05 - End Time 2025-03-05 20:35:05 [2025-03-05 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615618', 'tblTempUsageDetail_20' ) start [2025-03-05 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615618', 'tblTempUsageDetail_20' ) end [2025-03-05 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615618', 'tblTempVendorCDR_20' ) start [2025-03-05 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615618', 'tblTempVendorCDR_20' ) end [2025-03-05 20:35:18] Production.INFO: ProcessCDR(1,14615618,1,1,2) [2025-03-05 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615618', 'tblTempUsageDetail_20' ) start [2025-03-05 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615618', 'tblTempUsageDetail_20' ) end [2025-03-05 20:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:35:23] Production.INFO: ==12576== Releasing lock... [2025-03-05 20:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:35:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-05 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:36:05 [end_date_ymd] => 2025-03-05 20:36:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 17:36:05' and `end` < '2025-03-05 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-03-05 20:36:18] Production.INFO: count ==1752 [2025-03-05 20:36:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:36:05 - End Time 2025-03-05 20:36:05 [2025-03-05 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615623', 'tblTempUsageDetail_20' ) start [2025-03-05 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615623', 'tblTempUsageDetail_20' ) end [2025-03-05 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615623', 'tblTempVendorCDR_20' ) start [2025-03-05 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615623', 'tblTempVendorCDR_20' ) end [2025-03-05 20:36:18] Production.INFO: ProcessCDR(1,14615623,1,1,2) [2025-03-05 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615623', 'tblTempUsageDetail_20' ) start [2025-03-05 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615623', 'tblTempUsageDetail_20' ) end [2025-03-05 20:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:36:21] Production.INFO: ==12672== Releasing lock... [2025-03-05 20:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:36:21] Production.INFO: 41 MB #Memory Used# [2025-03-05 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:37:05 [end_date_ymd] => 2025-03-05 20:37:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 17:37:05' and `end` < '2025-03-05 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-03-05 20:37:17] Production.INFO: count ==1740 [2025-03-05 20:37:17] Production.ERROR: pbx CDR StartTime 2025-03-05 17:37:05 - End Time 2025-03-05 20:37:05 [2025-03-05 20:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615628', 'tblTempUsageDetail_20' ) start [2025-03-05 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615628', 'tblTempUsageDetail_20' ) end [2025-03-05 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615628', 'tblTempVendorCDR_20' ) start [2025-03-05 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615628', 'tblTempVendorCDR_20' ) end [2025-03-05 20:37:17] Production.INFO: ProcessCDR(1,14615628,1,1,2) [2025-03-05 20:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615628', 'tblTempUsageDetail_20' ) start [2025-03-05 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615628', 'tblTempUsageDetail_20' ) end [2025-03-05 20:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:37:21] Production.INFO: ==12748== Releasing lock... [2025-03-05 20:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:37:21] Production.INFO: 41 MB #Memory Used# [2025-03-05 20:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:38:06 [end_date_ymd] => 2025-03-05 20:38:06 [RateCDR] => 1 ) [2025-03-05 20:38: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-03-05 17:38:06' and `end` < '2025-03-05 20:38: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-03-05 20:38:18] Production.INFO: count ==1723 [2025-03-05 20:38:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:38:06 - End Time 2025-03-05 20:38:06 [2025-03-05 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615633', 'tblTempUsageDetail_20' ) start [2025-03-05 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615633', 'tblTempUsageDetail_20' ) end [2025-03-05 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615633', 'tblTempVendorCDR_20' ) start [2025-03-05 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615633', 'tblTempVendorCDR_20' ) end [2025-03-05 20:38:18] Production.INFO: ProcessCDR(1,14615633,1,1,2) [2025-03-05 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615633', 'tblTempUsageDetail_20' ) start [2025-03-05 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615633', 'tblTempUsageDetail_20' ) end [2025-03-05 20:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:38:23] Production.INFO: ==12821== Releasing lock... [2025-03-05 20:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:38:23] Production.INFO: 41 MB #Memory Used# [2025-03-05 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:39:05 [end_date_ymd] => 2025-03-05 20:39:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 17:39:05' and `end` < '2025-03-05 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-03-05 20:39:18] Production.INFO: count ==1726 [2025-03-05 20:39:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:39:05 - End Time 2025-03-05 20:39:05 [2025-03-05 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615638', 'tblTempUsageDetail_20' ) start [2025-03-05 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615638', 'tblTempUsageDetail_20' ) end [2025-03-05 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615638', 'tblTempVendorCDR_20' ) start [2025-03-05 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615638', 'tblTempVendorCDR_20' ) end [2025-03-05 20:39:18] Production.INFO: ProcessCDR(1,14615638,1,1,2) [2025-03-05 20:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615638', 'tblTempUsageDetail_20' ) start [2025-03-05 20:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615638', 'tblTempUsageDetail_20' ) end [2025-03-05 20:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:39:21] Production.INFO: ==12934== Releasing lock... [2025-03-05 20:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:39:21] Production.INFO: 41 MB #Memory Used# [2025-03-05 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:40:06 [end_date_ymd] => 2025-03-05 20:40:06 [RateCDR] => 1 ) [2025-03-05 20: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-03-05 17:40:06' and `end` < '2025-03-05 20: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-03-05 20:40:18] Production.INFO: count ==1724 [2025-03-05 20:40:19] Production.ERROR: pbx CDR StartTime 2025-03-05 17:40:06 - End Time 2025-03-05 20:40:06 [2025-03-05 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615643', 'tblTempUsageDetail_20' ) start [2025-03-05 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615643', 'tblTempUsageDetail_20' ) end [2025-03-05 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615643', 'tblTempVendorCDR_20' ) start [2025-03-05 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615643', 'tblTempVendorCDR_20' ) end [2025-03-05 20:40:19] Production.INFO: ProcessCDR(1,14615643,1,1,2) [2025-03-05 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615643', 'tblTempUsageDetail_20' ) start [2025-03-05 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615643', 'tblTempUsageDetail_20' ) end [2025-03-05 20:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:40:22] Production.INFO: ==13011== Releasing lock... [2025-03-05 20:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:40:22] Production.INFO: 41 MB #Memory Used# [2025-03-05 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:41:05 [end_date_ymd] => 2025-03-05 20:41:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 17:41:05' and `end` < '2025-03-05 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-03-05 20:41:17] Production.INFO: count ==1667 [2025-03-05 20:41:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:41:05 - End Time 2025-03-05 20:41:05 [2025-03-05 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615649', 'tblTempUsageDetail_20' ) start [2025-03-05 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615649', 'tblTempUsageDetail_20' ) end [2025-03-05 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615649', 'tblTempVendorCDR_20' ) start [2025-03-05 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615649', 'tblTempVendorCDR_20' ) end [2025-03-05 20:41:18] Production.INFO: ProcessCDR(1,14615649,1,1,2) [2025-03-05 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615649', 'tblTempUsageDetail_20' ) start [2025-03-05 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615649', 'tblTempUsageDetail_20' ) end [2025-03-05 20:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:41:21] Production.INFO: ==13087== Releasing lock... [2025-03-05 20:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:41:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-05 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:42:05 [end_date_ymd] => 2025-03-05 20:42:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 17:42:05' and `end` < '2025-03-05 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-03-05 20:42:17] Production.INFO: count ==1664 [2025-03-05 20:42:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:42:05 - End Time 2025-03-05 20:42:05 [2025-03-05 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615654', 'tblTempUsageDetail_20' ) start [2025-03-05 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615654', 'tblTempUsageDetail_20' ) end [2025-03-05 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615654', 'tblTempVendorCDR_20' ) start [2025-03-05 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615654', 'tblTempVendorCDR_20' ) end [2025-03-05 20:42:18] Production.INFO: ProcessCDR(1,14615654,1,1,2) [2025-03-05 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615654', 'tblTempUsageDetail_20' ) start [2025-03-05 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615654', 'tblTempUsageDetail_20' ) end [2025-03-05 20:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:42:21] Production.INFO: ==13164== Releasing lock... [2025-03-05 20:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:42:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-05 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:43:05 [end_date_ymd] => 2025-03-05 20:43:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 17:43:05' and `end` < '2025-03-05 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-03-05 20:43:17] Production.INFO: count ==1658 [2025-03-05 20:43:17] Production.ERROR: pbx CDR StartTime 2025-03-05 17:43:05 - End Time 2025-03-05 20:43:05 [2025-03-05 20:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615659', 'tblTempUsageDetail_20' ) start [2025-03-05 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615659', 'tblTempUsageDetail_20' ) end [2025-03-05 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615659', 'tblTempVendorCDR_20' ) start [2025-03-05 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615659', 'tblTempVendorCDR_20' ) end [2025-03-05 20:43:17] Production.INFO: ProcessCDR(1,14615659,1,1,2) [2025-03-05 20:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615659', 'tblTempUsageDetail_20' ) start [2025-03-05 20:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615659', 'tblTempUsageDetail_20' ) end [2025-03-05 20:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:43:20] Production.INFO: ==13237== Releasing lock... [2025-03-05 20:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:43:20] Production.INFO: 40.25 MB #Memory Used# [2025-03-05 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:44:05 [end_date_ymd] => 2025-03-05 20:44:05 [RateCDR] => 1 ) [2025-03-05 20: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-03-05 17:44:05' and `end` < '2025-03-05 20: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-03-05 20:44:18] Production.INFO: count ==1653 [2025-03-05 20:44:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:44:05 - End Time 2025-03-05 20:44:05 [2025-03-05 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615664', 'tblTempUsageDetail_20' ) start [2025-03-05 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615664', 'tblTempUsageDetail_20' ) end [2025-03-05 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615664', 'tblTempVendorCDR_20' ) start [2025-03-05 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615664', 'tblTempVendorCDR_20' ) end [2025-03-05 20:44:18] Production.INFO: ProcessCDR(1,14615664,1,1,2) [2025-03-05 20:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615664', 'tblTempUsageDetail_20' ) start [2025-03-05 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615664', 'tblTempUsageDetail_20' ) end [2025-03-05 20:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:44:21] Production.INFO: ==13308== Releasing lock... [2025-03-05 20:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:44:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-05 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:45:05 [end_date_ymd] => 2025-03-05 20:45:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 17:45:05' and `end` < '2025-03-05 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-03-05 20:45:17] Production.INFO: count ==1653 [2025-03-05 20:45:17] Production.ERROR: pbx CDR StartTime 2025-03-05 17:45:05 - End Time 2025-03-05 20:45:05 [2025-03-05 20:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615669', 'tblTempUsageDetail_20' ) start [2025-03-05 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615669', 'tblTempUsageDetail_20' ) end [2025-03-05 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615669', 'tblTempVendorCDR_20' ) start [2025-03-05 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615669', 'tblTempVendorCDR_20' ) end [2025-03-05 20:45:17] Production.INFO: ProcessCDR(1,14615669,1,1,2) [2025-03-05 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615669', 'tblTempUsageDetail_20' ) start [2025-03-05 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615669', 'tblTempUsageDetail_20' ) end [2025-03-05 20:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:45:21] Production.INFO: ==13381== Releasing lock... [2025-03-05 20:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:45:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-05 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:46:05 [end_date_ymd] => 2025-03-05 20:46:05 [RateCDR] => 1 ) [2025-03-05 20: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-03-05 17:46:05' and `end` < '2025-03-05 20: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-03-05 20:46:17] Production.INFO: count ==1647 [2025-03-05 20:46:17] Production.ERROR: pbx CDR StartTime 2025-03-05 17:46:05 - End Time 2025-03-05 20:46:05 [2025-03-05 20:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615674', 'tblTempUsageDetail_20' ) start [2025-03-05 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615674', 'tblTempUsageDetail_20' ) end [2025-03-05 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615674', 'tblTempVendorCDR_20' ) start [2025-03-05 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615674', 'tblTempVendorCDR_20' ) end [2025-03-05 20:46:17] Production.INFO: ProcessCDR(1,14615674,1,1,2) [2025-03-05 20:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615674', 'tblTempUsageDetail_20' ) start [2025-03-05 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615674', 'tblTempUsageDetail_20' ) end [2025-03-05 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:46:22] Production.INFO: ==13451== Releasing lock... [2025-03-05 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:46:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-05 20:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:47:06 [end_date_ymd] => 2025-03-05 20:47:06 [RateCDR] => 1 ) [2025-03-05 20:47: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-03-05 17:47:06' and `end` < '2025-03-05 20:47: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-03-05 20:47:18] Production.INFO: count ==1651 [2025-03-05 20:47:19] Production.ERROR: pbx CDR StartTime 2025-03-05 17:47:06 - End Time 2025-03-05 20:47:06 [2025-03-05 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615679', 'tblTempUsageDetail_20' ) start [2025-03-05 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615679', 'tblTempUsageDetail_20' ) end [2025-03-05 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615679', 'tblTempVendorCDR_20' ) start [2025-03-05 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615679', 'tblTempVendorCDR_20' ) end [2025-03-05 20:47:19] Production.INFO: ProcessCDR(1,14615679,1,1,2) [2025-03-05 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615679', 'tblTempUsageDetail_20' ) start [2025-03-05 20:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615679', 'tblTempUsageDetail_20' ) end [2025-03-05 20:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:47:24] Production.INFO: ==13525== Releasing lock... [2025-03-05 20:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:47:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-05 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:48:05 [end_date_ymd] => 2025-03-05 20:48:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 17:48:05' and `end` < '2025-03-05 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-03-05 20:48:17] Production.INFO: count ==1649 [2025-03-05 20:48:17] Production.ERROR: pbx CDR StartTime 2025-03-05 17:48:05 - End Time 2025-03-05 20:48:05 [2025-03-05 20:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615684', 'tblTempUsageDetail_20' ) start [2025-03-05 20:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615684', 'tblTempUsageDetail_20' ) end [2025-03-05 20:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615684', 'tblTempVendorCDR_20' ) start [2025-03-05 20:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615684', 'tblTempVendorCDR_20' ) end [2025-03-05 20:48:17] Production.INFO: ProcessCDR(1,14615684,1,1,2) [2025-03-05 20:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615684', 'tblTempUsageDetail_20' ) start [2025-03-05 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615684', 'tblTempUsageDetail_20' ) end [2025-03-05 20:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:48:21] Production.INFO: ==13600== Releasing lock... [2025-03-05 20:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:48:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-05 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:49:05 [end_date_ymd] => 2025-03-05 20:49:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 17:49:05' and `end` < '2025-03-05 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-03-05 20:49:17] Production.INFO: count ==1649 [2025-03-05 20:49:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:49:05 - End Time 2025-03-05 20:49:05 [2025-03-05 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615689', 'tblTempUsageDetail_20' ) start [2025-03-05 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615689', 'tblTempUsageDetail_20' ) end [2025-03-05 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615689', 'tblTempVendorCDR_20' ) start [2025-03-05 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615689', 'tblTempVendorCDR_20' ) end [2025-03-05 20:49:18] Production.INFO: ProcessCDR(1,14615689,1,1,2) [2025-03-05 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615689', 'tblTempUsageDetail_20' ) start [2025-03-05 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615689', 'tblTempUsageDetail_20' ) end [2025-03-05 20:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:49:23] Production.INFO: ==13671== Releasing lock... [2025-03-05 20:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:49:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-05 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:50:06 [end_date_ymd] => 2025-03-05 20:50:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 17:50:06' and `end` < '2025-03-05 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-03-05 20:50:18] Production.INFO: count ==1648 [2025-03-05 20:50:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:50:06 - End Time 2025-03-05 20:50:06 [2025-03-05 20:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615695', 'tblTempUsageDetail_20' ) start [2025-03-05 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615695', 'tblTempUsageDetail_20' ) end [2025-03-05 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615695', 'tblTempVendorCDR_20' ) start [2025-03-05 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615695', 'tblTempVendorCDR_20' ) end [2025-03-05 20:50:18] Production.INFO: ProcessCDR(1,14615695,1,1,2) [2025-03-05 20:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615695', 'tblTempUsageDetail_20' ) start [2025-03-05 20:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615695', 'tblTempUsageDetail_20' ) end [2025-03-05 20:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:50:21] Production.INFO: ==13750== Releasing lock... [2025-03-05 20:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:50:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-05 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:51:05 [end_date_ymd] => 2025-03-05 20:51:05 [RateCDR] => 1 ) [2025-03-05 20: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-03-05 17:51:05' and `end` < '2025-03-05 20: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-03-05 20:51:17] Production.INFO: count ==1623 [2025-03-05 20:51:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:51:05 - End Time 2025-03-05 20:51:05 [2025-03-05 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615700', 'tblTempUsageDetail_20' ) start [2025-03-05 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615700', 'tblTempUsageDetail_20' ) end [2025-03-05 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615700', 'tblTempVendorCDR_20' ) start [2025-03-05 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615700', 'tblTempVendorCDR_20' ) end [2025-03-05 20:51:18] Production.INFO: ProcessCDR(1,14615700,1,1,2) [2025-03-05 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615700', 'tblTempUsageDetail_20' ) start [2025-03-05 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615700', 'tblTempUsageDetail_20' ) end [2025-03-05 20:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:51:21] Production.INFO: ==13824== Releasing lock... [2025-03-05 20:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:51:21] Production.INFO: 40 MB #Memory Used# [2025-03-05 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:52:05 [end_date_ymd] => 2025-03-05 20:52:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 17:52:05' and `end` < '2025-03-05 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-03-05 20:52:17] Production.INFO: count ==1618 [2025-03-05 20:52:17] Production.ERROR: pbx CDR StartTime 2025-03-05 17:52:05 - End Time 2025-03-05 20:52:05 [2025-03-05 20:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615705', 'tblTempUsageDetail_20' ) start [2025-03-05 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615705', 'tblTempUsageDetail_20' ) end [2025-03-05 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615705', 'tblTempVendorCDR_20' ) start [2025-03-05 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615705', 'tblTempVendorCDR_20' ) end [2025-03-05 20:52:17] Production.INFO: ProcessCDR(1,14615705,1,1,2) [2025-03-05 20:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615705', 'tblTempUsageDetail_20' ) start [2025-03-05 20:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615705', 'tblTempUsageDetail_20' ) end [2025-03-05 20:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:52:20] Production.INFO: ==13894== Releasing lock... [2025-03-05 20:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:52:20] Production.INFO: 40 MB #Memory Used# [2025-03-05 20:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:53:06 [end_date_ymd] => 2025-03-05 20:53:06 [RateCDR] => 1 ) [2025-03-05 20: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-03-05 17:53:06' and `end` < '2025-03-05 20: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-03-05 20:53:18] Production.INFO: count ==1613 [2025-03-05 20:53:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:53:06 - End Time 2025-03-05 20:53:06 [2025-03-05 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615710', 'tblTempUsageDetail_20' ) start [2025-03-05 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615710', 'tblTempUsageDetail_20' ) end [2025-03-05 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615710', 'tblTempVendorCDR_20' ) start [2025-03-05 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615710', 'tblTempVendorCDR_20' ) end [2025-03-05 20:53:18] Production.INFO: ProcessCDR(1,14615710,1,1,2) [2025-03-05 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615710', 'tblTempUsageDetail_20' ) start [2025-03-05 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615710', 'tblTempUsageDetail_20' ) end [2025-03-05 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:53:22] Production.INFO: ==13975== Releasing lock... [2025-03-05 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:53:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-05 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:54:05 [end_date_ymd] => 2025-03-05 20:54:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 17:54:05' and `end` < '2025-03-05 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-03-05 20:54:17] Production.INFO: count ==1602 [2025-03-05 20:54:17] Production.ERROR: pbx CDR StartTime 2025-03-05 17:54:05 - End Time 2025-03-05 20:54:05 [2025-03-05 20:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615715', 'tblTempUsageDetail_20' ) start [2025-03-05 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615715', 'tblTempUsageDetail_20' ) end [2025-03-05 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615715', 'tblTempVendorCDR_20' ) start [2025-03-05 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615715', 'tblTempVendorCDR_20' ) end [2025-03-05 20:54:17] Production.INFO: ProcessCDR(1,14615715,1,1,2) [2025-03-05 20:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615715', 'tblTempUsageDetail_20' ) start [2025-03-05 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615715', 'tblTempUsageDetail_20' ) end [2025-03-05 20:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:54:21] Production.INFO: ==14059== Releasing lock... [2025-03-05 20:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:54:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-05 20:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:55:06 [end_date_ymd] => 2025-03-05 20:55:06 [RateCDR] => 1 ) [2025-03-05 20:55: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-03-05 17:55:06' and `end` < '2025-03-05 20:55: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-03-05 20:55:18] Production.INFO: count ==1593 [2025-03-05 20:55:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:55:06 - End Time 2025-03-05 20:55:06 [2025-03-05 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615720', 'tblTempUsageDetail_20' ) start [2025-03-05 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615720', 'tblTempUsageDetail_20' ) end [2025-03-05 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615720', 'tblTempVendorCDR_20' ) start [2025-03-05 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615720', 'tblTempVendorCDR_20' ) end [2025-03-05 20:55:18] Production.INFO: ProcessCDR(1,14615720,1,1,2) [2025-03-05 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615720', 'tblTempUsageDetail_20' ) start [2025-03-05 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615720', 'tblTempUsageDetail_20' ) end [2025-03-05 20:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:55:21] Production.INFO: ==14184== Releasing lock... [2025-03-05 20:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:55:21] Production.INFO: 40 MB #Memory Used# [2025-03-05 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:56:05 [end_date_ymd] => 2025-03-05 20:56:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 17:56:05' and `end` < '2025-03-05 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-03-05 20:56:18] Production.INFO: count ==1582 [2025-03-05 20:56:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:56:05 - End Time 2025-03-05 20:56:05 [2025-03-05 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615725', 'tblTempUsageDetail_20' ) start [2025-03-05 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615725', 'tblTempUsageDetail_20' ) end [2025-03-05 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615725', 'tblTempVendorCDR_20' ) start [2025-03-05 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615725', 'tblTempVendorCDR_20' ) end [2025-03-05 20:56:18] Production.INFO: ProcessCDR(1,14615725,1,1,2) [2025-03-05 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615725', 'tblTempUsageDetail_20' ) start [2025-03-05 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615725', 'tblTempUsageDetail_20' ) end [2025-03-05 20:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:56:21] Production.INFO: ==14271== Releasing lock... [2025-03-05 20:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:56:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-05 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:57:05 [end_date_ymd] => 2025-03-05 20:57:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 17:57:05' and `end` < '2025-03-05 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-03-05 20:57:17] Production.INFO: count ==1579 [2025-03-05 20:57:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:57:05 - End Time 2025-03-05 20:57:05 [2025-03-05 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615730', 'tblTempUsageDetail_20' ) start [2025-03-05 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615730', 'tblTempUsageDetail_20' ) end [2025-03-05 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615730', 'tblTempVendorCDR_20' ) start [2025-03-05 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615730', 'tblTempVendorCDR_20' ) end [2025-03-05 20:57:18] Production.INFO: ProcessCDR(1,14615730,1,1,2) [2025-03-05 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615730', 'tblTempUsageDetail_20' ) start [2025-03-05 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615730', 'tblTempUsageDetail_20' ) end [2025-03-05 20:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:57:21] Production.INFO: ==14359== Releasing lock... [2025-03-05 20:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:57:21] Production.INFO: 40 MB #Memory Used# [2025-03-05 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:58:05 [end_date_ymd] => 2025-03-05 20:58:05 [RateCDR] => 1 ) [2025-03-05 20: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-03-05 17:58:05' and `end` < '2025-03-05 20: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-03-05 20:58:17] Production.INFO: count ==1577 [2025-03-05 20:58:17] Production.ERROR: pbx CDR StartTime 2025-03-05 17:58:05 - End Time 2025-03-05 20:58:05 [2025-03-05 20:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615735', 'tblTempUsageDetail_20' ) start [2025-03-05 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615735', 'tblTempUsageDetail_20' ) end [2025-03-05 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615735', 'tblTempVendorCDR_20' ) start [2025-03-05 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615735', 'tblTempVendorCDR_20' ) end [2025-03-05 20:58:17] Production.INFO: ProcessCDR(1,14615735,1,1,2) [2025-03-05 20:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615735', 'tblTempUsageDetail_20' ) start [2025-03-05 20:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615735', 'tblTempUsageDetail_20' ) end [2025-03-05 20:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:58:20] Production.INFO: ==14444== Releasing lock... [2025-03-05 20:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:58:20] Production.INFO: 39.75 MB #Memory Used# [2025-03-05 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 17:59:05 [end_date_ymd] => 2025-03-05 20:59:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 17:59:05' and `end` < '2025-03-05 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-03-05 20:59:18] Production.INFO: count ==1574 [2025-03-05 20:59:18] Production.ERROR: pbx CDR StartTime 2025-03-05 17:59:05 - End Time 2025-03-05 20:59:05 [2025-03-05 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615740', 'tblTempUsageDetail_20' ) start [2025-03-05 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615740', 'tblTempUsageDetail_20' ) end [2025-03-05 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615740', 'tblTempVendorCDR_20' ) start [2025-03-05 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615740', 'tblTempVendorCDR_20' ) end [2025-03-05 20:59:18] Production.INFO: ProcessCDR(1,14615740,1,1,2) [2025-03-05 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 20:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615740', 'tblTempUsageDetail_20' ) start [2025-03-05 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615740', 'tblTempUsageDetail_20' ) end [2025-03-05 20:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 20:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 20:59:21] Production.INFO: ==14529== Releasing lock... [2025-03-05 20:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 20:59:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-05 21:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:00:07 [end_date_ymd] => 2025-03-05 21:00:07 [RateCDR] => 1 ) [2025-03-05 21:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 18:00:07' and `end` < '2025-03-05 21:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-05 21:00:19] Production.INFO: count ==1557 [2025-03-05 21:00:19] Production.ERROR: pbx CDR StartTime 2025-03-05 18:00:07 - End Time 2025-03-05 21:00:07 [2025-03-05 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615746', 'tblTempUsageDetail_20' ) start [2025-03-05 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615746', 'tblTempUsageDetail_20' ) end [2025-03-05 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615746', 'tblTempVendorCDR_20' ) start [2025-03-05 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615746', 'tblTempVendorCDR_20' ) end [2025-03-05 21:00:19] Production.INFO: ProcessCDR(1,14615746,1,1,2) [2025-03-05 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615746', 'tblTempUsageDetail_20' ) start [2025-03-05 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615746', 'tblTempUsageDetail_20' ) end [2025-03-05 21:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:00:22] Production.INFO: ==14612== Releasing lock... [2025-03-05 21:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:00:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-05 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:01:05 [end_date_ymd] => 2025-03-05 21:01:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 18:01:05' and `end` < '2025-03-05 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-03-05 21:01:17] Production.INFO: count ==1474 [2025-03-05 21:01:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:01:05 - End Time 2025-03-05 21:01:05 [2025-03-05 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615751', 'tblTempUsageDetail_20' ) start [2025-03-05 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615751', 'tblTempUsageDetail_20' ) end [2025-03-05 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615751', 'tblTempVendorCDR_20' ) start [2025-03-05 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615751', 'tblTempVendorCDR_20' ) end [2025-03-05 21:01:18] Production.INFO: ProcessCDR(1,14615751,1,1,2) [2025-03-05 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615751', 'tblTempUsageDetail_20' ) start [2025-03-05 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615751', 'tblTempUsageDetail_20' ) end [2025-03-05 21:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:01:21] Production.INFO: ==14712== Releasing lock... [2025-03-05 21:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:01:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-05 21:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:02:06 [end_date_ymd] => 2025-03-05 21:02:06 [RateCDR] => 1 ) [2025-03-05 21:02: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-03-05 18:02:06' and `end` < '2025-03-05 21:02: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-03-05 21:02:18] Production.INFO: count ==1461 [2025-03-05 21:02:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:02:06 - End Time 2025-03-05 21:02:06 [2025-03-05 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615756', 'tblTempUsageDetail_20' ) start [2025-03-05 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615756', 'tblTempUsageDetail_20' ) end [2025-03-05 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615756', 'tblTempVendorCDR_20' ) start [2025-03-05 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615756', 'tblTempVendorCDR_20' ) end [2025-03-05 21:02:18] Production.INFO: ProcessCDR(1,14615756,1,1,2) [2025-03-05 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615756', 'tblTempUsageDetail_20' ) start [2025-03-05 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615756', 'tblTempUsageDetail_20' ) end [2025-03-05 21:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:02:23] Production.INFO: ==14790== Releasing lock... [2025-03-05 21:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:02:23] Production.INFO: 39 MB #Memory Used# [2025-03-05 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:03:05 [end_date_ymd] => 2025-03-05 21:03:05 [RateCDR] => 1 ) [2025-03-05 21: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-03-05 18:03:05' and `end` < '2025-03-05 21: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-03-05 21:03:17] Production.INFO: count ==1455 [2025-03-05 21:03:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:03:05 - End Time 2025-03-05 21:03:05 [2025-03-05 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615761', 'tblTempUsageDetail_20' ) start [2025-03-05 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615761', 'tblTempUsageDetail_20' ) end [2025-03-05 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615761', 'tblTempVendorCDR_20' ) start [2025-03-05 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615761', 'tblTempVendorCDR_20' ) end [2025-03-05 21:03:18] Production.INFO: ProcessCDR(1,14615761,1,1,2) [2025-03-05 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615761', 'tblTempUsageDetail_20' ) start [2025-03-05 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615761', 'tblTempUsageDetail_20' ) end [2025-03-05 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:03:22] Production.INFO: ==14861== Releasing lock... [2025-03-05 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:03:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-05 21:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:04:06 [end_date_ymd] => 2025-03-05 21:04:06 [RateCDR] => 1 ) [2025-03-05 21:04: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-03-05 18:04:06' and `end` < '2025-03-05 21:04: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-03-05 21:04:18] Production.INFO: count ==1454 [2025-03-05 21:04:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:04:06 - End Time 2025-03-05 21:04:06 [2025-03-05 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615766', 'tblTempUsageDetail_20' ) start [2025-03-05 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615766', 'tblTempUsageDetail_20' ) end [2025-03-05 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615766', 'tblTempVendorCDR_20' ) start [2025-03-05 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615766', 'tblTempVendorCDR_20' ) end [2025-03-05 21:04:18] Production.INFO: ProcessCDR(1,14615766,1,1,2) [2025-03-05 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615766', 'tblTempUsageDetail_20' ) start [2025-03-05 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615766', 'tblTempUsageDetail_20' ) end [2025-03-05 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:04:22] Production.INFO: ==14934== Releasing lock... [2025-03-05 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:04:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-05 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:05:05 [end_date_ymd] => 2025-03-05 21:05:05 [RateCDR] => 1 ) [2025-03-05 21: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-03-05 18:05:05' and `end` < '2025-03-05 21: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-03-05 21:05:17] Production.INFO: count ==1448 [2025-03-05 21:05:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:05:05 - End Time 2025-03-05 21:05:05 [2025-03-05 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615771', 'tblTempUsageDetail_20' ) start [2025-03-05 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615771', 'tblTempUsageDetail_20' ) end [2025-03-05 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615771', 'tblTempVendorCDR_20' ) start [2025-03-05 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615771', 'tblTempVendorCDR_20' ) end [2025-03-05 21:05:18] Production.INFO: ProcessCDR(1,14615771,1,1,2) [2025-03-05 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615771', 'tblTempUsageDetail_20' ) start [2025-03-05 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615771', 'tblTempUsageDetail_20' ) end [2025-03-05 21:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:05:21] Production.INFO: ==15003== Releasing lock... [2025-03-05 21:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:05:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-05 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:06:05 [end_date_ymd] => 2025-03-05 21:06:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 18:06:05' and `end` < '2025-03-05 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-03-05 21:06:18] Production.INFO: count ==1446 [2025-03-05 21:06:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:06:05 - End Time 2025-03-05 21:06:05 [2025-03-05 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615776', 'tblTempUsageDetail_20' ) start [2025-03-05 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615776', 'tblTempUsageDetail_20' ) end [2025-03-05 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615776', 'tblTempVendorCDR_20' ) start [2025-03-05 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615776', 'tblTempVendorCDR_20' ) end [2025-03-05 21:06:18] Production.INFO: ProcessCDR(1,14615776,1,1,2) [2025-03-05 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615776', 'tblTempUsageDetail_20' ) start [2025-03-05 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615776', 'tblTempUsageDetail_20' ) end [2025-03-05 21:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:06:21] Production.INFO: ==15074== Releasing lock... [2025-03-05 21:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:06:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-05 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:07:05 [end_date_ymd] => 2025-03-05 21:07:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 18:07:05' and `end` < '2025-03-05 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-03-05 21:07:17] Production.INFO: count ==1445 [2025-03-05 21:07:17] Production.ERROR: pbx CDR StartTime 2025-03-05 18:07:05 - End Time 2025-03-05 21:07:05 [2025-03-05 21:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615781', 'tblTempUsageDetail_20' ) start [2025-03-05 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615781', 'tblTempUsageDetail_20' ) end [2025-03-05 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615781', 'tblTempVendorCDR_20' ) start [2025-03-05 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615781', 'tblTempVendorCDR_20' ) end [2025-03-05 21:07:17] Production.INFO: ProcessCDR(1,14615781,1,1,2) [2025-03-05 21:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615781', 'tblTempUsageDetail_20' ) start [2025-03-05 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615781', 'tblTempUsageDetail_20' ) end [2025-03-05 21:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:07:21] Production.INFO: ==15149== Releasing lock... [2025-03-05 21:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:07:21] Production.INFO: 39 MB #Memory Used# [2025-03-05 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:08:05 [end_date_ymd] => 2025-03-05 21:08:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 18:08:05' and `end` < '2025-03-05 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-03-05 21:08:18] Production.INFO: count ==1438 [2025-03-05 21:08:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:08:05 - End Time 2025-03-05 21:08:05 [2025-03-05 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615786', 'tblTempUsageDetail_20' ) start [2025-03-05 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615786', 'tblTempUsageDetail_20' ) end [2025-03-05 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615786', 'tblTempVendorCDR_20' ) start [2025-03-05 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615786', 'tblTempVendorCDR_20' ) end [2025-03-05 21:08:18] Production.INFO: ProcessCDR(1,14615786,1,1,2) [2025-03-05 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615786', 'tblTempUsageDetail_20' ) start [2025-03-05 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615786', 'tblTempUsageDetail_20' ) end [2025-03-05 21:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:08:21] Production.INFO: ==15222== Releasing lock... [2025-03-05 21:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:08:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-05 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:09:05 [end_date_ymd] => 2025-03-05 21:09:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 18:09:05' and `end` < '2025-03-05 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-03-05 21:09:17] Production.INFO: count ==1421 [2025-03-05 21:09:17] Production.ERROR: pbx CDR StartTime 2025-03-05 18:09:05 - End Time 2025-03-05 21:09:05 [2025-03-05 21:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615791', 'tblTempUsageDetail_20' ) start [2025-03-05 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615791', 'tblTempUsageDetail_20' ) end [2025-03-05 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615791', 'tblTempVendorCDR_20' ) start [2025-03-05 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615791', 'tblTempVendorCDR_20' ) end [2025-03-05 21:09:17] Production.INFO: ProcessCDR(1,14615791,1,1,2) [2025-03-05 21:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615791', 'tblTempUsageDetail_20' ) start [2025-03-05 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615791', 'tblTempUsageDetail_20' ) end [2025-03-05 21:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:09:21] Production.INFO: ==15298== Releasing lock... [2025-03-05 21:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:09:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-05 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:10:06 [end_date_ymd] => 2025-03-05 21:10:06 [RateCDR] => 1 ) [2025-03-05 21: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-03-05 18:10:06' and `end` < '2025-03-05 21: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-03-05 21:10:18] Production.INFO: count ==1410 [2025-03-05 21:10:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:10:06 - End Time 2025-03-05 21:10:06 [2025-03-05 21:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615797', 'tblTempUsageDetail_20' ) start [2025-03-05 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615797', 'tblTempUsageDetail_20' ) end [2025-03-05 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615797', 'tblTempVendorCDR_20' ) start [2025-03-05 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615797', 'tblTempVendorCDR_20' ) end [2025-03-05 21:10:18] Production.INFO: ProcessCDR(1,14615797,1,1,2) [2025-03-05 21:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615797', 'tblTempUsageDetail_20' ) start [2025-03-05 21:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615797', 'tblTempUsageDetail_20' ) end [2025-03-05 21:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:10:21] Production.INFO: ==15409== Releasing lock... [2025-03-05 21:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:10:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-05 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:11:05 [end_date_ymd] => 2025-03-05 21:11:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 18:11:05' and `end` < '2025-03-05 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-03-05 21:11:17] Production.INFO: count ==1383 [2025-03-05 21:11:17] Production.ERROR: pbx CDR StartTime 2025-03-05 18:11:05 - End Time 2025-03-05 21:11:05 [2025-03-05 21:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615802', 'tblTempUsageDetail_20' ) start [2025-03-05 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615802', 'tblTempUsageDetail_20' ) end [2025-03-05 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615802', 'tblTempVendorCDR_20' ) start [2025-03-05 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615802', 'tblTempVendorCDR_20' ) end [2025-03-05 21:11:17] Production.INFO: ProcessCDR(1,14615802,1,1,2) [2025-03-05 21:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615802', 'tblTempUsageDetail_20' ) start [2025-03-05 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615802', 'tblTempUsageDetail_20' ) end [2025-03-05 21:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:11:21] Production.INFO: ==15497== Releasing lock... [2025-03-05 21:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:11:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-05 21:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:12:06 [end_date_ymd] => 2025-03-05 21:12:06 [RateCDR] => 1 ) [2025-03-05 21:12: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-03-05 18:12:06' and `end` < '2025-03-05 21:12: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-03-05 21:12:18] Production.INFO: count ==1376 [2025-03-05 21:12:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:12:06 - End Time 2025-03-05 21:12:06 [2025-03-05 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615807', 'tblTempUsageDetail_20' ) start [2025-03-05 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615807', 'tblTempUsageDetail_20' ) end [2025-03-05 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615807', 'tblTempVendorCDR_20' ) start [2025-03-05 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615807', 'tblTempVendorCDR_20' ) end [2025-03-05 21:12:18] Production.INFO: ProcessCDR(1,14615807,1,1,2) [2025-03-05 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615807', 'tblTempUsageDetail_20' ) start [2025-03-05 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615807', 'tblTempUsageDetail_20' ) end [2025-03-05 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:12:22] Production.INFO: ==15567== Releasing lock... [2025-03-05 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:12:22] Production.INFO: 38 MB #Memory Used# [2025-03-05 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:13:05 [end_date_ymd] => 2025-03-05 21:13:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 18:13:05' and `end` < '2025-03-05 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-03-05 21:13:17] Production.INFO: count ==1368 [2025-03-05 21:13:17] Production.ERROR: pbx CDR StartTime 2025-03-05 18:13:05 - End Time 2025-03-05 21:13:05 [2025-03-05 21:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615812', 'tblTempUsageDetail_20' ) start [2025-03-05 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615812', 'tblTempUsageDetail_20' ) end [2025-03-05 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615812', 'tblTempVendorCDR_20' ) start [2025-03-05 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615812', 'tblTempVendorCDR_20' ) end [2025-03-05 21:13:17] Production.INFO: ProcessCDR(1,14615812,1,1,2) [2025-03-05 21:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615812', 'tblTempUsageDetail_20' ) start [2025-03-05 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615812', 'tblTempUsageDetail_20' ) end [2025-03-05 21:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:13:21] Production.INFO: ==15643== Releasing lock... [2025-03-05 21:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:13:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-05 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:14:05 [end_date_ymd] => 2025-03-05 21:14:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 18:14:05' and `end` < '2025-03-05 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-03-05 21:14:17] Production.INFO: count ==1366 [2025-03-05 21:14:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:14:05 - End Time 2025-03-05 21:14:05 [2025-03-05 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615817', 'tblTempUsageDetail_20' ) start [2025-03-05 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615817', 'tblTempUsageDetail_20' ) end [2025-03-05 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615817', 'tblTempVendorCDR_20' ) start [2025-03-05 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615817', 'tblTempVendorCDR_20' ) end [2025-03-05 21:14:18] Production.INFO: ProcessCDR(1,14615817,1,1,2) [2025-03-05 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615817', 'tblTempUsageDetail_20' ) start [2025-03-05 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615817', 'tblTempUsageDetail_20' ) end [2025-03-05 21:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:14:21] Production.INFO: ==15715== Releasing lock... [2025-03-05 21:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:14:21] Production.INFO: 38 MB #Memory Used# [2025-03-05 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:15:05 [end_date_ymd] => 2025-03-05 21:15:05 [RateCDR] => 1 ) [2025-03-05 21: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-03-05 18:15:05' and `end` < '2025-03-05 21: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-03-05 21:15:17] Production.INFO: count ==1361 [2025-03-05 21:15:17] Production.ERROR: pbx CDR StartTime 2025-03-05 18:15:05 - End Time 2025-03-05 21:15:05 [2025-03-05 21:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615822', 'tblTempUsageDetail_20' ) start [2025-03-05 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615822', 'tblTempUsageDetail_20' ) end [2025-03-05 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615822', 'tblTempVendorCDR_20' ) start [2025-03-05 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615822', 'tblTempVendorCDR_20' ) end [2025-03-05 21:15:17] Production.INFO: ProcessCDR(1,14615822,1,1,2) [2025-03-05 21:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615822', 'tblTempUsageDetail_20' ) start [2025-03-05 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615822', 'tblTempUsageDetail_20' ) end [2025-03-05 21:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:15:21] Production.INFO: ==15786== Releasing lock... [2025-03-05 21:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:15:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-05 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:16:05 [end_date_ymd] => 2025-03-05 21:16:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 18:16:05' and `end` < '2025-03-05 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-03-05 21:16:17] Production.INFO: count ==1360 [2025-03-05 21:16:17] Production.ERROR: pbx CDR StartTime 2025-03-05 18:16:05 - End Time 2025-03-05 21:16:05 [2025-03-05 21:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615827', 'tblTempUsageDetail_20' ) start [2025-03-05 21:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615827', 'tblTempUsageDetail_20' ) end [2025-03-05 21:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615827', 'tblTempVendorCDR_20' ) start [2025-03-05 21:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615827', 'tblTempVendorCDR_20' ) end [2025-03-05 21:16:17] Production.INFO: ProcessCDR(1,14615827,1,1,2) [2025-03-05 21:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615827', 'tblTempUsageDetail_20' ) start [2025-03-05 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615827', 'tblTempUsageDetail_20' ) end [2025-03-05 21:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:16:22] Production.INFO: ==15860== Releasing lock... [2025-03-05 21:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:16:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-05 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:17:05 [end_date_ymd] => 2025-03-05 21:17:05 [RateCDR] => 1 ) [2025-03-05 21: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-03-05 18:17:05' and `end` < '2025-03-05 21: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-03-05 21:17:18] Production.INFO: count ==1355 [2025-03-05 21:17:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:17:05 - End Time 2025-03-05 21:17:05 [2025-03-05 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615832', 'tblTempUsageDetail_20' ) start [2025-03-05 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615832', 'tblTempUsageDetail_20' ) end [2025-03-05 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615832', 'tblTempVendorCDR_20' ) start [2025-03-05 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615832', 'tblTempVendorCDR_20' ) end [2025-03-05 21:17:18] Production.INFO: ProcessCDR(1,14615832,1,1,2) [2025-03-05 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615832', 'tblTempUsageDetail_20' ) start [2025-03-05 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615832', 'tblTempUsageDetail_20' ) end [2025-03-05 21:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:17:21] Production.INFO: ==15932== Releasing lock... [2025-03-05 21:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:17:21] Production.INFO: 38 MB #Memory Used# [2025-03-05 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:18:05 [end_date_ymd] => 2025-03-05 21:18:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 18:18:05' and `end` < '2025-03-05 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-03-05 21:18:18] Production.INFO: count ==1343 [2025-03-05 21:18:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:18:05 - End Time 2025-03-05 21:18:05 [2025-03-05 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615837', 'tblTempUsageDetail_20' ) start [2025-03-05 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615837', 'tblTempUsageDetail_20' ) end [2025-03-05 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615837', 'tblTempVendorCDR_20' ) start [2025-03-05 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615837', 'tblTempVendorCDR_20' ) end [2025-03-05 21:18:18] Production.INFO: ProcessCDR(1,14615837,1,1,2) [2025-03-05 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615837', 'tblTempUsageDetail_20' ) start [2025-03-05 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615837', 'tblTempUsageDetail_20' ) end [2025-03-05 21:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:18:21] Production.INFO: ==16004== Releasing lock... [2025-03-05 21:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:18:21] Production.INFO: 38 MB #Memory Used# [2025-03-05 21:19:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:19:07 [end_date_ymd] => 2025-03-05 21:19:07 [RateCDR] => 1 ) [2025-03-05 21:19:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 18:19:07' and `end` < '2025-03-05 21:19:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-05 21:19:19] Production.INFO: count ==1339 [2025-03-05 21:19:19] Production.ERROR: pbx CDR StartTime 2025-03-05 18:19:07 - End Time 2025-03-05 21:19:07 [2025-03-05 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615842', 'tblTempUsageDetail_20' ) start [2025-03-05 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615842', 'tblTempUsageDetail_20' ) end [2025-03-05 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615842', 'tblTempVendorCDR_20' ) start [2025-03-05 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615842', 'tblTempVendorCDR_20' ) end [2025-03-05 21:19:19] Production.INFO: ProcessCDR(1,14615842,1,1,2) [2025-03-05 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615842', 'tblTempUsageDetail_20' ) start [2025-03-05 21:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615842', 'tblTempUsageDetail_20' ) end [2025-03-05 21:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:19:24] Production.INFO: ==16079== Releasing lock... [2025-03-05 21:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:19:24] Production.INFO: 38 MB #Memory Used# [2025-03-05 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:20:06 [end_date_ymd] => 2025-03-05 21:20:06 [RateCDR] => 1 ) [2025-03-05 21: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-03-05 18:20:06' and `end` < '2025-03-05 21: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-03-05 21:20:18] Production.INFO: count ==1331 [2025-03-05 21:20:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:20:06 - End Time 2025-03-05 21:20:06 [2025-03-05 21:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615848', 'tblTempUsageDetail_20' ) start [2025-03-05 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615848', 'tblTempUsageDetail_20' ) end [2025-03-05 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615848', 'tblTempVendorCDR_20' ) start [2025-03-05 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615848', 'tblTempVendorCDR_20' ) end [2025-03-05 21:20:18] Production.INFO: ProcessCDR(1,14615848,1,1,2) [2025-03-05 21:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615848', 'tblTempUsageDetail_20' ) start [2025-03-05 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615848', 'tblTempUsageDetail_20' ) end [2025-03-05 21:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:20:23] Production.INFO: ==16151== Releasing lock... [2025-03-05 21:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:20:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-05 21:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:21:06 [end_date_ymd] => 2025-03-05 21:21:06 [RateCDR] => 1 ) [2025-03-05 21:21: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-03-05 18:21:06' and `end` < '2025-03-05 21:21: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-03-05 21:21:18] Production.INFO: count ==1292 [2025-03-05 21:21:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:21:06 - End Time 2025-03-05 21:21:06 [2025-03-05 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615853', 'tblTempUsageDetail_20' ) start [2025-03-05 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615853', 'tblTempUsageDetail_20' ) end [2025-03-05 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615853', 'tblTempVendorCDR_20' ) start [2025-03-05 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615853', 'tblTempVendorCDR_20' ) end [2025-03-05 21:21:18] Production.INFO: ProcessCDR(1,14615853,1,1,2) [2025-03-05 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615853', 'tblTempUsageDetail_20' ) start [2025-03-05 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615853', 'tblTempUsageDetail_20' ) end [2025-03-05 21:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:21:21] Production.INFO: ==16224== Releasing lock... [2025-03-05 21:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:21:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-05 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:22:05 [end_date_ymd] => 2025-03-05 21:22:05 [RateCDR] => 1 ) [2025-03-05 21: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-03-05 18:22:05' and `end` < '2025-03-05 21: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-03-05 21:22:18] Production.INFO: count ==1288 [2025-03-05 21:22:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:22:05 - End Time 2025-03-05 21:22:05 [2025-03-05 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615858', 'tblTempUsageDetail_20' ) start [2025-03-05 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615858', 'tblTempUsageDetail_20' ) end [2025-03-05 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615858', 'tblTempVendorCDR_20' ) start [2025-03-05 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615858', 'tblTempVendorCDR_20' ) end [2025-03-05 21:22:18] Production.INFO: ProcessCDR(1,14615858,1,1,2) [2025-03-05 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615858', 'tblTempUsageDetail_20' ) start [2025-03-05 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615858', 'tblTempUsageDetail_20' ) end [2025-03-05 21:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:22:22] Production.INFO: ==16297== Releasing lock... [2025-03-05 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:22:22] Production.INFO: 38 MB #Memory Used# [2025-03-05 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:23:05 [end_date_ymd] => 2025-03-05 21:23:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 18:23:05' and `end` < '2025-03-05 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-03-05 21:23:17] Production.INFO: count ==1285 [2025-03-05 21:23:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:23:05 - End Time 2025-03-05 21:23:05 [2025-03-05 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615863', 'tblTempUsageDetail_20' ) start [2025-03-05 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615863', 'tblTempUsageDetail_20' ) end [2025-03-05 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615863', 'tblTempVendorCDR_20' ) start [2025-03-05 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615863', 'tblTempVendorCDR_20' ) end [2025-03-05 21:23:18] Production.INFO: ProcessCDR(1,14615863,1,1,2) [2025-03-05 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615863', 'tblTempUsageDetail_20' ) start [2025-03-05 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615863', 'tblTempUsageDetail_20' ) end [2025-03-05 21:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:23:21] Production.INFO: ==16400== Releasing lock... [2025-03-05 21:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:23:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-05 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:24:05 [end_date_ymd] => 2025-03-05 21:24:05 [RateCDR] => 1 ) [2025-03-05 21: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-03-05 18:24:05' and `end` < '2025-03-05 21: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-03-05 21:24:17] Production.INFO: count ==1287 [2025-03-05 21:24:17] Production.ERROR: pbx CDR StartTime 2025-03-05 18:24:05 - End Time 2025-03-05 21:24:05 [2025-03-05 21:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615868', 'tblTempUsageDetail_20' ) start [2025-03-05 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615868', 'tblTempUsageDetail_20' ) end [2025-03-05 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615868', 'tblTempVendorCDR_20' ) start [2025-03-05 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615868', 'tblTempVendorCDR_20' ) end [2025-03-05 21:24:17] Production.INFO: ProcessCDR(1,14615868,1,1,2) [2025-03-05 21:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615868', 'tblTempUsageDetail_20' ) start [2025-03-05 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615868', 'tblTempUsageDetail_20' ) end [2025-03-05 21:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:24:21] Production.INFO: ==16471== Releasing lock... [2025-03-05 21:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:24:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-05 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:25:05 [end_date_ymd] => 2025-03-05 21:25:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 18:25:05' and `end` < '2025-03-05 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-03-05 21:25:17] Production.INFO: count ==1280 [2025-03-05 21:25:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:25:05 - End Time 2025-03-05 21:25:05 [2025-03-05 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615873', 'tblTempUsageDetail_20' ) start [2025-03-05 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615873', 'tblTempUsageDetail_20' ) end [2025-03-05 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615873', 'tblTempVendorCDR_20' ) start [2025-03-05 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615873', 'tblTempVendorCDR_20' ) end [2025-03-05 21:25:18] Production.INFO: ProcessCDR(1,14615873,1,1,2) [2025-03-05 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615873', 'tblTempUsageDetail_20' ) start [2025-03-05 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615873', 'tblTempUsageDetail_20' ) end [2025-03-05 21:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:25:21] Production.INFO: ==16542== Releasing lock... [2025-03-05 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:25:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-05 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:26:05 [end_date_ymd] => 2025-03-05 21:26:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 18:26:05' and `end` < '2025-03-05 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-03-05 21:26:17] Production.INFO: count ==1277 [2025-03-05 21:26:17] Production.ERROR: pbx CDR StartTime 2025-03-05 18:26:05 - End Time 2025-03-05 21:26:05 [2025-03-05 21:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615878', 'tblTempUsageDetail_20' ) start [2025-03-05 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615878', 'tblTempUsageDetail_20' ) end [2025-03-05 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615878', 'tblTempVendorCDR_20' ) start [2025-03-05 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615878', 'tblTempVendorCDR_20' ) end [2025-03-05 21:26:17] Production.INFO: ProcessCDR(1,14615878,1,1,2) [2025-03-05 21:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615878', 'tblTempUsageDetail_20' ) start [2025-03-05 21:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615878', 'tblTempUsageDetail_20' ) end [2025-03-05 21:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:26:20] Production.INFO: ==16655== Releasing lock... [2025-03-05 21:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:26:20] Production.INFO: 37.5 MB #Memory Used# [2025-03-05 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:27:05 [end_date_ymd] => 2025-03-05 21:27:05 [RateCDR] => 1 ) [2025-03-05 21: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-03-05 18:27:05' and `end` < '2025-03-05 21: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-03-05 21:27:18] Production.INFO: count ==1266 [2025-03-05 21:27:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:27:05 - End Time 2025-03-05 21:27:05 [2025-03-05 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615883', 'tblTempUsageDetail_20' ) start [2025-03-05 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615883', 'tblTempUsageDetail_20' ) end [2025-03-05 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615883', 'tblTempVendorCDR_20' ) start [2025-03-05 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615883', 'tblTempVendorCDR_20' ) end [2025-03-05 21:27:18] Production.INFO: ProcessCDR(1,14615883,1,1,2) [2025-03-05 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615883', 'tblTempUsageDetail_20' ) start [2025-03-05 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615883', 'tblTempUsageDetail_20' ) end [2025-03-05 21:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:27:21] Production.INFO: ==16726== Releasing lock... [2025-03-05 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:27:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-05 21:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:28:06 [end_date_ymd] => 2025-03-05 21:28:06 [RateCDR] => 1 ) [2025-03-05 21: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-03-05 18:28:06' and `end` < '2025-03-05 21: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-03-05 21:28:18] Production.INFO: count ==1261 [2025-03-05 21:28:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:28:06 - End Time 2025-03-05 21:28:06 [2025-03-05 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615888', 'tblTempUsageDetail_20' ) start [2025-03-05 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615888', 'tblTempUsageDetail_20' ) end [2025-03-05 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615888', 'tblTempVendorCDR_20' ) start [2025-03-05 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615888', 'tblTempVendorCDR_20' ) end [2025-03-05 21:28:18] Production.INFO: ProcessCDR(1,14615888,1,1,2) [2025-03-05 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615888', 'tblTempUsageDetail_20' ) start [2025-03-05 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615888', 'tblTempUsageDetail_20' ) end [2025-03-05 21:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:28:21] Production.INFO: ==16803== Releasing lock... [2025-03-05 21:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:28:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-05 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:29:05 [end_date_ymd] => 2025-03-05 21:29:05 [RateCDR] => 1 ) [2025-03-05 21: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-03-05 18:29:05' and `end` < '2025-03-05 21: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-03-05 21:29:17] Production.INFO: count ==1259 [2025-03-05 21:29:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:29:05 - End Time 2025-03-05 21:29:05 [2025-03-05 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615893', 'tblTempUsageDetail_20' ) start [2025-03-05 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615893', 'tblTempUsageDetail_20' ) end [2025-03-05 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615893', 'tblTempVendorCDR_20' ) start [2025-03-05 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615893', 'tblTempVendorCDR_20' ) end [2025-03-05 21:29:18] Production.INFO: ProcessCDR(1,14615893,1,1,2) [2025-03-05 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615893', 'tblTempUsageDetail_20' ) start [2025-03-05 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615893', 'tblTempUsageDetail_20' ) end [2025-03-05 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:29:22] Production.INFO: ==16876== Releasing lock... [2025-03-05 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:29:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-05 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:30:06 [end_date_ymd] => 2025-03-05 21:30:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 18:30:06' and `end` < '2025-03-05 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-03-05 21:30:18] Production.INFO: count ==1260 [2025-03-05 21:30:19] Production.ERROR: pbx CDR StartTime 2025-03-05 18:30:06 - End Time 2025-03-05 21:30:06 [2025-03-05 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615899', 'tblTempUsageDetail_20' ) start [2025-03-05 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615899', 'tblTempUsageDetail_20' ) end [2025-03-05 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615899', 'tblTempVendorCDR_20' ) start [2025-03-05 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615899', 'tblTempVendorCDR_20' ) end [2025-03-05 21:30:19] Production.INFO: ProcessCDR(1,14615899,1,1,2) [2025-03-05 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615899', 'tblTempUsageDetail_20' ) start [2025-03-05 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615899', 'tblTempUsageDetail_20' ) end [2025-03-05 21:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:30:22] Production.INFO: ==16951== Releasing lock... [2025-03-05 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:30:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-05 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:31:05 [end_date_ymd] => 2025-03-05 21:31:05 [RateCDR] => 1 ) [2025-03-05 21: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-03-05 18:31:05' and `end` < '2025-03-05 21: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-03-05 21:31:17] Production.INFO: count ==1271 [2025-03-05 21:31:17] Production.ERROR: pbx CDR StartTime 2025-03-05 18:31:05 - End Time 2025-03-05 21:31:05 [2025-03-05 21:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615904', 'tblTempUsageDetail_20' ) start [2025-03-05 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615904', 'tblTempUsageDetail_20' ) end [2025-03-05 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615904', 'tblTempVendorCDR_20' ) start [2025-03-05 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615904', 'tblTempVendorCDR_20' ) end [2025-03-05 21:31:17] Production.INFO: ProcessCDR(1,14615904,1,1,2) [2025-03-05 21:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615904', 'tblTempUsageDetail_20' ) start [2025-03-05 21:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615904', 'tblTempUsageDetail_20' ) end [2025-03-05 21:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:31:20] Production.INFO: ==17025== Releasing lock... [2025-03-05 21:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:31:20] Production.INFO: 37.25 MB #Memory Used# [2025-03-05 21:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:32:06 [end_date_ymd] => 2025-03-05 21:32:06 [RateCDR] => 1 ) [2025-03-05 21: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-03-05 18:32:06' and `end` < '2025-03-05 21: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-03-05 21:32:18] Production.INFO: count ==1271 [2025-03-05 21:32:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:32:06 - End Time 2025-03-05 21:32:06 [2025-03-05 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615909', 'tblTempUsageDetail_20' ) start [2025-03-05 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615909', 'tblTempUsageDetail_20' ) end [2025-03-05 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615909', 'tblTempVendorCDR_20' ) start [2025-03-05 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615909', 'tblTempVendorCDR_20' ) end [2025-03-05 21:32:18] Production.INFO: ProcessCDR(1,14615909,1,1,2) [2025-03-05 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615909', 'tblTempUsageDetail_20' ) start [2025-03-05 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615909', 'tblTempUsageDetail_20' ) end [2025-03-05 21:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:32:23] Production.INFO: ==17097== Releasing lock... [2025-03-05 21:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:32:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-05 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:33:05 [end_date_ymd] => 2025-03-05 21:33:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 18:33:05' and `end` < '2025-03-05 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-03-05 21:33:17] Production.INFO: count ==1271 [2025-03-05 21:33:17] Production.ERROR: pbx CDR StartTime 2025-03-05 18:33:05 - End Time 2025-03-05 21:33:05 [2025-03-05 21:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615914', 'tblTempUsageDetail_20' ) start [2025-03-05 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615914', 'tblTempUsageDetail_20' ) end [2025-03-05 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615914', 'tblTempVendorCDR_20' ) start [2025-03-05 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615914', 'tblTempVendorCDR_20' ) end [2025-03-05 21:33:17] Production.INFO: ProcessCDR(1,14615914,1,1,2) [2025-03-05 21:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615914', 'tblTempUsageDetail_20' ) start [2025-03-05 21:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615914', 'tblTempUsageDetail_20' ) end [2025-03-05 21:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:33:20] Production.INFO: ==17170== Releasing lock... [2025-03-05 21:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:33:20] Production.INFO: 37.25 MB #Memory Used# [2025-03-05 21:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:34:06 [end_date_ymd] => 2025-03-05 21:34:06 [RateCDR] => 1 ) [2025-03-05 21: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-03-05 18:34:06' and `end` < '2025-03-05 21: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-03-05 21:34:18] Production.INFO: count ==1270 [2025-03-05 21:34:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:34:06 - End Time 2025-03-05 21:34:06 [2025-03-05 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615919', 'tblTempUsageDetail_20' ) start [2025-03-05 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615919', 'tblTempUsageDetail_20' ) end [2025-03-05 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615919', 'tblTempVendorCDR_20' ) start [2025-03-05 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615919', 'tblTempVendorCDR_20' ) end [2025-03-05 21:34:18] Production.INFO: ProcessCDR(1,14615919,1,1,2) [2025-03-05 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615919', 'tblTempUsageDetail_20' ) start [2025-03-05 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615919', 'tblTempUsageDetail_20' ) end [2025-03-05 21:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:34:23] Production.INFO: ==17247== Releasing lock... [2025-03-05 21:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:34:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-05 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:35:05 [end_date_ymd] => 2025-03-05 21:35:05 [RateCDR] => 1 ) [2025-03-05 21: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-03-05 18:35:05' and `end` < '2025-03-05 21: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-03-05 21:35:17] Production.INFO: count ==1268 [2025-03-05 21:35:17] Production.ERROR: pbx CDR StartTime 2025-03-05 18:35:05 - End Time 2025-03-05 21:35:05 [2025-03-05 21:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615924', 'tblTempUsageDetail_20' ) start [2025-03-05 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615924', 'tblTempUsageDetail_20' ) end [2025-03-05 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615924', 'tblTempVendorCDR_20' ) start [2025-03-05 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615924', 'tblTempVendorCDR_20' ) end [2025-03-05 21:35:17] Production.INFO: ProcessCDR(1,14615924,1,1,2) [2025-03-05 21:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615924', 'tblTempUsageDetail_20' ) start [2025-03-05 21:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615924', 'tblTempUsageDetail_20' ) end [2025-03-05 21:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:35:21] Production.INFO: ==17319== Releasing lock... [2025-03-05 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:35:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-05 21:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:36:06 [end_date_ymd] => 2025-03-05 21:36:06 [RateCDR] => 1 ) [2025-03-05 21:36: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-03-05 18:36:06' and `end` < '2025-03-05 21:36: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-03-05 21:36:18] Production.INFO: count ==1272 [2025-03-05 21:36:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:36:06 - End Time 2025-03-05 21:36:06 [2025-03-05 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615929', 'tblTempUsageDetail_20' ) start [2025-03-05 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615929', 'tblTempUsageDetail_20' ) end [2025-03-05 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615929', 'tblTempVendorCDR_20' ) start [2025-03-05 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615929', 'tblTempVendorCDR_20' ) end [2025-03-05 21:36:18] Production.INFO: ProcessCDR(1,14615929,1,1,2) [2025-03-05 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615929', 'tblTempUsageDetail_20' ) start [2025-03-05 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615929', 'tblTempUsageDetail_20' ) end [2025-03-05 21:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:36:21] Production.INFO: ==17395== Releasing lock... [2025-03-05 21:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:36:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-05 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:37:05 [end_date_ymd] => 2025-03-05 21:37:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 18:37:05' and `end` < '2025-03-05 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-03-05 21:37:17] Production.INFO: count ==1269 [2025-03-05 21:37:17] Production.ERROR: pbx CDR StartTime 2025-03-05 18:37:05 - End Time 2025-03-05 21:37:05 [2025-03-05 21:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615934', 'tblTempUsageDetail_20' ) start [2025-03-05 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615934', 'tblTempUsageDetail_20' ) end [2025-03-05 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615934', 'tblTempVendorCDR_20' ) start [2025-03-05 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615934', 'tblTempVendorCDR_20' ) end [2025-03-05 21:37:17] Production.INFO: ProcessCDR(1,14615934,1,1,2) [2025-03-05 21:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615934', 'tblTempUsageDetail_20' ) start [2025-03-05 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615934', 'tblTempUsageDetail_20' ) end [2025-03-05 21:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:37:22] Production.INFO: ==17467== Releasing lock... [2025-03-05 21:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:37:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-05 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:38:05 [end_date_ymd] => 2025-03-05 21:38:05 [RateCDR] => 1 ) [2025-03-05 21: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-03-05 18:38:05' and `end` < '2025-03-05 21: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-03-05 21:38:17] Production.INFO: count ==1259 [2025-03-05 21:38:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:38:05 - End Time 2025-03-05 21:38:05 [2025-03-05 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615939', 'tblTempUsageDetail_20' ) start [2025-03-05 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615939', 'tblTempUsageDetail_20' ) end [2025-03-05 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615939', 'tblTempVendorCDR_20' ) start [2025-03-05 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615939', 'tblTempVendorCDR_20' ) end [2025-03-05 21:38:18] Production.INFO: ProcessCDR(1,14615939,1,1,2) [2025-03-05 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615939', 'tblTempUsageDetail_20' ) start [2025-03-05 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615939', 'tblTempUsageDetail_20' ) end [2025-03-05 21:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:38:22] Production.INFO: ==17540== Releasing lock... [2025-03-05 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:38:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-05 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:39:05 [end_date_ymd] => 2025-03-05 21:39:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 18:39:05' and `end` < '2025-03-05 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-03-05 21:39:17] Production.INFO: count ==1250 [2025-03-05 21:39:17] Production.ERROR: pbx CDR StartTime 2025-03-05 18:39:05 - End Time 2025-03-05 21:39:05 [2025-03-05 21:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615944', 'tblTempUsageDetail_20' ) start [2025-03-05 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615944', 'tblTempUsageDetail_20' ) end [2025-03-05 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615944', 'tblTempVendorCDR_20' ) start [2025-03-05 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615944', 'tblTempVendorCDR_20' ) end [2025-03-05 21:39:17] Production.INFO: ProcessCDR(1,14615944,1,1,2) [2025-03-05 21:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615944', 'tblTempUsageDetail_20' ) start [2025-03-05 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615944', 'tblTempUsageDetail_20' ) end [2025-03-05 21:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:39:22] Production.INFO: ==17613== Releasing lock... [2025-03-05 21:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:39:22] Production.INFO: 37 MB #Memory Used# [2025-03-05 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:40:06 [end_date_ymd] => 2025-03-05 21:40:06 [RateCDR] => 1 ) [2025-03-05 21: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-03-05 18:40:06' and `end` < '2025-03-05 21: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-03-05 21:40:19] Production.INFO: count ==1242 [2025-03-05 21:40:19] Production.ERROR: pbx CDR StartTime 2025-03-05 18:40:06 - End Time 2025-03-05 21:40:06 [2025-03-05 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615950', 'tblTempUsageDetail_20' ) start [2025-03-05 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615950', 'tblTempUsageDetail_20' ) end [2025-03-05 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615950', 'tblTempVendorCDR_20' ) start [2025-03-05 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615950', 'tblTempVendorCDR_20' ) end [2025-03-05 21:40:19] Production.INFO: ProcessCDR(1,14615950,1,1,2) [2025-03-05 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615950', 'tblTempUsageDetail_20' ) start [2025-03-05 21:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615950', 'tblTempUsageDetail_20' ) end [2025-03-05 21:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:40:24] Production.INFO: ==17689== Releasing lock... [2025-03-05 21:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:40:24] Production.INFO: 37 MB #Memory Used# [2025-03-05 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:41:05 [end_date_ymd] => 2025-03-05 21:41:05 [RateCDR] => 1 ) [2025-03-05 21: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-03-05 18:41:05' and `end` < '2025-03-05 21: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-03-05 21:41:17] Production.INFO: count ==1176 [2025-03-05 21:41:17] Production.ERROR: pbx CDR StartTime 2025-03-05 18:41:05 - End Time 2025-03-05 21:41:05 [2025-03-05 21:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615955', 'tblTempUsageDetail_20' ) start [2025-03-05 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615955', 'tblTempUsageDetail_20' ) end [2025-03-05 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615955', 'tblTempVendorCDR_20' ) start [2025-03-05 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615955', 'tblTempVendorCDR_20' ) end [2025-03-05 21:41:17] Production.INFO: ProcessCDR(1,14615955,1,1,2) [2025-03-05 21:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615955', 'tblTempUsageDetail_20' ) start [2025-03-05 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615955', 'tblTempUsageDetail_20' ) end [2025-03-05 21:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:41:21] Production.INFO: ==17800== Releasing lock... [2025-03-05 21:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:41:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-05 21:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:42:06 [end_date_ymd] => 2025-03-05 21:42:06 [RateCDR] => 1 ) [2025-03-05 21: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-03-05 18:42:06' and `end` < '2025-03-05 21: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-03-05 21:42:18] Production.INFO: count ==1171 [2025-03-05 21:42:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:42:06 - End Time 2025-03-05 21:42:06 [2025-03-05 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615960', 'tblTempUsageDetail_20' ) start [2025-03-05 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615960', 'tblTempUsageDetail_20' ) end [2025-03-05 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615960', 'tblTempVendorCDR_20' ) start [2025-03-05 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615960', 'tblTempVendorCDR_20' ) end [2025-03-05 21:42:18] Production.INFO: ProcessCDR(1,14615960,1,1,2) [2025-03-05 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615960', 'tblTempUsageDetail_20' ) start [2025-03-05 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615960', 'tblTempUsageDetail_20' ) end [2025-03-05 21:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:42:21] Production.INFO: ==17872== Releasing lock... [2025-03-05 21:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:42:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-05 21:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:43:06 [end_date_ymd] => 2025-03-05 21:43:06 [RateCDR] => 1 ) [2025-03-05 21: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-03-05 18:43:06' and `end` < '2025-03-05 21: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-03-05 21:43:18] Production.INFO: count ==1171 [2025-03-05 21:43:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:43:06 - End Time 2025-03-05 21:43:06 [2025-03-05 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615965', 'tblTempUsageDetail_20' ) start [2025-03-05 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615965', 'tblTempUsageDetail_20' ) end [2025-03-05 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615965', 'tblTempVendorCDR_20' ) start [2025-03-05 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615965', 'tblTempVendorCDR_20' ) end [2025-03-05 21:43:18] Production.INFO: ProcessCDR(1,14615965,1,1,2) [2025-03-05 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615965', 'tblTempUsageDetail_20' ) start [2025-03-05 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615965', 'tblTempUsageDetail_20' ) end [2025-03-05 21:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:43:23] Production.INFO: ==17947== Releasing lock... [2025-03-05 21:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:43:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-05 21:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:44:06 [end_date_ymd] => 2025-03-05 21:44:06 [RateCDR] => 1 ) [2025-03-05 21:44: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-03-05 18:44:06' and `end` < '2025-03-05 21:44: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-03-05 21:44:18] Production.INFO: count ==1167 [2025-03-05 21:44:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:44:06 - End Time 2025-03-05 21:44:06 [2025-03-05 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615970', 'tblTempUsageDetail_20' ) start [2025-03-05 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615970', 'tblTempUsageDetail_20' ) end [2025-03-05 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615970', 'tblTempVendorCDR_20' ) start [2025-03-05 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615970', 'tblTempVendorCDR_20' ) end [2025-03-05 21:44:18] Production.INFO: ProcessCDR(1,14615970,1,1,2) [2025-03-05 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615970', 'tblTempUsageDetail_20' ) start [2025-03-05 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615970', 'tblTempUsageDetail_20' ) end [2025-03-05 21:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:44:22] Production.INFO: ==18018== Releasing lock... [2025-03-05 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:44:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-05 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:45:05 [end_date_ymd] => 2025-03-05 21:45:05 [RateCDR] => 1 ) [2025-03-05 21: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-03-05 18:45:05' and `end` < '2025-03-05 21: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-03-05 21:45:18] Production.INFO: count ==1170 [2025-03-05 21:45:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:45:05 - End Time 2025-03-05 21:45:05 [2025-03-05 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615975', 'tblTempUsageDetail_20' ) start [2025-03-05 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615975', 'tblTempUsageDetail_20' ) end [2025-03-05 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615975', 'tblTempVendorCDR_20' ) start [2025-03-05 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615975', 'tblTempVendorCDR_20' ) end [2025-03-05 21:45:18] Production.INFO: ProcessCDR(1,14615975,1,1,2) [2025-03-05 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615975', 'tblTempUsageDetail_20' ) start [2025-03-05 21:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615975', 'tblTempUsageDetail_20' ) end [2025-03-05 21:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:45:23] Production.INFO: ==18091== Releasing lock... [2025-03-05 21:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:45:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-05 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:46:05 [end_date_ymd] => 2025-03-05 21:46:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 18:46:05' and `end` < '2025-03-05 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-03-05 21:46:18] Production.INFO: count ==1168 [2025-03-05 21:46:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:46:05 - End Time 2025-03-05 21:46:05 [2025-03-05 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615980', 'tblTempUsageDetail_20' ) start [2025-03-05 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615980', 'tblTempUsageDetail_20' ) end [2025-03-05 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615980', 'tblTempVendorCDR_20' ) start [2025-03-05 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615980', 'tblTempVendorCDR_20' ) end [2025-03-05 21:46:18] Production.INFO: ProcessCDR(1,14615980,1,1,2) [2025-03-05 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615980', 'tblTempUsageDetail_20' ) start [2025-03-05 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615980', 'tblTempUsageDetail_20' ) end [2025-03-05 21:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:46:21] Production.INFO: ==18164== Releasing lock... [2025-03-05 21:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:46:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-05 21:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:47:06 [end_date_ymd] => 2025-03-05 21:47:06 [RateCDR] => 1 ) [2025-03-05 21:47: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-03-05 18:47:06' and `end` < '2025-03-05 21:47: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-03-05 21:47:18] Production.INFO: count ==1167 [2025-03-05 21:47:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:47:06 - End Time 2025-03-05 21:47:06 [2025-03-05 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615985', 'tblTempUsageDetail_20' ) start [2025-03-05 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615985', 'tblTempUsageDetail_20' ) end [2025-03-05 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615985', 'tblTempVendorCDR_20' ) start [2025-03-05 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615985', 'tblTempVendorCDR_20' ) end [2025-03-05 21:47:18] Production.INFO: ProcessCDR(1,14615985,1,1,2) [2025-03-05 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615985', 'tblTempUsageDetail_20' ) start [2025-03-05 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615985', 'tblTempUsageDetail_20' ) end [2025-03-05 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:47:22] Production.INFO: ==18236== Releasing lock... [2025-03-05 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:47:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-05 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:48:05 [end_date_ymd] => 2025-03-05 21:48:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 18:48:05' and `end` < '2025-03-05 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-03-05 21:48:17] Production.INFO: count ==1167 [2025-03-05 21:48:17] Production.ERROR: pbx CDR StartTime 2025-03-05 18:48:05 - End Time 2025-03-05 21:48:05 [2025-03-05 21:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615990', 'tblTempUsageDetail_20' ) start [2025-03-05 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615990', 'tblTempUsageDetail_20' ) end [2025-03-05 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615990', 'tblTempVendorCDR_20' ) start [2025-03-05 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615990', 'tblTempVendorCDR_20' ) end [2025-03-05 21:48:17] Production.INFO: ProcessCDR(1,14615990,1,1,2) [2025-03-05 21:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615990', 'tblTempUsageDetail_20' ) start [2025-03-05 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615990', 'tblTempUsageDetail_20' ) end [2025-03-05 21:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:48:21] Production.INFO: ==18311== Releasing lock... [2025-03-05 21:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:48:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-05 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:49:05 [end_date_ymd] => 2025-03-05 21:49:05 [RateCDR] => 1 ) [2025-03-05 21: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-03-05 18:49:05' and `end` < '2025-03-05 21: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-03-05 21:49:17] Production.INFO: count ==1163 [2025-03-05 21:49:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:49:05 - End Time 2025-03-05 21:49:05 [2025-03-05 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615995', 'tblTempUsageDetail_20' ) start [2025-03-05 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14615995', 'tblTempUsageDetail_20' ) end [2025-03-05 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615995', 'tblTempVendorCDR_20' ) start [2025-03-05 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14615995', 'tblTempVendorCDR_20' ) end [2025-03-05 21:49:18] Production.INFO: ProcessCDR(1,14615995,1,1,2) [2025-03-05 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14615995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14615995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14615995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14615995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615995', 'tblTempUsageDetail_20' ) start [2025-03-05 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14615995', 'tblTempUsageDetail_20' ) end [2025-03-05 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:49:21] Production.INFO: ==18385== Releasing lock... [2025-03-05 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:49:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-05 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:50:06 [end_date_ymd] => 2025-03-05 21:50:06 [RateCDR] => 1 ) [2025-03-05 21: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-03-05 18:50:06' and `end` < '2025-03-05 21: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-03-05 21:50:18] Production.INFO: count ==1161 [2025-03-05 21:50:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:50:06 - End Time 2025-03-05 21:50:06 [2025-03-05 21:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616001', 'tblTempUsageDetail_20' ) start [2025-03-05 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616001', 'tblTempUsageDetail_20' ) end [2025-03-05 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616001', 'tblTempVendorCDR_20' ) start [2025-03-05 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616001', 'tblTempVendorCDR_20' ) end [2025-03-05 21:50:18] Production.INFO: ProcessCDR(1,14616001,1,1,2) [2025-03-05 21:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616001', 'tblTempUsageDetail_20' ) start [2025-03-05 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616001', 'tblTempUsageDetail_20' ) end [2025-03-05 21:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:50:22] Production.INFO: ==18458== Releasing lock... [2025-03-05 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:50:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-05 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:51:05 [end_date_ymd] => 2025-03-05 21:51:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 18:51:05' and `end` < '2025-03-05 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-03-05 21:51:17] Production.INFO: count ==1098 [2025-03-05 21:51:17] Production.ERROR: pbx CDR StartTime 2025-03-05 18:51:05 - End Time 2025-03-05 21:51:05 [2025-03-05 21:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616006', 'tblTempUsageDetail_20' ) start [2025-03-05 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616006', 'tblTempUsageDetail_20' ) end [2025-03-05 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616006', 'tblTempVendorCDR_20' ) start [2025-03-05 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616006', 'tblTempVendorCDR_20' ) end [2025-03-05 21:51:17] Production.INFO: ProcessCDR(1,14616006,1,1,2) [2025-03-05 21:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616006', 'tblTempUsageDetail_20' ) start [2025-03-05 21:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616006', 'tblTempUsageDetail_20' ) end [2025-03-05 21:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:51:20] Production.INFO: ==18535== Releasing lock... [2025-03-05 21:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:51:20] Production.INFO: 36 MB #Memory Used# [2025-03-05 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:52:05 [end_date_ymd] => 2025-03-05 21:52:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 18:52:05' and `end` < '2025-03-05 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-03-05 21:52:17] Production.INFO: count ==1094 [2025-03-05 21:52:17] Production.ERROR: pbx CDR StartTime 2025-03-05 18:52:05 - End Time 2025-03-05 21:52:05 [2025-03-05 21:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616011', 'tblTempUsageDetail_20' ) start [2025-03-05 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616011', 'tblTempUsageDetail_20' ) end [2025-03-05 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616011', 'tblTempVendorCDR_20' ) start [2025-03-05 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616011', 'tblTempVendorCDR_20' ) end [2025-03-05 21:52:17] Production.INFO: ProcessCDR(1,14616011,1,1,2) [2025-03-05 21:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616011', 'tblTempUsageDetail_20' ) start [2025-03-05 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616011', 'tblTempUsageDetail_20' ) end [2025-03-05 21:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:52:21] Production.INFO: ==18606== Releasing lock... [2025-03-05 21:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:52:21] Production.INFO: 36 MB #Memory Used# [2025-03-05 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:53:05 [end_date_ymd] => 2025-03-05 21:53:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 18:53:05' and `end` < '2025-03-05 21: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-03-05 21:53:17] Production.INFO: count ==1082 [2025-03-05 21:53:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:53:05 - End Time 2025-03-05 21:53:05 [2025-03-05 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616016', 'tblTempUsageDetail_20' ) start [2025-03-05 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616016', 'tblTempUsageDetail_20' ) end [2025-03-05 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616016', 'tblTempVendorCDR_20' ) start [2025-03-05 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616016', 'tblTempVendorCDR_20' ) end [2025-03-05 21:53:18] Production.INFO: ProcessCDR(1,14616016,1,1,2) [2025-03-05 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616016', 'tblTempUsageDetail_20' ) start [2025-03-05 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616016', 'tblTempUsageDetail_20' ) end [2025-03-05 21:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:53:21] Production.INFO: ==18679== Releasing lock... [2025-03-05 21:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:53:21] Production.INFO: 36 MB #Memory Used# [2025-03-05 21:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:54:06 [end_date_ymd] => 2025-03-05 21:54:06 [RateCDR] => 1 ) [2025-03-05 21:54: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-03-05 18:54:06' and `end` < '2025-03-05 21:54: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-03-05 21:54:18] Production.INFO: count ==1073 [2025-03-05 21:54:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:54:06 - End Time 2025-03-05 21:54:06 [2025-03-05 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616021', 'tblTempUsageDetail_20' ) start [2025-03-05 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616021', 'tblTempUsageDetail_20' ) end [2025-03-05 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616021', 'tblTempVendorCDR_20' ) start [2025-03-05 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616021', 'tblTempVendorCDR_20' ) end [2025-03-05 21:54:18] Production.INFO: ProcessCDR(1,14616021,1,1,2) [2025-03-05 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616021', 'tblTempUsageDetail_20' ) start [2025-03-05 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616021', 'tblTempUsageDetail_20' ) end [2025-03-05 21:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:54:21] Production.INFO: ==18751== Releasing lock... [2025-03-05 21:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:54:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-05 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:55:05 [end_date_ymd] => 2025-03-05 21:55:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 18:55:05' and `end` < '2025-03-05 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-03-05 21:55:18] Production.INFO: count ==1063 [2025-03-05 21:55:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:55:05 - End Time 2025-03-05 21:55:05 [2025-03-05 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616026', 'tblTempUsageDetail_20' ) start [2025-03-05 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616026', 'tblTempUsageDetail_20' ) end [2025-03-05 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616026', 'tblTempVendorCDR_20' ) start [2025-03-05 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616026', 'tblTempVendorCDR_20' ) end [2025-03-05 21:55:18] Production.INFO: ProcessCDR(1,14616026,1,1,2) [2025-03-05 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616026', 'tblTempUsageDetail_20' ) start [2025-03-05 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616026', 'tblTempUsageDetail_20' ) end [2025-03-05 21:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:55:21] Production.INFO: ==18829== Releasing lock... [2025-03-05 21:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:55:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-05 21:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:56:06 [end_date_ymd] => 2025-03-05 21:56:06 [RateCDR] => 1 ) [2025-03-05 21: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-03-05 18:56:06' and `end` < '2025-03-05 21: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-03-05 21:56:18] Production.INFO: count ==1051 [2025-03-05 21:56:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:56:06 - End Time 2025-03-05 21:56:06 [2025-03-05 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616031', 'tblTempUsageDetail_20' ) start [2025-03-05 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616031', 'tblTempUsageDetail_20' ) end [2025-03-05 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616031', 'tblTempVendorCDR_20' ) start [2025-03-05 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616031', 'tblTempVendorCDR_20' ) end [2025-03-05 21:56:18] Production.INFO: ProcessCDR(1,14616031,1,1,2) [2025-03-05 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616031', 'tblTempUsageDetail_20' ) start [2025-03-05 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616031', 'tblTempUsageDetail_20' ) end [2025-03-05 21:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:56:21] Production.INFO: ==18900== Releasing lock... [2025-03-05 21:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:56:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-05 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:57:05 [end_date_ymd] => 2025-03-05 21:57:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 18:57:05' and `end` < '2025-03-05 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-03-05 21:57:17] Production.INFO: count ==1045 [2025-03-05 21:57:17] Production.ERROR: pbx CDR StartTime 2025-03-05 18:57:05 - End Time 2025-03-05 21:57:05 [2025-03-05 21:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616036', 'tblTempUsageDetail_20' ) start [2025-03-05 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616036', 'tblTempUsageDetail_20' ) end [2025-03-05 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616036', 'tblTempVendorCDR_20' ) start [2025-03-05 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616036', 'tblTempVendorCDR_20' ) end [2025-03-05 21:57:17] Production.INFO: ProcessCDR(1,14616036,1,1,2) [2025-03-05 21:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616036', 'tblTempUsageDetail_20' ) start [2025-03-05 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616036', 'tblTempUsageDetail_20' ) end [2025-03-05 21:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:57:21] Production.INFO: ==19010== Releasing lock... [2025-03-05 21:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:57:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-05 21:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:58:06 [end_date_ymd] => 2025-03-05 21:58:06 [RateCDR] => 1 ) [2025-03-05 21: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-03-05 18:58:06' and `end` < '2025-03-05 21: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-03-05 21:58:18] Production.INFO: count ==1042 [2025-03-05 21:58:18] Production.ERROR: pbx CDR StartTime 2025-03-05 18:58:06 - End Time 2025-03-05 21:58:06 [2025-03-05 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616041', 'tblTempUsageDetail_20' ) start [2025-03-05 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616041', 'tblTempUsageDetail_20' ) end [2025-03-05 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616041', 'tblTempVendorCDR_20' ) start [2025-03-05 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616041', 'tblTempVendorCDR_20' ) end [2025-03-05 21:58:18] Production.INFO: ProcessCDR(1,14616041,1,1,2) [2025-03-05 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616041', 'tblTempUsageDetail_20' ) start [2025-03-05 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616041', 'tblTempUsageDetail_20' ) end [2025-03-05 21:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:58:21] Production.INFO: ==19088== Releasing lock... [2025-03-05 21:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:58:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-05 21:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 18:59:04 [end_date_ymd] => 2025-03-05 21:59:04 [RateCDR] => 1 ) [2025-03-05 21: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-03-05 18:59:04' and `end` < '2025-03-05 21: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-03-05 21:59:17] Production.INFO: count ==1038 [2025-03-05 21:59:17] Production.ERROR: pbx CDR StartTime 2025-03-05 18:59:04 - End Time 2025-03-05 21:59:04 [2025-03-05 21:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616046', 'tblTempUsageDetail_20' ) start [2025-03-05 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616046', 'tblTempUsageDetail_20' ) end [2025-03-05 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616046', 'tblTempVendorCDR_20' ) start [2025-03-05 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616046', 'tblTempVendorCDR_20' ) end [2025-03-05 21:59:17] Production.INFO: ProcessCDR(1,14616046,1,1,2) [2025-03-05 21:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 21:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 21:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616046', 'tblTempUsageDetail_20' ) start [2025-03-05 21:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616046', 'tblTempUsageDetail_20' ) end [2025-03-05 21:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 21:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 21:59:20] Production.INFO: ==19160== Releasing lock... [2025-03-05 21:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 21:59:20] Production.INFO: 35.5 MB #Memory Used# [2025-03-05 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:00:06 [end_date_ymd] => 2025-03-05 22:00:06 [RateCDR] => 1 ) [2025-03-05 22: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-03-05 19:00:06' and `end` < '2025-03-05 22: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-03-05 22:00:19] Production.INFO: count ==1038 [2025-03-05 22:00:19] Production.ERROR: pbx CDR StartTime 2025-03-05 19:00:06 - End Time 2025-03-05 22:00:06 [2025-03-05 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616052', 'tblTempUsageDetail_20' ) start [2025-03-05 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616052', 'tblTempUsageDetail_20' ) end [2025-03-05 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616052', 'tblTempVendorCDR_20' ) start [2025-03-05 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616052', 'tblTempVendorCDR_20' ) end [2025-03-05 22:00:19] Production.INFO: ProcessCDR(1,14616052,1,1,2) [2025-03-05 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616052', 'tblTempUsageDetail_20' ) start [2025-03-05 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616052', 'tblTempUsageDetail_20' ) end [2025-03-05 22:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:00:22] Production.INFO: ==19236== Releasing lock... [2025-03-05 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:00:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-05 22:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:01:06 [end_date_ymd] => 2025-03-05 22:01:06 [RateCDR] => 1 ) [2025-03-05 22: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-03-05 19:01:06' and `end` < '2025-03-05 22: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-03-05 22:01:18] Production.INFO: count ==1030 [2025-03-05 22:01:18] Production.ERROR: pbx CDR StartTime 2025-03-05 19:01:06 - End Time 2025-03-05 22:01:06 [2025-03-05 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616057', 'tblTempUsageDetail_20' ) start [2025-03-05 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616057', 'tblTempUsageDetail_20' ) end [2025-03-05 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616057', 'tblTempVendorCDR_20' ) start [2025-03-05 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616057', 'tblTempVendorCDR_20' ) end [2025-03-05 22:01:18] Production.INFO: ProcessCDR(1,14616057,1,1,2) [2025-03-05 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616057', 'tblTempUsageDetail_20' ) start [2025-03-05 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616057', 'tblTempUsageDetail_20' ) end [2025-03-05 22:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:01:21] Production.INFO: ==19321== Releasing lock... [2025-03-05 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:01:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-05 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:02:05 [end_date_ymd] => 2025-03-05 22:02:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 19:02:05' and `end` < '2025-03-05 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-03-05 22:02:17] Production.INFO: count ==1024 [2025-03-05 22:02:17] Production.ERROR: pbx CDR StartTime 2025-03-05 19:02:05 - End Time 2025-03-05 22:02:05 [2025-03-05 22:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616062', 'tblTempUsageDetail_20' ) start [2025-03-05 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616062', 'tblTempUsageDetail_20' ) end [2025-03-05 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616062', 'tblTempVendorCDR_20' ) start [2025-03-05 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616062', 'tblTempVendorCDR_20' ) end [2025-03-05 22:02:17] Production.INFO: ProcessCDR(1,14616062,1,1,2) [2025-03-05 22:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616062', 'tblTempUsageDetail_20' ) start [2025-03-05 22:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616062', 'tblTempUsageDetail_20' ) end [2025-03-05 22:02:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:02:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:02:20] Production.INFO: ==19395== Releasing lock... [2025-03-05 22:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:02:20] Production.INFO: 35.25 MB #Memory Used# [2025-03-05 22:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:03:04 [end_date_ymd] => 2025-03-05 22:03:04 [RateCDR] => 1 ) [2025-03-05 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-03-05 19:03:04' and `end` < '2025-03-05 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-03-05 22:03:17] Production.INFO: count ==1027 [2025-03-05 22:03:17] Production.ERROR: pbx CDR StartTime 2025-03-05 19:03:04 - End Time 2025-03-05 22:03:04 [2025-03-05 22:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616067', 'tblTempUsageDetail_20' ) start [2025-03-05 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616067', 'tblTempUsageDetail_20' ) end [2025-03-05 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616067', 'tblTempVendorCDR_20' ) start [2025-03-05 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616067', 'tblTempVendorCDR_20' ) end [2025-03-05 22:03:17] Production.INFO: ProcessCDR(1,14616067,1,1,2) [2025-03-05 22:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616067', 'tblTempUsageDetail_20' ) start [2025-03-05 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616067', 'tblTempUsageDetail_20' ) end [2025-03-05 22:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:03:22] Production.INFO: ==19465== Releasing lock... [2025-03-05 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:03:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-05 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:04:05 [end_date_ymd] => 2025-03-05 22:04:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 19:04:05' and `end` < '2025-03-05 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-03-05 22:04:18] Production.INFO: count ==1030 [2025-03-05 22:04:18] Production.ERROR: pbx CDR StartTime 2025-03-05 19:04:05 - End Time 2025-03-05 22:04:05 [2025-03-05 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616072', 'tblTempUsageDetail_20' ) start [2025-03-05 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616072', 'tblTempUsageDetail_20' ) end [2025-03-05 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616072', 'tblTempVendorCDR_20' ) start [2025-03-05 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616072', 'tblTempVendorCDR_20' ) end [2025-03-05 22:04:18] Production.INFO: ProcessCDR(1,14616072,1,1,2) [2025-03-05 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616072', 'tblTempUsageDetail_20' ) start [2025-03-05 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616072', 'tblTempUsageDetail_20' ) end [2025-03-05 22:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:04:22] Production.INFO: ==19537== Releasing lock... [2025-03-05 22:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:04:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-05 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:05:05 [end_date_ymd] => 2025-03-05 22:05:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 19:05:05' and `end` < '2025-03-05 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-03-05 22:05:18] Production.INFO: count ==1029 [2025-03-05 22:05:18] Production.ERROR: pbx CDR StartTime 2025-03-05 19:05:05 - End Time 2025-03-05 22:05:05 [2025-03-05 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616077', 'tblTempUsageDetail_20' ) start [2025-03-05 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616077', 'tblTempUsageDetail_20' ) end [2025-03-05 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616077', 'tblTempVendorCDR_20' ) start [2025-03-05 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616077', 'tblTempVendorCDR_20' ) end [2025-03-05 22:05:18] Production.INFO: ProcessCDR(1,14616077,1,1,2) [2025-03-05 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616077', 'tblTempUsageDetail_20' ) start [2025-03-05 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616077', 'tblTempUsageDetail_20' ) end [2025-03-05 22:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:05:21] Production.INFO: ==19610== Releasing lock... [2025-03-05 22:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:05:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-05 22:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:06:06 [end_date_ymd] => 2025-03-05 22:06:06 [RateCDR] => 1 ) [2025-03-05 22:06: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-03-05 19:06:06' and `end` < '2025-03-05 22:06: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-03-05 22:06:18] Production.INFO: count ==1029 [2025-03-05 22:06:18] Production.ERROR: pbx CDR StartTime 2025-03-05 19:06:06 - End Time 2025-03-05 22:06:06 [2025-03-05 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616082', 'tblTempUsageDetail_20' ) start [2025-03-05 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616082', 'tblTempUsageDetail_20' ) end [2025-03-05 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616082', 'tblTempVendorCDR_20' ) start [2025-03-05 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616082', 'tblTempVendorCDR_20' ) end [2025-03-05 22:06:18] Production.INFO: ProcessCDR(1,14616082,1,1,2) [2025-03-05 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616082', 'tblTempUsageDetail_20' ) start [2025-03-05 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616082', 'tblTempUsageDetail_20' ) end [2025-03-05 22:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:06:23] Production.INFO: ==19685== Releasing lock... [2025-03-05 22:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:06:23] Production.INFO: 35.25 MB #Memory Used# [2025-03-05 22:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:07:06 [end_date_ymd] => 2025-03-05 22:07:06 [RateCDR] => 1 ) [2025-03-05 22: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-03-05 19:07:06' and `end` < '2025-03-05 22: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-03-05 22:07:18] Production.INFO: count ==1024 [2025-03-05 22:07:18] Production.ERROR: pbx CDR StartTime 2025-03-05 19:07:06 - End Time 2025-03-05 22:07:06 [2025-03-05 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616087', 'tblTempUsageDetail_20' ) start [2025-03-05 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616087', 'tblTempUsageDetail_20' ) end [2025-03-05 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616087', 'tblTempVendorCDR_20' ) start [2025-03-05 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616087', 'tblTempVendorCDR_20' ) end [2025-03-05 22:07:18] Production.INFO: ProcessCDR(1,14616087,1,1,2) [2025-03-05 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616087', 'tblTempUsageDetail_20' ) start [2025-03-05 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616087', 'tblTempUsageDetail_20' ) end [2025-03-05 22:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:07:21] Production.INFO: ==19762== Releasing lock... [2025-03-05 22:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:07:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-05 22:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:08:06 [end_date_ymd] => 2025-03-05 22:08:06 [RateCDR] => 1 ) [2025-03-05 22:08: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-03-05 19:08:06' and `end` < '2025-03-05 22:08: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-03-05 22:08:18] Production.INFO: count ==1025 [2025-03-05 22:08:18] Production.ERROR: pbx CDR StartTime 2025-03-05 19:08:06 - End Time 2025-03-05 22:08:06 [2025-03-05 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616092', 'tblTempUsageDetail_20' ) start [2025-03-05 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616092', 'tblTempUsageDetail_20' ) end [2025-03-05 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616092', 'tblTempVendorCDR_20' ) start [2025-03-05 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616092', 'tblTempVendorCDR_20' ) end [2025-03-05 22:08:18] Production.INFO: ProcessCDR(1,14616092,1,1,2) [2025-03-05 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616092', 'tblTempUsageDetail_20' ) start [2025-03-05 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616092', 'tblTempUsageDetail_20' ) end [2025-03-05 22:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:08:23] Production.INFO: ==19834== Releasing lock... [2025-03-05 22:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:08:23] Production.INFO: 35.25 MB #Memory Used# [2025-03-05 22:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:09:04 [end_date_ymd] => 2025-03-05 22:09:04 [RateCDR] => 1 ) [2025-03-05 22: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-03-05 19:09:04' and `end` < '2025-03-05 22: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-03-05 22:09:17] Production.INFO: count ==1021 [2025-03-05 22:09:17] Production.ERROR: pbx CDR StartTime 2025-03-05 19:09:04 - End Time 2025-03-05 22:09:04 [2025-03-05 22:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616097', 'tblTempUsageDetail_20' ) start [2025-03-05 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616097', 'tblTempUsageDetail_20' ) end [2025-03-05 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616097', 'tblTempVendorCDR_20' ) start [2025-03-05 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616097', 'tblTempVendorCDR_20' ) end [2025-03-05 22:09:17] Production.INFO: ProcessCDR(1,14616097,1,1,2) [2025-03-05 22:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616097', 'tblTempUsageDetail_20' ) start [2025-03-05 22:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616097', 'tblTempUsageDetail_20' ) end [2025-03-05 22:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:09:20] Production.INFO: ==19904== Releasing lock... [2025-03-05 22:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:09:20] Production.INFO: 35.25 MB #Memory Used# [2025-03-05 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:10:06 [end_date_ymd] => 2025-03-05 22:10:06 [RateCDR] => 1 ) [2025-03-05 22: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-03-05 19:10:06' and `end` < '2025-03-05 22: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-03-05 22:10:18] Production.INFO: count ==1018 [2025-03-05 22:10:19] Production.ERROR: pbx CDR StartTime 2025-03-05 19:10:06 - End Time 2025-03-05 22:10:06 [2025-03-05 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616103', 'tblTempUsageDetail_20' ) start [2025-03-05 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616103', 'tblTempUsageDetail_20' ) end [2025-03-05 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616103', 'tblTempVendorCDR_20' ) start [2025-03-05 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616103', 'tblTempVendorCDR_20' ) end [2025-03-05 22:10:19] Production.INFO: ProcessCDR(1,14616103,1,1,2) [2025-03-05 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616103', 'tblTempUsageDetail_20' ) start [2025-03-05 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616103', 'tblTempUsageDetail_20' ) end [2025-03-05 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:10:22] Production.INFO: ==19987== Releasing lock... [2025-03-05 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:10:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-05 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:11:05 [end_date_ymd] => 2025-03-05 22:11:05 [RateCDR] => 1 ) [2025-03-05 22: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-03-05 19:11:05' and `end` < '2025-03-05 22: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-03-05 22:11:17] Production.INFO: count ==979 [2025-03-05 22:11:17] Production.ERROR: pbx CDR StartTime 2025-03-05 19:11:05 - End Time 2025-03-05 22:11:05 [2025-03-05 22:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616108', 'tblTempUsageDetail_20' ) start [2025-03-05 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616108', 'tblTempUsageDetail_20' ) end [2025-03-05 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616108', 'tblTempVendorCDR_20' ) start [2025-03-05 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616108', 'tblTempVendorCDR_20' ) end [2025-03-05 22:11:17] Production.INFO: ProcessCDR(1,14616108,1,1,2) [2025-03-05 22:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616108', 'tblTempUsageDetail_20' ) start [2025-03-05 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616108', 'tblTempUsageDetail_20' ) end [2025-03-05 22:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:11:21] Production.INFO: ==20061== Releasing lock... [2025-03-05 22:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:11:21] Production.INFO: 35 MB #Memory Used# [2025-03-05 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:12:05 [end_date_ymd] => 2025-03-05 22:12:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 19:12:05' and `end` < '2025-03-05 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-03-05 22:12:17] Production.INFO: count ==978 [2025-03-05 22:12:17] Production.ERROR: pbx CDR StartTime 2025-03-05 19:12:05 - End Time 2025-03-05 22:12:05 [2025-03-05 22:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616113', 'tblTempUsageDetail_20' ) start [2025-03-05 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616113', 'tblTempUsageDetail_20' ) end [2025-03-05 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616113', 'tblTempVendorCDR_20' ) start [2025-03-05 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616113', 'tblTempVendorCDR_20' ) end [2025-03-05 22:12:17] Production.INFO: ProcessCDR(1,14616113,1,1,2) [2025-03-05 22:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616113', 'tblTempUsageDetail_20' ) start [2025-03-05 22:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616113', 'tblTempUsageDetail_20' ) end [2025-03-05 22:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:12:20] Production.INFO: ==20172== Releasing lock... [2025-03-05 22:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:12:20] Production.INFO: 35 MB #Memory Used# [2025-03-05 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:13:05 [end_date_ymd] => 2025-03-05 22:13:05 [RateCDR] => 1 ) [2025-03-05 22: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-03-05 19:13:05' and `end` < '2025-03-05 22: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-03-05 22:13:17] Production.INFO: count ==978 [2025-03-05 22:13:17] Production.ERROR: pbx CDR StartTime 2025-03-05 19:13:05 - End Time 2025-03-05 22:13:05 [2025-03-05 22:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616118', 'tblTempUsageDetail_20' ) start [2025-03-05 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616118', 'tblTempUsageDetail_20' ) end [2025-03-05 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616118', 'tblTempVendorCDR_20' ) start [2025-03-05 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616118', 'tblTempVendorCDR_20' ) end [2025-03-05 22:13:17] Production.INFO: ProcessCDR(1,14616118,1,1,2) [2025-03-05 22:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616118', 'tblTempUsageDetail_20' ) start [2025-03-05 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616118', 'tblTempUsageDetail_20' ) end [2025-03-05 22:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:13:21] Production.INFO: ==20243== Releasing lock... [2025-03-05 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:13:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-05 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:14:05 [end_date_ymd] => 2025-03-05 22:14:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 19:14:05' and `end` < '2025-03-05 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-03-05 22:14:18] Production.INFO: count ==976 [2025-03-05 22:14:18] Production.ERROR: pbx CDR StartTime 2025-03-05 19:14:05 - End Time 2025-03-05 22:14:05 [2025-03-05 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616123', 'tblTempUsageDetail_20' ) start [2025-03-05 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616123', 'tblTempUsageDetail_20' ) end [2025-03-05 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616123', 'tblTempVendorCDR_20' ) start [2025-03-05 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616123', 'tblTempVendorCDR_20' ) end [2025-03-05 22:14:18] Production.INFO: ProcessCDR(1,14616123,1,1,2) [2025-03-05 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616123', 'tblTempUsageDetail_20' ) start [2025-03-05 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616123', 'tblTempUsageDetail_20' ) end [2025-03-05 22:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:14:21] Production.INFO: ==20314== Releasing lock... [2025-03-05 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:14:21] Production.INFO: 35 MB #Memory Used# [2025-03-05 22:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:15:06 [end_date_ymd] => 2025-03-05 22:15:06 [RateCDR] => 1 ) [2025-03-05 22: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-03-05 19:15:06' and `end` < '2025-03-05 22: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-03-05 22:15:18] Production.INFO: count ==976 [2025-03-05 22:15:18] Production.ERROR: pbx CDR StartTime 2025-03-05 19:15:06 - End Time 2025-03-05 22:15:06 [2025-03-05 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616128', 'tblTempUsageDetail_20' ) start [2025-03-05 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616128', 'tblTempUsageDetail_20' ) end [2025-03-05 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616128', 'tblTempVendorCDR_20' ) start [2025-03-05 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616128', 'tblTempVendorCDR_20' ) end [2025-03-05 22:15:18] Production.INFO: ProcessCDR(1,14616128,1,1,2) [2025-03-05 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616128', 'tblTempUsageDetail_20' ) start [2025-03-05 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616128', 'tblTempUsageDetail_20' ) end [2025-03-05 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:15:21] Production.INFO: ==20389== Releasing lock... [2025-03-05 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:15:21] Production.INFO: 35 MB #Memory Used# [2025-03-05 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:16:05 [end_date_ymd] => 2025-03-05 22:16:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 19:16:05' and `end` < '2025-03-05 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-03-05 22:16:17] Production.INFO: count ==979 [2025-03-05 22:16:17] Production.ERROR: pbx CDR StartTime 2025-03-05 19:16:05 - End Time 2025-03-05 22:16:05 [2025-03-05 22:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616133', 'tblTempUsageDetail_20' ) start [2025-03-05 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616133', 'tblTempUsageDetail_20' ) end [2025-03-05 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616133', 'tblTempVendorCDR_20' ) start [2025-03-05 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616133', 'tblTempVendorCDR_20' ) end [2025-03-05 22:16:17] Production.INFO: ProcessCDR(1,14616133,1,1,2) [2025-03-05 22:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616133', 'tblTempUsageDetail_20' ) start [2025-03-05 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616133', 'tblTempUsageDetail_20' ) end [2025-03-05 22:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:16:21] Production.INFO: ==20460== Releasing lock... [2025-03-05 22:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:16:21] Production.INFO: 35 MB #Memory Used# [2025-03-05 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:17:05 [end_date_ymd] => 2025-03-05 22:17:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 19:17:05' and `end` < '2025-03-05 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-03-05 22:17:17] Production.INFO: count ==979 [2025-03-05 22:17:18] Production.ERROR: pbx CDR StartTime 2025-03-05 19:17:05 - End Time 2025-03-05 22:17:05 [2025-03-05 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616138', 'tblTempUsageDetail_20' ) start [2025-03-05 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616138', 'tblTempUsageDetail_20' ) end [2025-03-05 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616138', 'tblTempVendorCDR_20' ) start [2025-03-05 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616138', 'tblTempVendorCDR_20' ) end [2025-03-05 22:17:18] Production.INFO: ProcessCDR(1,14616138,1,1,2) [2025-03-05 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616138', 'tblTempUsageDetail_20' ) start [2025-03-05 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616138', 'tblTempUsageDetail_20' ) end [2025-03-05 22:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:17:21] Production.INFO: ==20547== Releasing lock... [2025-03-05 22:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:17:21] Production.INFO: 35 MB #Memory Used# [2025-03-05 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:18:05 [end_date_ymd] => 2025-03-05 22:18:05 [RateCDR] => 1 ) [2025-03-05 22: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-03-05 19:18:05' and `end` < '2025-03-05 22: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-03-05 22:18:18] Production.INFO: count ==978 [2025-03-05 22:18:18] Production.ERROR: pbx CDR StartTime 2025-03-05 19:18:05 - End Time 2025-03-05 22:18:05 [2025-03-05 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616143', 'tblTempUsageDetail_20' ) start [2025-03-05 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616143', 'tblTempUsageDetail_20' ) end [2025-03-05 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616143', 'tblTempVendorCDR_20' ) start [2025-03-05 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616143', 'tblTempVendorCDR_20' ) end [2025-03-05 22:18:18] Production.INFO: ProcessCDR(1,14616143,1,1,2) [2025-03-05 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616143', 'tblTempUsageDetail_20' ) start [2025-03-05 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616143', 'tblTempUsageDetail_20' ) end [2025-03-05 22:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:18:21] Production.INFO: ==20621== Releasing lock... [2025-03-05 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:18:21] Production.INFO: 35 MB #Memory Used# [2025-03-05 22:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:19:06 [end_date_ymd] => 2025-03-05 22:19:06 [RateCDR] => 1 ) [2025-03-05 22:19: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-03-05 19:19:06' and `end` < '2025-03-05 22:19: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-03-05 22:19:18] Production.INFO: count ==976 [2025-03-05 22:19:18] Production.ERROR: pbx CDR StartTime 2025-03-05 19:19:06 - End Time 2025-03-05 22:19:06 [2025-03-05 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616148', 'tblTempUsageDetail_20' ) start [2025-03-05 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616148', 'tblTempUsageDetail_20' ) end [2025-03-05 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616148', 'tblTempVendorCDR_20' ) start [2025-03-05 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616148', 'tblTempVendorCDR_20' ) end [2025-03-05 22:19:18] Production.INFO: ProcessCDR(1,14616148,1,1,2) [2025-03-05 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616148', 'tblTempUsageDetail_20' ) start [2025-03-05 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616148', 'tblTempUsageDetail_20' ) end [2025-03-05 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:19:22] Production.INFO: ==20694== Releasing lock... [2025-03-05 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:19:22] Production.INFO: 35 MB #Memory Used# [2025-03-05 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:20:06 [end_date_ymd] => 2025-03-05 22:20:06 [RateCDR] => 1 ) [2025-03-05 22: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-03-05 19:20:06' and `end` < '2025-03-05 22: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-03-05 22:20:18] Production.INFO: count ==974 [2025-03-05 22:20:19] Production.ERROR: pbx CDR StartTime 2025-03-05 19:20:06 - End Time 2025-03-05 22:20:06 [2025-03-05 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616154', 'tblTempUsageDetail_20' ) start [2025-03-05 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616154', 'tblTempUsageDetail_20' ) end [2025-03-05 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616154', 'tblTempVendorCDR_20' ) start [2025-03-05 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616154', 'tblTempVendorCDR_20' ) end [2025-03-05 22:20:19] Production.INFO: ProcessCDR(1,14616154,1,1,2) [2025-03-05 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616154', 'tblTempUsageDetail_20' ) start [2025-03-05 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616154', 'tblTempUsageDetail_20' ) end [2025-03-05 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:20:22] Production.INFO: ==20769== Releasing lock... [2025-03-05 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:20:22] Production.INFO: 35 MB #Memory Used# [2025-03-05 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:21:05 [end_date_ymd] => 2025-03-05 22:21:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 19:21:05' and `end` < '2025-03-05 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-03-05 22:21:18] Production.INFO: count ==933 [2025-03-05 22:21:18] Production.ERROR: pbx CDR StartTime 2025-03-05 19:21:05 - End Time 2025-03-05 22:21:05 [2025-03-05 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616159', 'tblTempUsageDetail_20' ) start [2025-03-05 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616159', 'tblTempUsageDetail_20' ) end [2025-03-05 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616159', 'tblTempVendorCDR_20' ) start [2025-03-05 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616159', 'tblTempVendorCDR_20' ) end [2025-03-05 22:21:18] Production.INFO: ProcessCDR(1,14616159,1,1,2) [2025-03-05 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616159', 'tblTempUsageDetail_20' ) start [2025-03-05 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616159', 'tblTempUsageDetail_20' ) end [2025-03-05 22:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:21:21] Production.INFO: ==20840== Releasing lock... [2025-03-05 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:21:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-05 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:22:05 [end_date_ymd] => 2025-03-05 22:22:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 19:22:05' and `end` < '2025-03-05 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-03-05 22:22:17] Production.INFO: count ==937 [2025-03-05 22:22:17] Production.ERROR: pbx CDR StartTime 2025-03-05 19:22:05 - End Time 2025-03-05 22:22:05 [2025-03-05 22:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616164', 'tblTempUsageDetail_20' ) start [2025-03-05 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616164', 'tblTempUsageDetail_20' ) end [2025-03-05 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616164', 'tblTempVendorCDR_20' ) start [2025-03-05 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616164', 'tblTempVendorCDR_20' ) end [2025-03-05 22:22:17] Production.INFO: ProcessCDR(1,14616164,1,1,2) [2025-03-05 22:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616164', 'tblTempUsageDetail_20' ) start [2025-03-05 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616164', 'tblTempUsageDetail_20' ) end [2025-03-05 22:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:22:21] Production.INFO: ==20935== Releasing lock... [2025-03-05 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:22:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-05 22:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:23:06 [end_date_ymd] => 2025-03-05 22:23:06 [RateCDR] => 1 ) [2025-03-05 22:23: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-03-05 19:23:06' and `end` < '2025-03-05 22:23: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-03-05 22:23:18] Production.INFO: count ==936 [2025-03-05 22:23:18] Production.ERROR: pbx CDR StartTime 2025-03-05 19:23:06 - End Time 2025-03-05 22:23:06 [2025-03-05 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616169', 'tblTempUsageDetail_20' ) start [2025-03-05 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616169', 'tblTempUsageDetail_20' ) end [2025-03-05 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616169', 'tblTempVendorCDR_20' ) start [2025-03-05 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616169', 'tblTempVendorCDR_20' ) end [2025-03-05 22:23:18] Production.INFO: ProcessCDR(1,14616169,1,1,2) [2025-03-05 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616169', 'tblTempUsageDetail_20' ) start [2025-03-05 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616169', 'tblTempUsageDetail_20' ) end [2025-03-05 22:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:23:21] Production.INFO: ==21008== Releasing lock... [2025-03-05 22:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:23:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-05 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:24:05 [end_date_ymd] => 2025-03-05 22:24:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 19:24:05' and `end` < '2025-03-05 22: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-03-05 22:24:17] Production.INFO: count ==938 [2025-03-05 22:24:17] Production.ERROR: pbx CDR StartTime 2025-03-05 19:24:05 - End Time 2025-03-05 22:24:05 [2025-03-05 22:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616174', 'tblTempUsageDetail_20' ) start [2025-03-05 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616174', 'tblTempUsageDetail_20' ) end [2025-03-05 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616174', 'tblTempVendorCDR_20' ) start [2025-03-05 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616174', 'tblTempVendorCDR_20' ) end [2025-03-05 22:24:17] Production.INFO: ProcessCDR(1,14616174,1,1,2) [2025-03-05 22:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616174', 'tblTempUsageDetail_20' ) start [2025-03-05 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616174', 'tblTempUsageDetail_20' ) end [2025-03-05 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:24:22] Production.INFO: ==21082== Releasing lock... [2025-03-05 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:24:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-05 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:25:05 [end_date_ymd] => 2025-03-05 22:25:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 19:25:05' and `end` < '2025-03-05 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-03-05 22:25:17] Production.INFO: count ==932 [2025-03-05 22:25:17] Production.ERROR: pbx CDR StartTime 2025-03-05 19:25:05 - End Time 2025-03-05 22:25:05 [2025-03-05 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616179', 'tblTempUsageDetail_20' ) start [2025-03-05 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616179', 'tblTempUsageDetail_20' ) end [2025-03-05 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616179', 'tblTempVendorCDR_20' ) start [2025-03-05 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616179', 'tblTempVendorCDR_20' ) end [2025-03-05 22:25:17] Production.INFO: ProcessCDR(1,14616179,1,1,2) [2025-03-05 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616179', 'tblTempUsageDetail_20' ) start [2025-03-05 22:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616179', 'tblTempUsageDetail_20' ) end [2025-03-05 22:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:25:20] Production.INFO: ==21159== Releasing lock... [2025-03-05 22:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:25:20] Production.INFO: 34.5 MB #Memory Used# [2025-03-05 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:26:05 [end_date_ymd] => 2025-03-05 22:26:05 [RateCDR] => 1 ) [2025-03-05 22: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-03-05 19:26:05' and `end` < '2025-03-05 22: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-03-05 22:26:17] Production.INFO: count ==928 [2025-03-05 22:26:17] Production.ERROR: pbx CDR StartTime 2025-03-05 19:26:05 - End Time 2025-03-05 22:26:05 [2025-03-05 22:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616184', 'tblTempUsageDetail_20' ) start [2025-03-05 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616184', 'tblTempUsageDetail_20' ) end [2025-03-05 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616184', 'tblTempVendorCDR_20' ) start [2025-03-05 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616184', 'tblTempVendorCDR_20' ) end [2025-03-05 22:26:17] Production.INFO: ProcessCDR(1,14616184,1,1,2) [2025-03-05 22:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616184', 'tblTempUsageDetail_20' ) start [2025-03-05 22:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616184', 'tblTempUsageDetail_20' ) end [2025-03-05 22:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:26:20] Production.INFO: ==21231== Releasing lock... [2025-03-05 22:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:26:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-05 22:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:27:06 [end_date_ymd] => 2025-03-05 22:27:06 [RateCDR] => 1 ) [2025-03-05 22: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-03-05 19:27:06' and `end` < '2025-03-05 22: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-03-05 22:27:18] Production.INFO: count ==921 [2025-03-05 22:27:18] Production.ERROR: pbx CDR StartTime 2025-03-05 19:27:06 - End Time 2025-03-05 22:27:06 [2025-03-05 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616189', 'tblTempUsageDetail_20' ) start [2025-03-05 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616189', 'tblTempUsageDetail_20' ) end [2025-03-05 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616189', 'tblTempVendorCDR_20' ) start [2025-03-05 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616189', 'tblTempVendorCDR_20' ) end [2025-03-05 22:27:18] Production.INFO: ProcessCDR(1,14616189,1,1,2) [2025-03-05 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616189', 'tblTempUsageDetail_20' ) start [2025-03-05 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616189', 'tblTempUsageDetail_20' ) end [2025-03-05 22:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:27:21] Production.INFO: ==21350== Releasing lock... [2025-03-05 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:27:21] Production.INFO: 34 MB #Memory Used# [2025-03-05 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:28:05 [end_date_ymd] => 2025-03-05 22:28:05 [RateCDR] => 1 ) [2025-03-05 22: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-03-05 19:28:05' and `end` < '2025-03-05 22: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-03-05 22:28:17] Production.INFO: count ==919 [2025-03-05 22:28:18] Production.ERROR: pbx CDR StartTime 2025-03-05 19:28:05 - End Time 2025-03-05 22:28:05 [2025-03-05 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616194', 'tblTempUsageDetail_20' ) start [2025-03-05 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616194', 'tblTempUsageDetail_20' ) end [2025-03-05 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616194', 'tblTempVendorCDR_20' ) start [2025-03-05 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616194', 'tblTempVendorCDR_20' ) end [2025-03-05 22:28:18] Production.INFO: ProcessCDR(1,14616194,1,1,2) [2025-03-05 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616194', 'tblTempUsageDetail_20' ) start [2025-03-05 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616194', 'tblTempUsageDetail_20' ) end [2025-03-05 22:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:28:21] Production.INFO: ==21420== Releasing lock... [2025-03-05 22:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:28:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-05 22:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:29:06 [end_date_ymd] => 2025-03-05 22:29:06 [RateCDR] => 1 ) [2025-03-05 22:29: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-03-05 19:29:06' and `end` < '2025-03-05 22:29: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-03-05 22:29:18] Production.INFO: count ==916 [2025-03-05 22:29:18] Production.ERROR: pbx CDR StartTime 2025-03-05 19:29:06 - End Time 2025-03-05 22:29:06 [2025-03-05 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616199', 'tblTempUsageDetail_20' ) start [2025-03-05 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616199', 'tblTempUsageDetail_20' ) end [2025-03-05 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616199', 'tblTempVendorCDR_20' ) start [2025-03-05 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616199', 'tblTempVendorCDR_20' ) end [2025-03-05 22:29:18] Production.INFO: ProcessCDR(1,14616199,1,1,2) [2025-03-05 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616199', 'tblTempUsageDetail_20' ) start [2025-03-05 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616199', 'tblTempUsageDetail_20' ) end [2025-03-05 22:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:29:21] Production.INFO: ==21494== Releasing lock... [2025-03-05 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:29:21] Production.INFO: 34 MB #Memory Used# [2025-03-05 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:30:06 [end_date_ymd] => 2025-03-05 22:30:06 [RateCDR] => 1 ) [2025-03-05 22: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-03-05 19:30:06' and `end` < '2025-03-05 22: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-03-05 22:30:18] Production.INFO: count ==908 [2025-03-05 22:30:18] Production.ERROR: pbx CDR StartTime 2025-03-05 19:30:06 - End Time 2025-03-05 22:30:06 [2025-03-05 22:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616205', 'tblTempUsageDetail_20' ) start [2025-03-05 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616205', 'tblTempUsageDetail_20' ) end [2025-03-05 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616205', 'tblTempVendorCDR_20' ) start [2025-03-05 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616205', 'tblTempVendorCDR_20' ) end [2025-03-05 22:30:18] Production.INFO: ProcessCDR(1,14616205,1,1,2) [2025-03-05 22:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616205', 'tblTempUsageDetail_20' ) start [2025-03-05 22:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616205', 'tblTempUsageDetail_20' ) end [2025-03-05 22:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:30:21] Production.INFO: ==21570== Releasing lock... [2025-03-05 22:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:30:21] Production.INFO: 34 MB #Memory Used# [2025-03-05 22:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:31:06 [end_date_ymd] => 2025-03-05 22:31:06 [RateCDR] => 1 ) [2025-03-05 22:31: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-03-05 19:31:06' and `end` < '2025-03-05 22:31: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-03-05 22:31:18] Production.INFO: count ==901 [2025-03-05 22:31:18] Production.ERROR: pbx CDR StartTime 2025-03-05 19:31:06 - End Time 2025-03-05 22:31:06 [2025-03-05 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616210', 'tblTempUsageDetail_20' ) start [2025-03-05 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616210', 'tblTempUsageDetail_20' ) end [2025-03-05 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616210', 'tblTempVendorCDR_20' ) start [2025-03-05 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616210', 'tblTempVendorCDR_20' ) end [2025-03-05 22:31:18] Production.INFO: ProcessCDR(1,14616210,1,1,2) [2025-03-05 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616210', 'tblTempUsageDetail_20' ) start [2025-03-05 22:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616210', 'tblTempUsageDetail_20' ) end [2025-03-05 22:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:31:23] Production.INFO: ==21669== Releasing lock... [2025-03-05 22:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:31:23] Production.INFO: 34 MB #Memory Used# [2025-03-05 22:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:32:06 [end_date_ymd] => 2025-03-05 22:32:06 [RateCDR] => 1 ) [2025-03-05 22: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-03-05 19:32:06' and `end` < '2025-03-05 22: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-03-05 22:32:18] Production.INFO: count ==903 [2025-03-05 22:32:18] Production.ERROR: pbx CDR StartTime 2025-03-05 19:32:06 - End Time 2025-03-05 22:32:06 [2025-03-05 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616215', 'tblTempUsageDetail_20' ) start [2025-03-05 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616215', 'tblTempUsageDetail_20' ) end [2025-03-05 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616215', 'tblTempVendorCDR_20' ) start [2025-03-05 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616215', 'tblTempVendorCDR_20' ) end [2025-03-05 22:32:18] Production.INFO: ProcessCDR(1,14616215,1,1,2) [2025-03-05 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616215', 'tblTempUsageDetail_20' ) start [2025-03-05 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616215', 'tblTempUsageDetail_20' ) end [2025-03-05 22:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:32:22] Production.INFO: ==21745== Releasing lock... [2025-03-05 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:32:22] Production.INFO: 34 MB #Memory Used# [2025-03-05 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:33:05 [end_date_ymd] => 2025-03-05 22:33:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 19:33:05' and `end` < '2025-03-05 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-03-05 22:33:17] Production.INFO: count ==905 [2025-03-05 22:33:17] Production.ERROR: pbx CDR StartTime 2025-03-05 19:33:05 - End Time 2025-03-05 22:33:05 [2025-03-05 22:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616220', 'tblTempUsageDetail_20' ) start [2025-03-05 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616220', 'tblTempUsageDetail_20' ) end [2025-03-05 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616220', 'tblTempVendorCDR_20' ) start [2025-03-05 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616220', 'tblTempVendorCDR_20' ) end [2025-03-05 22:33:17] Production.INFO: ProcessCDR(1,14616220,1,1,2) [2025-03-05 22:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616220', 'tblTempUsageDetail_20' ) start [2025-03-05 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616220', 'tblTempUsageDetail_20' ) end [2025-03-05 22:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:33:21] Production.INFO: ==21817== Releasing lock... [2025-03-05 22:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:33:21] Production.INFO: 34 MB #Memory Used# [2025-03-05 22:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:34:06 [end_date_ymd] => 2025-03-05 22:34:06 [RateCDR] => 1 ) [2025-03-05 22: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-03-05 19:34:06' and `end` < '2025-03-05 22: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-03-05 22:34:18] Production.INFO: count ==904 [2025-03-05 22:34:18] Production.ERROR: pbx CDR StartTime 2025-03-05 19:34:06 - End Time 2025-03-05 22:34:06 [2025-03-05 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616225', 'tblTempUsageDetail_20' ) start [2025-03-05 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616225', 'tblTempUsageDetail_20' ) end [2025-03-05 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616225', 'tblTempVendorCDR_20' ) start [2025-03-05 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616225', 'tblTempVendorCDR_20' ) end [2025-03-05 22:34:18] Production.INFO: ProcessCDR(1,14616225,1,1,2) [2025-03-05 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616225', 'tblTempUsageDetail_20' ) start [2025-03-05 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616225', 'tblTempUsageDetail_20' ) end [2025-03-05 22:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:34:21] Production.INFO: ==21893== Releasing lock... [2025-03-05 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:34:21] Production.INFO: 34 MB #Memory Used# [2025-03-05 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:35:05 [end_date_ymd] => 2025-03-05 22:35:05 [RateCDR] => 1 ) [2025-03-05 22: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-03-05 19:35:05' and `end` < '2025-03-05 22: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-03-05 22:35:17] Production.INFO: count ==906 [2025-03-05 22:35:17] Production.ERROR: pbx CDR StartTime 2025-03-05 19:35:05 - End Time 2025-03-05 22:35:05 [2025-03-05 22:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616230', 'tblTempUsageDetail_20' ) start [2025-03-05 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616230', 'tblTempUsageDetail_20' ) end [2025-03-05 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616230', 'tblTempVendorCDR_20' ) start [2025-03-05 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616230', 'tblTempVendorCDR_20' ) end [2025-03-05 22:35:17] Production.INFO: ProcessCDR(1,14616230,1,1,2) [2025-03-05 22:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616230', 'tblTempUsageDetail_20' ) start [2025-03-05 22:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616230', 'tblTempUsageDetail_20' ) end [2025-03-05 22:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:35:20] Production.INFO: ==21965== Releasing lock... [2025-03-05 22:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:35:20] Production.INFO: 34 MB #Memory Used# [2025-03-05 22:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:36:06 [end_date_ymd] => 2025-03-05 22:36:06 [RateCDR] => 1 ) [2025-03-05 22:36: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-03-05 19:36:06' and `end` < '2025-03-05 22:36: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-03-05 22:36:18] Production.INFO: count ==905 [2025-03-05 22:36:18] Production.ERROR: pbx CDR StartTime 2025-03-05 19:36:06 - End Time 2025-03-05 22:36:06 [2025-03-05 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616235', 'tblTempUsageDetail_20' ) start [2025-03-05 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616235', 'tblTempUsageDetail_20' ) end [2025-03-05 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616235', 'tblTempVendorCDR_20' ) start [2025-03-05 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616235', 'tblTempVendorCDR_20' ) end [2025-03-05 22:36:18] Production.INFO: ProcessCDR(1,14616235,1,1,2) [2025-03-05 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616235', 'tblTempUsageDetail_20' ) start [2025-03-05 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616235', 'tblTempUsageDetail_20' ) end [2025-03-05 22:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:36:21] Production.INFO: ==22039== Releasing lock... [2025-03-05 22:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:36:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-05 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:37:05 [end_date_ymd] => 2025-03-05 22:37:05 [RateCDR] => 1 ) [2025-03-05 22: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-03-05 19:37:05' and `end` < '2025-03-05 22: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-03-05 22:37:17] Production.INFO: count ==904 [2025-03-05 22:37:17] Production.ERROR: pbx CDR StartTime 2025-03-05 19:37:05 - End Time 2025-03-05 22:37:05 [2025-03-05 22:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616240', 'tblTempUsageDetail_20' ) start [2025-03-05 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616240', 'tblTempUsageDetail_20' ) end [2025-03-05 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616240', 'tblTempVendorCDR_20' ) start [2025-03-05 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616240', 'tblTempVendorCDR_20' ) end [2025-03-05 22:37:17] Production.INFO: ProcessCDR(1,14616240,1,1,2) [2025-03-05 22:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616240', 'tblTempUsageDetail_20' ) start [2025-03-05 22:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616240', 'tblTempUsageDetail_20' ) end [2025-03-05 22:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:37:20] Production.INFO: ==22107== Releasing lock... [2025-03-05 22:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:37:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-05 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:38:05 [end_date_ymd] => 2025-03-05 22:38:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 19:38:05' and `end` < '2025-03-05 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-03-05 22:38:17] Production.INFO: count ==908 [2025-03-05 22:38:17] Production.ERROR: pbx CDR StartTime 2025-03-05 19:38:05 - End Time 2025-03-05 22:38:05 [2025-03-05 22:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616245', 'tblTempUsageDetail_20' ) start [2025-03-05 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616245', 'tblTempUsageDetail_20' ) end [2025-03-05 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616245', 'tblTempVendorCDR_20' ) start [2025-03-05 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616245', 'tblTempVendorCDR_20' ) end [2025-03-05 22:38:17] Production.INFO: ProcessCDR(1,14616245,1,1,2) [2025-03-05 22:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616245', 'tblTempUsageDetail_20' ) start [2025-03-05 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616245', 'tblTempUsageDetail_20' ) end [2025-03-05 22:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:38:21] Production.INFO: ==22180== Releasing lock... [2025-03-05 22:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:38:21] Production.INFO: 34 MB #Memory Used# [2025-03-05 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:39:05 [end_date_ymd] => 2025-03-05 22:39:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 19:39:05' and `end` < '2025-03-05 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-03-05 22:39:17] Production.INFO: count ==905 [2025-03-05 22:39:17] Production.ERROR: pbx CDR StartTime 2025-03-05 19:39:05 - End Time 2025-03-05 22:39:05 [2025-03-05 22:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616250', 'tblTempUsageDetail_20' ) start [2025-03-05 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616250', 'tblTempUsageDetail_20' ) end [2025-03-05 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616250', 'tblTempVendorCDR_20' ) start [2025-03-05 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616250', 'tblTempVendorCDR_20' ) end [2025-03-05 22:39:17] Production.INFO: ProcessCDR(1,14616250,1,1,2) [2025-03-05 22:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616250', 'tblTempUsageDetail_20' ) start [2025-03-05 22:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616250', 'tblTempUsageDetail_20' ) end [2025-03-05 22:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:39:20] Production.INFO: ==22254== Releasing lock... [2025-03-05 22:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:39:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-05 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:40:06 [end_date_ymd] => 2025-03-05 22:40:06 [RateCDR] => 1 ) [2025-03-05 22: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-03-05 19:40:06' and `end` < '2025-03-05 22: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-03-05 22:40:18] Production.INFO: count ==906 [2025-03-05 22:40:18] Production.ERROR: pbx CDR StartTime 2025-03-05 19:40:06 - End Time 2025-03-05 22:40:06 [2025-03-05 22:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616255', 'tblTempUsageDetail_20' ) start [2025-03-05 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616255', 'tblTempUsageDetail_20' ) end [2025-03-05 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616255', 'tblTempVendorCDR_20' ) start [2025-03-05 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616255', 'tblTempVendorCDR_20' ) end [2025-03-05 22:40:18] Production.INFO: ProcessCDR(1,14616255,1,1,2) [2025-03-05 22:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616255', 'tblTempUsageDetail_20' ) start [2025-03-05 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616255', 'tblTempUsageDetail_20' ) end [2025-03-05 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:40:22] Production.INFO: ==22329== Releasing lock... [2025-03-05 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:40:22] Production.INFO: 34 MB #Memory Used# [2025-03-05 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:41:05 [end_date_ymd] => 2025-03-05 22:41:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 19:41:05' and `end` < '2025-03-05 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-03-05 22:41:17] Production.INFO: count ==868 [2025-03-05 22:41:17] Production.ERROR: pbx CDR StartTime 2025-03-05 19:41:05 - End Time 2025-03-05 22:41:05 [2025-03-05 22:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616261', 'tblTempUsageDetail_20' ) start [2025-03-05 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616261', 'tblTempUsageDetail_20' ) end [2025-03-05 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616261', 'tblTempVendorCDR_20' ) start [2025-03-05 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616261', 'tblTempVendorCDR_20' ) end [2025-03-05 22:41:17] Production.INFO: ProcessCDR(1,14616261,1,1,2) [2025-03-05 22:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616261', 'tblTempUsageDetail_20' ) start [2025-03-05 22:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616261', 'tblTempUsageDetail_20' ) end [2025-03-05 22:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:41:20] Production.INFO: ==22405== Releasing lock... [2025-03-05 22:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:41:20] Production.INFO: 33.75 MB #Memory Used# [2025-03-05 22:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:42:06 [end_date_ymd] => 2025-03-05 22:42:06 [RateCDR] => 1 ) [2025-03-05 22: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-03-05 19:42:06' and `end` < '2025-03-05 22: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-03-05 22:42:18] Production.INFO: count ==868 [2025-03-05 22:42:18] Production.ERROR: pbx CDR StartTime 2025-03-05 19:42:06 - End Time 2025-03-05 22:42:06 [2025-03-05 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616266', 'tblTempUsageDetail_20' ) start [2025-03-05 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616266', 'tblTempUsageDetail_20' ) end [2025-03-05 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616266', 'tblTempVendorCDR_20' ) start [2025-03-05 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616266', 'tblTempVendorCDR_20' ) end [2025-03-05 22:42:18] Production.INFO: ProcessCDR(1,14616266,1,1,2) [2025-03-05 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616266', 'tblTempUsageDetail_20' ) start [2025-03-05 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616266', 'tblTempUsageDetail_20' ) end [2025-03-05 22:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:42:21] Production.INFO: ==22478== Releasing lock... [2025-03-05 22:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:42:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-05 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:43:05 [end_date_ymd] => 2025-03-05 22:43:05 [RateCDR] => 1 ) [2025-03-05 22: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-03-05 19:43:05' and `end` < '2025-03-05 22: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-03-05 22:43:17] Production.INFO: count ==870 [2025-03-05 22:43:17] Production.ERROR: pbx CDR StartTime 2025-03-05 19:43:05 - End Time 2025-03-05 22:43:05 [2025-03-05 22:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616271', 'tblTempUsageDetail_20' ) start [2025-03-05 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616271', 'tblTempUsageDetail_20' ) end [2025-03-05 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616271', 'tblTempVendorCDR_20' ) start [2025-03-05 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616271', 'tblTempVendorCDR_20' ) end [2025-03-05 22:43:17] Production.INFO: ProcessCDR(1,14616271,1,1,2) [2025-03-05 22:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616271', 'tblTempUsageDetail_20' ) start [2025-03-05 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616271', 'tblTempUsageDetail_20' ) end [2025-03-05 22:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:43:21] Production.INFO: ==22603== Releasing lock... [2025-03-05 22:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:43:21] Production.INFO: 34 MB #Memory Used# [2025-03-05 22:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:44:06 [end_date_ymd] => 2025-03-05 22:44:06 [RateCDR] => 1 ) [2025-03-05 22:44: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-03-05 19:44:06' and `end` < '2025-03-05 22:44: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-03-05 22:44:18] Production.INFO: count ==867 [2025-03-05 22:44:18] Production.ERROR: pbx CDR StartTime 2025-03-05 19:44:06 - End Time 2025-03-05 22:44:06 [2025-03-05 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616276', 'tblTempUsageDetail_20' ) start [2025-03-05 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616276', 'tblTempUsageDetail_20' ) end [2025-03-05 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616276', 'tblTempVendorCDR_20' ) start [2025-03-05 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616276', 'tblTempVendorCDR_20' ) end [2025-03-05 22:44:18] Production.INFO: ProcessCDR(1,14616276,1,1,2) [2025-03-05 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616276', 'tblTempUsageDetail_20' ) start [2025-03-05 22:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616276', 'tblTempUsageDetail_20' ) end [2025-03-05 22:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:44:23] Production.INFO: ==22717== Releasing lock... [2025-03-05 22:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:44:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-05 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:45:05 [end_date_ymd] => 2025-03-05 22:45:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 19:45:05' and `end` < '2025-03-05 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-03-05 22:45:17] Production.INFO: count ==865 [2025-03-05 22:45:17] Production.ERROR: pbx CDR StartTime 2025-03-05 19:45:05 - End Time 2025-03-05 22:45:05 [2025-03-05 22:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616281', 'tblTempUsageDetail_20' ) start [2025-03-05 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616281', 'tblTempUsageDetail_20' ) end [2025-03-05 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616281', 'tblTempVendorCDR_20' ) start [2025-03-05 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616281', 'tblTempVendorCDR_20' ) end [2025-03-05 22:45:17] Production.INFO: ProcessCDR(1,14616281,1,1,2) [2025-03-05 22:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616281', 'tblTempUsageDetail_20' ) start [2025-03-05 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616281', 'tblTempUsageDetail_20' ) end [2025-03-05 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:45:21] Production.INFO: ==22825== Releasing lock... [2025-03-05 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:45:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-05 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:46:05 [end_date_ymd] => 2025-03-05 22:46:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 19:46:05' and `end` < '2025-03-05 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-03-05 22:46:17] Production.INFO: count ==866 [2025-03-05 22:46:17] Production.ERROR: pbx CDR StartTime 2025-03-05 19:46:05 - End Time 2025-03-05 22:46:05 [2025-03-05 22:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616286', 'tblTempUsageDetail_20' ) start [2025-03-05 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616286', 'tblTempUsageDetail_20' ) end [2025-03-05 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616286', 'tblTempVendorCDR_20' ) start [2025-03-05 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616286', 'tblTempVendorCDR_20' ) end [2025-03-05 22:46:18] Production.INFO: ProcessCDR(1,14616286,1,1,2) [2025-03-05 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616286', 'tblTempUsageDetail_20' ) start [2025-03-05 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616286', 'tblTempUsageDetail_20' ) end [2025-03-05 22:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:46:21] Production.INFO: ==22938== Releasing lock... [2025-03-05 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:46:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-05 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:47:05 [end_date_ymd] => 2025-03-05 22:47:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 19:47:05' and `end` < '2025-03-05 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-03-05 22:47:17] Production.INFO: count ==866 [2025-03-05 22:47:17] Production.ERROR: pbx CDR StartTime 2025-03-05 19:47:05 - End Time 2025-03-05 22:47:05 [2025-03-05 22:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616291', 'tblTempUsageDetail_20' ) start [2025-03-05 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616291', 'tblTempUsageDetail_20' ) end [2025-03-05 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616291', 'tblTempVendorCDR_20' ) start [2025-03-05 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616291', 'tblTempVendorCDR_20' ) end [2025-03-05 22:47:17] Production.INFO: ProcessCDR(1,14616291,1,1,2) [2025-03-05 22:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616291', 'tblTempUsageDetail_20' ) start [2025-03-05 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616291', 'tblTempUsageDetail_20' ) end [2025-03-05 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:47:21] Production.INFO: ==23047== Releasing lock... [2025-03-05 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:47:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-05 22:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:48:06 [end_date_ymd] => 2025-03-05 22:48:06 [RateCDR] => 1 ) [2025-03-05 22: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-03-05 19:48:06' and `end` < '2025-03-05 22: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-03-05 22:48:18] Production.INFO: count ==862 [2025-03-05 22:48:18] Production.ERROR: pbx CDR StartTime 2025-03-05 19:48:06 - End Time 2025-03-05 22:48:06 [2025-03-05 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616296', 'tblTempUsageDetail_20' ) start [2025-03-05 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616296', 'tblTempUsageDetail_20' ) end [2025-03-05 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616296', 'tblTempVendorCDR_20' ) start [2025-03-05 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616296', 'tblTempVendorCDR_20' ) end [2025-03-05 22:48:18] Production.INFO: ProcessCDR(1,14616296,1,1,2) [2025-03-05 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616296', 'tblTempUsageDetail_20' ) start [2025-03-05 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616296', 'tblTempUsageDetail_20' ) end [2025-03-05 22:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:48:21] Production.INFO: ==23155== Releasing lock... [2025-03-05 22:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:48:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-05 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:49:05 [end_date_ymd] => 2025-03-05 22:49:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 19:49:05' and `end` < '2025-03-05 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-03-05 22:49:17] Production.INFO: count ==865 [2025-03-05 22:49:17] Production.ERROR: pbx CDR StartTime 2025-03-05 19:49:05 - End Time 2025-03-05 22:49:05 [2025-03-05 22:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616301', 'tblTempUsageDetail_20' ) start [2025-03-05 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616301', 'tblTempUsageDetail_20' ) end [2025-03-05 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616301', 'tblTempVendorCDR_20' ) start [2025-03-05 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616301', 'tblTempVendorCDR_20' ) end [2025-03-05 22:49:17] Production.INFO: ProcessCDR(1,14616301,1,1,2) [2025-03-05 22:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616301', 'tblTempUsageDetail_20' ) start [2025-03-05 22:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616301', 'tblTempUsageDetail_20' ) end [2025-03-05 22:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:49:20] Production.INFO: ==23264== Releasing lock... [2025-03-05 22:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:49:20] Production.INFO: 33.75 MB #Memory Used# [2025-03-05 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:50:06 [end_date_ymd] => 2025-03-05 22:50:06 [RateCDR] => 1 ) [2025-03-05 22: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-03-05 19:50:06' and `end` < '2025-03-05 22: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-03-05 22:50:18] Production.INFO: count ==868 [2025-03-05 22:50:18] Production.ERROR: pbx CDR StartTime 2025-03-05 19:50:06 - End Time 2025-03-05 22:50:06 [2025-03-05 22:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616307', 'tblTempUsageDetail_20' ) start [2025-03-05 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616307', 'tblTempUsageDetail_20' ) end [2025-03-05 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616307', 'tblTempVendorCDR_20' ) start [2025-03-05 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616307', 'tblTempVendorCDR_20' ) end [2025-03-05 22:50:18] Production.INFO: ProcessCDR(1,14616307,1,1,2) [2025-03-05 22:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616307', 'tblTempUsageDetail_20' ) start [2025-03-05 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616307', 'tblTempUsageDetail_20' ) end [2025-03-05 22:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:50:21] Production.INFO: ==23376== Releasing lock... [2025-03-05 22:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:50:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-05 22:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:51:06 [end_date_ymd] => 2025-03-05 22:51:06 [RateCDR] => 1 ) [2025-03-05 22: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-03-05 19:51:06' and `end` < '2025-03-05 22: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-03-05 22:51:18] Production.INFO: count ==860 [2025-03-05 22:51:18] Production.ERROR: pbx CDR StartTime 2025-03-05 19:51:06 - End Time 2025-03-05 22:51:06 [2025-03-05 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616312', 'tblTempUsageDetail_20' ) start [2025-03-05 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616312', 'tblTempUsageDetail_20' ) end [2025-03-05 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616312', 'tblTempVendorCDR_20' ) start [2025-03-05 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616312', 'tblTempVendorCDR_20' ) end [2025-03-05 22:51:18] Production.INFO: ProcessCDR(1,14616312,1,1,2) [2025-03-05 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616312', 'tblTempUsageDetail_20' ) start [2025-03-05 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616312', 'tblTempUsageDetail_20' ) end [2025-03-05 22:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:51:21] Production.INFO: ==23486== Releasing lock... [2025-03-05 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:51:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-05 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:52:05 [end_date_ymd] => 2025-03-05 22:52:05 [RateCDR] => 1 ) [2025-03-05 22: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-03-05 19:52:05' and `end` < '2025-03-05 22: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-03-05 22:52:17] Production.INFO: count ==856 [2025-03-05 22:52:18] Production.ERROR: pbx CDR StartTime 2025-03-05 19:52:05 - End Time 2025-03-05 22:52:05 [2025-03-05 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616317', 'tblTempUsageDetail_20' ) start [2025-03-05 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616317', 'tblTempUsageDetail_20' ) end [2025-03-05 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616317', 'tblTempVendorCDR_20' ) start [2025-03-05 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616317', 'tblTempVendorCDR_20' ) end [2025-03-05 22:52:18] Production.INFO: ProcessCDR(1,14616317,1,1,2) [2025-03-05 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616317', 'tblTempUsageDetail_20' ) start [2025-03-05 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616317', 'tblTempUsageDetail_20' ) end [2025-03-05 22:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:52:21] Production.INFO: ==23595== Releasing lock... [2025-03-05 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:52:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-05 22:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:53:06 [end_date_ymd] => 2025-03-05 22:53:06 [RateCDR] => 1 ) [2025-03-05 22: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-03-05 19:53:06' and `end` < '2025-03-05 22: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-03-05 22:53:18] Production.INFO: count ==852 [2025-03-05 22:53:18] Production.ERROR: pbx CDR StartTime 2025-03-05 19:53:06 - End Time 2025-03-05 22:53:06 [2025-03-05 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616322', 'tblTempUsageDetail_20' ) start [2025-03-05 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616322', 'tblTempUsageDetail_20' ) end [2025-03-05 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616322', 'tblTempVendorCDR_20' ) start [2025-03-05 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616322', 'tblTempVendorCDR_20' ) end [2025-03-05 22:53:18] Production.INFO: ProcessCDR(1,14616322,1,1,2) [2025-03-05 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616322', 'tblTempUsageDetail_20' ) start [2025-03-05 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616322', 'tblTempUsageDetail_20' ) end [2025-03-05 22:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:53:23] Production.INFO: ==23709== Releasing lock... [2025-03-05 22:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:53:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-05 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:54:05 [end_date_ymd] => 2025-03-05 22:54:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 19:54:05' and `end` < '2025-03-05 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-03-05 22:54:17] Production.INFO: count ==853 [2025-03-05 22:54:17] Production.ERROR: pbx CDR StartTime 2025-03-05 19:54:05 - End Time 2025-03-05 22:54:05 [2025-03-05 22:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616327', 'tblTempUsageDetail_20' ) start [2025-03-05 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616327', 'tblTempUsageDetail_20' ) end [2025-03-05 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616327', 'tblTempVendorCDR_20' ) start [2025-03-05 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616327', 'tblTempVendorCDR_20' ) end [2025-03-05 22:54:17] Production.INFO: ProcessCDR(1,14616327,1,1,2) [2025-03-05 22:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616327', 'tblTempUsageDetail_20' ) start [2025-03-05 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616327', 'tblTempUsageDetail_20' ) end [2025-03-05 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:54:22] Production.INFO: ==23821== Releasing lock... [2025-03-05 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:54:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-05 22:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:55:06 [end_date_ymd] => 2025-03-05 22:55:06 [RateCDR] => 1 ) [2025-03-05 22:55: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-03-05 19:55:06' and `end` < '2025-03-05 22:55: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-03-05 22:55:18] Production.INFO: count ==849 [2025-03-05 22:55:18] Production.ERROR: pbx CDR StartTime 2025-03-05 19:55:06 - End Time 2025-03-05 22:55:06 [2025-03-05 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616332', 'tblTempUsageDetail_20' ) start [2025-03-05 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616332', 'tblTempUsageDetail_20' ) end [2025-03-05 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616332', 'tblTempVendorCDR_20' ) start [2025-03-05 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616332', 'tblTempVendorCDR_20' ) end [2025-03-05 22:55:18] Production.INFO: ProcessCDR(1,14616332,1,1,2) [2025-03-05 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616332', 'tblTempUsageDetail_20' ) start [2025-03-05 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616332', 'tblTempUsageDetail_20' ) end [2025-03-05 22:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:55:21] Production.INFO: ==23931== Releasing lock... [2025-03-05 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:55:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-05 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:56:05 [end_date_ymd] => 2025-03-05 22:56:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 19:56:05' and `end` < '2025-03-05 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-03-05 22:56:17] Production.INFO: count ==848 [2025-03-05 22:56:17] Production.ERROR: pbx CDR StartTime 2025-03-05 19:56:05 - End Time 2025-03-05 22:56:05 [2025-03-05 22:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616337', 'tblTempUsageDetail_20' ) start [2025-03-05 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616337', 'tblTempUsageDetail_20' ) end [2025-03-05 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616337', 'tblTempVendorCDR_20' ) start [2025-03-05 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616337', 'tblTempVendorCDR_20' ) end [2025-03-05 22:56:17] Production.INFO: ProcessCDR(1,14616337,1,1,2) [2025-03-05 22:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616337', 'tblTempUsageDetail_20' ) start [2025-03-05 22:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616337', 'tblTempUsageDetail_20' ) end [2025-03-05 22:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:56:20] Production.INFO: ==24039== Releasing lock... [2025-03-05 22:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:56:20] Production.INFO: 33.75 MB #Memory Used# [2025-03-05 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:57:05 [end_date_ymd] => 2025-03-05 22:57:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 19:57:05' and `end` < '2025-03-05 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-03-05 22:57:17] Production.INFO: count ==848 [2025-03-05 22:57:17] Production.ERROR: pbx CDR StartTime 2025-03-05 19:57:05 - End Time 2025-03-05 22:57:05 [2025-03-05 22:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616342', 'tblTempUsageDetail_20' ) start [2025-03-05 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616342', 'tblTempUsageDetail_20' ) end [2025-03-05 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616342', 'tblTempVendorCDR_20' ) start [2025-03-05 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616342', 'tblTempVendorCDR_20' ) end [2025-03-05 22:57:17] Production.INFO: ProcessCDR(1,14616342,1,1,2) [2025-03-05 22:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616342', 'tblTempUsageDetail_20' ) start [2025-03-05 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616342', 'tblTempUsageDetail_20' ) end [2025-03-05 22:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:57:21] Production.INFO: ==24116== Releasing lock... [2025-03-05 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:57:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-05 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:58:05 [end_date_ymd] => 2025-03-05 22:58:05 [RateCDR] => 1 ) [2025-03-05 22: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-03-05 19:58:05' and `end` < '2025-03-05 22: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-03-05 22:58:17] Production.INFO: count ==846 [2025-03-05 22:58:17] Production.ERROR: pbx CDR StartTime 2025-03-05 19:58:05 - End Time 2025-03-05 22:58:05 [2025-03-05 22:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616347', 'tblTempUsageDetail_20' ) start [2025-03-05 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616347', 'tblTempUsageDetail_20' ) end [2025-03-05 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616347', 'tblTempVendorCDR_20' ) start [2025-03-05 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616347', 'tblTempVendorCDR_20' ) end [2025-03-05 22:58:17] Production.INFO: ProcessCDR(1,14616347,1,1,2) [2025-03-05 22:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616347', 'tblTempUsageDetail_20' ) start [2025-03-05 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616347', 'tblTempUsageDetail_20' ) end [2025-03-05 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:58:21] Production.INFO: ==24226== Releasing lock... [2025-03-05 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:58:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-05 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 19:59:05 [end_date_ymd] => 2025-03-05 22:59:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 19:59:05' and `end` < '2025-03-05 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-03-05 22:59:17] Production.INFO: count ==839 [2025-03-05 22:59:17] Production.ERROR: pbx CDR StartTime 2025-03-05 19:59:05 - End Time 2025-03-05 22:59:05 [2025-03-05 22:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616350', 'tblTempUsageDetail_20' ) start [2025-03-05 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616350', 'tblTempUsageDetail_20' ) end [2025-03-05 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616350', 'tblTempVendorCDR_20' ) start [2025-03-05 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616350', 'tblTempVendorCDR_20' ) end [2025-03-05 22:59:17] Production.INFO: ProcessCDR(1,14616350,1,1,2) [2025-03-05 22:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 22:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616350', 'tblTempUsageDetail_20' ) start [2025-03-05 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616350', 'tblTempUsageDetail_20' ) end [2025-03-05 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 22:59:21] Production.INFO: ==24295== Releasing lock... [2025-03-05 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 22:59:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-05 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:00:06 [end_date_ymd] => 2025-03-05 23:00:06 [RateCDR] => 1 ) [2025-03-05 23: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-03-05 20:00:06' and `end` < '2025-03-05 23: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-03-05 23:00:18] Production.INFO: count ==819 [2025-03-05 23:00:18] Production.ERROR: pbx CDR StartTime 2025-03-05 20:00:06 - End Time 2025-03-05 23:00:06 [2025-03-05 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616357', 'tblTempUsageDetail_20' ) start [2025-03-05 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616357', 'tblTempUsageDetail_20' ) end [2025-03-05 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616357', 'tblTempVendorCDR_20' ) start [2025-03-05 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616357', 'tblTempVendorCDR_20' ) end [2025-03-05 23:00:18] Production.INFO: ProcessCDR(1,14616357,1,1,2) [2025-03-05 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616357', 'tblTempUsageDetail_20' ) start [2025-03-05 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616357', 'tblTempUsageDetail_20' ) end [2025-03-05 23:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:00:22] Production.INFO: ==24368== Releasing lock... [2025-03-05 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:00:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-05 23:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:01:06 [end_date_ymd] => 2025-03-05 23:01:06 [RateCDR] => 1 ) [2025-03-05 23: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-03-05 20:01:06' and `end` < '2025-03-05 23: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-03-05 23:01:18] Production.INFO: count ==779 [2025-03-05 23:01:18] Production.ERROR: pbx CDR StartTime 2025-03-05 20:01:06 - End Time 2025-03-05 23:01:06 [2025-03-05 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616363', 'tblTempUsageDetail_20' ) start [2025-03-05 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616363', 'tblTempUsageDetail_20' ) end [2025-03-05 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616363', 'tblTempVendorCDR_20' ) start [2025-03-05 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616363', 'tblTempVendorCDR_20' ) end [2025-03-05 23:01:18] Production.INFO: ProcessCDR(1,14616363,1,1,2) [2025-03-05 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616363', 'tblTempUsageDetail_20' ) start [2025-03-05 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616363', 'tblTempUsageDetail_20' ) end [2025-03-05 23:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:01:21] Production.INFO: ==24533== Releasing lock... [2025-03-05 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:01:21] Production.INFO: 33 MB #Memory Used# [2025-03-05 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:02:05 [end_date_ymd] => 2025-03-05 23:02:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 20:02:05' and `end` < '2025-03-05 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-03-05 23:02:17] Production.INFO: count ==772 [2025-03-05 23:02:17] Production.ERROR: pbx CDR StartTime 2025-03-05 20:02:05 - End Time 2025-03-05 23:02:05 [2025-03-05 23:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616368', 'tblTempUsageDetail_20' ) start [2025-03-05 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616368', 'tblTempUsageDetail_20' ) end [2025-03-05 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616368', 'tblTempVendorCDR_20' ) start [2025-03-05 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616368', 'tblTempVendorCDR_20' ) end [2025-03-05 23:02:17] Production.INFO: ProcessCDR(1,14616368,1,1,2) [2025-03-05 23:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616368', 'tblTempUsageDetail_20' ) start [2025-03-05 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616368', 'tblTempUsageDetail_20' ) end [2025-03-05 23:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:02:21] Production.INFO: ==24606== Releasing lock... [2025-03-05 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:02:21] Production.INFO: 33 MB #Memory Used# [2025-03-05 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:03:05 [end_date_ymd] => 2025-03-05 23:03:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 20:03:05' and `end` < '2025-03-05 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-03-05 23:03:17] Production.INFO: count ==770 [2025-03-05 23:03:17] Production.ERROR: pbx CDR StartTime 2025-03-05 20:03:05 - End Time 2025-03-05 23:03:05 [2025-03-05 23:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616373', 'tblTempUsageDetail_20' ) start [2025-03-05 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616373', 'tblTempUsageDetail_20' ) end [2025-03-05 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616373', 'tblTempVendorCDR_20' ) start [2025-03-05 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616373', 'tblTempVendorCDR_20' ) end [2025-03-05 23:03:17] Production.INFO: ProcessCDR(1,14616373,1,1,2) [2025-03-05 23:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616373', 'tblTempUsageDetail_20' ) start [2025-03-05 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616373', 'tblTempUsageDetail_20' ) end [2025-03-05 23:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:03:21] Production.INFO: ==24678== Releasing lock... [2025-03-05 23:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:03:21] Production.INFO: 33 MB #Memory Used# [2025-03-05 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:04:05 [end_date_ymd] => 2025-03-05 23:04:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 20:04:05' and `end` < '2025-03-05 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-03-05 23:04:18] Production.INFO: count ==770 [2025-03-05 23:04:18] Production.ERROR: pbx CDR StartTime 2025-03-05 20:04:05 - End Time 2025-03-05 23:04:05 [2025-03-05 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616378', 'tblTempUsageDetail_20' ) start [2025-03-05 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616378', 'tblTempUsageDetail_20' ) end [2025-03-05 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616378', 'tblTempVendorCDR_20' ) start [2025-03-05 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616378', 'tblTempVendorCDR_20' ) end [2025-03-05 23:04:18] Production.INFO: ProcessCDR(1,14616378,1,1,2) [2025-03-05 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616378', 'tblTempUsageDetail_20' ) start [2025-03-05 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616378', 'tblTempUsageDetail_20' ) end [2025-03-05 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:04:21] Production.INFO: ==24752== Releasing lock... [2025-03-05 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:04:21] Production.INFO: 33 MB #Memory Used# [2025-03-05 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:05:05 [end_date_ymd] => 2025-03-05 23:05:05 [RateCDR] => 1 ) [2025-03-05 23: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-03-05 20:05:05' and `end` < '2025-03-05 23: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-03-05 23:05:17] Production.INFO: count ==768 [2025-03-05 23:05:18] Production.ERROR: pbx CDR StartTime 2025-03-05 20:05:05 - End Time 2025-03-05 23:05:05 [2025-03-05 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616383', 'tblTempUsageDetail_20' ) start [2025-03-05 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616383', 'tblTempUsageDetail_20' ) end [2025-03-05 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616383', 'tblTempVendorCDR_20' ) start [2025-03-05 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616383', 'tblTempVendorCDR_20' ) end [2025-03-05 23:05:18] Production.INFO: ProcessCDR(1,14616383,1,1,2) [2025-03-05 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616383', 'tblTempUsageDetail_20' ) start [2025-03-05 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616383', 'tblTempUsageDetail_20' ) end [2025-03-05 23:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:05:22] Production.INFO: ==24907== Releasing lock... [2025-03-05 23:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:05:22] Production.INFO: 33 MB #Memory Used# [2025-03-05 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:06:05 [end_date_ymd] => 2025-03-05 23:06:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 20:06:05' and `end` < '2025-03-05 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-03-05 23:06:17] Production.INFO: count ==768 [2025-03-05 23:06:17] Production.ERROR: pbx CDR StartTime 2025-03-05 20:06:05 - End Time 2025-03-05 23:06:05 [2025-03-05 23:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616388', 'tblTempUsageDetail_20' ) start [2025-03-05 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616388', 'tblTempUsageDetail_20' ) end [2025-03-05 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616388', 'tblTempVendorCDR_20' ) start [2025-03-05 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616388', 'tblTempVendorCDR_20' ) end [2025-03-05 23:06:17] Production.INFO: ProcessCDR(1,14616388,1,1,2) [2025-03-05 23:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616388', 'tblTempUsageDetail_20' ) start [2025-03-05 23:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616388', 'tblTempUsageDetail_20' ) end [2025-03-05 23:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:06:20] Production.INFO: ==24978== Releasing lock... [2025-03-05 23:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:06:20] Production.INFO: 33 MB #Memory Used# [2025-03-05 23:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:07:06 [end_date_ymd] => 2025-03-05 23:07:06 [RateCDR] => 1 ) [2025-03-05 23: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-03-05 20:07:06' and `end` < '2025-03-05 23: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-03-05 23:07:18] Production.INFO: count ==771 [2025-03-05 23:07:18] Production.ERROR: pbx CDR StartTime 2025-03-05 20:07:06 - End Time 2025-03-05 23:07:06 [2025-03-05 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616393', 'tblTempUsageDetail_20' ) start [2025-03-05 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616393', 'tblTempUsageDetail_20' ) end [2025-03-05 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616393', 'tblTempVendorCDR_20' ) start [2025-03-05 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616393', 'tblTempVendorCDR_20' ) end [2025-03-05 23:07:18] Production.INFO: ProcessCDR(1,14616393,1,1,2) [2025-03-05 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616393', 'tblTempUsageDetail_20' ) start [2025-03-05 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616393', 'tblTempUsageDetail_20' ) end [2025-03-05 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:07:21] Production.INFO: ==25049== Releasing lock... [2025-03-05 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:07:21] Production.INFO: 33 MB #Memory Used# [2025-03-05 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:08:05 [end_date_ymd] => 2025-03-05 23:08:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 20:08:05' and `end` < '2025-03-05 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-03-05 23:08:17] Production.INFO: count ==772 [2025-03-05 23:08:17] Production.ERROR: pbx CDR StartTime 2025-03-05 20:08:05 - End Time 2025-03-05 23:08:05 [2025-03-05 23:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616398', 'tblTempUsageDetail_20' ) start [2025-03-05 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616398', 'tblTempUsageDetail_20' ) end [2025-03-05 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616398', 'tblTempVendorCDR_20' ) start [2025-03-05 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616398', 'tblTempVendorCDR_20' ) end [2025-03-05 23:08:17] Production.INFO: ProcessCDR(1,14616398,1,1,2) [2025-03-05 23:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616398', 'tblTempUsageDetail_20' ) start [2025-03-05 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616398', 'tblTempUsageDetail_20' ) end [2025-03-05 23:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:08:22] Production.INFO: ==25126== Releasing lock... [2025-03-05 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:08:22] Production.INFO: 33 MB #Memory Used# [2025-03-05 23:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:09:06 [end_date_ymd] => 2025-03-05 23:09:06 [RateCDR] => 1 ) [2025-03-05 23: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-03-05 20:09:06' and `end` < '2025-03-05 23: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-03-05 23:09:18] Production.INFO: count ==772 [2025-03-05 23:09:18] Production.ERROR: pbx CDR StartTime 2025-03-05 20:09:06 - End Time 2025-03-05 23:09:06 [2025-03-05 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616403', 'tblTempUsageDetail_20' ) start [2025-03-05 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616403', 'tblTempUsageDetail_20' ) end [2025-03-05 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616403', 'tblTempVendorCDR_20' ) start [2025-03-05 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616403', 'tblTempVendorCDR_20' ) end [2025-03-05 23:09:18] Production.INFO: ProcessCDR(1,14616403,1,1,2) [2025-03-05 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616403', 'tblTempUsageDetail_20' ) start [2025-03-05 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616403', 'tblTempUsageDetail_20' ) end [2025-03-05 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:09:22] Production.INFO: ==25279== Releasing lock... [2025-03-05 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:09:22] Production.INFO: 33 MB #Memory Used# [2025-03-05 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:10:05 [end_date_ymd] => 2025-03-05 23:10:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 20:10:05' and `end` < '2025-03-05 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-03-05 23:10:18] Production.INFO: count ==770 [2025-03-05 23:10:18] Production.ERROR: pbx CDR StartTime 2025-03-05 20:10:05 - End Time 2025-03-05 23:10:05 [2025-03-05 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616409', 'tblTempUsageDetail_20' ) start [2025-03-05 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616409', 'tblTempUsageDetail_20' ) end [2025-03-05 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616409', 'tblTempVendorCDR_20' ) start [2025-03-05 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616409', 'tblTempVendorCDR_20' ) end [2025-03-05 23:10:18] Production.INFO: ProcessCDR(1,14616409,1,1,2) [2025-03-05 23:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616409', 'tblTempUsageDetail_20' ) start [2025-03-05 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616409', 'tblTempUsageDetail_20' ) end [2025-03-05 23:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:10:21] Production.INFO: ==25351== Releasing lock... [2025-03-05 23:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:10:21] Production.INFO: 33 MB #Memory Used# [2025-03-05 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:11:05 [end_date_ymd] => 2025-03-05 23:11:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 20:11:05' and `end` < '2025-03-05 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-03-05 23:11:17] Production.INFO: count ==784 [2025-03-05 23:11:18] Production.ERROR: pbx CDR StartTime 2025-03-05 20:11:05 - End Time 2025-03-05 23:11:05 [2025-03-05 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616414', 'tblTempUsageDetail_20' ) start [2025-03-05 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616414', 'tblTempUsageDetail_20' ) end [2025-03-05 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616414', 'tblTempVendorCDR_20' ) start [2025-03-05 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616414', 'tblTempVendorCDR_20' ) end [2025-03-05 23:11:18] Production.INFO: ProcessCDR(1,14616414,1,1,2) [2025-03-05 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616414', 'tblTempUsageDetail_20' ) start [2025-03-05 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616414', 'tblTempUsageDetail_20' ) end [2025-03-05 23:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:11:21] Production.INFO: ==25427== Releasing lock... [2025-03-05 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:11:21] Production.INFO: 33 MB #Memory Used# [2025-03-05 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:12:05 [end_date_ymd] => 2025-03-05 23:12:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 20:12:05' and `end` < '2025-03-05 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-03-05 23:12:17] Production.INFO: count ==784 [2025-03-05 23:12:17] Production.ERROR: pbx CDR StartTime 2025-03-05 20:12:05 - End Time 2025-03-05 23:12:05 [2025-03-05 23:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616419', 'tblTempUsageDetail_20' ) start [2025-03-05 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616419', 'tblTempUsageDetail_20' ) end [2025-03-05 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616419', 'tblTempVendorCDR_20' ) start [2025-03-05 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616419', 'tblTempVendorCDR_20' ) end [2025-03-05 23:12:17] Production.INFO: ProcessCDR(1,14616419,1,1,2) [2025-03-05 23:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616419', 'tblTempUsageDetail_20' ) start [2025-03-05 23:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616419', 'tblTempUsageDetail_20' ) end [2025-03-05 23:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:12:20] Production.INFO: ==25576== Releasing lock... [2025-03-05 23:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:12:20] Production.INFO: 33 MB #Memory Used# [2025-03-05 23:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:13:04 [end_date_ymd] => 2025-03-05 23:13:04 [RateCDR] => 1 ) [2025-03-05 23: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-03-05 20:13:04' and `end` < '2025-03-05 23: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-03-05 23:13:16] Production.INFO: count ==784 [2025-03-05 23:13:16] Production.ERROR: pbx CDR StartTime 2025-03-05 20:13:04 - End Time 2025-03-05 23:13:04 [2025-03-05 23:13:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616424', 'tblTempUsageDetail_20' ) start [2025-03-05 23:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616424', 'tblTempUsageDetail_20' ) end [2025-03-05 23:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616424', 'tblTempVendorCDR_20' ) start [2025-03-05 23:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616424', 'tblTempVendorCDR_20' ) end [2025-03-05 23:13:16] Production.INFO: ProcessCDR(1,14616424,1,1,2) [2025-03-05 23:13:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616424', 'tblTempUsageDetail_20' ) start [2025-03-05 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616424', 'tblTempUsageDetail_20' ) end [2025-03-05 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:13:21] Production.INFO: ==25651== Releasing lock... [2025-03-05 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:13:21] Production.INFO: 33 MB #Memory Used# [2025-03-05 23:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:14:06 [end_date_ymd] => 2025-03-05 23:14:06 [RateCDR] => 1 ) [2025-03-05 23:14: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-03-05 20:14:06' and `end` < '2025-03-05 23:14: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-03-05 23:14:18] Production.INFO: count ==785 [2025-03-05 23:14:18] Production.ERROR: pbx CDR StartTime 2025-03-05 20:14:06 - End Time 2025-03-05 23:14:06 [2025-03-05 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616429', 'tblTempUsageDetail_20' ) start [2025-03-05 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616429', 'tblTempUsageDetail_20' ) end [2025-03-05 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616429', 'tblTempVendorCDR_20' ) start [2025-03-05 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616429', 'tblTempVendorCDR_20' ) end [2025-03-05 23:14:18] Production.INFO: ProcessCDR(1,14616429,1,1,2) [2025-03-05 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616429', 'tblTempUsageDetail_20' ) start [2025-03-05 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616429', 'tblTempUsageDetail_20' ) end [2025-03-05 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:14:22] Production.INFO: ==25761== Releasing lock... [2025-03-05 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:14:22] Production.INFO: 33 MB #Memory Used# [2025-03-05 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:15:05 [end_date_ymd] => 2025-03-05 23:15:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 20:15:05' and `end` < '2025-03-05 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-03-05 23:15:17] Production.INFO: count ==782 [2025-03-05 23:15:18] Production.ERROR: pbx CDR StartTime 2025-03-05 20:15:05 - End Time 2025-03-05 23:15:05 [2025-03-05 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616434', 'tblTempUsageDetail_20' ) start [2025-03-05 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616434', 'tblTempUsageDetail_20' ) end [2025-03-05 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616434', 'tblTempVendorCDR_20' ) start [2025-03-05 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616434', 'tblTempVendorCDR_20' ) end [2025-03-05 23:15:18] Production.INFO: ProcessCDR(1,14616434,1,1,2) [2025-03-05 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616434', 'tblTempUsageDetail_20' ) start [2025-03-05 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616434', 'tblTempUsageDetail_20' ) end [2025-03-05 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:15:21] Production.INFO: ==25874== Releasing lock... [2025-03-05 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:15:21] Production.INFO: 33 MB #Memory Used# [2025-03-05 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:16:05 [end_date_ymd] => 2025-03-05 23:16:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 20:16:05' and `end` < '2025-03-05 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-03-05 23:16:18] Production.INFO: count ==782 [2025-03-05 23:16:18] Production.ERROR: pbx CDR StartTime 2025-03-05 20:16:05 - End Time 2025-03-05 23:16:05 [2025-03-05 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616439', 'tblTempUsageDetail_20' ) start [2025-03-05 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616439', 'tblTempUsageDetail_20' ) end [2025-03-05 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616439', 'tblTempVendorCDR_20' ) start [2025-03-05 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616439', 'tblTempVendorCDR_20' ) end [2025-03-05 23:16:18] Production.INFO: ProcessCDR(1,14616439,1,1,2) [2025-03-05 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616439', 'tblTempUsageDetail_20' ) start [2025-03-05 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616439', 'tblTempUsageDetail_20' ) end [2025-03-05 23:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:16:21] Production.INFO: ==25990== Releasing lock... [2025-03-05 23:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:16:21] Production.INFO: 33 MB #Memory Used# [2025-03-05 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:17:05 [end_date_ymd] => 2025-03-05 23:17:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 20:17:05' and `end` < '2025-03-05 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-03-05 23:17:17] Production.INFO: count ==782 [2025-03-05 23:17:17] Production.ERROR: pbx CDR StartTime 2025-03-05 20:17:05 - End Time 2025-03-05 23:17:05 [2025-03-05 23:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616444', 'tblTempUsageDetail_20' ) start [2025-03-05 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616444', 'tblTempUsageDetail_20' ) end [2025-03-05 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616444', 'tblTempVendorCDR_20' ) start [2025-03-05 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616444', 'tblTempVendorCDR_20' ) end [2025-03-05 23:17:17] Production.INFO: ProcessCDR(1,14616444,1,1,2) [2025-03-05 23:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616444', 'tblTempUsageDetail_20' ) start [2025-03-05 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616444', 'tblTempUsageDetail_20' ) end [2025-03-05 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:17:21] Production.INFO: ==26061== Releasing lock... [2025-03-05 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:17:21] Production.INFO: 33 MB #Memory Used# [2025-03-05 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:18:05 [end_date_ymd] => 2025-03-05 23:18:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 20:18:05' and `end` < '2025-03-05 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-03-05 23:18:17] Production.INFO: count ==778 [2025-03-05 23:18:18] Production.ERROR: pbx CDR StartTime 2025-03-05 20:18:05 - End Time 2025-03-05 23:18:05 [2025-03-05 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616449', 'tblTempUsageDetail_20' ) start [2025-03-05 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616449', 'tblTempUsageDetail_20' ) end [2025-03-05 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616449', 'tblTempVendorCDR_20' ) start [2025-03-05 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616449', 'tblTempVendorCDR_20' ) end [2025-03-05 23:18:18] Production.INFO: ProcessCDR(1,14616449,1,1,2) [2025-03-05 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616449', 'tblTempUsageDetail_20' ) start [2025-03-05 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616449', 'tblTempUsageDetail_20' ) end [2025-03-05 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:18:22] Production.INFO: ==26139== Releasing lock... [2025-03-05 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:18:22] Production.INFO: 33 MB #Memory Used# [2025-03-05 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:19:05 [end_date_ymd] => 2025-03-05 23:19:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 20:19:05' and `end` < '2025-03-05 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-03-05 23:19:17] Production.INFO: count ==778 [2025-03-05 23:19:17] Production.ERROR: pbx CDR StartTime 2025-03-05 20:19:05 - End Time 2025-03-05 23:19:05 [2025-03-05 23:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616453', 'tblTempUsageDetail_20' ) start [2025-03-05 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616453', 'tblTempUsageDetail_20' ) end [2025-03-05 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616453', 'tblTempVendorCDR_20' ) start [2025-03-05 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616453', 'tblTempVendorCDR_20' ) end [2025-03-05 23:19:17] Production.INFO: ProcessCDR(1,14616453,1,1,2) [2025-03-05 23:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616453', 'tblTempUsageDetail_20' ) start [2025-03-05 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616453', 'tblTempUsageDetail_20' ) end [2025-03-05 23:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:19:22] Production.INFO: ==26210== Releasing lock... [2025-03-05 23:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:19:22] Production.INFO: 33 MB #Memory Used# [2025-03-05 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:20:06 [end_date_ymd] => 2025-03-05 23:20:06 [RateCDR] => 1 ) [2025-03-05 23: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-03-05 20:20:06' and `end` < '2025-03-05 23: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-03-05 23:20:18] Production.INFO: count ==776 [2025-03-05 23:20:18] Production.ERROR: pbx CDR StartTime 2025-03-05 20:20:06 - End Time 2025-03-05 23:20:06 [2025-03-05 23:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616459', 'tblTempUsageDetail_20' ) start [2025-03-05 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616459', 'tblTempUsageDetail_20' ) end [2025-03-05 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616459', 'tblTempVendorCDR_20' ) start [2025-03-05 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616459', 'tblTempVendorCDR_20' ) end [2025-03-05 23:20:18] Production.INFO: ProcessCDR(1,14616459,1,1,2) [2025-03-05 23:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616459', 'tblTempUsageDetail_20' ) start [2025-03-05 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616459', 'tblTempUsageDetail_20' ) end [2025-03-05 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:20:22] Production.INFO: ==26283== Releasing lock... [2025-03-05 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:20:22] Production.INFO: 33 MB #Memory Used# [2025-03-05 23:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:21:06 [end_date_ymd] => 2025-03-05 23:21:06 [RateCDR] => 1 ) [2025-03-05 23:21: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-03-05 20:21:06' and `end` < '2025-03-05 23:21: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-03-05 23:21:18] Production.INFO: count ==743 [2025-03-05 23:21:18] Production.ERROR: pbx CDR StartTime 2025-03-05 20:21:06 - End Time 2025-03-05 23:21:06 [2025-03-05 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616465', 'tblTempUsageDetail_20' ) start [2025-03-05 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616465', 'tblTempUsageDetail_20' ) end [2025-03-05 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616465', 'tblTempVendorCDR_20' ) start [2025-03-05 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616465', 'tblTempVendorCDR_20' ) end [2025-03-05 23:21:18] Production.INFO: ProcessCDR(1,14616465,1,1,2) [2025-03-05 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616465', 'tblTempUsageDetail_20' ) start [2025-03-05 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616465', 'tblTempUsageDetail_20' ) end [2025-03-05 23:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:21:21] Production.INFO: ==26357== Releasing lock... [2025-03-05 23:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:21:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-05 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:22:05 [end_date_ymd] => 2025-03-05 23:22:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 20:22:05' and `end` < '2025-03-05 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-03-05 23:22:17] Production.INFO: count ==737 [2025-03-05 23:22:18] Production.ERROR: pbx CDR StartTime 2025-03-05 20:22:05 - End Time 2025-03-05 23:22:05 [2025-03-05 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616470', 'tblTempUsageDetail_20' ) start [2025-03-05 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616470', 'tblTempUsageDetail_20' ) end [2025-03-05 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616470', 'tblTempVendorCDR_20' ) start [2025-03-05 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616470', 'tblTempVendorCDR_20' ) end [2025-03-05 23:22:18] Production.INFO: ProcessCDR(1,14616470,1,1,2) [2025-03-05 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616470', 'tblTempUsageDetail_20' ) start [2025-03-05 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616470', 'tblTempUsageDetail_20' ) end [2025-03-05 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:22:21] Production.INFO: ==26427== Releasing lock... [2025-03-05 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:22:21] Production.INFO: 33 MB #Memory Used# [2025-03-05 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:23:05 [end_date_ymd] => 2025-03-05 23:23:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 20:23:05' and `end` < '2025-03-05 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-03-05 23:23:17] Production.INFO: count ==737 [2025-03-05 23:23:17] Production.ERROR: pbx CDR StartTime 2025-03-05 20:23:05 - End Time 2025-03-05 23:23:05 [2025-03-05 23:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616475', 'tblTempUsageDetail_20' ) start [2025-03-05 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616475', 'tblTempUsageDetail_20' ) end [2025-03-05 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616475', 'tblTempVendorCDR_20' ) start [2025-03-05 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616475', 'tblTempVendorCDR_20' ) end [2025-03-05 23:23:17] Production.INFO: ProcessCDR(1,14616475,1,1,2) [2025-03-05 23:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616475', 'tblTempUsageDetail_20' ) start [2025-03-05 23:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616475', 'tblTempUsageDetail_20' ) end [2025-03-05 23:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:23:20] Production.INFO: ==26507== Releasing lock... [2025-03-05 23:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:23:20] Production.INFO: 33 MB #Memory Used# [2025-03-05 23:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:24:05 [end_date_ymd] => 2025-03-05 23:24:05 [RateCDR] => 1 ) [2025-03-05 23: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-03-05 20:24:05' and `end` < '2025-03-05 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-03-05 23:24:18] Production.INFO: count ==740 [2025-03-05 23:24:18] Production.ERROR: pbx CDR StartTime 2025-03-05 20:24:05 - End Time 2025-03-05 23:24:05 [2025-03-05 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616480', 'tblTempUsageDetail_20' ) start [2025-03-05 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616480', 'tblTempUsageDetail_20' ) end [2025-03-05 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616480', 'tblTempVendorCDR_20' ) start [2025-03-05 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616480', 'tblTempVendorCDR_20' ) end [2025-03-05 23:24:18] Production.INFO: ProcessCDR(1,14616480,1,1,2) [2025-03-05 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616480', 'tblTempUsageDetail_20' ) start [2025-03-05 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616480', 'tblTempUsageDetail_20' ) end [2025-03-05 23:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:24:21] Production.INFO: ==26579== Releasing lock... [2025-03-05 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:24:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-05 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:25:05 [end_date_ymd] => 2025-03-05 23:25:05 [RateCDR] => 1 ) [2025-03-05 23: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-03-05 20:25:05' and `end` < '2025-03-05 23: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-03-05 23:25:17] Production.INFO: count ==740 [2025-03-05 23:25:17] Production.ERROR: pbx CDR StartTime 2025-03-05 20:25:05 - End Time 2025-03-05 23:25:05 [2025-03-05 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616485', 'tblTempUsageDetail_20' ) start [2025-03-05 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616485', 'tblTempUsageDetail_20' ) end [2025-03-05 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616485', 'tblTempVendorCDR_20' ) start [2025-03-05 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616485', 'tblTempVendorCDR_20' ) end [2025-03-05 23:25:17] Production.INFO: ProcessCDR(1,14616485,1,1,2) [2025-03-05 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616485', 'tblTempUsageDetail_20' ) start [2025-03-05 23:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616485', 'tblTempUsageDetail_20' ) end [2025-03-05 23:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:25:20] Production.INFO: ==26657== Releasing lock... [2025-03-05 23:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:25:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-05 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:26:05 [end_date_ymd] => 2025-03-05 23:26:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 20:26:05' and `end` < '2025-03-05 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-03-05 23:26:17] Production.INFO: count ==737 [2025-03-05 23:26:17] Production.ERROR: pbx CDR StartTime 2025-03-05 20:26:05 - End Time 2025-03-05 23:26:05 [2025-03-05 23:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616490', 'tblTempUsageDetail_20' ) start [2025-03-05 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616490', 'tblTempUsageDetail_20' ) end [2025-03-05 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616490', 'tblTempVendorCDR_20' ) start [2025-03-05 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616490', 'tblTempVendorCDR_20' ) end [2025-03-05 23:26:17] Production.INFO: ProcessCDR(1,14616490,1,1,2) [2025-03-05 23:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616490', 'tblTempUsageDetail_20' ) start [2025-03-05 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616490', 'tblTempUsageDetail_20' ) end [2025-03-05 23:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:26:21] Production.INFO: ==26731== Releasing lock... [2025-03-05 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:26:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-05 23:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:27:04 [end_date_ymd] => 2025-03-05 23:27:04 [RateCDR] => 1 ) [2025-03-05 23: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-03-05 20:27:04' and `end` < '2025-03-05 23: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-03-05 23:27:17] Production.INFO: count ==736 [2025-03-05 23:27:17] Production.ERROR: pbx CDR StartTime 2025-03-05 20:27:04 - End Time 2025-03-05 23:27:04 [2025-03-05 23:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616495', 'tblTempUsageDetail_20' ) start [2025-03-05 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616495', 'tblTempUsageDetail_20' ) end [2025-03-05 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616495', 'tblTempVendorCDR_20' ) start [2025-03-05 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616495', 'tblTempVendorCDR_20' ) end [2025-03-05 23:27:17] Production.INFO: ProcessCDR(1,14616495,1,1,2) [2025-03-05 23:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616495', 'tblTempUsageDetail_20' ) start [2025-03-05 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616495', 'tblTempUsageDetail_20' ) end [2025-03-05 23:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:27:20] Production.INFO: ==26807== Releasing lock... [2025-03-05 23:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:27:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-05 23:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:28:06 [end_date_ymd] => 2025-03-05 23:28:06 [RateCDR] => 1 ) [2025-03-05 23: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-03-05 20:28:06' and `end` < '2025-03-05 23: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-03-05 23:28:18] Production.INFO: count ==739 [2025-03-05 23:28:18] Production.ERROR: pbx CDR StartTime 2025-03-05 20:28:06 - End Time 2025-03-05 23:28:06 [2025-03-05 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616500', 'tblTempUsageDetail_20' ) start [2025-03-05 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616500', 'tblTempUsageDetail_20' ) end [2025-03-05 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616500', 'tblTempVendorCDR_20' ) start [2025-03-05 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616500', 'tblTempVendorCDR_20' ) end [2025-03-05 23:28:18] Production.INFO: ProcessCDR(1,14616500,1,1,2) [2025-03-05 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616500', 'tblTempUsageDetail_20' ) start [2025-03-05 23:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616500', 'tblTempUsageDetail_20' ) end [2025-03-05 23:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:28:23] Production.INFO: ==26878== Releasing lock... [2025-03-05 23:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:28:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-05 23:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:29:04 [end_date_ymd] => 2025-03-05 23:29:04 [RateCDR] => 1 ) [2025-03-05 23: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-03-05 20:29:04' and `end` < '2025-03-05 23: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-03-05 23:29:16] Production.INFO: count ==732 [2025-03-05 23:29:16] Production.ERROR: pbx CDR StartTime 2025-03-05 20:29:04 - End Time 2025-03-05 23:29:04 [2025-03-05 23:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616505', 'tblTempUsageDetail_20' ) start [2025-03-05 23:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616505', 'tblTempUsageDetail_20' ) end [2025-03-05 23:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616505', 'tblTempVendorCDR_20' ) start [2025-03-05 23:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616505', 'tblTempVendorCDR_20' ) end [2025-03-05 23:29:16] Production.INFO: ProcessCDR(1,14616505,1,1,2) [2025-03-05 23:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:29:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:29:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616505', 'tblTempUsageDetail_20' ) start [2025-03-05 23:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616505', 'tblTempUsageDetail_20' ) end [2025-03-05 23:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:29:20] Production.INFO: ==26990== Releasing lock... [2025-03-05 23:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:29:20] Production.INFO: 33 MB #Memory Used# [2025-03-05 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:30:06 [end_date_ymd] => 2025-03-05 23:30:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 20:30:06' and `end` < '2025-03-05 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-03-05 23:30:18] Production.INFO: count ==734 [2025-03-05 23:30:18] Production.ERROR: pbx CDR StartTime 2025-03-05 20:30:06 - End Time 2025-03-05 23:30:06 [2025-03-05 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616510', 'tblTempUsageDetail_20' ) start [2025-03-05 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616510', 'tblTempUsageDetail_20' ) end [2025-03-05 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616510', 'tblTempVendorCDR_20' ) start [2025-03-05 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616510', 'tblTempVendorCDR_20' ) end [2025-03-05 23:30:18] Production.INFO: ProcessCDR(1,14616510,1,1,2) [2025-03-05 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616510', 'tblTempUsageDetail_20' ) start [2025-03-05 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616510', 'tblTempUsageDetail_20' ) end [2025-03-05 23:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:30:21] Production.INFO: ==27064== Releasing lock... [2025-03-05 23:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:30:21] Production.INFO: 33 MB #Memory Used# [2025-03-05 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:31:05 [end_date_ymd] => 2025-03-05 23:31:05 [RateCDR] => 1 ) [2025-03-05 23: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-03-05 20:31:05' and `end` < '2025-03-05 23: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-03-05 23:31:17] Production.INFO: count ==700 [2025-03-05 23:31:17] Production.ERROR: pbx CDR StartTime 2025-03-05 20:31:05 - End Time 2025-03-05 23:31:05 [2025-03-05 23:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616516', 'tblTempUsageDetail_20' ) start [2025-03-05 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616516', 'tblTempUsageDetail_20' ) end [2025-03-05 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616516', 'tblTempVendorCDR_20' ) start [2025-03-05 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616516', 'tblTempVendorCDR_20' ) end [2025-03-05 23:31:17] Production.INFO: ProcessCDR(1,14616516,1,1,2) [2025-03-05 23:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616516', 'tblTempUsageDetail_20' ) start [2025-03-05 23:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616516', 'tblTempUsageDetail_20' ) end [2025-03-05 23:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:31:20] Production.INFO: ==27139== Releasing lock... [2025-03-05 23:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:31:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-05 23:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:32:06 [end_date_ymd] => 2025-03-05 23:32:06 [RateCDR] => 1 ) [2025-03-05 23: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-03-05 20:32:06' and `end` < '2025-03-05 23: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-03-05 23:32:18] Production.INFO: count ==698 [2025-03-05 23:32:18] Production.ERROR: pbx CDR StartTime 2025-03-05 20:32:06 - End Time 2025-03-05 23:32:06 [2025-03-05 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616521', 'tblTempUsageDetail_20' ) start [2025-03-05 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616521', 'tblTempUsageDetail_20' ) end [2025-03-05 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616521', 'tblTempVendorCDR_20' ) start [2025-03-05 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616521', 'tblTempVendorCDR_20' ) end [2025-03-05 23:32:18] Production.INFO: ProcessCDR(1,14616521,1,1,2) [2025-03-05 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616521', 'tblTempUsageDetail_20' ) start [2025-03-05 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616521', 'tblTempUsageDetail_20' ) end [2025-03-05 23:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:32:21] Production.INFO: ==27212== Releasing lock... [2025-03-05 23:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:32:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-05 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:33:05 [end_date_ymd] => 2025-03-05 23:33:05 [RateCDR] => 1 ) [2025-03-05 23: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-03-05 20:33:05' and `end` < '2025-03-05 23: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-03-05 23:33:17] Production.INFO: count ==695 [2025-03-05 23:33:17] Production.ERROR: pbx CDR StartTime 2025-03-05 20:33:05 - End Time 2025-03-05 23:33:05 [2025-03-05 23:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616526', 'tblTempUsageDetail_20' ) start [2025-03-05 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616526', 'tblTempUsageDetail_20' ) end [2025-03-05 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616526', 'tblTempVendorCDR_20' ) start [2025-03-05 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616526', 'tblTempVendorCDR_20' ) end [2025-03-05 23:33:17] Production.INFO: ProcessCDR(1,14616526,1,1,2) [2025-03-05 23:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616526', 'tblTempUsageDetail_20' ) start [2025-03-05 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616526', 'tblTempUsageDetail_20' ) end [2025-03-05 23:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:33:20] Production.INFO: ==27280== Releasing lock... [2025-03-05 23:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:33:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-05 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:34:05 [end_date_ymd] => 2025-03-05 23:34:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 20:34:05' and `end` < '2025-03-05 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-03-05 23:34:17] Production.INFO: count ==694 [2025-03-05 23:34:17] Production.ERROR: pbx CDR StartTime 2025-03-05 20:34:05 - End Time 2025-03-05 23:34:05 [2025-03-05 23:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616531', 'tblTempUsageDetail_20' ) start [2025-03-05 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616531', 'tblTempUsageDetail_20' ) end [2025-03-05 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616531', 'tblTempVendorCDR_20' ) start [2025-03-05 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616531', 'tblTempVendorCDR_20' ) end [2025-03-05 23:34:17] Production.INFO: ProcessCDR(1,14616531,1,1,2) [2025-03-05 23:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616531', 'tblTempUsageDetail_20' ) start [2025-03-05 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616531', 'tblTempUsageDetail_20' ) end [2025-03-05 23:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:34:21] Production.INFO: ==27351== Releasing lock... [2025-03-05 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:34:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-05 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:35:05 [end_date_ymd] => 2025-03-05 23:35:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 20:35:05' and `end` < '2025-03-05 23: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-03-05 23:35:17] Production.INFO: count ==693 [2025-03-05 23:35:17] Production.ERROR: pbx CDR StartTime 2025-03-05 20:35:05 - End Time 2025-03-05 23:35:05 [2025-03-05 23:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616536', 'tblTempUsageDetail_20' ) start [2025-03-05 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616536', 'tblTempUsageDetail_20' ) end [2025-03-05 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616536', 'tblTempVendorCDR_20' ) start [2025-03-05 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616536', 'tblTempVendorCDR_20' ) end [2025-03-05 23:35:17] Production.INFO: ProcessCDR(1,14616536,1,1,2) [2025-03-05 23:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616536', 'tblTempUsageDetail_20' ) start [2025-03-05 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616536', 'tblTempUsageDetail_20' ) end [2025-03-05 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:35:21] Production.INFO: ==27428== Releasing lock... [2025-03-05 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:35:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-05 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:36:05 [end_date_ymd] => 2025-03-05 23:36:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 20:36:05' and `end` < '2025-03-05 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-03-05 23:36:17] Production.INFO: count ==697 [2025-03-05 23:36:17] Production.ERROR: pbx CDR StartTime 2025-03-05 20:36:05 - End Time 2025-03-05 23:36:05 [2025-03-05 23:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616541', 'tblTempUsageDetail_20' ) start [2025-03-05 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616541', 'tblTempUsageDetail_20' ) end [2025-03-05 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616541', 'tblTempVendorCDR_20' ) start [2025-03-05 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616541', 'tblTempVendorCDR_20' ) end [2025-03-05 23:36:17] Production.INFO: ProcessCDR(1,14616541,1,1,2) [2025-03-05 23:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616541', 'tblTempUsageDetail_20' ) start [2025-03-05 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616541', 'tblTempUsageDetail_20' ) end [2025-03-05 23:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:36:21] Production.INFO: ==27498== Releasing lock... [2025-03-05 23:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:36:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-05 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:37:05 [end_date_ymd] => 2025-03-05 23:37:05 [RateCDR] => 1 ) [2025-03-05 23: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-03-05 20:37:05' and `end` < '2025-03-05 23: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-03-05 23:37:17] Production.INFO: count ==694 [2025-03-05 23:37:17] Production.ERROR: pbx CDR StartTime 2025-03-05 20:37:05 - End Time 2025-03-05 23:37:05 [2025-03-05 23:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616546', 'tblTempUsageDetail_20' ) start [2025-03-05 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616546', 'tblTempUsageDetail_20' ) end [2025-03-05 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616546', 'tblTempVendorCDR_20' ) start [2025-03-05 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616546', 'tblTempVendorCDR_20' ) end [2025-03-05 23:37:17] Production.INFO: ProcessCDR(1,14616546,1,1,2) [2025-03-05 23:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616546', 'tblTempUsageDetail_20' ) start [2025-03-05 23:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616546', 'tblTempUsageDetail_20' ) end [2025-03-05 23:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:37:20] Production.INFO: ==27570== Releasing lock... [2025-03-05 23:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:37:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-05 23:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:38:06 [end_date_ymd] => 2025-03-05 23:38:06 [RateCDR] => 1 ) [2025-03-05 23:38: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-03-05 20:38:06' and `end` < '2025-03-05 23:38: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-03-05 23:38:18] Production.INFO: count ==693 [2025-03-05 23:38:18] Production.ERROR: pbx CDR StartTime 2025-03-05 20:38:06 - End Time 2025-03-05 23:38:06 [2025-03-05 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616551', 'tblTempUsageDetail_20' ) start [2025-03-05 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616551', 'tblTempUsageDetail_20' ) end [2025-03-05 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616551', 'tblTempVendorCDR_20' ) start [2025-03-05 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616551', 'tblTempVendorCDR_20' ) end [2025-03-05 23:38:18] Production.INFO: ProcessCDR(1,14616551,1,1,2) [2025-03-05 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616551', 'tblTempUsageDetail_20' ) start [2025-03-05 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616551', 'tblTempUsageDetail_20' ) end [2025-03-05 23:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:38:21] Production.INFO: ==27649== Releasing lock... [2025-03-05 23:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:38:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-05 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:39:05 [end_date_ymd] => 2025-03-05 23:39:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 20:39:05' and `end` < '2025-03-05 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-03-05 23:39:17] Production.INFO: count ==690 [2025-03-05 23:39:17] Production.ERROR: pbx CDR StartTime 2025-03-05 20:39:05 - End Time 2025-03-05 23:39:05 [2025-03-05 23:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616556', 'tblTempUsageDetail_20' ) start [2025-03-05 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616556', 'tblTempUsageDetail_20' ) end [2025-03-05 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616556', 'tblTempVendorCDR_20' ) start [2025-03-05 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616556', 'tblTempVendorCDR_20' ) end [2025-03-05 23:39:17] Production.INFO: ProcessCDR(1,14616556,1,1,2) [2025-03-05 23:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616556', 'tblTempUsageDetail_20' ) start [2025-03-05 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616556', 'tblTempUsageDetail_20' ) end [2025-03-05 23:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:39:20] Production.INFO: ==27722== Releasing lock... [2025-03-05 23:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:39:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-05 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:40:06 [end_date_ymd] => 2025-03-05 23:40:06 [RateCDR] => 1 ) [2025-03-05 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-03-05 20:40:06' and `end` < '2025-03-05 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-03-05 23:40:18] Production.INFO: count ==692 [2025-03-05 23:40:18] Production.ERROR: pbx CDR StartTime 2025-03-05 20:40:06 - End Time 2025-03-05 23:40:06 [2025-03-05 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616561', 'tblTempUsageDetail_20' ) start [2025-03-05 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616561', 'tblTempUsageDetail_20' ) end [2025-03-05 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616561', 'tblTempVendorCDR_20' ) start [2025-03-05 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616561', 'tblTempVendorCDR_20' ) end [2025-03-05 23:40:18] Production.INFO: ProcessCDR(1,14616561,1,1,2) [2025-03-05 23:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616561', 'tblTempUsageDetail_20' ) start [2025-03-05 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616561', 'tblTempUsageDetail_20' ) end [2025-03-05 23:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:40:23] Production.INFO: ==27795== Releasing lock... [2025-03-05 23:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:40:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-05 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:41:05 [end_date_ymd] => 2025-03-05 23:41:05 [RateCDR] => 1 ) [2025-03-05 23: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-03-05 20:41:05' and `end` < '2025-03-05 23: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-03-05 23:41:17] Production.INFO: count ==700 [2025-03-05 23:41:17] Production.ERROR: pbx CDR StartTime 2025-03-05 20:41:05 - End Time 2025-03-05 23:41:05 [2025-03-05 23:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616567', 'tblTempUsageDetail_20' ) start [2025-03-05 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616567', 'tblTempUsageDetail_20' ) end [2025-03-05 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616567', 'tblTempVendorCDR_20' ) start [2025-03-05 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616567', 'tblTempVendorCDR_20' ) end [2025-03-05 23:41:17] Production.INFO: ProcessCDR(1,14616567,1,1,2) [2025-03-05 23:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616567', 'tblTempUsageDetail_20' ) start [2025-03-05 23:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616567', 'tblTempUsageDetail_20' ) end [2025-03-05 23:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:41:20] Production.INFO: ==27871== Releasing lock... [2025-03-05 23:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:41:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-05 23:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:42:06 [end_date_ymd] => 2025-03-05 23:42:06 [RateCDR] => 1 ) [2025-03-05 23: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-03-05 20:42:06' and `end` < '2025-03-05 23: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-03-05 23:42:18] Production.INFO: count ==700 [2025-03-05 23:42:18] Production.ERROR: pbx CDR StartTime 2025-03-05 20:42:06 - End Time 2025-03-05 23:42:06 [2025-03-05 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616572', 'tblTempUsageDetail_20' ) start [2025-03-05 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616572', 'tblTempUsageDetail_20' ) end [2025-03-05 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616572', 'tblTempVendorCDR_20' ) start [2025-03-05 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616572', 'tblTempVendorCDR_20' ) end [2025-03-05 23:42:18] Production.INFO: ProcessCDR(1,14616572,1,1,2) [2025-03-05 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616572', 'tblTempUsageDetail_20' ) start [2025-03-05 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616572', 'tblTempUsageDetail_20' ) end [2025-03-05 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:42:21] Production.INFO: ==27944== Releasing lock... [2025-03-05 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:42:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-05 23:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:43:04 [end_date_ymd] => 2025-03-05 23:43:04 [RateCDR] => 1 ) [2025-03-05 23: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-03-05 20:43:04' and `end` < '2025-03-05 23: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-03-05 23:43:17] Production.INFO: count ==700 [2025-03-05 23:43:17] Production.ERROR: pbx CDR StartTime 2025-03-05 20:43:04 - End Time 2025-03-05 23:43:04 [2025-03-05 23:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616577', 'tblTempUsageDetail_20' ) start [2025-03-05 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616577', 'tblTempUsageDetail_20' ) end [2025-03-05 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616577', 'tblTempVendorCDR_20' ) start [2025-03-05 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616577', 'tblTempVendorCDR_20' ) end [2025-03-05 23:43:17] Production.INFO: ProcessCDR(1,14616577,1,1,2) [2025-03-05 23:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616577', 'tblTempUsageDetail_20' ) start [2025-03-05 23:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616577', 'tblTempUsageDetail_20' ) end [2025-03-05 23:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:43:20] Production.INFO: ==28017== Releasing lock... [2025-03-05 23:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:43:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-05 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:44:05 [end_date_ymd] => 2025-03-05 23:44:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 20:44:05' and `end` < '2025-03-05 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-03-05 23:44:17] Production.INFO: count ==701 [2025-03-05 23:44:17] Production.ERROR: pbx CDR StartTime 2025-03-05 20:44:05 - End Time 2025-03-05 23:44:05 [2025-03-05 23:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616582', 'tblTempUsageDetail_20' ) start [2025-03-05 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616582', 'tblTempUsageDetail_20' ) end [2025-03-05 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616582', 'tblTempVendorCDR_20' ) start [2025-03-05 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616582', 'tblTempVendorCDR_20' ) end [2025-03-05 23:44:17] Production.INFO: ProcessCDR(1,14616582,1,1,2) [2025-03-05 23:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616582', 'tblTempUsageDetail_20' ) start [2025-03-05 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616582', 'tblTempUsageDetail_20' ) end [2025-03-05 23:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:44:22] Production.INFO: ==28096== Releasing lock... [2025-03-05 23:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:44:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-05 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:45:05 [end_date_ymd] => 2025-03-05 23:45:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 20:45:05' and `end` < '2025-03-05 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-03-05 23:45:18] Production.INFO: count ==701 [2025-03-05 23:45:18] Production.ERROR: pbx CDR StartTime 2025-03-05 20:45:05 - End Time 2025-03-05 23:45:05 [2025-03-05 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616587', 'tblTempUsageDetail_20' ) start [2025-03-05 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616587', 'tblTempUsageDetail_20' ) end [2025-03-05 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616587', 'tblTempVendorCDR_20' ) start [2025-03-05 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616587', 'tblTempVendorCDR_20' ) end [2025-03-05 23:45:18] Production.INFO: ProcessCDR(1,14616587,1,1,2) [2025-03-05 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616587', 'tblTempUsageDetail_20' ) start [2025-03-05 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616587', 'tblTempUsageDetail_20' ) end [2025-03-05 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:45:21] Production.INFO: ==28208== Releasing lock... [2025-03-05 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:45:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-05 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:46:05 [end_date_ymd] => 2025-03-05 23:46:05 [RateCDR] => 1 ) [2025-03-05 23: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-03-05 20:46:05' and `end` < '2025-03-05 23: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-03-05 23:46:17] Production.INFO: count ==700 [2025-03-05 23:46:17] Production.ERROR: pbx CDR StartTime 2025-03-05 20:46:05 - End Time 2025-03-05 23:46:05 [2025-03-05 23:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616592', 'tblTempUsageDetail_20' ) start [2025-03-05 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616592', 'tblTempUsageDetail_20' ) end [2025-03-05 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616592', 'tblTempVendorCDR_20' ) start [2025-03-05 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616592', 'tblTempVendorCDR_20' ) end [2025-03-05 23:46:17] Production.INFO: ProcessCDR(1,14616592,1,1,2) [2025-03-05 23:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616592', 'tblTempUsageDetail_20' ) start [2025-03-05 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616592', 'tblTempUsageDetail_20' ) end [2025-03-05 23:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:46:21] Production.INFO: ==28281== Releasing lock... [2025-03-05 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:46:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-05 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:47:05 [end_date_ymd] => 2025-03-05 23:47:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 20:47:05' and `end` < '2025-03-05 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-03-05 23:47:17] Production.INFO: count ==698 [2025-03-05 23:47:18] Production.ERROR: pbx CDR StartTime 2025-03-05 20:47:05 - End Time 2025-03-05 23:47:05 [2025-03-05 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616597', 'tblTempUsageDetail_20' ) start [2025-03-05 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616597', 'tblTempUsageDetail_20' ) end [2025-03-05 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616597', 'tblTempVendorCDR_20' ) start [2025-03-05 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616597', 'tblTempVendorCDR_20' ) end [2025-03-05 23:47:18] Production.INFO: ProcessCDR(1,14616597,1,1,2) [2025-03-05 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616597', 'tblTempUsageDetail_20' ) start [2025-03-05 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616597', 'tblTempUsageDetail_20' ) end [2025-03-05 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:47:21] Production.INFO: ==28354== Releasing lock... [2025-03-05 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:47:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-05 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:48:05 [end_date_ymd] => 2025-03-05 23:48:05 [RateCDR] => 1 ) [2025-03-05 23: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-03-05 20:48:05' and `end` < '2025-03-05 23: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-03-05 23:48:17] Production.INFO: count ==697 [2025-03-05 23:48:17] Production.ERROR: pbx CDR StartTime 2025-03-05 20:48:05 - End Time 2025-03-05 23:48:05 [2025-03-05 23:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616602', 'tblTempUsageDetail_20' ) start [2025-03-05 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616602', 'tblTempUsageDetail_20' ) end [2025-03-05 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616602', 'tblTempVendorCDR_20' ) start [2025-03-05 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616602', 'tblTempVendorCDR_20' ) end [2025-03-05 23:48:17] Production.INFO: ProcessCDR(1,14616602,1,1,2) [2025-03-05 23:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616602', 'tblTempUsageDetail_20' ) start [2025-03-05 23:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616602', 'tblTempUsageDetail_20' ) end [2025-03-05 23:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:48:20] Production.INFO: ==28425== Releasing lock... [2025-03-05 23:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:48:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-05 23:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:49:06 [end_date_ymd] => 2025-03-05 23:49:06 [RateCDR] => 1 ) [2025-03-05 23:49: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-03-05 20:49:06' and `end` < '2025-03-05 23:49: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-03-05 23:49:18] Production.INFO: count ==696 [2025-03-05 23:49:18] Production.ERROR: pbx CDR StartTime 2025-03-05 20:49:06 - End Time 2025-03-05 23:49:06 [2025-03-05 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616607', 'tblTempUsageDetail_20' ) start [2025-03-05 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616607', 'tblTempUsageDetail_20' ) end [2025-03-05 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616607', 'tblTempVendorCDR_20' ) start [2025-03-05 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616607', 'tblTempVendorCDR_20' ) end [2025-03-05 23:49:18] Production.INFO: ProcessCDR(1,14616607,1,1,2) [2025-03-05 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616607', 'tblTempUsageDetail_20' ) start [2025-03-05 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616607', 'tblTempUsageDetail_20' ) end [2025-03-05 23:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:49:21] Production.INFO: ==28502== Releasing lock... [2025-03-05 23:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:49:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-05 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:50:05 [end_date_ymd] => 2025-03-05 23:50:05 [RateCDR] => 1 ) [2025-03-05 23: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-03-05 20:50:05' and `end` < '2025-03-05 23: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-03-05 23:50:17] Production.INFO: count ==695 [2025-03-05 23:50:18] Production.ERROR: pbx CDR StartTime 2025-03-05 20:50:05 - End Time 2025-03-05 23:50:05 [2025-03-05 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616612', 'tblTempUsageDetail_20' ) start [2025-03-05 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616612', 'tblTempUsageDetail_20' ) end [2025-03-05 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616612', 'tblTempVendorCDR_20' ) start [2025-03-05 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616612', 'tblTempVendorCDR_20' ) end [2025-03-05 23:50:18] Production.INFO: ProcessCDR(1,14616612,1,1,2) [2025-03-05 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616612', 'tblTempUsageDetail_20' ) start [2025-03-05 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616612', 'tblTempUsageDetail_20' ) end [2025-03-05 23:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:50:21] Production.INFO: ==28577== Releasing lock... [2025-03-05 23:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:50:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-05 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:51:05 [end_date_ymd] => 2025-03-05 23:51:05 [RateCDR] => 1 ) [2025-03-05 23: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-03-05 20:51:05' and `end` < '2025-03-05 23: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-03-05 23:51:18] Production.INFO: count ==692 [2025-03-05 23:51:18] Production.ERROR: pbx CDR StartTime 2025-03-05 20:51:05 - End Time 2025-03-05 23:51:05 [2025-03-05 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616618', 'tblTempUsageDetail_20' ) start [2025-03-05 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616618', 'tblTempUsageDetail_20' ) end [2025-03-05 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616618', 'tblTempVendorCDR_20' ) start [2025-03-05 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616618', 'tblTempVendorCDR_20' ) end [2025-03-05 23:51:18] Production.INFO: ProcessCDR(1,14616618,1,1,2) [2025-03-05 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616618', 'tblTempUsageDetail_20' ) start [2025-03-05 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616618', 'tblTempUsageDetail_20' ) end [2025-03-05 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:51:21] Production.INFO: ==28655== Releasing lock... [2025-03-05 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:51:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-05 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:52:05 [end_date_ymd] => 2025-03-05 23:52:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 20:52:05' and `end` < '2025-03-05 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-03-05 23:52:17] Production.INFO: count ==692 [2025-03-05 23:52:17] Production.ERROR: pbx CDR StartTime 2025-03-05 20:52:05 - End Time 2025-03-05 23:52:05 [2025-03-05 23:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616623', 'tblTempUsageDetail_20' ) start [2025-03-05 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616623', 'tblTempUsageDetail_20' ) end [2025-03-05 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616623', 'tblTempVendorCDR_20' ) start [2025-03-05 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616623', 'tblTempVendorCDR_20' ) end [2025-03-05 23:52:17] Production.INFO: ProcessCDR(1,14616623,1,1,2) [2025-03-05 23:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616623', 'tblTempUsageDetail_20' ) start [2025-03-05 23:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616623', 'tblTempUsageDetail_20' ) end [2025-03-05 23:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:52:20] Production.INFO: ==28728== Releasing lock... [2025-03-05 23:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:52:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-05 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:53:05 [end_date_ymd] => 2025-03-05 23:53:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 20:53:05' and `end` < '2025-03-05 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-03-05 23:53:17] Production.INFO: count ==692 [2025-03-05 23:53:17] Production.ERROR: pbx CDR StartTime 2025-03-05 20:53:05 - End Time 2025-03-05 23:53:05 [2025-03-05 23:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616628', 'tblTempUsageDetail_20' ) start [2025-03-05 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616628', 'tblTempUsageDetail_20' ) end [2025-03-05 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616628', 'tblTempVendorCDR_20' ) start [2025-03-05 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616628', 'tblTempVendorCDR_20' ) end [2025-03-05 23:53:17] Production.INFO: ProcessCDR(1,14616628,1,1,2) [2025-03-05 23:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616628', 'tblTempUsageDetail_20' ) start [2025-03-05 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616628', 'tblTempUsageDetail_20' ) end [2025-03-05 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:53:21] Production.INFO: ==28801== Releasing lock... [2025-03-05 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:53:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-05 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:54:05 [end_date_ymd] => 2025-03-05 23:54:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 20:54:05' and `end` < '2025-03-05 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-03-05 23:54:17] Production.INFO: count ==692 [2025-03-05 23:54:17] Production.ERROR: pbx CDR StartTime 2025-03-05 20:54:05 - End Time 2025-03-05 23:54:05 [2025-03-05 23:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616633', 'tblTempUsageDetail_20' ) start [2025-03-05 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616633', 'tblTempUsageDetail_20' ) end [2025-03-05 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616633', 'tblTempVendorCDR_20' ) start [2025-03-05 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616633', 'tblTempVendorCDR_20' ) end [2025-03-05 23:54:17] Production.INFO: ProcessCDR(1,14616633,1,1,2) [2025-03-05 23:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616633', 'tblTempUsageDetail_20' ) start [2025-03-05 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616633', 'tblTempUsageDetail_20' ) end [2025-03-05 23:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:54:20] Production.INFO: ==28872== Releasing lock... [2025-03-05 23:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:54:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-05 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:55:05 [end_date_ymd] => 2025-03-05 23:55:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 20:55:05' and `end` < '2025-03-05 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-03-05 23:55:17] Production.INFO: count ==695 [2025-03-05 23:55:17] Production.ERROR: pbx CDR StartTime 2025-03-05 20:55:05 - End Time 2025-03-05 23:55:05 [2025-03-05 23:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616638', 'tblTempUsageDetail_20' ) start [2025-03-05 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616638', 'tblTempUsageDetail_20' ) end [2025-03-05 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616638', 'tblTempVendorCDR_20' ) start [2025-03-05 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616638', 'tblTempVendorCDR_20' ) end [2025-03-05 23:55:17] Production.INFO: ProcessCDR(1,14616638,1,1,2) [2025-03-05 23:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616638', 'tblTempUsageDetail_20' ) start [2025-03-05 23:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616638', 'tblTempUsageDetail_20' ) end [2025-03-05 23:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:55:20] Production.INFO: ==28941== Releasing lock... [2025-03-05 23:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:55:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-05 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:56:05 [end_date_ymd] => 2025-03-05 23:56:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 20:56:05' and `end` < '2025-03-05 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-03-05 23:56:17] Production.INFO: count ==695 [2025-03-05 23:56:17] Production.ERROR: pbx CDR StartTime 2025-03-05 20:56:05 - End Time 2025-03-05 23:56:05 [2025-03-05 23:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616643', 'tblTempUsageDetail_20' ) start [2025-03-05 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616643', 'tblTempUsageDetail_20' ) end [2025-03-05 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616643', 'tblTempVendorCDR_20' ) start [2025-03-05 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616643', 'tblTempVendorCDR_20' ) end [2025-03-05 23:56:17] Production.INFO: ProcessCDR(1,14616643,1,1,2) [2025-03-05 23:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616643', 'tblTempUsageDetail_20' ) start [2025-03-05 23:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616643', 'tblTempUsageDetail_20' ) end [2025-03-05 23:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:56:20] Production.INFO: ==29016== Releasing lock... [2025-03-05 23:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:56:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-05 23:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:57:05 [end_date_ymd] => 2025-03-05 23:57:05 [RateCDR] => 1 ) [2025-03-05 23:57: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-03-05 20:57:05' and `end` < '2025-03-05 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-03-05 23:57:18] Production.INFO: count ==698 [2025-03-05 23:57:18] Production.ERROR: pbx CDR StartTime 2025-03-05 20:57:05 - End Time 2025-03-05 23:57:05 [2025-03-05 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616648', 'tblTempUsageDetail_20' ) start [2025-03-05 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616648', 'tblTempUsageDetail_20' ) end [2025-03-05 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616648', 'tblTempVendorCDR_20' ) start [2025-03-05 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616648', 'tblTempVendorCDR_20' ) end [2025-03-05 23:57:18] Production.INFO: ProcessCDR(1,14616648,1,1,2) [2025-03-05 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616648', 'tblTempUsageDetail_20' ) start [2025-03-05 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616648', 'tblTempUsageDetail_20' ) end [2025-03-05 23:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:57:21] Production.INFO: ==29089== Releasing lock... [2025-03-05 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:57:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-05 23:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:58:06 [end_date_ymd] => 2025-03-05 23:58:06 [RateCDR] => 1 ) [2025-03-05 23: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-03-05 20:58:06' and `end` < '2025-03-05 23: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-03-05 23:58:18] Production.INFO: count ==695 [2025-03-05 23:58:18] Production.ERROR: pbx CDR StartTime 2025-03-05 20:58:06 - End Time 2025-03-05 23:58:06 [2025-03-05 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616653', 'tblTempUsageDetail_20' ) start [2025-03-05 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616653', 'tblTempUsageDetail_20' ) end [2025-03-05 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616653', 'tblTempVendorCDR_20' ) start [2025-03-05 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616653', 'tblTempVendorCDR_20' ) end [2025-03-05 23:58:18] Production.INFO: ProcessCDR(1,14616653,1,1,2) [2025-03-05 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616653', 'tblTempUsageDetail_20' ) start [2025-03-05 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616653', 'tblTempUsageDetail_20' ) end [2025-03-05 23:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:58:21] Production.INFO: ==29163== Releasing lock... [2025-03-05 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:58:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-05 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 20:59:05 [end_date_ymd] => 2025-03-05 23:59:05 [RateCDR] => 1 ) [2025-03-05 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-03-05 20:59:05' and `end` < '2025-03-05 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-03-05 23:59:17] Production.INFO: count ==694 [2025-03-05 23:59:17] Production.ERROR: pbx CDR StartTime 2025-03-05 20:59:05 - End Time 2025-03-05 23:59:05 [2025-03-05 23:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-05 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616658', 'tblTempUsageDetail_20' ) start [2025-03-05 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616658', 'tblTempUsageDetail_20' ) end [2025-03-05 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616658', 'tblTempVendorCDR_20' ) start [2025-03-05 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616658', 'tblTempVendorCDR_20' ) end [2025-03-05 23:59:17] Production.INFO: ProcessCDR(1,14616658,1,1,2) [2025-03-05 23:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-05 23:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-05 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616658', 'tblTempUsageDetail_20' ) start [2025-03-05 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616658', 'tblTempUsageDetail_20' ) end [2025-03-05 23:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-05 23:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-05 23:59:20] Production.INFO: ==29237== Releasing lock... [2025-03-05 23:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-05 23:59:20] Production.INFO: 32.5 MB #Memory Used#