[2025-03-04 00:00:05] Production.INFO: next invoice date [2025-03-04 00:00:05] Production.INFO: 2025-04-04 [2025-03-04 00:00:05] Production.INFO: getdaysdiff [2025-03-04 00:00:05] Production.INFO: +31 [2025-03-04 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (209,16,1,31,31,'RMScheduler',2025-03-04 00:00:05,0,0,,,0) [2025-03-04 00:00:05] Production.INFO: next invoice date [2025-03-04 00:00:05] Production.INFO: 2025-04-04 [2025-03-04 00:00:05] Production.INFO: getdaysdiff [2025-03-04 00:00:05] Production.INFO: +31 [2025-03-04 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (209,13,2,31,31,'RMScheduler',2025-03-04 00:00:05,0,0,,,0) [2025-03-04 00:00:05] Production.INFO: next invoice date [2025-03-04 00:00:05] Production.INFO: 2025-04-04 [2025-03-04 00:00:05] Production.INFO: getdaysdiff [2025-03-04 00:00:05] Production.INFO: +31 [2025-03-04 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (213,11,1,31,31,'RMScheduler',2025-03-04 00:00:05,0,0,,,0) [2025-03-04 00:00:05] Production.INFO: next invoice date [2025-03-04 00:00:05] Production.INFO: 2025-04-04 [2025-03-04 00:00:05] Production.INFO: getdaysdiff [2025-03-04 00:00:05] Production.INFO: +31 [2025-03-04 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (213,13,2,31,31,'RMScheduler',2025-03-04 00:00:05,0,0,,,0) [2025-03-04 00:00:05] Production.INFO: next invoice date [2025-03-04 00:00:05] Production.INFO: 2025-04-04 [2025-03-04 00:00:05] Production.INFO: getdaysdiff [2025-03-04 00:00:05] Production.INFO: +31 [2025-03-04 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (213,16,1,31,31,'RMScheduler',2025-03-04 00:00:05,1,0,,,0) [2025-03-04 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:00:07 [end_date_ymd] => 2025-03-04 00:00:07 [RateCDR] => 1 ) [2025-03-04 00: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-03 21:00:07' and `end` < '2025-03-04 00: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-04 00:00:19] Production.INFO: count ==582 [2025-03-04 00:00:19] Production.ERROR: pbx CDR StartTime 2025-03-03 21:00:07 - End Time 2025-03-04 00:00:07 [2025-03-04 00:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14601987', 'tblTempUsageDetail_20' ) start [2025-03-04 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14601987', 'tblTempUsageDetail_20' ) end [2025-03-04 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14601987', 'tblTempVendorCDR_20' ) start [2025-03-04 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14601987', 'tblTempVendorCDR_20' ) end [2025-03-04 00:00:19] Production.INFO: ProcessCDR(1,14601987,1,1,2) [2025-03-04 00:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14601987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14601987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14601987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14601987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14601987', 'tblTempUsageDetail_20' ) start [2025-03-04 00:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14601987', 'tblTempUsageDetail_20' ) end [2025-03-04 00:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:00:27] Production.INFO: ==11505== Releasing lock... [2025-03-04 00:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:00:27] Production.INFO: 34.25 MB #Memory Used# [2025-03-04 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:01:05 [end_date_ymd] => 2025-03-04 00:01:05 [RateCDR] => 1 ) [2025-03-04 00:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 21:01:05' and `end` < '2025-03-04 00:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 00:01:17] Production.INFO: count ==590 [2025-03-04 00:01:18] Production.ERROR: pbx CDR StartTime 2025-03-03 21:01:05 - End Time 2025-03-04 00:01:05 [2025-03-04 00:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14601992', 'tblTempUsageDetail_20' ) start [2025-03-04 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14601992', 'tblTempUsageDetail_20' ) end [2025-03-04 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14601992', 'tblTempVendorCDR_20' ) start [2025-03-04 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14601992', 'tblTempVendorCDR_20' ) end [2025-03-04 00:01:18] Production.INFO: ProcessCDR(1,14601992,1,1,2) [2025-03-04 00:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14601992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14601992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14601992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14601992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14601992', 'tblTempUsageDetail_20' ) start [2025-03-04 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14601992', 'tblTempUsageDetail_20' ) end [2025-03-04 00:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:01:21] Production.INFO: ==11598== Releasing lock... [2025-03-04 00:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:01:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-04 00:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:02:04 [end_date_ymd] => 2025-03-04 00:02:04 [RateCDR] => 1 ) [2025-03-04 00: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-03 21:02:04' and `end` < '2025-03-04 00: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-04 00:02:17] Production.INFO: count ==173 [2025-03-04 00:02:17] Production.ERROR: pbx CDR StartTime 2025-03-03 21:02:04 - End Time 2025-03-04 00:02:04 [2025-03-04 00:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14601997', 'tblTempUsageDetail_20' ) start [2025-03-04 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14601997', 'tblTempUsageDetail_20' ) end [2025-03-04 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14601997', 'tblTempVendorCDR_20' ) start [2025-03-04 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14601997', 'tblTempVendorCDR_20' ) end [2025-03-04 00:02:17] Production.INFO: ProcessCDR(1,14601997,1,1,2) [2025-03-04 00:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14601997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14601997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14601997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14601997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14601997', 'tblTempUsageDetail_20' ) start [2025-03-04 00:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14601997', 'tblTempUsageDetail_20' ) end [2025-03-04 00:02:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:02:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:02:20] Production.INFO: ==11713== Releasing lock... [2025-03-04 00:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:02:20] Production.INFO: 30 MB #Memory Used# [2025-03-04 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:03:05 [end_date_ymd] => 2025-03-04 00:03:05 [RateCDR] => 1 ) [2025-03-04 00:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 21:03:05' and `end` < '2025-03-04 00:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 00:03:17] Production.INFO: count ==175 [2025-03-04 00:03:17] Production.ERROR: pbx CDR StartTime 2025-03-03 21:03:05 - End Time 2025-03-04 00:03:05 [2025-03-04 00:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602002', 'tblTempUsageDetail_20' ) start [2025-03-04 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602002', 'tblTempUsageDetail_20' ) end [2025-03-04 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602002', 'tblTempVendorCDR_20' ) start [2025-03-04 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602002', 'tblTempVendorCDR_20' ) end [2025-03-04 00:03:17] Production.INFO: ProcessCDR(1,14602002,1,1,2) [2025-03-04 00:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602002', 'tblTempUsageDetail_20' ) start [2025-03-04 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602002', 'tblTempUsageDetail_20' ) end [2025-03-04 00:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:03:22] Production.INFO: ==11787== Releasing lock... [2025-03-04 00:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:03:22] Production.INFO: 30 MB #Memory Used# [2025-03-04 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:04:05 [end_date_ymd] => 2025-03-04 00:04:05 [RateCDR] => 1 ) [2025-03-04 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-03 21:04:05' and `end` < '2025-03-04 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-04 00:04:17] Production.INFO: count ==175 [2025-03-04 00:04:17] Production.ERROR: pbx CDR StartTime 2025-03-03 21:04:05 - End Time 2025-03-04 00:04:05 [2025-03-04 00:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602007', 'tblTempUsageDetail_20' ) start [2025-03-04 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602007', 'tblTempUsageDetail_20' ) end [2025-03-04 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602007', 'tblTempVendorCDR_20' ) start [2025-03-04 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602007', 'tblTempVendorCDR_20' ) end [2025-03-04 00:04:17] Production.INFO: ProcessCDR(1,14602007,1,1,2) [2025-03-04 00:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602007', 'tblTempUsageDetail_20' ) start [2025-03-04 00:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602007', 'tblTempUsageDetail_20' ) end [2025-03-04 00:04:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:04:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:04:20] Production.INFO: ==11862== Releasing lock... [2025-03-04 00:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:04:20] Production.INFO: 30 MB #Memory Used# [2025-03-04 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:05:05 [end_date_ymd] => 2025-03-04 00:05:05 [RateCDR] => 1 ) [2025-03-04 00: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-03 21:05:05' and `end` < '2025-03-04 00: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-04 00:05:17] Production.INFO: count ==179 [2025-03-04 00:05:17] Production.ERROR: pbx CDR StartTime 2025-03-03 21:05:05 - End Time 2025-03-04 00:05:05 [2025-03-04 00:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602012', 'tblTempUsageDetail_20' ) start [2025-03-04 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602012', 'tblTempUsageDetail_20' ) end [2025-03-04 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602012', 'tblTempVendorCDR_20' ) start [2025-03-04 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602012', 'tblTempVendorCDR_20' ) end [2025-03-04 00:05:17] Production.INFO: ProcessCDR(1,14602012,1,1,2) [2025-03-04 00:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602012', 'tblTempUsageDetail_20' ) start [2025-03-04 00:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602012', 'tblTempUsageDetail_20' ) end [2025-03-04 00:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:05:21] Production.INFO: ==11935== Releasing lock... [2025-03-04 00:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:05:21] Production.INFO: 30 MB #Memory Used# [2025-03-04 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:06:05 [end_date_ymd] => 2025-03-04 00:06:05 [RateCDR] => 1 ) [2025-03-04 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-03 21:06:05' and `end` < '2025-03-04 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-04 00:06:17] Production.INFO: count ==177 [2025-03-04 00:06:17] Production.ERROR: pbx CDR StartTime 2025-03-03 21:06:05 - End Time 2025-03-04 00:06:05 [2025-03-04 00:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602017', 'tblTempUsageDetail_20' ) start [2025-03-04 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602017', 'tblTempUsageDetail_20' ) end [2025-03-04 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602017', 'tblTempVendorCDR_20' ) start [2025-03-04 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602017', 'tblTempVendorCDR_20' ) end [2025-03-04 00:06:17] Production.INFO: ProcessCDR(1,14602017,1,1,2) [2025-03-04 00:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602017', 'tblTempUsageDetail_20' ) start [2025-03-04 00:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602017', 'tblTempUsageDetail_20' ) end [2025-03-04 00:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:06:20] Production.INFO: ==12016== Releasing lock... [2025-03-04 00:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:06:20] Production.INFO: 30 MB #Memory Used# [2025-03-04 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:07:05 [end_date_ymd] => 2025-03-04 00:07:05 [RateCDR] => 1 ) [2025-03-04 00: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-03 21:07:05' and `end` < '2025-03-04 00: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-04 00:07:17] Production.INFO: count ==173 [2025-03-04 00:07:17] Production.ERROR: pbx CDR StartTime 2025-03-03 21:07:05 - End Time 2025-03-04 00:07:05 [2025-03-04 00:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602022', 'tblTempUsageDetail_20' ) start [2025-03-04 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602022', 'tblTempUsageDetail_20' ) end [2025-03-04 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602022', 'tblTempVendorCDR_20' ) start [2025-03-04 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602022', 'tblTempVendorCDR_20' ) end [2025-03-04 00:07:17] Production.INFO: ProcessCDR(1,14602022,1,1,2) [2025-03-04 00:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602022', 'tblTempUsageDetail_20' ) start [2025-03-04 00:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602022', 'tblTempUsageDetail_20' ) end [2025-03-04 00:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:07:20] Production.INFO: ==12086== Releasing lock... [2025-03-04 00:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:07:20] Production.INFO: 30 MB #Memory Used# [2025-03-04 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:08:05 [end_date_ymd] => 2025-03-04 00:08:05 [RateCDR] => 1 ) [2025-03-04 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-03 21:08:05' and `end` < '2025-03-04 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-04 00:08:17] Production.INFO: count ==175 [2025-03-04 00:08:18] Production.ERROR: pbx CDR StartTime 2025-03-03 21:08:05 - End Time 2025-03-04 00:08:05 [2025-03-04 00:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602027', 'tblTempUsageDetail_20' ) start [2025-03-04 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602027', 'tblTempUsageDetail_20' ) end [2025-03-04 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602027', 'tblTempVendorCDR_20' ) start [2025-03-04 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602027', 'tblTempVendorCDR_20' ) end [2025-03-04 00:08:18] Production.INFO: ProcessCDR(1,14602027,1,1,2) [2025-03-04 00:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602027', 'tblTempUsageDetail_20' ) start [2025-03-04 00:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602027', 'tblTempUsageDetail_20' ) end [2025-03-04 00:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:08:22] Production.INFO: ==12158== Releasing lock... [2025-03-04 00:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:08:22] Production.INFO: 30 MB #Memory Used# [2025-03-04 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:09:05 [end_date_ymd] => 2025-03-04 00:09:05 [RateCDR] => 1 ) [2025-03-04 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-03 21:09:05' and `end` < '2025-03-04 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-04 00:09:17] Production.INFO: count ==175 [2025-03-04 00:09:17] Production.ERROR: pbx CDR StartTime 2025-03-03 21:09:05 - End Time 2025-03-04 00:09:05 [2025-03-04 00:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602032', 'tblTempUsageDetail_20' ) start [2025-03-04 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602032', 'tblTempUsageDetail_20' ) end [2025-03-04 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602032', 'tblTempVendorCDR_20' ) start [2025-03-04 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602032', 'tblTempVendorCDR_20' ) end [2025-03-04 00:09:17] Production.INFO: ProcessCDR(1,14602032,1,1,2) [2025-03-04 00:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602032', 'tblTempUsageDetail_20' ) start [2025-03-04 00:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602032', 'tblTempUsageDetail_20' ) end [2025-03-04 00:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:09:20] Production.INFO: ==12229== Releasing lock... [2025-03-04 00:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:09:20] Production.INFO: 30 MB #Memory Used# [2025-03-04 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:10:06 [end_date_ymd] => 2025-03-04 00:10:06 [RateCDR] => 1 ) [2025-03-04 00: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-03 21:10:06' and `end` < '2025-03-04 00: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-04 00:10:18] Production.INFO: count ==179 [2025-03-04 00:10:18] Production.ERROR: pbx CDR StartTime 2025-03-03 21:10:06 - End Time 2025-03-04 00:10:06 [2025-03-04 00:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602037', 'tblTempUsageDetail_20' ) start [2025-03-04 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602037', 'tblTempUsageDetail_20' ) end [2025-03-04 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602037', 'tblTempVendorCDR_20' ) start [2025-03-04 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602037', 'tblTempVendorCDR_20' ) end [2025-03-04 00:10:18] Production.INFO: ProcessCDR(1,14602037,1,1,2) [2025-03-04 00:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602037', 'tblTempUsageDetail_20' ) start [2025-03-04 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602037', 'tblTempUsageDetail_20' ) end [2025-03-04 00:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:10:21] Production.INFO: ==12309== Releasing lock... [2025-03-04 00:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:10:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-04 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:11:05 [end_date_ymd] => 2025-03-04 00:11:05 [RateCDR] => 1 ) [2025-03-04 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-03 21:11:05' and `end` < '2025-03-04 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-04 00:11:17] Production.INFO: count ==191 [2025-03-04 00:11:17] Production.ERROR: pbx CDR StartTime 2025-03-03 21:11:05 - End Time 2025-03-04 00:11:05 [2025-03-04 00:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602043', 'tblTempUsageDetail_20' ) start [2025-03-04 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602043', 'tblTempUsageDetail_20' ) end [2025-03-04 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602043', 'tblTempVendorCDR_20' ) start [2025-03-04 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602043', 'tblTempVendorCDR_20' ) end [2025-03-04 00:11:17] Production.INFO: ProcessCDR(1,14602043,1,1,2) [2025-03-04 00:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602043', 'tblTempUsageDetail_20' ) start [2025-03-04 00:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602043', 'tblTempUsageDetail_20' ) end [2025-03-04 00:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:11:20] Production.INFO: ==12387== Releasing lock... [2025-03-04 00:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:11:20] Production.INFO: 30 MB #Memory Used# [2025-03-04 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:12:05 [end_date_ymd] => 2025-03-04 00:12:05 [RateCDR] => 1 ) [2025-03-04 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-03 21:12:05' and `end` < '2025-03-04 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-04 00:12:25] Production.INFO: count ==194 [2025-03-04 00:12:25] Production.ERROR: pbx CDR StartTime 2025-03-03 21:12:05 - End Time 2025-03-04 00:12:05 [2025-03-04 00:12:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602048', 'tblTempUsageDetail_20' ) start [2025-03-04 00:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602048', 'tblTempUsageDetail_20' ) end [2025-03-04 00:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602048', 'tblTempVendorCDR_20' ) start [2025-03-04 00:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602048', 'tblTempVendorCDR_20' ) end [2025-03-04 00:12:25] Production.INFO: ProcessCDR(1,14602048,1,1,2) [2025-03-04 00:12:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602048', 'tblTempUsageDetail_20' ) start [2025-03-04 00:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602048', 'tblTempUsageDetail_20' ) end [2025-03-04 00:12:29] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:12:29] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:12:29] Production.INFO: ==12458== Releasing lock... [2025-03-04 00:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:12:29] Production.INFO: 30 MB #Memory Used# [2025-03-04 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:13:05 [end_date_ymd] => 2025-03-04 00:13:05 [RateCDR] => 1 ) [2025-03-04 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 21:13:05' and `end` < '2025-03-04 00:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 00:13:17] Production.INFO: count ==194 [2025-03-04 00:13:17] Production.ERROR: pbx CDR StartTime 2025-03-03 21:13:05 - End Time 2025-03-04 00:13:05 [2025-03-04 00:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602053', 'tblTempUsageDetail_20' ) start [2025-03-04 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602053', 'tblTempUsageDetail_20' ) end [2025-03-04 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602053', 'tblTempVendorCDR_20' ) start [2025-03-04 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602053', 'tblTempVendorCDR_20' ) end [2025-03-04 00:13:17] Production.INFO: ProcessCDR(1,14602053,1,1,2) [2025-03-04 00:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602053', 'tblTempUsageDetail_20' ) start [2025-03-04 00:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602053', 'tblTempUsageDetail_20' ) end [2025-03-04 00:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:13:20] Production.INFO: ==12530== Releasing lock... [2025-03-04 00:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:13:20] Production.INFO: 30 MB #Memory Used# [2025-03-04 00:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:14:06 [end_date_ymd] => 2025-03-04 00:14:06 [RateCDR] => 1 ) [2025-03-04 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-03 21:14:06' and `end` < '2025-03-04 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-04 00:14:18] Production.INFO: count ==196 [2025-03-04 00:14:18] Production.ERROR: pbx CDR StartTime 2025-03-03 21:14:06 - End Time 2025-03-04 00:14:06 [2025-03-04 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602058', 'tblTempUsageDetail_20' ) start [2025-03-04 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602058', 'tblTempUsageDetail_20' ) end [2025-03-04 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602058', 'tblTempVendorCDR_20' ) start [2025-03-04 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602058', 'tblTempVendorCDR_20' ) end [2025-03-04 00:14:18] Production.INFO: ProcessCDR(1,14602058,1,1,2) [2025-03-04 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602058', 'tblTempUsageDetail_20' ) start [2025-03-04 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602058', 'tblTempUsageDetail_20' ) end [2025-03-04 00:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:14:21] Production.INFO: ==12601== Releasing lock... [2025-03-04 00:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:14:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-04 00:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:15:06 [end_date_ymd] => 2025-03-04 00:15:06 [RateCDR] => 1 ) [2025-03-04 00: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-03 21:15:06' and `end` < '2025-03-04 00: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-04 00:15:18] Production.INFO: count ==199 [2025-03-04 00:15:18] Production.ERROR: pbx CDR StartTime 2025-03-03 21:15:06 - End Time 2025-03-04 00:15:06 [2025-03-04 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602063', 'tblTempUsageDetail_20' ) start [2025-03-04 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602063', 'tblTempUsageDetail_20' ) end [2025-03-04 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602063', 'tblTempVendorCDR_20' ) start [2025-03-04 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602063', 'tblTempVendorCDR_20' ) end [2025-03-04 00:15:18] Production.INFO: ProcessCDR(1,14602063,1,1,2) [2025-03-04 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602063', 'tblTempUsageDetail_20' ) start [2025-03-04 00:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602063', 'tblTempUsageDetail_20' ) end [2025-03-04 00:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:15:22] Production.INFO: ==12674== Releasing lock... [2025-03-04 00:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:15:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-04 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:16:05 [end_date_ymd] => 2025-03-04 00:16:05 [RateCDR] => 1 ) [2025-03-04 00:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 21:16:05' and `end` < '2025-03-04 00:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 00:16:17] Production.INFO: count ==201 [2025-03-04 00:16:17] Production.ERROR: pbx CDR StartTime 2025-03-03 21:16:05 - End Time 2025-03-04 00:16:05 [2025-03-04 00:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602068', 'tblTempUsageDetail_20' ) start [2025-03-04 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602068', 'tblTempUsageDetail_20' ) end [2025-03-04 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602068', 'tblTempVendorCDR_20' ) start [2025-03-04 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602068', 'tblTempVendorCDR_20' ) end [2025-03-04 00:16:17] Production.INFO: ProcessCDR(1,14602068,1,1,2) [2025-03-04 00:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602068', 'tblTempUsageDetail_20' ) start [2025-03-04 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602068', 'tblTempUsageDetail_20' ) end [2025-03-04 00:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:16:22] Production.INFO: ==12747== Releasing lock... [2025-03-04 00:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:16:22] Production.INFO: 30 MB #Memory Used# [2025-03-04 00:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:17:06 [end_date_ymd] => 2025-03-04 00:17:06 [RateCDR] => 1 ) [2025-03-04 00: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-03 21:17:06' and `end` < '2025-03-04 00: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-04 00:17:18] Production.INFO: count ==201 [2025-03-04 00:17:18] Production.ERROR: pbx CDR StartTime 2025-03-03 21:17:06 - End Time 2025-03-04 00:17:06 [2025-03-04 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602073', 'tblTempUsageDetail_20' ) start [2025-03-04 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602073', 'tblTempUsageDetail_20' ) end [2025-03-04 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602073', 'tblTempVendorCDR_20' ) start [2025-03-04 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602073', 'tblTempVendorCDR_20' ) end [2025-03-04 00:17:18] Production.INFO: ProcessCDR(1,14602073,1,1,2) [2025-03-04 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602073', 'tblTempUsageDetail_20' ) start [2025-03-04 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602073', 'tblTempUsageDetail_20' ) end [2025-03-04 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:17:21] Production.INFO: ==12821== Releasing lock... [2025-03-04 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:17:21] Production.INFO: 30 MB #Memory Used# [2025-03-04 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:18:05 [end_date_ymd] => 2025-03-04 00:18:05 [RateCDR] => 1 ) [2025-03-04 00:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 21:18:05' and `end` < '2025-03-04 00:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 00:18:17] Production.INFO: count ==204 [2025-03-04 00:18:17] Production.ERROR: pbx CDR StartTime 2025-03-03 21:18:05 - End Time 2025-03-04 00:18:05 [2025-03-04 00:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602078', 'tblTempUsageDetail_20' ) start [2025-03-04 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602078', 'tblTempUsageDetail_20' ) end [2025-03-04 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602078', 'tblTempVendorCDR_20' ) start [2025-03-04 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602078', 'tblTempVendorCDR_20' ) end [2025-03-04 00:18:17] Production.INFO: ProcessCDR(1,14602078,1,1,2) [2025-03-04 00:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602078', 'tblTempUsageDetail_20' ) start [2025-03-04 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602078', 'tblTempUsageDetail_20' ) end [2025-03-04 00:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:18:21] Production.INFO: ==12943== Releasing lock... [2025-03-04 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:18:21] Production.INFO: 30 MB #Memory Used# [2025-03-04 00:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:19:06 [end_date_ymd] => 2025-03-04 00:19:06 [RateCDR] => 1 ) [2025-03-04 00: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-03 21:19:06' and `end` < '2025-03-04 00: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-04 00:19:18] Production.INFO: count ==201 [2025-03-04 00:19:18] Production.ERROR: pbx CDR StartTime 2025-03-03 21:19:06 - End Time 2025-03-04 00:19:06 [2025-03-04 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602083', 'tblTempUsageDetail_20' ) start [2025-03-04 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602083', 'tblTempUsageDetail_20' ) end [2025-03-04 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602083', 'tblTempVendorCDR_20' ) start [2025-03-04 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602083', 'tblTempVendorCDR_20' ) end [2025-03-04 00:19:18] Production.INFO: ProcessCDR(1,14602083,1,1,2) [2025-03-04 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602083', 'tblTempUsageDetail_20' ) start [2025-03-04 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602083', 'tblTempUsageDetail_20' ) end [2025-03-04 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:19:21] Production.INFO: ==13020== Releasing lock... [2025-03-04 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:19:21] Production.INFO: 30 MB #Memory Used# [2025-03-04 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:20:06 [end_date_ymd] => 2025-03-04 00:20:06 [RateCDR] => 1 ) [2025-03-04 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-03 21:20:06' and `end` < '2025-03-04 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-04 00:20:18] Production.INFO: count ==208 [2025-03-04 00:20:18] Production.ERROR: pbx CDR StartTime 2025-03-03 21:20:06 - End Time 2025-03-04 00:20:06 [2025-03-04 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602089', 'tblTempUsageDetail_20' ) start [2025-03-04 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602089', 'tblTempUsageDetail_20' ) end [2025-03-04 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602089', 'tblTempVendorCDR_20' ) start [2025-03-04 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602089', 'tblTempVendorCDR_20' ) end [2025-03-04 00:20:18] Production.INFO: ProcessCDR(1,14602089,1,1,2) [2025-03-04 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602089', 'tblTempUsageDetail_20' ) start [2025-03-04 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602089', 'tblTempUsageDetail_20' ) end [2025-03-04 00:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:20:23] Production.INFO: ==13111== Releasing lock... [2025-03-04 00:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:20:23] Production.INFO: 30 MB #Memory Used# [2025-03-04 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:21:05 [end_date_ymd] => 2025-03-04 00:21:05 [RateCDR] => 1 ) [2025-03-04 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-03 21:21:05' and `end` < '2025-03-04 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-04 00:21:17] Production.INFO: count ==226 [2025-03-04 00:21:17] Production.ERROR: pbx CDR StartTime 2025-03-03 21:21:05 - End Time 2025-03-04 00:21:05 [2025-03-04 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602094', 'tblTempUsageDetail_20' ) start [2025-03-04 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602094', 'tblTempUsageDetail_20' ) end [2025-03-04 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602094', 'tblTempVendorCDR_20' ) start [2025-03-04 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602094', 'tblTempVendorCDR_20' ) end [2025-03-04 00:21:17] Production.INFO: ProcessCDR(1,14602094,1,1,2) [2025-03-04 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602094', 'tblTempUsageDetail_20' ) start [2025-03-04 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602094', 'tblTempUsageDetail_20' ) end [2025-03-04 00:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:21:22] Production.INFO: ==13189== Releasing lock... [2025-03-04 00:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:21:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-04 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:22:05 [end_date_ymd] => 2025-03-04 00:22:05 [RateCDR] => 1 ) [2025-03-04 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-03 21:22:05' and `end` < '2025-03-04 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-04 00:22:17] Production.INFO: count ==224 [2025-03-04 00:22:17] Production.ERROR: pbx CDR StartTime 2025-03-03 21:22:05 - End Time 2025-03-04 00:22:05 [2025-03-04 00:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602099', 'tblTempUsageDetail_20' ) start [2025-03-04 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602099', 'tblTempUsageDetail_20' ) end [2025-03-04 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602099', 'tblTempVendorCDR_20' ) start [2025-03-04 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602099', 'tblTempVendorCDR_20' ) end [2025-03-04 00:22:17] Production.INFO: ProcessCDR(1,14602099,1,1,2) [2025-03-04 00:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602099', 'tblTempUsageDetail_20' ) start [2025-03-04 00:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602099', 'tblTempUsageDetail_20' ) end [2025-03-04 00:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:22:20] Production.INFO: ==13261== Releasing lock... [2025-03-04 00:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:22:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-04 00:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:23:06 [end_date_ymd] => 2025-03-04 00:23:06 [RateCDR] => 1 ) [2025-03-04 00: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-03 21:23:06' and `end` < '2025-03-04 00: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-04 00:23:18] Production.INFO: count ==226 [2025-03-04 00:23:18] Production.ERROR: pbx CDR StartTime 2025-03-03 21:23:06 - End Time 2025-03-04 00:23:06 [2025-03-04 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602104', 'tblTempUsageDetail_20' ) start [2025-03-04 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602104', 'tblTempUsageDetail_20' ) end [2025-03-04 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602104', 'tblTempVendorCDR_20' ) start [2025-03-04 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602104', 'tblTempVendorCDR_20' ) end [2025-03-04 00:23:18] Production.INFO: ProcessCDR(1,14602104,1,1,2) [2025-03-04 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602104', 'tblTempUsageDetail_20' ) start [2025-03-04 00:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602104', 'tblTempUsageDetail_20' ) end [2025-03-04 00:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:23:23] Production.INFO: ==13335== Releasing lock... [2025-03-04 00:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:23:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-04 00:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:24:06 [end_date_ymd] => 2025-03-04 00:24:06 [RateCDR] => 1 ) [2025-03-04 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-03 21:24:06' and `end` < '2025-03-04 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-04 00:24:18] Production.INFO: count ==232 [2025-03-04 00:24:18] Production.ERROR: pbx CDR StartTime 2025-03-03 21:24:06 - End Time 2025-03-04 00:24:06 [2025-03-04 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602109', 'tblTempUsageDetail_20' ) start [2025-03-04 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602109', 'tblTempUsageDetail_20' ) end [2025-03-04 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602109', 'tblTempVendorCDR_20' ) start [2025-03-04 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602109', 'tblTempVendorCDR_20' ) end [2025-03-04 00:24:18] Production.INFO: ProcessCDR(1,14602109,1,1,2) [2025-03-04 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602109', 'tblTempUsageDetail_20' ) start [2025-03-04 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602109', 'tblTempUsageDetail_20' ) end [2025-03-04 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:24:21] Production.INFO: ==13404== Releasing lock... [2025-03-04 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:24:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-04 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:25:06 [end_date_ymd] => 2025-03-04 00:25:06 [RateCDR] => 1 ) [2025-03-04 00: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-03 21:25:06' and `end` < '2025-03-04 00: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-04 00:25:18] Production.INFO: count ==243 [2025-03-04 00:25:18] Production.ERROR: pbx CDR StartTime 2025-03-03 21:25:06 - End Time 2025-03-04 00:25:06 [2025-03-04 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602114', 'tblTempUsageDetail_20' ) start [2025-03-04 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602114', 'tblTempUsageDetail_20' ) end [2025-03-04 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602114', 'tblTempVendorCDR_20' ) start [2025-03-04 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602114', 'tblTempVendorCDR_20' ) end [2025-03-04 00:25:18] Production.INFO: ProcessCDR(1,14602114,1,1,2) [2025-03-04 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602114', 'tblTempUsageDetail_20' ) start [2025-03-04 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602114', 'tblTempUsageDetail_20' ) end [2025-03-04 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:25:21] Production.INFO: ==13476== Releasing lock... [2025-03-04 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:25:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-04 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:26:05 [end_date_ymd] => 2025-03-04 00:26:05 [RateCDR] => 1 ) [2025-03-04 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-03 21:26:05' and `end` < '2025-03-04 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-04 00:26:17] Production.INFO: count ==256 [2025-03-04 00:26:17] Production.ERROR: pbx CDR StartTime 2025-03-03 21:26:05 - End Time 2025-03-04 00:26:05 [2025-03-04 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602119', 'tblTempUsageDetail_20' ) start [2025-03-04 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602119', 'tblTempUsageDetail_20' ) end [2025-03-04 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602119', 'tblTempVendorCDR_20' ) start [2025-03-04 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602119', 'tblTempVendorCDR_20' ) end [2025-03-04 00:26:17] Production.INFO: ProcessCDR(1,14602119,1,1,2) [2025-03-04 00:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602119', 'tblTempUsageDetail_20' ) start [2025-03-04 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602119', 'tblTempUsageDetail_20' ) end [2025-03-04 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:26:21] Production.INFO: ==13546== Releasing lock... [2025-03-04 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:26:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-04 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:27:05 [end_date_ymd] => 2025-03-04 00:27:05 [RateCDR] => 1 ) [2025-03-04 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-03 21:27:05' and `end` < '2025-03-04 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-04 00:27:17] Production.INFO: count ==267 [2025-03-04 00:27:17] Production.ERROR: pbx CDR StartTime 2025-03-03 21:27:05 - End Time 2025-03-04 00:27:05 [2025-03-04 00:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602124', 'tblTempUsageDetail_20' ) start [2025-03-04 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602124', 'tblTempUsageDetail_20' ) end [2025-03-04 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602124', 'tblTempVendorCDR_20' ) start [2025-03-04 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602124', 'tblTempVendorCDR_20' ) end [2025-03-04 00:27:18] Production.INFO: ProcessCDR(1,14602124,1,1,2) [2025-03-04 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602124', 'tblTempUsageDetail_20' ) start [2025-03-04 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602124', 'tblTempUsageDetail_20' ) end [2025-03-04 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:27:21] Production.INFO: ==13616== Releasing lock... [2025-03-04 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:27:21] Production.INFO: 31 MB #Memory Used# [2025-03-04 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:28:05 [end_date_ymd] => 2025-03-04 00:28:05 [RateCDR] => 1 ) [2025-03-04 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-03 21:28:05' and `end` < '2025-03-04 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-04 00:28:17] Production.INFO: count ==300 [2025-03-04 00:28:17] Production.ERROR: pbx CDR StartTime 2025-03-03 21:28:05 - End Time 2025-03-04 00:28:05 [2025-03-04 00:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602129', 'tblTempUsageDetail_20' ) start [2025-03-04 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602129', 'tblTempUsageDetail_20' ) end [2025-03-04 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602129', 'tblTempVendorCDR_20' ) start [2025-03-04 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602129', 'tblTempVendorCDR_20' ) end [2025-03-04 00:28:17] Production.INFO: ProcessCDR(1,14602129,1,1,2) [2025-03-04 00:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602129', 'tblTempUsageDetail_20' ) start [2025-03-04 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602129', 'tblTempUsageDetail_20' ) end [2025-03-04 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:28:21] Production.INFO: ==13687== Releasing lock... [2025-03-04 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:28:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-04 00:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:29:06 [end_date_ymd] => 2025-03-04 00:29:06 [RateCDR] => 1 ) [2025-03-04 00: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-03 21:29:06' and `end` < '2025-03-04 00: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-04 00:29:17] Production.INFO: count ==308 [2025-03-04 00:29:18] Production.ERROR: pbx CDR StartTime 2025-03-03 21:29:06 - End Time 2025-03-04 00:29:06 [2025-03-04 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602134', 'tblTempUsageDetail_20' ) start [2025-03-04 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602134', 'tblTempUsageDetail_20' ) end [2025-03-04 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602134', 'tblTempVendorCDR_20' ) start [2025-03-04 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602134', 'tblTempVendorCDR_20' ) end [2025-03-04 00:29:18] Production.INFO: ProcessCDR(1,14602134,1,1,2) [2025-03-04 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602134', 'tblTempUsageDetail_20' ) start [2025-03-04 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602134', 'tblTempUsageDetail_20' ) end [2025-03-04 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:29:21] Production.INFO: ==13761== Releasing lock... [2025-03-04 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:29:21] Production.INFO: 31 MB #Memory Used# [2025-03-04 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:30:06 [end_date_ymd] => 2025-03-04 00:30:06 [RateCDR] => 1 ) [2025-03-04 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-03 21:30:06' and `end` < '2025-03-04 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-04 00:30:18] Production.INFO: count ==330 [2025-03-04 00:30:18] Production.ERROR: pbx CDR StartTime 2025-03-03 21:30:06 - End Time 2025-03-04 00:30:06 [2025-03-04 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602140', 'tblTempUsageDetail_20' ) start [2025-03-04 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602140', 'tblTempUsageDetail_20' ) end [2025-03-04 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602140', 'tblTempVendorCDR_20' ) start [2025-03-04 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602140', 'tblTempVendorCDR_20' ) end [2025-03-04 00:30:18] Production.INFO: ProcessCDR(1,14602140,1,1,2) [2025-03-04 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602140', 'tblTempUsageDetail_20' ) start [2025-03-04 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602140', 'tblTempUsageDetail_20' ) end [2025-03-04 00:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:30:21] Production.INFO: ==13834== Releasing lock... [2025-03-04 00:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:30:21] Production.INFO: 31 MB #Memory Used# [2025-03-04 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:31:05 [end_date_ymd] => 2025-03-04 00:31:05 [RateCDR] => 1 ) [2025-03-04 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-03 21:31:05' and `end` < '2025-03-04 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-04 00:31:17] Production.INFO: count ==345 [2025-03-04 00:31:17] Production.ERROR: pbx CDR StartTime 2025-03-03 21:31:05 - End Time 2025-03-04 00:31:05 [2025-03-04 00:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602145', 'tblTempUsageDetail_20' ) start [2025-03-04 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602145', 'tblTempUsageDetail_20' ) end [2025-03-04 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602145', 'tblTempVendorCDR_20' ) start [2025-03-04 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602145', 'tblTempVendorCDR_20' ) end [2025-03-04 00:31:17] Production.INFO: ProcessCDR(1,14602145,1,1,2) [2025-03-04 00:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602145', 'tblTempUsageDetail_20' ) start [2025-03-04 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602145', 'tblTempUsageDetail_20' ) end [2025-03-04 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:31:21] Production.INFO: ==13905== Releasing lock... [2025-03-04 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:31:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-04 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:32:05 [end_date_ymd] => 2025-03-04 00:32:05 [RateCDR] => 1 ) [2025-03-04 00: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-03 21:32:05' and `end` < '2025-03-04 00: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-04 00:32:17] Production.INFO: count ==343 [2025-03-04 00:32:17] Production.ERROR: pbx CDR StartTime 2025-03-03 21:32:05 - End Time 2025-03-04 00:32:05 [2025-03-04 00:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602150', 'tblTempUsageDetail_20' ) start [2025-03-04 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602150', 'tblTempUsageDetail_20' ) end [2025-03-04 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602150', 'tblTempVendorCDR_20' ) start [2025-03-04 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602150', 'tblTempVendorCDR_20' ) end [2025-03-04 00:32:17] Production.INFO: ProcessCDR(1,14602150,1,1,2) [2025-03-04 00:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602150', 'tblTempUsageDetail_20' ) start [2025-03-04 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602150', 'tblTempUsageDetail_20' ) end [2025-03-04 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:32:21] Production.INFO: ==13979== Releasing lock... [2025-03-04 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:32:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-04 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:33:05 [end_date_ymd] => 2025-03-04 00:33:05 [RateCDR] => 1 ) [2025-03-04 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-03 21:33:05' and `end` < '2025-03-04 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-04 00:33:17] Production.INFO: count ==345 [2025-03-04 00:33:18] Production.ERROR: pbx CDR StartTime 2025-03-03 21:33:05 - End Time 2025-03-04 00:33:05 [2025-03-04 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602155', 'tblTempUsageDetail_20' ) start [2025-03-04 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602155', 'tblTempUsageDetail_20' ) end [2025-03-04 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602155', 'tblTempVendorCDR_20' ) start [2025-03-04 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602155', 'tblTempVendorCDR_20' ) end [2025-03-04 00:33:18] Production.INFO: ProcessCDR(1,14602155,1,1,2) [2025-03-04 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602155', 'tblTempUsageDetail_20' ) start [2025-03-04 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602155', 'tblTempUsageDetail_20' ) end [2025-03-04 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:33:21] Production.INFO: ==14091== Releasing lock... [2025-03-04 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:33:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-04 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:34:05 [end_date_ymd] => 2025-03-04 00:34:05 [RateCDR] => 1 ) [2025-03-04 00:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 21:34:05' and `end` < '2025-03-04 00:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 00:34:17] Production.INFO: count ==343 [2025-03-04 00:34:17] Production.ERROR: pbx CDR StartTime 2025-03-03 21:34:05 - End Time 2025-03-04 00:34:05 [2025-03-04 00:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602160', 'tblTempUsageDetail_20' ) start [2025-03-04 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602160', 'tblTempUsageDetail_20' ) end [2025-03-04 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602160', 'tblTempVendorCDR_20' ) start [2025-03-04 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602160', 'tblTempVendorCDR_20' ) end [2025-03-04 00:34:17] Production.INFO: ProcessCDR(1,14602160,1,1,2) [2025-03-04 00:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602160', 'tblTempUsageDetail_20' ) start [2025-03-04 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602160', 'tblTempUsageDetail_20' ) end [2025-03-04 00:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:34:20] Production.INFO: ==14161== Releasing lock... [2025-03-04 00:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:34:20] Production.INFO: 31 MB #Memory Used# [2025-03-04 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:35:05 [end_date_ymd] => 2025-03-04 00:35:05 [RateCDR] => 1 ) [2025-03-04 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-03 21:35:05' and `end` < '2025-03-04 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-04 00:35:17] Production.INFO: count ==342 [2025-03-04 00:35:18] Production.ERROR: pbx CDR StartTime 2025-03-03 21:35:05 - End Time 2025-03-04 00:35:05 [2025-03-04 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602165', 'tblTempUsageDetail_20' ) start [2025-03-04 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602165', 'tblTempUsageDetail_20' ) end [2025-03-04 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602165', 'tblTempVendorCDR_20' ) start [2025-03-04 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602165', 'tblTempVendorCDR_20' ) end [2025-03-04 00:35:18] Production.INFO: ProcessCDR(1,14602165,1,1,2) [2025-03-04 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602165', 'tblTempUsageDetail_20' ) start [2025-03-04 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602165', 'tblTempUsageDetail_20' ) end [2025-03-04 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:35:21] Production.INFO: ==14236== Releasing lock... [2025-03-04 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:35:21] Production.INFO: 31 MB #Memory Used# [2025-03-04 00:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:36:06 [end_date_ymd] => 2025-03-04 00:36:06 [RateCDR] => 1 ) [2025-03-04 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-03 21:36:06' and `end` < '2025-03-04 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-04 00:36:18] Production.INFO: count ==344 [2025-03-04 00:36:18] Production.ERROR: pbx CDR StartTime 2025-03-03 21:36:06 - End Time 2025-03-04 00:36:06 [2025-03-04 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602170', 'tblTempUsageDetail_20' ) start [2025-03-04 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602170', 'tblTempUsageDetail_20' ) end [2025-03-04 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602170', 'tblTempVendorCDR_20' ) start [2025-03-04 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602170', 'tblTempVendorCDR_20' ) end [2025-03-04 00:36:18] Production.INFO: ProcessCDR(1,14602170,1,1,2) [2025-03-04 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602170', 'tblTempUsageDetail_20' ) start [2025-03-04 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602170', 'tblTempUsageDetail_20' ) end [2025-03-04 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:36:21] Production.INFO: ==14312== Releasing lock... [2025-03-04 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:36:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-04 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:37:05 [end_date_ymd] => 2025-03-04 00:37:05 [RateCDR] => 1 ) [2025-03-04 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-03 21:37:05' and `end` < '2025-03-04 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-04 00:37:17] Production.INFO: count ==339 [2025-03-04 00:37:17] Production.ERROR: pbx CDR StartTime 2025-03-03 21:37:05 - End Time 2025-03-04 00:37:05 [2025-03-04 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602175', 'tblTempUsageDetail_20' ) start [2025-03-04 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602175', 'tblTempUsageDetail_20' ) end [2025-03-04 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602175', 'tblTempVendorCDR_20' ) start [2025-03-04 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602175', 'tblTempVendorCDR_20' ) end [2025-03-04 00:37:17] Production.INFO: ProcessCDR(1,14602175,1,1,2) [2025-03-04 00:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602175', 'tblTempUsageDetail_20' ) start [2025-03-04 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602175', 'tblTempUsageDetail_20' ) end [2025-03-04 00:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:37:20] Production.INFO: ==14381== Releasing lock... [2025-03-04 00:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:37:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-04 00:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:38:06 [end_date_ymd] => 2025-03-04 00:38:06 [RateCDR] => 1 ) [2025-03-04 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-03 21:38:06' and `end` < '2025-03-04 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-04 00:38:18] Production.INFO: count ==340 [2025-03-04 00:38:18] Production.ERROR: pbx CDR StartTime 2025-03-03 21:38:06 - End Time 2025-03-04 00:38:06 [2025-03-04 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602180', 'tblTempUsageDetail_20' ) start [2025-03-04 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602180', 'tblTempUsageDetail_20' ) end [2025-03-04 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602180', 'tblTempVendorCDR_20' ) start [2025-03-04 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602180', 'tblTempVendorCDR_20' ) end [2025-03-04 00:38:18] Production.INFO: ProcessCDR(1,14602180,1,1,2) [2025-03-04 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602180', 'tblTempUsageDetail_20' ) start [2025-03-04 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602180', 'tblTempUsageDetail_20' ) end [2025-03-04 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:38:21] Production.INFO: ==14456== Releasing lock... [2025-03-04 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:38:21] Production.INFO: 31 MB #Memory Used# [2025-03-04 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:39:05 [end_date_ymd] => 2025-03-04 00:39:05 [RateCDR] => 1 ) [2025-03-04 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-03 21:39:05' and `end` < '2025-03-04 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-04 00:39:17] Production.INFO: count ==343 [2025-03-04 00:39:17] Production.ERROR: pbx CDR StartTime 2025-03-03 21:39:05 - End Time 2025-03-04 00:39:05 [2025-03-04 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602185', 'tblTempUsageDetail_20' ) start [2025-03-04 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602185', 'tblTempUsageDetail_20' ) end [2025-03-04 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602185', 'tblTempVendorCDR_20' ) start [2025-03-04 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602185', 'tblTempVendorCDR_20' ) end [2025-03-04 00:39:17] Production.INFO: ProcessCDR(1,14602185,1,1,2) [2025-03-04 00:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602185', 'tblTempUsageDetail_20' ) start [2025-03-04 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602185', 'tblTempUsageDetail_20' ) end [2025-03-04 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:39:21] Production.INFO: ==14525== Releasing lock... [2025-03-04 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:39:21] Production.INFO: 31 MB #Memory Used# [2025-03-04 00:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:40:07 [end_date_ymd] => 2025-03-04 00:40:07 [RateCDR] => 1 ) [2025-03-04 00: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-03 21:40:07' and `end` < '2025-03-04 00: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-04 00:40:19] Production.INFO: count ==354 [2025-03-04 00:40:19] Production.ERROR: pbx CDR StartTime 2025-03-03 21:40:07 - End Time 2025-03-04 00:40:07 [2025-03-04 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602191', 'tblTempUsageDetail_20' ) start [2025-03-04 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602191', 'tblTempUsageDetail_20' ) end [2025-03-04 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602191', 'tblTempVendorCDR_20' ) start [2025-03-04 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602191', 'tblTempVendorCDR_20' ) end [2025-03-04 00:40:19] Production.INFO: ProcessCDR(1,14602191,1,1,2) [2025-03-04 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602191', 'tblTempUsageDetail_20' ) start [2025-03-04 00:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602191', 'tblTempUsageDetail_20' ) end [2025-03-04 00:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:40:24] Production.INFO: ==14597== Releasing lock... [2025-03-04 00:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:40:24] Production.INFO: 31 MB #Memory Used# [2025-03-04 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:41:05 [end_date_ymd] => 2025-03-04 00:41:05 [RateCDR] => 1 ) [2025-03-04 00:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 21:41:05' and `end` < '2025-03-04 00:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 00:41:17] Production.INFO: count ==357 [2025-03-04 00:41:17] Production.ERROR: pbx CDR StartTime 2025-03-03 21:41:05 - End Time 2025-03-04 00:41:05 [2025-03-04 00:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602196', 'tblTempUsageDetail_20' ) start [2025-03-04 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602196', 'tblTempUsageDetail_20' ) end [2025-03-04 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602196', 'tblTempVendorCDR_20' ) start [2025-03-04 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602196', 'tblTempVendorCDR_20' ) end [2025-03-04 00:41:17] Production.INFO: ProcessCDR(1,14602196,1,1,2) [2025-03-04 00:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602196', 'tblTempUsageDetail_20' ) start [2025-03-04 00:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602196', 'tblTempUsageDetail_20' ) end [2025-03-04 00:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:41:20] Production.INFO: ==14673== Releasing lock... [2025-03-04 00:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:41:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-04 00:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:42:06 [end_date_ymd] => 2025-03-04 00:42:06 [RateCDR] => 1 ) [2025-03-04 00: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-03 21:42:06' and `end` < '2025-03-04 00: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-04 00:42:18] Production.INFO: count ==356 [2025-03-04 00:42:18] Production.ERROR: pbx CDR StartTime 2025-03-03 21:42:06 - End Time 2025-03-04 00:42:06 [2025-03-04 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602201', 'tblTempUsageDetail_20' ) start [2025-03-04 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602201', 'tblTempUsageDetail_20' ) end [2025-03-04 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602201', 'tblTempVendorCDR_20' ) start [2025-03-04 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602201', 'tblTempVendorCDR_20' ) end [2025-03-04 00:42:18] Production.INFO: ProcessCDR(1,14602201,1,1,2) [2025-03-04 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602201', 'tblTempUsageDetail_20' ) start [2025-03-04 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602201', 'tblTempUsageDetail_20' ) end [2025-03-04 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:42:21] Production.INFO: ==14744== Releasing lock... [2025-03-04 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:42:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-04 00:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:43:06 [end_date_ymd] => 2025-03-04 00:43:06 [RateCDR] => 1 ) [2025-03-04 00: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-03 21:43:06' and `end` < '2025-03-04 00: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-04 00:43:18] Production.INFO: count ==356 [2025-03-04 00:43:18] Production.ERROR: pbx CDR StartTime 2025-03-03 21:43:06 - End Time 2025-03-04 00:43:06 [2025-03-04 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602206', 'tblTempUsageDetail_20' ) start [2025-03-04 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602206', 'tblTempUsageDetail_20' ) end [2025-03-04 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602206', 'tblTempVendorCDR_20' ) start [2025-03-04 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602206', 'tblTempVendorCDR_20' ) end [2025-03-04 00:43:18] Production.INFO: ProcessCDR(1,14602206,1,1,2) [2025-03-04 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602206', 'tblTempUsageDetail_20' ) start [2025-03-04 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602206', 'tblTempUsageDetail_20' ) end [2025-03-04 00:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:43:22] Production.INFO: ==14813== Releasing lock... [2025-03-04 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:43:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-04 00:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:44:06 [end_date_ymd] => 2025-03-04 00:44:06 [RateCDR] => 1 ) [2025-03-04 00: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-03 21:44:06' and `end` < '2025-03-04 00: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-04 00:44:18] Production.INFO: count ==356 [2025-03-04 00:44:18] Production.ERROR: pbx CDR StartTime 2025-03-03 21:44:06 - End Time 2025-03-04 00:44:06 [2025-03-04 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602211', 'tblTempUsageDetail_20' ) start [2025-03-04 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602211', 'tblTempUsageDetail_20' ) end [2025-03-04 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602211', 'tblTempVendorCDR_20' ) start [2025-03-04 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602211', 'tblTempVendorCDR_20' ) end [2025-03-04 00:44:18] Production.INFO: ProcessCDR(1,14602211,1,1,2) [2025-03-04 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602211', 'tblTempUsageDetail_20' ) start [2025-03-04 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602211', 'tblTempUsageDetail_20' ) end [2025-03-04 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:44:21] Production.INFO: ==14882== Releasing lock... [2025-03-04 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:44:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-04 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:45:05 [end_date_ymd] => 2025-03-04 00:45:05 [RateCDR] => 1 ) [2025-03-04 00: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-03 21:45:05' and `end` < '2025-03-04 00: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-04 00:45:17] Production.INFO: count ==356 [2025-03-04 00:45:17] Production.ERROR: pbx CDR StartTime 2025-03-03 21:45:05 - End Time 2025-03-04 00:45:05 [2025-03-04 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602216', 'tblTempUsageDetail_20' ) start [2025-03-04 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602216', 'tblTempUsageDetail_20' ) end [2025-03-04 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602216', 'tblTempVendorCDR_20' ) start [2025-03-04 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602216', 'tblTempVendorCDR_20' ) end [2025-03-04 00:45:17] Production.INFO: ProcessCDR(1,14602216,1,1,2) [2025-03-04 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602216', 'tblTempUsageDetail_20' ) start [2025-03-04 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602216', 'tblTempUsageDetail_20' ) end [2025-03-04 00:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:45:20] Production.INFO: ==14955== Releasing lock... [2025-03-04 00:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:45:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-04 00:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:46:06 [end_date_ymd] => 2025-03-04 00:46:06 [RateCDR] => 1 ) [2025-03-04 00: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-03 21:46:06' and `end` < '2025-03-04 00: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-04 00:46:18] Production.INFO: count ==354 [2025-03-04 00:46:18] Production.ERROR: pbx CDR StartTime 2025-03-03 21:46:06 - End Time 2025-03-04 00:46:06 [2025-03-04 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602221', 'tblTempUsageDetail_20' ) start [2025-03-04 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602221', 'tblTempUsageDetail_20' ) end [2025-03-04 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602221', 'tblTempVendorCDR_20' ) start [2025-03-04 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602221', 'tblTempVendorCDR_20' ) end [2025-03-04 00:46:18] Production.INFO: ProcessCDR(1,14602221,1,1,2) [2025-03-04 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602221', 'tblTempUsageDetail_20' ) start [2025-03-04 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602221', 'tblTempUsageDetail_20' ) end [2025-03-04 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:46:21] Production.INFO: ==15028== Releasing lock... [2025-03-04 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:46:21] Production.INFO: 31 MB #Memory Used# [2025-03-04 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:47:05 [end_date_ymd] => 2025-03-04 00:47:05 [RateCDR] => 1 ) [2025-03-04 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-03 21:47:05' and `end` < '2025-03-04 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-04 00:47:17] Production.INFO: count ==350 [2025-03-04 00:47:17] Production.ERROR: pbx CDR StartTime 2025-03-03 21:47:05 - End Time 2025-03-04 00:47:05 [2025-03-04 00:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602226', 'tblTempUsageDetail_20' ) start [2025-03-04 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602226', 'tblTempUsageDetail_20' ) end [2025-03-04 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602226', 'tblTempVendorCDR_20' ) start [2025-03-04 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602226', 'tblTempVendorCDR_20' ) end [2025-03-04 00:47:17] Production.INFO: ProcessCDR(1,14602226,1,1,2) [2025-03-04 00:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602226', 'tblTempUsageDetail_20' ) start [2025-03-04 00:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602226', 'tblTempUsageDetail_20' ) end [2025-03-04 00:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:47:20] Production.INFO: ==15099== Releasing lock... [2025-03-04 00:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:47:20] Production.INFO: 31 MB #Memory Used# [2025-03-04 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:48:05 [end_date_ymd] => 2025-03-04 00:48:05 [RateCDR] => 1 ) [2025-03-04 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-03 21:48:05' and `end` < '2025-03-04 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-04 00:48:17] Production.INFO: count ==352 [2025-03-04 00:48:17] Production.ERROR: pbx CDR StartTime 2025-03-03 21:48:05 - End Time 2025-03-04 00:48:05 [2025-03-04 00:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602231', 'tblTempUsageDetail_20' ) start [2025-03-04 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602231', 'tblTempUsageDetail_20' ) end [2025-03-04 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602231', 'tblTempVendorCDR_20' ) start [2025-03-04 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602231', 'tblTempVendorCDR_20' ) end [2025-03-04 00:48:17] Production.INFO: ProcessCDR(1,14602231,1,1,2) [2025-03-04 00:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602231', 'tblTempUsageDetail_20' ) start [2025-03-04 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602231', 'tblTempUsageDetail_20' ) end [2025-03-04 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:48:22] Production.INFO: ==15170== Releasing lock... [2025-03-04 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:48:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-04 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:49:05 [end_date_ymd] => 2025-03-04 00:49:05 [RateCDR] => 1 ) [2025-03-04 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-03 21:49:05' and `end` < '2025-03-04 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-04 00:49:17] Production.INFO: count ==352 [2025-03-04 00:49:17] Production.ERROR: pbx CDR StartTime 2025-03-03 21:49:05 - End Time 2025-03-04 00:49:05 [2025-03-04 00:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602236', 'tblTempUsageDetail_20' ) start [2025-03-04 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602236', 'tblTempUsageDetail_20' ) end [2025-03-04 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602236', 'tblTempVendorCDR_20' ) start [2025-03-04 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602236', 'tblTempVendorCDR_20' ) end [2025-03-04 00:49:17] Production.INFO: ProcessCDR(1,14602236,1,1,2) [2025-03-04 00:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602236', 'tblTempUsageDetail_20' ) start [2025-03-04 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602236', 'tblTempUsageDetail_20' ) end [2025-03-04 00:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:49:20] Production.INFO: ==15285== Releasing lock... [2025-03-04 00:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:49:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-04 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:50:06 [end_date_ymd] => 2025-03-04 00:50:06 [RateCDR] => 1 ) [2025-03-04 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-03 21:50:06' and `end` < '2025-03-04 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-04 00:50:18] Production.INFO: count ==358 [2025-03-04 00:50:18] Production.ERROR: pbx CDR StartTime 2025-03-03 21:50:06 - End Time 2025-03-04 00:50:06 [2025-03-04 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602242', 'tblTempUsageDetail_20' ) start [2025-03-04 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602242', 'tblTempUsageDetail_20' ) end [2025-03-04 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602242', 'tblTempVendorCDR_20' ) start [2025-03-04 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602242', 'tblTempVendorCDR_20' ) end [2025-03-04 00:50:19] Production.INFO: ProcessCDR(1,14602242,1,1,2) [2025-03-04 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602242', 'tblTempUsageDetail_20' ) start [2025-03-04 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602242', 'tblTempUsageDetail_20' ) end [2025-03-04 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:50:22] Production.INFO: ==15392== Releasing lock... [2025-03-04 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:50:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-04 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:51:05 [end_date_ymd] => 2025-03-04 00:51:05 [RateCDR] => 1 ) [2025-03-04 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-03 21:51:05' and `end` < '2025-03-04 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-04 00:51:17] Production.INFO: count ==362 [2025-03-04 00:51:17] Production.ERROR: pbx CDR StartTime 2025-03-03 21:51:05 - End Time 2025-03-04 00:51:05 [2025-03-04 00:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602247', 'tblTempUsageDetail_20' ) start [2025-03-04 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602247', 'tblTempUsageDetail_20' ) end [2025-03-04 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602247', 'tblTempVendorCDR_20' ) start [2025-03-04 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602247', 'tblTempVendorCDR_20' ) end [2025-03-04 00:51:17] Production.INFO: ProcessCDR(1,14602247,1,1,2) [2025-03-04 00:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602247', 'tblTempUsageDetail_20' ) start [2025-03-04 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602247', 'tblTempUsageDetail_20' ) end [2025-03-04 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:51:21] Production.INFO: ==15469== Releasing lock... [2025-03-04 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:51:21] Production.INFO: 31 MB #Memory Used# [2025-03-04 00:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:52:06 [end_date_ymd] => 2025-03-04 00:52:06 [RateCDR] => 1 ) [2025-03-04 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-03 21:52:06' and `end` < '2025-03-04 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-04 00:52:18] Production.INFO: count ==362 [2025-03-04 00:52:18] Production.ERROR: pbx CDR StartTime 2025-03-03 21:52:06 - End Time 2025-03-04 00:52:06 [2025-03-04 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602252', 'tblTempUsageDetail_20' ) start [2025-03-04 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602252', 'tblTempUsageDetail_20' ) end [2025-03-04 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602252', 'tblTempVendorCDR_20' ) start [2025-03-04 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602252', 'tblTempVendorCDR_20' ) end [2025-03-04 00:52:18] Production.INFO: ProcessCDR(1,14602252,1,1,2) [2025-03-04 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602252', 'tblTempUsageDetail_20' ) start [2025-03-04 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602252', 'tblTempUsageDetail_20' ) end [2025-03-04 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:52:21] Production.INFO: ==15540== Releasing lock... [2025-03-04 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:52:21] Production.INFO: 31 MB #Memory Used# [2025-03-04 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:53:05 [end_date_ymd] => 2025-03-04 00:53:05 [RateCDR] => 1 ) [2025-03-04 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-03 21:53:05' and `end` < '2025-03-04 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-04 00:53:17] Production.INFO: count ==361 [2025-03-04 00:53:17] Production.ERROR: pbx CDR StartTime 2025-03-03 21:53:05 - End Time 2025-03-04 00:53:05 [2025-03-04 00:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602257', 'tblTempUsageDetail_20' ) start [2025-03-04 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602257', 'tblTempUsageDetail_20' ) end [2025-03-04 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602257', 'tblTempVendorCDR_20' ) start [2025-03-04 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602257', 'tblTempVendorCDR_20' ) end [2025-03-04 00:53:17] Production.INFO: ProcessCDR(1,14602257,1,1,2) [2025-03-04 00:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602257', 'tblTempUsageDetail_20' ) start [2025-03-04 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602257', 'tblTempUsageDetail_20' ) end [2025-03-04 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:53:21] Production.INFO: ==15612== Releasing lock... [2025-03-04 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:53:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-04 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:54:05 [end_date_ymd] => 2025-03-04 00:54:05 [RateCDR] => 1 ) [2025-03-04 00:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 21:54:05' and `end` < '2025-03-04 00:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 00:54:17] Production.INFO: count ==361 [2025-03-04 00:54:17] Production.ERROR: pbx CDR StartTime 2025-03-03 21:54:05 - End Time 2025-03-04 00:54:05 [2025-03-04 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602262', 'tblTempUsageDetail_20' ) start [2025-03-04 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602262', 'tblTempUsageDetail_20' ) end [2025-03-04 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602262', 'tblTempVendorCDR_20' ) start [2025-03-04 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602262', 'tblTempVendorCDR_20' ) end [2025-03-04 00:54:17] Production.INFO: ProcessCDR(1,14602262,1,1,2) [2025-03-04 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602262', 'tblTempUsageDetail_20' ) start [2025-03-04 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602262', 'tblTempUsageDetail_20' ) end [2025-03-04 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:54:21] Production.INFO: ==15683== Releasing lock... [2025-03-04 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:54:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-04 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:55:05 [end_date_ymd] => 2025-03-04 00:55:05 [RateCDR] => 1 ) [2025-03-04 00:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 21:55:05' and `end` < '2025-03-04 00:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 00:55:17] Production.INFO: count ==361 [2025-03-04 00:55:17] Production.ERROR: pbx CDR StartTime 2025-03-03 21:55:05 - End Time 2025-03-04 00:55:05 [2025-03-04 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602267', 'tblTempUsageDetail_20' ) start [2025-03-04 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602267', 'tblTempUsageDetail_20' ) end [2025-03-04 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602267', 'tblTempVendorCDR_20' ) start [2025-03-04 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602267', 'tblTempVendorCDR_20' ) end [2025-03-04 00:55:17] Production.INFO: ProcessCDR(1,14602267,1,1,2) [2025-03-04 00:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602267', 'tblTempUsageDetail_20' ) start [2025-03-04 00:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602267', 'tblTempUsageDetail_20' ) end [2025-03-04 00:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:55:20] Production.INFO: ==15753== Releasing lock... [2025-03-04 00:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:55:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-04 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:56:05 [end_date_ymd] => 2025-03-04 00:56:05 [RateCDR] => 1 ) [2025-03-04 00:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 21:56:05' and `end` < '2025-03-04 00:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 00:56:17] Production.INFO: count ==362 [2025-03-04 00:56:18] Production.ERROR: pbx CDR StartTime 2025-03-03 21:56:05 - End Time 2025-03-04 00:56:05 [2025-03-04 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602272', 'tblTempUsageDetail_20' ) start [2025-03-04 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602272', 'tblTempUsageDetail_20' ) end [2025-03-04 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602272', 'tblTempVendorCDR_20' ) start [2025-03-04 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602272', 'tblTempVendorCDR_20' ) end [2025-03-04 00:56:18] Production.INFO: ProcessCDR(1,14602272,1,1,2) [2025-03-04 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602272', 'tblTempUsageDetail_20' ) start [2025-03-04 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602272', 'tblTempUsageDetail_20' ) end [2025-03-04 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:56:22] Production.INFO: ==15831== Releasing lock... [2025-03-04 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:56:22] Production.INFO: 31 MB #Memory Used# [2025-03-04 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:57:05 [end_date_ymd] => 2025-03-04 00:57:05 [RateCDR] => 1 ) [2025-03-04 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-03 21:57:05' and `end` < '2025-03-04 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-04 00:57:17] Production.INFO: count ==363 [2025-03-04 00:57:17] Production.ERROR: pbx CDR StartTime 2025-03-03 21:57:05 - End Time 2025-03-04 00:57:05 [2025-03-04 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602277', 'tblTempUsageDetail_20' ) start [2025-03-04 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602277', 'tblTempUsageDetail_20' ) end [2025-03-04 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602277', 'tblTempVendorCDR_20' ) start [2025-03-04 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602277', 'tblTempVendorCDR_20' ) end [2025-03-04 00:57:17] Production.INFO: ProcessCDR(1,14602277,1,1,2) [2025-03-04 00:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602277', 'tblTempUsageDetail_20' ) start [2025-03-04 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602277', 'tblTempUsageDetail_20' ) end [2025-03-04 00:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:57:20] Production.INFO: ==15900== Releasing lock... [2025-03-04 00:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:57:20] Production.INFO: 31 MB #Memory Used# [2025-03-04 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:58:05 [end_date_ymd] => 2025-03-04 00:58:05 [RateCDR] => 1 ) [2025-03-04 00: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-03 21:58:05' and `end` < '2025-03-04 00: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-04 00:58:18] Production.INFO: count ==366 [2025-03-04 00:58:18] Production.ERROR: pbx CDR StartTime 2025-03-03 21:58:05 - End Time 2025-03-04 00:58:05 [2025-03-04 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602282', 'tblTempUsageDetail_20' ) start [2025-03-04 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602282', 'tblTempUsageDetail_20' ) end [2025-03-04 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602282', 'tblTempVendorCDR_20' ) start [2025-03-04 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602282', 'tblTempVendorCDR_20' ) end [2025-03-04 00:58:18] Production.INFO: ProcessCDR(1,14602282,1,1,2) [2025-03-04 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602282', 'tblTempUsageDetail_20' ) start [2025-03-04 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602282', 'tblTempUsageDetail_20' ) end [2025-03-04 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:58:21] Production.INFO: ==15971== Releasing lock... [2025-03-04 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:58:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-04 00:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 21:59:04 [end_date_ymd] => 2025-03-04 00:59:04 [RateCDR] => 1 ) [2025-03-04 00: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-03 21:59:04' and `end` < '2025-03-04 00: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-04 00:59:16] Production.INFO: count ==406 [2025-03-04 00:59:16] Production.ERROR: pbx CDR StartTime 2025-03-03 21:59:04 - End Time 2025-03-04 00:59:04 [2025-03-04 00:59:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 00:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602287', 'tblTempUsageDetail_20' ) start [2025-03-04 00:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602287', 'tblTempUsageDetail_20' ) end [2025-03-04 00:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602287', 'tblTempVendorCDR_20' ) start [2025-03-04 00:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602287', 'tblTempVendorCDR_20' ) end [2025-03-04 00:59:16] Production.INFO: ProcessCDR(1,14602287,1,1,2) [2025-03-04 00:59:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:59:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 00:59:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 00:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602287', 'tblTempUsageDetail_20' ) start [2025-03-04 00:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602287', 'tblTempUsageDetail_20' ) end [2025-03-04 00:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 00:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 00:59:20] Production.INFO: ==16040== Releasing lock... [2025-03-04 00:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 00:59:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-04 01:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:00:07 [end_date_ymd] => 2025-03-04 01:00:07 [RateCDR] => 1 ) [2025-03-04 01: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-03 22:00:07' and `end` < '2025-03-04 01: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-04 01:00:19] Production.INFO: count ==461 [2025-03-04 01:00:19] Production.ERROR: pbx CDR StartTime 2025-03-03 22:00:07 - End Time 2025-03-04 01:00:07 [2025-03-04 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602293', 'tblTempUsageDetail_20' ) start [2025-03-04 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602293', 'tblTempUsageDetail_20' ) end [2025-03-04 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602293', 'tblTempVendorCDR_20' ) start [2025-03-04 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602293', 'tblTempVendorCDR_20' ) end [2025-03-04 01:00:19] Production.INFO: ProcessCDR(1,14602293,1,1,2) [2025-03-04 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602293', 'tblTempUsageDetail_20' ) start [2025-03-04 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602293', 'tblTempUsageDetail_20' ) end [2025-03-04 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:00:22] Production.INFO: ==16116== Releasing lock... [2025-03-04 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:00:22] Production.INFO: 32 MB #Memory Used# [2025-03-04 01:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:01:06 [end_date_ymd] => 2025-03-04 01:01:06 [RateCDR] => 1 ) [2025-03-04 01:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 22:01:06' and `end` < '2025-03-04 01:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 01:01:18] Production.INFO: count ==576 [2025-03-04 01:01:19] Production.ERROR: pbx CDR StartTime 2025-03-03 22:01:06 - End Time 2025-03-04 01:01:06 [2025-03-04 01:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602298', 'tblTempUsageDetail_20' ) start [2025-03-04 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602298', 'tblTempUsageDetail_20' ) end [2025-03-04 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602298', 'tblTempVendorCDR_20' ) start [2025-03-04 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602298', 'tblTempVendorCDR_20' ) end [2025-03-04 01:01:19] Production.INFO: ProcessCDR(1,14602298,1,1,2) [2025-03-04 01:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602298', 'tblTempUsageDetail_20' ) start [2025-03-04 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602298', 'tblTempUsageDetail_20' ) end [2025-03-04 01:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:01:22] Production.INFO: ==16203== Releasing lock... [2025-03-04 01:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:01:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-04 01:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:02:06 [end_date_ymd] => 2025-03-04 01:02:06 [RateCDR] => 1 ) [2025-03-04 01: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-03 22:02:06' and `end` < '2025-03-04 01: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-04 01:02:17] Production.INFO: count ==575 [2025-03-04 01:02:18] Production.ERROR: pbx CDR StartTime 2025-03-03 22:02:06 - End Time 2025-03-04 01:02:06 [2025-03-04 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602303', 'tblTempUsageDetail_20' ) start [2025-03-04 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602303', 'tblTempUsageDetail_20' ) end [2025-03-04 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602303', 'tblTempVendorCDR_20' ) start [2025-03-04 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602303', 'tblTempVendorCDR_20' ) end [2025-03-04 01:02:18] Production.INFO: ProcessCDR(1,14602303,1,1,2) [2025-03-04 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602303', 'tblTempUsageDetail_20' ) start [2025-03-04 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602303', 'tblTempUsageDetail_20' ) end [2025-03-04 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:02:21] Production.INFO: ==16274== Releasing lock... [2025-03-04 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:02:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-04 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:03:05 [end_date_ymd] => 2025-03-04 01:03:05 [RateCDR] => 1 ) [2025-03-04 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-03 22:03:05' and `end` < '2025-03-04 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-04 01:03:17] Production.INFO: count ==574 [2025-03-04 01:03:17] Production.ERROR: pbx CDR StartTime 2025-03-03 22:03:05 - End Time 2025-03-04 01:03:05 [2025-03-04 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602308', 'tblTempUsageDetail_20' ) start [2025-03-04 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602308', 'tblTempUsageDetail_20' ) end [2025-03-04 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602308', 'tblTempVendorCDR_20' ) start [2025-03-04 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602308', 'tblTempVendorCDR_20' ) end [2025-03-04 01:03:18] Production.INFO: ProcessCDR(1,14602308,1,1,2) [2025-03-04 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602308', 'tblTempUsageDetail_20' ) start [2025-03-04 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602308', 'tblTempUsageDetail_20' ) end [2025-03-04 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:03:21] Production.INFO: ==16346== Releasing lock... [2025-03-04 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:03:21] Production.INFO: 33 MB #Memory Used# [2025-03-04 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:04:05 [end_date_ymd] => 2025-03-04 01:04:05 [RateCDR] => 1 ) [2025-03-04 01: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-03 22:04:05' and `end` < '2025-03-04 01: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-04 01:04:17] Production.INFO: count ==575 [2025-03-04 01:04:17] Production.ERROR: pbx CDR StartTime 2025-03-03 22:04:05 - End Time 2025-03-04 01:04:05 [2025-03-04 01:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602313', 'tblTempUsageDetail_20' ) start [2025-03-04 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602313', 'tblTempUsageDetail_20' ) end [2025-03-04 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602313', 'tblTempVendorCDR_20' ) start [2025-03-04 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602313', 'tblTempVendorCDR_20' ) end [2025-03-04 01:04:17] Production.INFO: ProcessCDR(1,14602313,1,1,2) [2025-03-04 01:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602313', 'tblTempUsageDetail_20' ) start [2025-03-04 01:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602313', 'tblTempUsageDetail_20' ) end [2025-03-04 01:04:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:04:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:04:20] Production.INFO: ==16460== Releasing lock... [2025-03-04 01:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:04:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-04 01:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:05:06 [end_date_ymd] => 2025-03-04 01:05:06 [RateCDR] => 1 ) [2025-03-04 01: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-03 22:05:06' and `end` < '2025-03-04 01: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-04 01:05:18] Production.INFO: count ==577 [2025-03-04 01:05:18] Production.ERROR: pbx CDR StartTime 2025-03-03 22:05:06 - End Time 2025-03-04 01:05:06 [2025-03-04 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602318', 'tblTempUsageDetail_20' ) start [2025-03-04 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602318', 'tblTempUsageDetail_20' ) end [2025-03-04 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602318', 'tblTempVendorCDR_20' ) start [2025-03-04 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602318', 'tblTempVendorCDR_20' ) end [2025-03-04 01:05:18] Production.INFO: ProcessCDR(1,14602318,1,1,2) [2025-03-04 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602318', 'tblTempUsageDetail_20' ) start [2025-03-04 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602318', 'tblTempUsageDetail_20' ) end [2025-03-04 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:05:21] Production.INFO: ==16531== Releasing lock... [2025-03-04 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:05:21] Production.INFO: 33 MB #Memory Used# [2025-03-04 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:06:05 [end_date_ymd] => 2025-03-04 01:06:05 [RateCDR] => 1 ) [2025-03-04 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-03 22:06:05' and `end` < '2025-03-04 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-04 01:06:17] Production.INFO: count ==579 [2025-03-04 01:06:17] Production.ERROR: pbx CDR StartTime 2025-03-03 22:06:05 - End Time 2025-03-04 01:06:05 [2025-03-04 01:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602323', 'tblTempUsageDetail_20' ) start [2025-03-04 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602323', 'tblTempUsageDetail_20' ) end [2025-03-04 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602323', 'tblTempVendorCDR_20' ) start [2025-03-04 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602323', 'tblTempVendorCDR_20' ) end [2025-03-04 01:06:17] Production.INFO: ProcessCDR(1,14602323,1,1,2) [2025-03-04 01:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602323', 'tblTempUsageDetail_20' ) start [2025-03-04 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602323', 'tblTempUsageDetail_20' ) end [2025-03-04 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:06:21] Production.INFO: ==16602== Releasing lock... [2025-03-04 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:06:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-04 01:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:07:06 [end_date_ymd] => 2025-03-04 01:07:06 [RateCDR] => 1 ) [2025-03-04 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-03 22:07:06' and `end` < '2025-03-04 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-04 01:07:18] Production.INFO: count ==581 [2025-03-04 01:07:18] Production.ERROR: pbx CDR StartTime 2025-03-03 22:07:06 - End Time 2025-03-04 01:07:06 [2025-03-04 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602328', 'tblTempUsageDetail_20' ) start [2025-03-04 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602328', 'tblTempUsageDetail_20' ) end [2025-03-04 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602328', 'tblTempVendorCDR_20' ) start [2025-03-04 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602328', 'tblTempVendorCDR_20' ) end [2025-03-04 01:07:18] Production.INFO: ProcessCDR(1,14602328,1,1,2) [2025-03-04 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602328', 'tblTempUsageDetail_20' ) start [2025-03-04 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602328', 'tblTempUsageDetail_20' ) end [2025-03-04 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:07:21] Production.INFO: ==16675== Releasing lock... [2025-03-04 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:07:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-04 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:08:05 [end_date_ymd] => 2025-03-04 01:08:05 [RateCDR] => 1 ) [2025-03-04 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-03 22:08:05' and `end` < '2025-03-04 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-04 01:08:17] Production.INFO: count ==580 [2025-03-04 01:08:17] Production.ERROR: pbx CDR StartTime 2025-03-03 22:08:05 - End Time 2025-03-04 01:08:05 [2025-03-04 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602329', 'tblTempUsageDetail_20' ) start [2025-03-04 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602329', 'tblTempUsageDetail_20' ) end [2025-03-04 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602329', 'tblTempVendorCDR_20' ) start [2025-03-04 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602329', 'tblTempVendorCDR_20' ) end [2025-03-04 01:08:17] Production.INFO: ProcessCDR(1,14602329,1,1,2) [2025-03-04 01:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602329', 'tblTempUsageDetail_20' ) start [2025-03-04 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602329', 'tblTempUsageDetail_20' ) end [2025-03-04 01:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:08:20] Production.INFO: ==16744== Releasing lock... [2025-03-04 01:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:08:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-04 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:09:05 [end_date_ymd] => 2025-03-04 01:09:05 [RateCDR] => 1 ) [2025-03-04 01:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 22:09:05' and `end` < '2025-03-04 01:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 01:09:17] Production.INFO: count ==577 [2025-03-04 01:09:18] Production.ERROR: pbx CDR StartTime 2025-03-03 22:09:05 - End Time 2025-03-04 01:09:05 [2025-03-04 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602338', 'tblTempUsageDetail_20' ) start [2025-03-04 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602338', 'tblTempUsageDetail_20' ) end [2025-03-04 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602338', 'tblTempVendorCDR_20' ) start [2025-03-04 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602338', 'tblTempVendorCDR_20' ) end [2025-03-04 01:09:18] Production.INFO: ProcessCDR(1,14602338,1,1,2) [2025-03-04 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602338', 'tblTempUsageDetail_20' ) start [2025-03-04 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602338', 'tblTempUsageDetail_20' ) end [2025-03-04 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:09:21] Production.INFO: ==16815== Releasing lock... [2025-03-04 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:09:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-04 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:10:06 [end_date_ymd] => 2025-03-04 01:10:06 [RateCDR] => 1 ) [2025-03-04 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-03 22:10:06' and `end` < '2025-03-04 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-04 01:10:18] Production.INFO: count ==584 [2025-03-04 01:10:19] Production.ERROR: pbx CDR StartTime 2025-03-03 22:10:06 - End Time 2025-03-04 01:10:06 [2025-03-04 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602344', 'tblTempUsageDetail_20' ) start [2025-03-04 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602344', 'tblTempUsageDetail_20' ) end [2025-03-04 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602344', 'tblTempVendorCDR_20' ) start [2025-03-04 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602344', 'tblTempVendorCDR_20' ) end [2025-03-04 01:10:19] Production.INFO: ProcessCDR(1,14602344,1,1,2) [2025-03-04 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602344', 'tblTempUsageDetail_20' ) start [2025-03-04 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602344', 'tblTempUsageDetail_20' ) end [2025-03-04 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:10:22] Production.INFO: ==16888== Releasing lock... [2025-03-04 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:10:22] Production.INFO: 33 MB #Memory Used# [2025-03-04 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:11:05 [end_date_ymd] => 2025-03-04 01:11:05 [RateCDR] => 1 ) [2025-03-04 01:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 22:11:05' and `end` < '2025-03-04 01:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 01:11:17] Production.INFO: count ==592 [2025-03-04 01:11:17] Production.ERROR: pbx CDR StartTime 2025-03-03 22:11:05 - End Time 2025-03-04 01:11:05 [2025-03-04 01:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602349', 'tblTempUsageDetail_20' ) start [2025-03-04 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602349', 'tblTempUsageDetail_20' ) end [2025-03-04 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602349', 'tblTempVendorCDR_20' ) start [2025-03-04 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602349', 'tblTempVendorCDR_20' ) end [2025-03-04 01:11:17] Production.INFO: ProcessCDR(1,14602349,1,1,2) [2025-03-04 01:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602349', 'tblTempUsageDetail_20' ) start [2025-03-04 01:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602349', 'tblTempUsageDetail_20' ) end [2025-03-04 01:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:11:21] Production.INFO: ==16961== Releasing lock... [2025-03-04 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:11:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-04 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:12:05 [end_date_ymd] => 2025-03-04 01:12:05 [RateCDR] => 1 ) [2025-03-04 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-03 22:12:05' and `end` < '2025-03-04 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-04 01:12:17] Production.INFO: count ==593 [2025-03-04 01:12:17] Production.ERROR: pbx CDR StartTime 2025-03-03 22:12:05 - End Time 2025-03-04 01:12:05 [2025-03-04 01:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602354', 'tblTempUsageDetail_20' ) start [2025-03-04 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602354', 'tblTempUsageDetail_20' ) end [2025-03-04 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602354', 'tblTempVendorCDR_20' ) start [2025-03-04 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602354', 'tblTempVendorCDR_20' ) end [2025-03-04 01:12:17] Production.INFO: ProcessCDR(1,14602354,1,1,2) [2025-03-04 01:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602354', 'tblTempUsageDetail_20' ) start [2025-03-04 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602354', 'tblTempUsageDetail_20' ) end [2025-03-04 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:12:21] Production.INFO: ==17034== Releasing lock... [2025-03-04 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:12:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-04 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:13:05 [end_date_ymd] => 2025-03-04 01:13:05 [RateCDR] => 1 ) [2025-03-04 01: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-03 22:13:05' and `end` < '2025-03-04 01: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-04 01:13:17] Production.INFO: count ==593 [2025-03-04 01:13:17] Production.ERROR: pbx CDR StartTime 2025-03-03 22:13:05 - End Time 2025-03-04 01:13:05 [2025-03-04 01:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602359', 'tblTempUsageDetail_20' ) start [2025-03-04 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602359', 'tblTempUsageDetail_20' ) end [2025-03-04 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602359', 'tblTempVendorCDR_20' ) start [2025-03-04 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602359', 'tblTempVendorCDR_20' ) end [2025-03-04 01:13:17] Production.INFO: ProcessCDR(1,14602359,1,1,2) [2025-03-04 01:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602359', 'tblTempUsageDetail_20' ) start [2025-03-04 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602359', 'tblTempUsageDetail_20' ) end [2025-03-04 01:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:13:20] Production.INFO: ==17104== Releasing lock... [2025-03-04 01:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:13:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-04 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:14:05 [end_date_ymd] => 2025-03-04 01:14:05 [RateCDR] => 1 ) [2025-03-04 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-03 22:14:05' and `end` < '2025-03-04 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-04 01:14:17] Production.INFO: count ==593 [2025-03-04 01:14:17] Production.ERROR: pbx CDR StartTime 2025-03-03 22:14:05 - End Time 2025-03-04 01:14:05 [2025-03-04 01:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602364', 'tblTempUsageDetail_20' ) start [2025-03-04 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602364', 'tblTempUsageDetail_20' ) end [2025-03-04 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602364', 'tblTempVendorCDR_20' ) start [2025-03-04 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602364', 'tblTempVendorCDR_20' ) end [2025-03-04 01:14:18] Production.INFO: ProcessCDR(1,14602364,1,1,2) [2025-03-04 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602364', 'tblTempUsageDetail_20' ) start [2025-03-04 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602364', 'tblTempUsageDetail_20' ) end [2025-03-04 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:14:21] Production.INFO: ==17175== Releasing lock... [2025-03-04 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:14:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-04 01:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:15:06 [end_date_ymd] => 2025-03-04 01:15:06 [RateCDR] => 1 ) [2025-03-04 01:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 22:15:06' and `end` < '2025-03-04 01:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 01:15:18] Production.INFO: count ==595 [2025-03-04 01:15:18] Production.ERROR: pbx CDR StartTime 2025-03-03 22:15:06 - End Time 2025-03-04 01:15:06 [2025-03-04 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602369', 'tblTempUsageDetail_20' ) start [2025-03-04 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602369', 'tblTempUsageDetail_20' ) end [2025-03-04 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602369', 'tblTempVendorCDR_20' ) start [2025-03-04 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602369', 'tblTempVendorCDR_20' ) end [2025-03-04 01:15:18] Production.INFO: ProcessCDR(1,14602369,1,1,2) [2025-03-04 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602369', 'tblTempUsageDetail_20' ) start [2025-03-04 01:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602369', 'tblTempUsageDetail_20' ) end [2025-03-04 01:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:15:23] Production.INFO: ==17253== Releasing lock... [2025-03-04 01:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:15:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:16:05 [end_date_ymd] => 2025-03-04 01:16:05 [RateCDR] => 1 ) [2025-03-04 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-03 22:16:05' and `end` < '2025-03-04 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-04 01:16:17] Production.INFO: count ==596 [2025-03-04 01:16:18] Production.ERROR: pbx CDR StartTime 2025-03-03 22:16:05 - End Time 2025-03-04 01:16:05 [2025-03-04 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602374', 'tblTempUsageDetail_20' ) start [2025-03-04 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602374', 'tblTempUsageDetail_20' ) end [2025-03-04 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602374', 'tblTempVendorCDR_20' ) start [2025-03-04 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602374', 'tblTempVendorCDR_20' ) end [2025-03-04 01:16:18] Production.INFO: ProcessCDR(1,14602374,1,1,2) [2025-03-04 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602374', 'tblTempUsageDetail_20' ) start [2025-03-04 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602374', 'tblTempUsageDetail_20' ) end [2025-03-04 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:16:22] Production.INFO: ==17324== Releasing lock... [2025-03-04 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:16:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 01:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:17:06 [end_date_ymd] => 2025-03-04 01:17:06 [RateCDR] => 1 ) [2025-03-04 01:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 22:17:06' and `end` < '2025-03-04 01:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 01:17:18] Production.INFO: count ==595 [2025-03-04 01:17:18] Production.ERROR: pbx CDR StartTime 2025-03-03 22:17:06 - End Time 2025-03-04 01:17:06 [2025-03-04 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602379', 'tblTempUsageDetail_20' ) start [2025-03-04 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602379', 'tblTempUsageDetail_20' ) end [2025-03-04 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602379', 'tblTempVendorCDR_20' ) start [2025-03-04 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602379', 'tblTempVendorCDR_20' ) end [2025-03-04 01:17:18] Production.INFO: ProcessCDR(1,14602379,1,1,2) [2025-03-04 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602379', 'tblTempUsageDetail_20' ) start [2025-03-04 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602379', 'tblTempUsageDetail_20' ) end [2025-03-04 01:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:17:22] Production.INFO: ==17394== Releasing lock... [2025-03-04 01:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:17:22] Production.INFO: 33 MB #Memory Used# [2025-03-04 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:18:05 [end_date_ymd] => 2025-03-04 01:18:05 [RateCDR] => 1 ) [2025-03-04 01:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 22:18:05' and `end` < '2025-03-04 01:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 01:18:17] Production.INFO: count ==594 [2025-03-04 01:18:17] Production.ERROR: pbx CDR StartTime 2025-03-03 22:18:05 - End Time 2025-03-04 01:18:05 [2025-03-04 01:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602384', 'tblTempUsageDetail_20' ) start [2025-03-04 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602384', 'tblTempUsageDetail_20' ) end [2025-03-04 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602384', 'tblTempVendorCDR_20' ) start [2025-03-04 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602384', 'tblTempVendorCDR_20' ) end [2025-03-04 01:18:17] Production.INFO: ProcessCDR(1,14602384,1,1,2) [2025-03-04 01:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602384', 'tblTempUsageDetail_20' ) start [2025-03-04 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602384', 'tblTempUsageDetail_20' ) end [2025-03-04 01:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:18:20] Production.INFO: ==17470== Releasing lock... [2025-03-04 01:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:18:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 01:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:19:06 [end_date_ymd] => 2025-03-04 01:19:06 [RateCDR] => 1 ) [2025-03-04 01: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-03 22:19:06' and `end` < '2025-03-04 01: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-04 01:19:18] Production.INFO: count ==593 [2025-03-04 01:19:19] Production.ERROR: pbx CDR StartTime 2025-03-03 22:19:06 - End Time 2025-03-04 01:19:06 [2025-03-04 01:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602389', 'tblTempUsageDetail_20' ) start [2025-03-04 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602389', 'tblTempUsageDetail_20' ) end [2025-03-04 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602389', 'tblTempVendorCDR_20' ) start [2025-03-04 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602389', 'tblTempVendorCDR_20' ) end [2025-03-04 01:19:19] Production.INFO: ProcessCDR(1,14602389,1,1,2) [2025-03-04 01:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602389', 'tblTempUsageDetail_20' ) start [2025-03-04 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602389', 'tblTempUsageDetail_20' ) end [2025-03-04 01:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:19:22] Production.INFO: ==17543== Releasing lock... [2025-03-04 01:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:19:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-04 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:20:06 [end_date_ymd] => 2025-03-04 01:20:06 [RateCDR] => 1 ) [2025-03-04 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-03 22:20:06' and `end` < '2025-03-04 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-04 01:20:18] Production.INFO: count ==599 [2025-03-04 01:20:18] Production.ERROR: pbx CDR StartTime 2025-03-03 22:20:06 - End Time 2025-03-04 01:20:06 [2025-03-04 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602395', 'tblTempUsageDetail_20' ) start [2025-03-04 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602395', 'tblTempUsageDetail_20' ) end [2025-03-04 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602395', 'tblTempVendorCDR_20' ) start [2025-03-04 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602395', 'tblTempVendorCDR_20' ) end [2025-03-04 01:20:18] Production.INFO: ProcessCDR(1,14602395,1,1,2) [2025-03-04 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602395', 'tblTempUsageDetail_20' ) start [2025-03-04 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602395', 'tblTempUsageDetail_20' ) end [2025-03-04 01:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:20:21] Production.INFO: ==17655== Releasing lock... [2025-03-04 01:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:20:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 01:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:21:06 [end_date_ymd] => 2025-03-04 01:21:06 [RateCDR] => 1 ) [2025-03-04 01: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-03 22:21:06' and `end` < '2025-03-04 01: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-04 01:21:18] Production.INFO: count ==596 [2025-03-04 01:21:18] Production.ERROR: pbx CDR StartTime 2025-03-03 22:21:06 - End Time 2025-03-04 01:21:06 [2025-03-04 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602400', 'tblTempUsageDetail_20' ) start [2025-03-04 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602400', 'tblTempUsageDetail_20' ) end [2025-03-04 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602400', 'tblTempVendorCDR_20' ) start [2025-03-04 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602400', 'tblTempVendorCDR_20' ) end [2025-03-04 01:21:18] Production.INFO: ProcessCDR(1,14602400,1,1,2) [2025-03-04 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602400', 'tblTempUsageDetail_20' ) start [2025-03-04 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602400', 'tblTempUsageDetail_20' ) end [2025-03-04 01:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:21:22] Production.INFO: ==17728== Releasing lock... [2025-03-04 01:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:21:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-04 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:22:05 [end_date_ymd] => 2025-03-04 01:22:05 [RateCDR] => 1 ) [2025-03-04 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-03 22:22:05' and `end` < '2025-03-04 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-04 01:22:17] Production.INFO: count ==596 [2025-03-04 01:22:18] Production.ERROR: pbx CDR StartTime 2025-03-03 22:22:05 - End Time 2025-03-04 01:22:05 [2025-03-04 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602405', 'tblTempUsageDetail_20' ) start [2025-03-04 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602405', 'tblTempUsageDetail_20' ) end [2025-03-04 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602405', 'tblTempVendorCDR_20' ) start [2025-03-04 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602405', 'tblTempVendorCDR_20' ) end [2025-03-04 01:22:18] Production.INFO: ProcessCDR(1,14602405,1,1,2) [2025-03-04 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602405', 'tblTempUsageDetail_20' ) start [2025-03-04 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602405', 'tblTempUsageDetail_20' ) end [2025-03-04 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:22:21] Production.INFO: ==17799== Releasing lock... [2025-03-04 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:22:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-04 01:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:23:06 [end_date_ymd] => 2025-03-04 01:23:06 [RateCDR] => 1 ) [2025-03-04 01: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-03 22:23:06' and `end` < '2025-03-04 01: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-04 01:23:18] Production.INFO: count ==596 [2025-03-04 01:23:18] Production.ERROR: pbx CDR StartTime 2025-03-03 22:23:06 - End Time 2025-03-04 01:23:06 [2025-03-04 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602410', 'tblTempUsageDetail_20' ) start [2025-03-04 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602410', 'tblTempUsageDetail_20' ) end [2025-03-04 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602410', 'tblTempVendorCDR_20' ) start [2025-03-04 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602410', 'tblTempVendorCDR_20' ) end [2025-03-04 01:23:18] Production.INFO: ProcessCDR(1,14602410,1,1,2) [2025-03-04 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602410', 'tblTempUsageDetail_20' ) start [2025-03-04 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602410', 'tblTempUsageDetail_20' ) end [2025-03-04 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:23:21] Production.INFO: ==17870== Releasing lock... [2025-03-04 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:23:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-04 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:24:05 [end_date_ymd] => 2025-03-04 01:24:05 [RateCDR] => 1 ) [2025-03-04 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-03 22:24:05' and `end` < '2025-03-04 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-04 01:24:17] Production.INFO: count ==596 [2025-03-04 01:24:17] Production.ERROR: pbx CDR StartTime 2025-03-03 22:24:05 - End Time 2025-03-04 01:24:05 [2025-03-04 01:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602415', 'tblTempUsageDetail_20' ) start [2025-03-04 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602415', 'tblTempUsageDetail_20' ) end [2025-03-04 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602415', 'tblTempVendorCDR_20' ) start [2025-03-04 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602415', 'tblTempVendorCDR_20' ) end [2025-03-04 01:24:17] Production.INFO: ProcessCDR(1,14602415,1,1,2) [2025-03-04 01:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602415', 'tblTempUsageDetail_20' ) start [2025-03-04 01:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602415', 'tblTempUsageDetail_20' ) end [2025-03-04 01:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:24:21] Production.INFO: ==17941== Releasing lock... [2025-03-04 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:24:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-04 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:25:06 [end_date_ymd] => 2025-03-04 01:25:06 [RateCDR] => 1 ) [2025-03-04 01: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-03 22:25:06' and `end` < '2025-03-04 01: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-04 01:25:18] Production.INFO: count ==599 [2025-03-04 01:25:18] Production.ERROR: pbx CDR StartTime 2025-03-03 22:25:06 - End Time 2025-03-04 01:25:06 [2025-03-04 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602420', 'tblTempUsageDetail_20' ) start [2025-03-04 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602420', 'tblTempUsageDetail_20' ) end [2025-03-04 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602420', 'tblTempVendorCDR_20' ) start [2025-03-04 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602420', 'tblTempVendorCDR_20' ) end [2025-03-04 01:25:18] Production.INFO: ProcessCDR(1,14602420,1,1,2) [2025-03-04 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602420', 'tblTempUsageDetail_20' ) start [2025-03-04 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602420', 'tblTempUsageDetail_20' ) end [2025-03-04 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:25:21] Production.INFO: ==18013== Releasing lock... [2025-03-04 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:25:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:26:05 [end_date_ymd] => 2025-03-04 01:26:05 [RateCDR] => 1 ) [2025-03-04 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-03 22:26:05' and `end` < '2025-03-04 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-04 01:26:17] Production.INFO: count ==599 [2025-03-04 01:26:17] Production.ERROR: pbx CDR StartTime 2025-03-03 22:26:05 - End Time 2025-03-04 01:26:05 [2025-03-04 01:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602425', 'tblTempUsageDetail_20' ) start [2025-03-04 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602425', 'tblTempUsageDetail_20' ) end [2025-03-04 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602425', 'tblTempVendorCDR_20' ) start [2025-03-04 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602425', 'tblTempVendorCDR_20' ) end [2025-03-04 01:26:17] Production.INFO: ProcessCDR(1,14602425,1,1,2) [2025-03-04 01:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602425', 'tblTempUsageDetail_20' ) start [2025-03-04 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602425', 'tblTempUsageDetail_20' ) end [2025-03-04 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:26:21] Production.INFO: ==18084== Releasing lock... [2025-03-04 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:26:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 01:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:27:06 [end_date_ymd] => 2025-03-04 01:27:06 [RateCDR] => 1 ) [2025-03-04 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-03 22:27:06' and `end` < '2025-03-04 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-04 01:27:18] Production.INFO: count ==598 [2025-03-04 01:27:18] Production.ERROR: pbx CDR StartTime 2025-03-03 22:27:06 - End Time 2025-03-04 01:27:06 [2025-03-04 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602430', 'tblTempUsageDetail_20' ) start [2025-03-04 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602430', 'tblTempUsageDetail_20' ) end [2025-03-04 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602430', 'tblTempVendorCDR_20' ) start [2025-03-04 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602430', 'tblTempVendorCDR_20' ) end [2025-03-04 01:27:18] Production.INFO: ProcessCDR(1,14602430,1,1,2) [2025-03-04 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602430', 'tblTempUsageDetail_20' ) start [2025-03-04 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602430', 'tblTempUsageDetail_20' ) end [2025-03-04 01:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:27:22] Production.INFO: ==18159== Releasing lock... [2025-03-04 01:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:27:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:28:05 [end_date_ymd] => 2025-03-04 01:28:05 [RateCDR] => 1 ) [2025-03-04 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-03 22:28:05' and `end` < '2025-03-04 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-04 01:28:17] Production.INFO: count ==598 [2025-03-04 01:28:17] Production.ERROR: pbx CDR StartTime 2025-03-03 22:28:05 - End Time 2025-03-04 01:28:05 [2025-03-04 01:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602435', 'tblTempUsageDetail_20' ) start [2025-03-04 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602435', 'tblTempUsageDetail_20' ) end [2025-03-04 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602435', 'tblTempVendorCDR_20' ) start [2025-03-04 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602435', 'tblTempVendorCDR_20' ) end [2025-03-04 01:28:17] Production.INFO: ProcessCDR(1,14602435,1,1,2) [2025-03-04 01:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602435', 'tblTempUsageDetail_20' ) start [2025-03-04 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602435', 'tblTempUsageDetail_20' ) end [2025-03-04 01:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:28:20] Production.INFO: ==18232== Releasing lock... [2025-03-04 01:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:28:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:29:05 [end_date_ymd] => 2025-03-04 01:29:05 [RateCDR] => 1 ) [2025-03-04 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-03 22:29:05' and `end` < '2025-03-04 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-04 01:29:17] Production.INFO: count ==598 [2025-03-04 01:29:17] Production.ERROR: pbx CDR StartTime 2025-03-03 22:29:05 - End Time 2025-03-04 01:29:05 [2025-03-04 01:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602440', 'tblTempUsageDetail_20' ) start [2025-03-04 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602440', 'tblTempUsageDetail_20' ) end [2025-03-04 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602440', 'tblTempVendorCDR_20' ) start [2025-03-04 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602440', 'tblTempVendorCDR_20' ) end [2025-03-04 01:29:17] Production.INFO: ProcessCDR(1,14602440,1,1,2) [2025-03-04 01:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602440', 'tblTempUsageDetail_20' ) start [2025-03-04 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602440', 'tblTempUsageDetail_20' ) end [2025-03-04 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:29:21] Production.INFO: ==18303== Releasing lock... [2025-03-04 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:29:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:30:06 [end_date_ymd] => 2025-03-04 01:30:06 [RateCDR] => 1 ) [2025-03-04 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-03 22:30:06' and `end` < '2025-03-04 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-04 01:30:18] Production.INFO: count ==603 [2025-03-04 01:30:18] Production.ERROR: pbx CDR StartTime 2025-03-03 22:30:06 - End Time 2025-03-04 01:30:06 [2025-03-04 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602446', 'tblTempUsageDetail_20' ) start [2025-03-04 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602446', 'tblTempUsageDetail_20' ) end [2025-03-04 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602446', 'tblTempVendorCDR_20' ) start [2025-03-04 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602446', 'tblTempVendorCDR_20' ) end [2025-03-04 01:30:18] Production.INFO: ProcessCDR(1,14602446,1,1,2) [2025-03-04 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602446', 'tblTempUsageDetail_20' ) start [2025-03-04 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602446', 'tblTempUsageDetail_20' ) end [2025-03-04 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:30:22] Production.INFO: ==18377== Releasing lock... [2025-03-04 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:30:22] Production.INFO: 33 MB #Memory Used# [2025-03-04 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:31:05 [end_date_ymd] => 2025-03-04 01:31:05 [RateCDR] => 1 ) [2025-03-04 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-03 22:31:05' and `end` < '2025-03-04 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-04 01:31:17] Production.INFO: count ==609 [2025-03-04 01:31:18] Production.ERROR: pbx CDR StartTime 2025-03-03 22:31:05 - End Time 2025-03-04 01:31:05 [2025-03-04 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602451', 'tblTempUsageDetail_20' ) start [2025-03-04 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602451', 'tblTempUsageDetail_20' ) end [2025-03-04 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602451', 'tblTempVendorCDR_20' ) start [2025-03-04 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602451', 'tblTempVendorCDR_20' ) end [2025-03-04 01:31:18] Production.INFO: ProcessCDR(1,14602451,1,1,2) [2025-03-04 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602451', 'tblTempUsageDetail_20' ) start [2025-03-04 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602451', 'tblTempUsageDetail_20' ) end [2025-03-04 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:31:21] Production.INFO: ==18451== Releasing lock... [2025-03-04 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:31:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-04 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:32:05 [end_date_ymd] => 2025-03-04 01:32:05 [RateCDR] => 1 ) [2025-03-04 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-03 22:32:05' and `end` < '2025-03-04 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-04 01:32:17] Production.INFO: count ==610 [2025-03-04 01:32:17] Production.ERROR: pbx CDR StartTime 2025-03-03 22:32:05 - End Time 2025-03-04 01:32:05 [2025-03-04 01:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602456', 'tblTempUsageDetail_20' ) start [2025-03-04 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602456', 'tblTempUsageDetail_20' ) end [2025-03-04 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602456', 'tblTempVendorCDR_20' ) start [2025-03-04 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602456', 'tblTempVendorCDR_20' ) end [2025-03-04 01:32:17] Production.INFO: ProcessCDR(1,14602456,1,1,2) [2025-03-04 01:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602456', 'tblTempUsageDetail_20' ) start [2025-03-04 01:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602456', 'tblTempUsageDetail_20' ) end [2025-03-04 01:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:32:20] Production.INFO: ==18525== Releasing lock... [2025-03-04 01:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:32:20] Production.INFO: 33 MB #Memory Used# [2025-03-04 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:33:05 [end_date_ymd] => 2025-03-04 01:33:05 [RateCDR] => 1 ) [2025-03-04 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-03 22:33:05' and `end` < '2025-03-04 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-04 01:33:17] Production.INFO: count ==609 [2025-03-04 01:33:18] Production.ERROR: pbx CDR StartTime 2025-03-03 22:33:05 - End Time 2025-03-04 01:33:05 [2025-03-04 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602461', 'tblTempUsageDetail_20' ) start [2025-03-04 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602461', 'tblTempUsageDetail_20' ) end [2025-03-04 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602461', 'tblTempVendorCDR_20' ) start [2025-03-04 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602461', 'tblTempVendorCDR_20' ) end [2025-03-04 01:33:18] Production.INFO: ProcessCDR(1,14602461,1,1,2) [2025-03-04 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602461', 'tblTempUsageDetail_20' ) start [2025-03-04 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602461', 'tblTempUsageDetail_20' ) end [2025-03-04 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:33:21] Production.INFO: ==18606== Releasing lock... [2025-03-04 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:33:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:34:05 [end_date_ymd] => 2025-03-04 01:34:05 [RateCDR] => 1 ) [2025-03-04 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-03 22:34:05' and `end` < '2025-03-04 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-04 01:34:17] Production.INFO: count ==609 [2025-03-04 01:34:18] Production.ERROR: pbx CDR StartTime 2025-03-03 22:34:05 - End Time 2025-03-04 01:34:05 [2025-03-04 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602466', 'tblTempUsageDetail_20' ) start [2025-03-04 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602466', 'tblTempUsageDetail_20' ) end [2025-03-04 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602466', 'tblTempVendorCDR_20' ) start [2025-03-04 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602466', 'tblTempVendorCDR_20' ) end [2025-03-04 01:34:18] Production.INFO: ProcessCDR(1,14602466,1,1,2) [2025-03-04 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602466', 'tblTempUsageDetail_20' ) start [2025-03-04 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602466', 'tblTempUsageDetail_20' ) end [2025-03-04 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:34:21] Production.INFO: ==18680== Releasing lock... [2025-03-04 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:34:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 01:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:35:06 [end_date_ymd] => 2025-03-04 01:35:06 [RateCDR] => 1 ) [2025-03-04 01: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-03 22:35:06' and `end` < '2025-03-04 01: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-04 01:35:18] Production.INFO: count ==609 [2025-03-04 01:35:19] Production.ERROR: pbx CDR StartTime 2025-03-03 22:35:06 - End Time 2025-03-04 01:35:06 [2025-03-04 01:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602471', 'tblTempUsageDetail_20' ) start [2025-03-04 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602471', 'tblTempUsageDetail_20' ) end [2025-03-04 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602471', 'tblTempVendorCDR_20' ) start [2025-03-04 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602471', 'tblTempVendorCDR_20' ) end [2025-03-04 01:35:19] Production.INFO: ProcessCDR(1,14602471,1,1,2) [2025-03-04 01:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602471', 'tblTempUsageDetail_20' ) start [2025-03-04 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602471', 'tblTempUsageDetail_20' ) end [2025-03-04 01:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:35:22] Production.INFO: ==18799== Releasing lock... [2025-03-04 01:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:35:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:36:05 [end_date_ymd] => 2025-03-04 01:36:05 [RateCDR] => 1 ) [2025-03-04 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-03 22:36:05' and `end` < '2025-03-04 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-04 01:36:17] Production.INFO: count ==608 [2025-03-04 01:36:17] Production.ERROR: pbx CDR StartTime 2025-03-03 22:36:05 - End Time 2025-03-04 01:36:05 [2025-03-04 01:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602476', 'tblTempUsageDetail_20' ) start [2025-03-04 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602476', 'tblTempUsageDetail_20' ) end [2025-03-04 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602476', 'tblTempVendorCDR_20' ) start [2025-03-04 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602476', 'tblTempVendorCDR_20' ) end [2025-03-04 01:36:17] Production.INFO: ProcessCDR(1,14602476,1,1,2) [2025-03-04 01:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602476', 'tblTempUsageDetail_20' ) start [2025-03-04 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602476', 'tblTempUsageDetail_20' ) end [2025-03-04 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:36:21] Production.INFO: ==18870== Releasing lock... [2025-03-04 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:36:21] Production.INFO: 33 MB #Memory Used# [2025-03-04 01:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:37:06 [end_date_ymd] => 2025-03-04 01:37:06 [RateCDR] => 1 ) [2025-03-04 01:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 22:37:06' and `end` < '2025-03-04 01:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 01:37:18] Production.INFO: count ==608 [2025-03-04 01:37:18] Production.ERROR: pbx CDR StartTime 2025-03-03 22:37:06 - End Time 2025-03-04 01:37:06 [2025-03-04 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602481', 'tblTempUsageDetail_20' ) start [2025-03-04 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602481', 'tblTempUsageDetail_20' ) end [2025-03-04 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602481', 'tblTempVendorCDR_20' ) start [2025-03-04 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602481', 'tblTempVendorCDR_20' ) end [2025-03-04 01:37:18] Production.INFO: ProcessCDR(1,14602481,1,1,2) [2025-03-04 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602481', 'tblTempUsageDetail_20' ) start [2025-03-04 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602481', 'tblTempUsageDetail_20' ) end [2025-03-04 01:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:37:22] Production.INFO: ==18943== Releasing lock... [2025-03-04 01:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:37:22] Production.INFO: 33 MB #Memory Used# [2025-03-04 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:38:05 [end_date_ymd] => 2025-03-04 01:38:05 [RateCDR] => 1 ) [2025-03-04 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-03 22:38:05' and `end` < '2025-03-04 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-04 01:38:18] Production.INFO: count ==608 [2025-03-04 01:38:18] Production.ERROR: pbx CDR StartTime 2025-03-03 22:38:05 - End Time 2025-03-04 01:38:05 [2025-03-04 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602486', 'tblTempUsageDetail_20' ) start [2025-03-04 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602486', 'tblTempUsageDetail_20' ) end [2025-03-04 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602486', 'tblTempVendorCDR_20' ) start [2025-03-04 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602486', 'tblTempVendorCDR_20' ) end [2025-03-04 01:38:18] Production.INFO: ProcessCDR(1,14602486,1,1,2) [2025-03-04 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602486', 'tblTempUsageDetail_20' ) start [2025-03-04 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602486', 'tblTempUsageDetail_20' ) end [2025-03-04 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:38:21] Production.INFO: ==19013== Releasing lock... [2025-03-04 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:38:21] Production.INFO: 33 MB #Memory Used# [2025-03-04 01:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:39:06 [end_date_ymd] => 2025-03-04 01:39:06 [RateCDR] => 1 ) [2025-03-04 01: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-03 22:39:06' and `end` < '2025-03-04 01: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-04 01:39:18] Production.INFO: count ==604 [2025-03-04 01:39:18] Production.ERROR: pbx CDR StartTime 2025-03-03 22:39:06 - End Time 2025-03-04 01:39:06 [2025-03-04 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602491', 'tblTempUsageDetail_20' ) start [2025-03-04 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602491', 'tblTempUsageDetail_20' ) end [2025-03-04 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602491', 'tblTempVendorCDR_20' ) start [2025-03-04 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602491', 'tblTempVendorCDR_20' ) end [2025-03-04 01:39:18] Production.INFO: ProcessCDR(1,14602491,1,1,2) [2025-03-04 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602491', 'tblTempUsageDetail_20' ) start [2025-03-04 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602491', 'tblTempUsageDetail_20' ) end [2025-03-04 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:39:21] Production.INFO: ==19092== Releasing lock... [2025-03-04 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:39:21] Production.INFO: 33 MB #Memory Used# [2025-03-04 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:40:06 [end_date_ymd] => 2025-03-04 01:40:06 [RateCDR] => 1 ) [2025-03-04 01: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-03 22:40:06' and `end` < '2025-03-04 01: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-04 01:40:18] Production.INFO: count ==609 [2025-03-04 01:40:18] Production.ERROR: pbx CDR StartTime 2025-03-03 22:40:06 - End Time 2025-03-04 01:40:06 [2025-03-04 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602496', 'tblTempUsageDetail_20' ) start [2025-03-04 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602496', 'tblTempUsageDetail_20' ) end [2025-03-04 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602496', 'tblTempVendorCDR_20' ) start [2025-03-04 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602496', 'tblTempVendorCDR_20' ) end [2025-03-04 01:40:19] Production.INFO: ProcessCDR(1,14602496,1,1,2) [2025-03-04 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602496', 'tblTempUsageDetail_20' ) start [2025-03-04 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602496', 'tblTempUsageDetail_20' ) end [2025-03-04 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:40:22] Production.INFO: ==19163== Releasing lock... [2025-03-04 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:40:22] Production.INFO: 33 MB #Memory Used# [2025-03-04 01:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:41:06 [end_date_ymd] => 2025-03-04 01:41:06 [RateCDR] => 1 ) [2025-03-04 01: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-03 22:41:06' and `end` < '2025-03-04 01: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-04 01:41:18] Production.INFO: count ==609 [2025-03-04 01:41:18] Production.ERROR: pbx CDR StartTime 2025-03-03 22:41:06 - End Time 2025-03-04 01:41:06 [2025-03-04 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602502', 'tblTempUsageDetail_20' ) start [2025-03-04 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602502', 'tblTempUsageDetail_20' ) end [2025-03-04 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602502', 'tblTempVendorCDR_20' ) start [2025-03-04 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602502', 'tblTempVendorCDR_20' ) end [2025-03-04 01:41:18] Production.INFO: ProcessCDR(1,14602502,1,1,2) [2025-03-04 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602502', 'tblTempUsageDetail_20' ) start [2025-03-04 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602502', 'tblTempUsageDetail_20' ) end [2025-03-04 01:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:41:21] Production.INFO: ==19239== Releasing lock... [2025-03-04 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:41:21] Production.INFO: 33 MB #Memory Used# [2025-03-04 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:42:05 [end_date_ymd] => 2025-03-04 01:42:05 [RateCDR] => 1 ) [2025-03-04 01: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-03 22:42:05' and `end` < '2025-03-04 01: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-04 01:42:17] Production.INFO: count ==607 [2025-03-04 01:42:17] Production.ERROR: pbx CDR StartTime 2025-03-03 22:42:05 - End Time 2025-03-04 01:42:05 [2025-03-04 01:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602506', 'tblTempUsageDetail_20' ) start [2025-03-04 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602506', 'tblTempUsageDetail_20' ) end [2025-03-04 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602506', 'tblTempVendorCDR_20' ) start [2025-03-04 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602506', 'tblTempVendorCDR_20' ) end [2025-03-04 01:42:17] Production.INFO: ProcessCDR(1,14602506,1,1,2) [2025-03-04 01:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602506', 'tblTempUsageDetail_20' ) start [2025-03-04 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602506', 'tblTempUsageDetail_20' ) end [2025-03-04 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:42:21] Production.INFO: ==19310== Releasing lock... [2025-03-04 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:42:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 01:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:43:06 [end_date_ymd] => 2025-03-04 01:43:06 [RateCDR] => 1 ) [2025-03-04 01: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-03 22:43:06' and `end` < '2025-03-04 01: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-04 01:43:18] Production.INFO: count ==607 [2025-03-04 01:43:18] Production.ERROR: pbx CDR StartTime 2025-03-03 22:43:06 - End Time 2025-03-04 01:43:06 [2025-03-04 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602512', 'tblTempUsageDetail_20' ) start [2025-03-04 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602512', 'tblTempUsageDetail_20' ) end [2025-03-04 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602512', 'tblTempVendorCDR_20' ) start [2025-03-04 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602512', 'tblTempVendorCDR_20' ) end [2025-03-04 01:43:18] Production.INFO: ProcessCDR(1,14602512,1,1,2) [2025-03-04 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602512', 'tblTempUsageDetail_20' ) start [2025-03-04 01:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602512', 'tblTempUsageDetail_20' ) end [2025-03-04 01:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:43:24] Production.INFO: ==19386== Releasing lock... [2025-03-04 01:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:43:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 01:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:44:06 [end_date_ymd] => 2025-03-04 01:44:06 [RateCDR] => 1 ) [2025-03-04 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-03 22:44:06' and `end` < '2025-03-04 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-04 01:44:18] Production.INFO: count ==607 [2025-03-04 01:44:18] Production.ERROR: pbx CDR StartTime 2025-03-03 22:44:06 - End Time 2025-03-04 01:44:06 [2025-03-04 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602517', 'tblTempUsageDetail_20' ) start [2025-03-04 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602517', 'tblTempUsageDetail_20' ) end [2025-03-04 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602517', 'tblTempVendorCDR_20' ) start [2025-03-04 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602517', 'tblTempVendorCDR_20' ) end [2025-03-04 01:44:18] Production.INFO: ProcessCDR(1,14602517,1,1,2) [2025-03-04 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602517', 'tblTempUsageDetail_20' ) start [2025-03-04 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602517', 'tblTempUsageDetail_20' ) end [2025-03-04 01:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:44:22] Production.INFO: ==19463== Releasing lock... [2025-03-04 01:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:44:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 01:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:45:06 [end_date_ymd] => 2025-03-04 01:45:06 [RateCDR] => 1 ) [2025-03-04 01: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-03 22:45:06' and `end` < '2025-03-04 01: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-04 01:45:18] Production.INFO: count ==603 [2025-03-04 01:45:18] Production.ERROR: pbx CDR StartTime 2025-03-03 22:45:06 - End Time 2025-03-04 01:45:06 [2025-03-04 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602522', 'tblTempUsageDetail_20' ) start [2025-03-04 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602522', 'tblTempUsageDetail_20' ) end [2025-03-04 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602522', 'tblTempVendorCDR_20' ) start [2025-03-04 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602522', 'tblTempVendorCDR_20' ) end [2025-03-04 01:45:18] Production.INFO: ProcessCDR(1,14602522,1,1,2) [2025-03-04 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602522', 'tblTempUsageDetail_20' ) start [2025-03-04 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602522', 'tblTempUsageDetail_20' ) end [2025-03-04 01:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:45:22] Production.INFO: ==19539== Releasing lock... [2025-03-04 01:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:45:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:46:05 [end_date_ymd] => 2025-03-04 01:46:05 [RateCDR] => 1 ) [2025-03-04 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 22:46:05' and `end` < '2025-03-04 01:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 01:46:17] Production.INFO: count ==600 [2025-03-04 01:46:18] Production.ERROR: pbx CDR StartTime 2025-03-03 22:46:05 - End Time 2025-03-04 01:46:05 [2025-03-04 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602527', 'tblTempUsageDetail_20' ) start [2025-03-04 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602527', 'tblTempUsageDetail_20' ) end [2025-03-04 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602527', 'tblTempVendorCDR_20' ) start [2025-03-04 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602527', 'tblTempVendorCDR_20' ) end [2025-03-04 01:46:18] Production.INFO: ProcessCDR(1,14602527,1,1,2) [2025-03-04 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602527', 'tblTempUsageDetail_20' ) start [2025-03-04 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602527', 'tblTempUsageDetail_20' ) end [2025-03-04 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:46:21] Production.INFO: ==19612== Releasing lock... [2025-03-04 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:46:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-04 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:47:05 [end_date_ymd] => 2025-03-04 01:47:05 [RateCDR] => 1 ) [2025-03-04 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-03 22:47:05' and `end` < '2025-03-04 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-04 01:47:17] Production.INFO: count ==600 [2025-03-04 01:47:17] Production.ERROR: pbx CDR StartTime 2025-03-03 22:47:05 - End Time 2025-03-04 01:47:05 [2025-03-04 01:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602532', 'tblTempUsageDetail_20' ) start [2025-03-04 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602532', 'tblTempUsageDetail_20' ) end [2025-03-04 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602532', 'tblTempVendorCDR_20' ) start [2025-03-04 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602532', 'tblTempVendorCDR_20' ) end [2025-03-04 01:47:17] Production.INFO: ProcessCDR(1,14602532,1,1,2) [2025-03-04 01:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602532', 'tblTempUsageDetail_20' ) start [2025-03-04 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602532', 'tblTempUsageDetail_20' ) end [2025-03-04 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:47:21] Production.INFO: ==19690== Releasing lock... [2025-03-04 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:47:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-04 01:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:48:06 [end_date_ymd] => 2025-03-04 01:48:06 [RateCDR] => 1 ) [2025-03-04 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-03 22:48:06' and `end` < '2025-03-04 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-04 01:48:18] Production.INFO: count ==599 [2025-03-04 01:48:18] Production.ERROR: pbx CDR StartTime 2025-03-03 22:48:06 - End Time 2025-03-04 01:48:06 [2025-03-04 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602537', 'tblTempUsageDetail_20' ) start [2025-03-04 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602537', 'tblTempUsageDetail_20' ) end [2025-03-04 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602537', 'tblTempVendorCDR_20' ) start [2025-03-04 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602537', 'tblTempVendorCDR_20' ) end [2025-03-04 01:48:18] Production.INFO: ProcessCDR(1,14602537,1,1,2) [2025-03-04 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602537', 'tblTempUsageDetail_20' ) start [2025-03-04 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602537', 'tblTempUsageDetail_20' ) end [2025-03-04 01:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:48:22] Production.INFO: ==19768== Releasing lock... [2025-03-04 01:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:48:22] Production.INFO: 33 MB #Memory Used# [2025-03-04 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:49:05 [end_date_ymd] => 2025-03-04 01:49:05 [RateCDR] => 1 ) [2025-03-04 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-03 22:49:05' and `end` < '2025-03-04 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-04 01:49:17] Production.INFO: count ==596 [2025-03-04 01:49:17] Production.ERROR: pbx CDR StartTime 2025-03-03 22:49:05 - End Time 2025-03-04 01:49:05 [2025-03-04 01:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602542', 'tblTempUsageDetail_20' ) start [2025-03-04 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602542', 'tblTempUsageDetail_20' ) end [2025-03-04 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602542', 'tblTempVendorCDR_20' ) start [2025-03-04 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602542', 'tblTempVendorCDR_20' ) end [2025-03-04 01:49:17] Production.INFO: ProcessCDR(1,14602542,1,1,2) [2025-03-04 01:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602542', 'tblTempUsageDetail_20' ) start [2025-03-04 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602542', 'tblTempUsageDetail_20' ) end [2025-03-04 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:49:21] Production.INFO: ==19845== Releasing lock... [2025-03-04 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:49:21] Production.INFO: 33 MB #Memory Used# [2025-03-04 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:50:06 [end_date_ymd] => 2025-03-04 01:50:06 [RateCDR] => 1 ) [2025-03-04 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-03 22:50:06' and `end` < '2025-03-04 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-04 01:50:18] Production.INFO: count ==593 [2025-03-04 01:50:18] Production.ERROR: pbx CDR StartTime 2025-03-03 22:50:06 - End Time 2025-03-04 01:50:06 [2025-03-04 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602547', 'tblTempUsageDetail_20' ) start [2025-03-04 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602547', 'tblTempUsageDetail_20' ) end [2025-03-04 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602547', 'tblTempVendorCDR_20' ) start [2025-03-04 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602547', 'tblTempVendorCDR_20' ) end [2025-03-04 01:50:19] Production.INFO: ProcessCDR(1,14602547,1,1,2) [2025-03-04 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602547', 'tblTempUsageDetail_20' ) start [2025-03-04 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602547', 'tblTempUsageDetail_20' ) end [2025-03-04 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:50:22] Production.INFO: ==19967== Releasing lock... [2025-03-04 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:50:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-04 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:51:05 [end_date_ymd] => 2025-03-04 01:51:05 [RateCDR] => 1 ) [2025-03-04 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-03 22:51:05' and `end` < '2025-03-04 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-04 01:51:17] Production.INFO: count ==593 [2025-03-04 01:51:18] Production.ERROR: pbx CDR StartTime 2025-03-03 22:51:05 - End Time 2025-03-04 01:51:05 [2025-03-04 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602553', 'tblTempUsageDetail_20' ) start [2025-03-04 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602553', 'tblTempUsageDetail_20' ) end [2025-03-04 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602553', 'tblTempVendorCDR_20' ) start [2025-03-04 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602553', 'tblTempVendorCDR_20' ) end [2025-03-04 01:51:18] Production.INFO: ProcessCDR(1,14602553,1,1,2) [2025-03-04 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602553', 'tblTempUsageDetail_20' ) start [2025-03-04 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602553', 'tblTempUsageDetail_20' ) end [2025-03-04 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:51:21] Production.INFO: ==20045== Releasing lock... [2025-03-04 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:51:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-04 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:52:06 [end_date_ymd] => 2025-03-04 01:52:06 [RateCDR] => 1 ) [2025-03-04 01: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-03 22:52:06' and `end` < '2025-03-04 01: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-04 01:52:18] Production.INFO: count ==592 [2025-03-04 01:52:18] Production.ERROR: pbx CDR StartTime 2025-03-03 22:52:06 - End Time 2025-03-04 01:52:06 [2025-03-04 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602558', 'tblTempUsageDetail_20' ) start [2025-03-04 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602558', 'tblTempUsageDetail_20' ) end [2025-03-04 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602558', 'tblTempVendorCDR_20' ) start [2025-03-04 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602558', 'tblTempVendorCDR_20' ) end [2025-03-04 01:52:18] Production.INFO: ProcessCDR(1,14602558,1,1,2) [2025-03-04 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602558', 'tblTempUsageDetail_20' ) start [2025-03-04 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602558', 'tblTempUsageDetail_20' ) end [2025-03-04 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:52:22] Production.INFO: ==20120== Releasing lock... [2025-03-04 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:52:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:53:05 [end_date_ymd] => 2025-03-04 01:53:05 [RateCDR] => 1 ) [2025-03-04 01:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 22:53:05' and `end` < '2025-03-04 01:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 01:53:17] Production.INFO: count ==592 [2025-03-04 01:53:18] Production.ERROR: pbx CDR StartTime 2025-03-03 22:53:05 - End Time 2025-03-04 01:53:05 [2025-03-04 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602563', 'tblTempUsageDetail_20' ) start [2025-03-04 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602563', 'tblTempUsageDetail_20' ) end [2025-03-04 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602563', 'tblTempVendorCDR_20' ) start [2025-03-04 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602563', 'tblTempVendorCDR_20' ) end [2025-03-04 01:53:18] Production.INFO: ProcessCDR(1,14602563,1,1,2) [2025-03-04 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602563', 'tblTempUsageDetail_20' ) start [2025-03-04 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602563', 'tblTempUsageDetail_20' ) end [2025-03-04 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:53:21] Production.INFO: ==20198== Releasing lock... [2025-03-04 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:53:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:54:05 [end_date_ymd] => 2025-03-04 01:54:05 [RateCDR] => 1 ) [2025-03-04 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-03 22:54:05' and `end` < '2025-03-04 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-04 01:54:17] Production.INFO: count ==592 [2025-03-04 01:54:17] Production.ERROR: pbx CDR StartTime 2025-03-03 22:54:05 - End Time 2025-03-04 01:54:05 [2025-03-04 01:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602568', 'tblTempUsageDetail_20' ) start [2025-03-04 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602568', 'tblTempUsageDetail_20' ) end [2025-03-04 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602568', 'tblTempVendorCDR_20' ) start [2025-03-04 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602568', 'tblTempVendorCDR_20' ) end [2025-03-04 01:54:17] Production.INFO: ProcessCDR(1,14602568,1,1,2) [2025-03-04 01:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602568', 'tblTempUsageDetail_20' ) start [2025-03-04 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602568', 'tblTempUsageDetail_20' ) end [2025-03-04 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:54:21] Production.INFO: ==20281== Releasing lock... [2025-03-04 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:54:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:55:05 [end_date_ymd] => 2025-03-04 01:55:05 [RateCDR] => 1 ) [2025-03-04 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-03 22:55:05' and `end` < '2025-03-04 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-04 01:55:17] Production.INFO: count ==592 [2025-03-04 01:55:17] Production.ERROR: pbx CDR StartTime 2025-03-03 22:55:05 - End Time 2025-03-04 01:55:05 [2025-03-04 01:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602573', 'tblTempUsageDetail_20' ) start [2025-03-04 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602573', 'tblTempUsageDetail_20' ) end [2025-03-04 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602573', 'tblTempVendorCDR_20' ) start [2025-03-04 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602573', 'tblTempVendorCDR_20' ) end [2025-03-04 01:55:18] Production.INFO: ProcessCDR(1,14602573,1,1,2) [2025-03-04 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602573', 'tblTempUsageDetail_20' ) start [2025-03-04 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602573', 'tblTempUsageDetail_20' ) end [2025-03-04 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:55:21] Production.INFO: ==20357== Releasing lock... [2025-03-04 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:55:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:56:06 [end_date_ymd] => 2025-03-04 01:56:06 [RateCDR] => 1 ) [2025-03-04 01: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-03 22:56:06' and `end` < '2025-03-04 01: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-04 01:56:18] Production.INFO: count ==592 [2025-03-04 01:56:18] Production.ERROR: pbx CDR StartTime 2025-03-03 22:56:06 - End Time 2025-03-04 01:56:06 [2025-03-04 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602578', 'tblTempUsageDetail_20' ) start [2025-03-04 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602578', 'tblTempUsageDetail_20' ) end [2025-03-04 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602578', 'tblTempVendorCDR_20' ) start [2025-03-04 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602578', 'tblTempVendorCDR_20' ) end [2025-03-04 01:56:18] Production.INFO: ProcessCDR(1,14602578,1,1,2) [2025-03-04 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602578', 'tblTempUsageDetail_20' ) start [2025-03-04 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602578', 'tblTempUsageDetail_20' ) end [2025-03-04 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:56:22] Production.INFO: ==20437== Releasing lock... [2025-03-04 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:56:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:57:05 [end_date_ymd] => 2025-03-04 01:57:05 [RateCDR] => 1 ) [2025-03-04 01:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 22:57:05' and `end` < '2025-03-04 01:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 01:57:17] Production.INFO: count ==591 [2025-03-04 01:57:17] Production.ERROR: pbx CDR StartTime 2025-03-03 22:57:05 - End Time 2025-03-04 01:57:05 [2025-03-04 01:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602583', 'tblTempUsageDetail_20' ) start [2025-03-04 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602583', 'tblTempUsageDetail_20' ) end [2025-03-04 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602583', 'tblTempVendorCDR_20' ) start [2025-03-04 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602583', 'tblTempVendorCDR_20' ) end [2025-03-04 01:57:17] Production.INFO: ProcessCDR(1,14602583,1,1,2) [2025-03-04 01:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602583', 'tblTempUsageDetail_20' ) start [2025-03-04 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602583', 'tblTempUsageDetail_20' ) end [2025-03-04 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:57:21] Production.INFO: ==20513== Releasing lock... [2025-03-04 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:57:21] Production.INFO: 33 MB #Memory Used# [2025-03-04 01:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:58:06 [end_date_ymd] => 2025-03-04 01:58:06 [RateCDR] => 1 ) [2025-03-04 01: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-03 22:58:06' and `end` < '2025-03-04 01: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-04 01:58:18] Production.INFO: count ==591 [2025-03-04 01:58:18] Production.ERROR: pbx CDR StartTime 2025-03-03 22:58:06 - End Time 2025-03-04 01:58:06 [2025-03-04 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602588', 'tblTempUsageDetail_20' ) start [2025-03-04 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602588', 'tblTempUsageDetail_20' ) end [2025-03-04 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602588', 'tblTempVendorCDR_20' ) start [2025-03-04 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602588', 'tblTempVendorCDR_20' ) end [2025-03-04 01:58:19] Production.INFO: ProcessCDR(1,14602588,1,1,2) [2025-03-04 01:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602588', 'tblTempUsageDetail_20' ) start [2025-03-04 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602588', 'tblTempUsageDetail_20' ) end [2025-03-04 01:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:58:22] Production.INFO: ==20592== Releasing lock... [2025-03-04 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:58:22] Production.INFO: 33 MB #Memory Used# [2025-03-04 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 22:59:05 [end_date_ymd] => 2025-03-04 01:59:05 [RateCDR] => 1 ) [2025-03-04 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-03 22:59:05' and `end` < '2025-03-04 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-04 01:59:17] Production.INFO: count ==590 [2025-03-04 01:59:17] Production.ERROR: pbx CDR StartTime 2025-03-03 22:59:05 - End Time 2025-03-04 01:59:05 [2025-03-04 01:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602593', 'tblTempUsageDetail_20' ) start [2025-03-04 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602593', 'tblTempUsageDetail_20' ) end [2025-03-04 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602593', 'tblTempVendorCDR_20' ) start [2025-03-04 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602593', 'tblTempVendorCDR_20' ) end [2025-03-04 01:59:17] Production.INFO: ProcessCDR(1,14602593,1,1,2) [2025-03-04 01:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 01:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602593', 'tblTempUsageDetail_20' ) start [2025-03-04 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602593', 'tblTempUsageDetail_20' ) end [2025-03-04 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 01:59:21] Production.INFO: ==20669== Releasing lock... [2025-03-04 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 01:59:21] Production.INFO: 33 MB #Memory Used# [2025-03-04 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:00:07 [end_date_ymd] => 2025-03-04 02:00:07 [RateCDR] => 1 ) [2025-03-04 02: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-03 23:00:07' and `end` < '2025-03-04 02: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-04 02:00:19] Production.INFO: count ==601 [2025-03-04 02:00:19] Production.ERROR: pbx CDR StartTime 2025-03-03 23:00:07 - End Time 2025-03-04 02:00:07 [2025-03-04 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602599', 'tblTempUsageDetail_20' ) start [2025-03-04 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602599', 'tblTempUsageDetail_20' ) end [2025-03-04 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602599', 'tblTempVendorCDR_20' ) start [2025-03-04 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602599', 'tblTempVendorCDR_20' ) end [2025-03-04 02:00:19] Production.INFO: ProcessCDR(1,14602599,1,1,2) [2025-03-04 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602599', 'tblTempUsageDetail_20' ) start [2025-03-04 02:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602599', 'tblTempUsageDetail_20' ) end [2025-03-04 02:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:00:25] Production.INFO: ==20751== Releasing lock... [2025-03-04 02:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:00:25] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:01:05 [end_date_ymd] => 2025-03-04 02:01:05 [RateCDR] => 1 ) [2025-03-04 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-03 23:01:05' and `end` < '2025-03-04 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-04 02:01:17] Production.INFO: count ==600 [2025-03-04 02:01:17] Production.ERROR: pbx CDR StartTime 2025-03-03 23:01:05 - End Time 2025-03-04 02:01:05 [2025-03-04 02:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602604', 'tblTempUsageDetail_20' ) start [2025-03-04 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602604', 'tblTempUsageDetail_20' ) end [2025-03-04 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602604', 'tblTempVendorCDR_20' ) start [2025-03-04 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602604', 'tblTempVendorCDR_20' ) end [2025-03-04 02:01:17] Production.INFO: ProcessCDR(1,14602604,1,1,2) [2025-03-04 02:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602604', 'tblTempUsageDetail_20' ) start [2025-03-04 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602604', 'tblTempUsageDetail_20' ) end [2025-03-04 02:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:01:21] Production.INFO: ==20927== Releasing lock... [2025-03-04 02:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:01:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-04 02:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:02:06 [end_date_ymd] => 2025-03-04 02:02:06 [RateCDR] => 1 ) [2025-03-04 02: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-03 23:02:06' and `end` < '2025-03-04 02: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-04 02:02:18] Production.INFO: count ==600 [2025-03-04 02:02:18] Production.ERROR: pbx CDR StartTime 2025-03-03 23:02:06 - End Time 2025-03-04 02:02:06 [2025-03-04 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602609', 'tblTempUsageDetail_20' ) start [2025-03-04 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602609', 'tblTempUsageDetail_20' ) end [2025-03-04 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602609', 'tblTempVendorCDR_20' ) start [2025-03-04 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602609', 'tblTempVendorCDR_20' ) end [2025-03-04 02:02:18] Production.INFO: ProcessCDR(1,14602609,1,1,2) [2025-03-04 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602609', 'tblTempUsageDetail_20' ) start [2025-03-04 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602609', 'tblTempUsageDetail_20' ) end [2025-03-04 02:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:02:22] Production.INFO: ==21006== Releasing lock... [2025-03-04 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:02:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-04 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:03:05 [end_date_ymd] => 2025-03-04 02:03:05 [RateCDR] => 1 ) [2025-03-04 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-03 23:03:05' and `end` < '2025-03-04 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-04 02:03:17] Production.INFO: count ==604 [2025-03-04 02:03:18] Production.ERROR: pbx CDR StartTime 2025-03-03 23:03:05 - End Time 2025-03-04 02:03:05 [2025-03-04 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602614', 'tblTempUsageDetail_20' ) start [2025-03-04 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602614', 'tblTempUsageDetail_20' ) end [2025-03-04 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602614', 'tblTempVendorCDR_20' ) start [2025-03-04 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602614', 'tblTempVendorCDR_20' ) end [2025-03-04 02:03:18] Production.INFO: ProcessCDR(1,14602614,1,1,2) [2025-03-04 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602614', 'tblTempUsageDetail_20' ) start [2025-03-04 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602614', 'tblTempUsageDetail_20' ) end [2025-03-04 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:03:21] Production.INFO: ==21083== Releasing lock... [2025-03-04 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:03:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:04:06 [end_date_ymd] => 2025-03-04 02:04:06 [RateCDR] => 1 ) [2025-03-04 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-03 23:04:06' and `end` < '2025-03-04 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-04 02:04:18] Production.INFO: count ==604 [2025-03-04 02:04:18] Production.ERROR: pbx CDR StartTime 2025-03-03 23:04:06 - End Time 2025-03-04 02:04:06 [2025-03-04 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602619', 'tblTempUsageDetail_20' ) start [2025-03-04 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602619', 'tblTempUsageDetail_20' ) end [2025-03-04 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602619', 'tblTempVendorCDR_20' ) start [2025-03-04 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602619', 'tblTempVendorCDR_20' ) end [2025-03-04 02:04:18] Production.INFO: ProcessCDR(1,14602619,1,1,2) [2025-03-04 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602619', 'tblTempUsageDetail_20' ) start [2025-03-04 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602619', 'tblTempUsageDetail_20' ) end [2025-03-04 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:04:22] Production.INFO: ==21161== Releasing lock... [2025-03-04 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:04:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:05:05 [end_date_ymd] => 2025-03-04 02:05:05 [RateCDR] => 1 ) [2025-03-04 02:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 23:05:05' and `end` < '2025-03-04 02:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 02:05:17] Production.INFO: count ==604 [2025-03-04 02:05:18] Production.ERROR: pbx CDR StartTime 2025-03-03 23:05:05 - End Time 2025-03-04 02:05:05 [2025-03-04 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602624', 'tblTempUsageDetail_20' ) start [2025-03-04 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602624', 'tblTempUsageDetail_20' ) end [2025-03-04 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602624', 'tblTempVendorCDR_20' ) start [2025-03-04 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602624', 'tblTempVendorCDR_20' ) end [2025-03-04 02:05:18] Production.INFO: ProcessCDR(1,14602624,1,1,2) [2025-03-04 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602624', 'tblTempUsageDetail_20' ) start [2025-03-04 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602624', 'tblTempUsageDetail_20' ) end [2025-03-04 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:05:21] Production.INFO: ==21236== Releasing lock... [2025-03-04 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:05:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:06:06 [end_date_ymd] => 2025-03-04 02:06:06 [RateCDR] => 1 ) [2025-03-04 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-03 23:06:06' and `end` < '2025-03-04 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-04 02:06:18] Production.INFO: count ==601 [2025-03-04 02:06:18] Production.ERROR: pbx CDR StartTime 2025-03-03 23:06:06 - End Time 2025-03-04 02:06:06 [2025-03-04 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602629', 'tblTempUsageDetail_20' ) start [2025-03-04 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602629', 'tblTempUsageDetail_20' ) end [2025-03-04 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602629', 'tblTempVendorCDR_20' ) start [2025-03-04 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602629', 'tblTempVendorCDR_20' ) end [2025-03-04 02:06:18] Production.INFO: ProcessCDR(1,14602629,1,1,2) [2025-03-04 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602629', 'tblTempUsageDetail_20' ) start [2025-03-04 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602629', 'tblTempUsageDetail_20' ) end [2025-03-04 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:06:22] Production.INFO: ==21355== Releasing lock... [2025-03-04 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:06:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:07:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:07:07 [end_date_ymd] => 2025-03-04 02:07:07 [RateCDR] => 1 ) [2025-03-04 02:07: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-03 23:07:07' and `end` < '2025-03-04 02:07: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-04 02:07:19] Production.INFO: count ==597 [2025-03-04 02:07:19] Production.ERROR: pbx CDR StartTime 2025-03-03 23:07:07 - End Time 2025-03-04 02:07:07 [2025-03-04 02:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602634', 'tblTempUsageDetail_20' ) start [2025-03-04 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602634', 'tblTempUsageDetail_20' ) end [2025-03-04 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602634', 'tblTempVendorCDR_20' ) start [2025-03-04 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602634', 'tblTempVendorCDR_20' ) end [2025-03-04 02:07:19] Production.INFO: ProcessCDR(1,14602634,1,1,2) [2025-03-04 02:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602634', 'tblTempUsageDetail_20' ) start [2025-03-04 02:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602634', 'tblTempUsageDetail_20' ) end [2025-03-04 02:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:07:23] Production.INFO: ==21430== Releasing lock... [2025-03-04 02:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:07:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-04 02:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:08:06 [end_date_ymd] => 2025-03-04 02:08:06 [RateCDR] => 1 ) [2025-03-04 02: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-03 23:08:06' and `end` < '2025-03-04 02: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-04 02:08:18] Production.INFO: count ==596 [2025-03-04 02:08:18] Production.ERROR: pbx CDR StartTime 2025-03-03 23:08:06 - End Time 2025-03-04 02:08:06 [2025-03-04 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602639', 'tblTempUsageDetail_20' ) start [2025-03-04 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602639', 'tblTempUsageDetail_20' ) end [2025-03-04 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602639', 'tblTempVendorCDR_20' ) start [2025-03-04 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602639', 'tblTempVendorCDR_20' ) end [2025-03-04 02:08:18] Production.INFO: ProcessCDR(1,14602639,1,1,2) [2025-03-04 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602639', 'tblTempUsageDetail_20' ) start [2025-03-04 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602639', 'tblTempUsageDetail_20' ) end [2025-03-04 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:08:22] Production.INFO: ==21509== Releasing lock... [2025-03-04 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:08:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:09:06 [end_date_ymd] => 2025-03-04 02:09:06 [RateCDR] => 1 ) [2025-03-04 02: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-03 23:09:06' and `end` < '2025-03-04 02: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-04 02:09:18] Production.INFO: count ==595 [2025-03-04 02:09:19] Production.ERROR: pbx CDR StartTime 2025-03-03 23:09:06 - End Time 2025-03-04 02:09:06 [2025-03-04 02:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602644', 'tblTempUsageDetail_20' ) start [2025-03-04 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602644', 'tblTempUsageDetail_20' ) end [2025-03-04 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602644', 'tblTempVendorCDR_20' ) start [2025-03-04 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602644', 'tblTempVendorCDR_20' ) end [2025-03-04 02:09:19] Production.INFO: ProcessCDR(1,14602644,1,1,2) [2025-03-04 02:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602644', 'tblTempUsageDetail_20' ) start [2025-03-04 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602644', 'tblTempUsageDetail_20' ) end [2025-03-04 02:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:09:22] Production.INFO: ==21586== Releasing lock... [2025-03-04 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:09:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-04 02:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:10:07 [end_date_ymd] => 2025-03-04 02:10:07 [RateCDR] => 1 ) [2025-03-04 02: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-03 23:10:07' and `end` < '2025-03-04 02: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-04 02:10:19] Production.INFO: count ==602 [2025-03-04 02:10:19] Production.ERROR: pbx CDR StartTime 2025-03-03 23:10:07 - End Time 2025-03-04 02:10:07 [2025-03-04 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602650', 'tblTempUsageDetail_20' ) start [2025-03-04 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602650', 'tblTempUsageDetail_20' ) end [2025-03-04 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602650', 'tblTempVendorCDR_20' ) start [2025-03-04 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602650', 'tblTempVendorCDR_20' ) end [2025-03-04 02:10:19] Production.INFO: ProcessCDR(1,14602650,1,1,2) [2025-03-04 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602650', 'tblTempUsageDetail_20' ) start [2025-03-04 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602650', 'tblTempUsageDetail_20' ) end [2025-03-04 02:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:10:23] Production.INFO: ==21665== Releasing lock... [2025-03-04 02:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:10:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:11:05 [end_date_ymd] => 2025-03-04 02:11:05 [RateCDR] => 1 ) [2025-03-04 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-03 23:11:05' and `end` < '2025-03-04 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-04 02:11:17] Production.INFO: count ==598 [2025-03-04 02:11:17] Production.ERROR: pbx CDR StartTime 2025-03-03 23:11:05 - End Time 2025-03-04 02:11:05 [2025-03-04 02:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602655', 'tblTempUsageDetail_20' ) start [2025-03-04 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602655', 'tblTempUsageDetail_20' ) end [2025-03-04 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602655', 'tblTempVendorCDR_20' ) start [2025-03-04 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602655', 'tblTempVendorCDR_20' ) end [2025-03-04 02:11:17] Production.INFO: ProcessCDR(1,14602655,1,1,2) [2025-03-04 02:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602655', 'tblTempUsageDetail_20' ) start [2025-03-04 02:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602655', 'tblTempUsageDetail_20' ) end [2025-03-04 02:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:11:20] Production.INFO: ==21745== Releasing lock... [2025-03-04 02:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:11:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-04 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:12:05 [end_date_ymd] => 2025-03-04 02:12:05 [RateCDR] => 1 ) [2025-03-04 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-03 23:12:05' and `end` < '2025-03-04 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-04 02:12:17] Production.INFO: count ==595 [2025-03-04 02:12:18] Production.ERROR: pbx CDR StartTime 2025-03-03 23:12:05 - End Time 2025-03-04 02:12:05 [2025-03-04 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602660', 'tblTempUsageDetail_20' ) start [2025-03-04 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602660', 'tblTempUsageDetail_20' ) end [2025-03-04 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602660', 'tblTempVendorCDR_20' ) start [2025-03-04 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602660', 'tblTempVendorCDR_20' ) end [2025-03-04 02:12:18] Production.INFO: ProcessCDR(1,14602660,1,1,2) [2025-03-04 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602660', 'tblTempUsageDetail_20' ) start [2025-03-04 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602660', 'tblTempUsageDetail_20' ) end [2025-03-04 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:12:21] Production.INFO: ==21824== Releasing lock... [2025-03-04 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:12:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:13:06 [end_date_ymd] => 2025-03-04 02:13:06 [RateCDR] => 1 ) [2025-03-04 02: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-03 23:13:06' and `end` < '2025-03-04 02: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-04 02:13:18] Production.INFO: count ==595 [2025-03-04 02:13:18] Production.ERROR: pbx CDR StartTime 2025-03-03 23:13:06 - End Time 2025-03-04 02:13:06 [2025-03-04 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602665', 'tblTempUsageDetail_20' ) start [2025-03-04 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602665', 'tblTempUsageDetail_20' ) end [2025-03-04 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602665', 'tblTempVendorCDR_20' ) start [2025-03-04 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602665', 'tblTempVendorCDR_20' ) end [2025-03-04 02:13:18] Production.INFO: ProcessCDR(1,14602665,1,1,2) [2025-03-04 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602665', 'tblTempUsageDetail_20' ) start [2025-03-04 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602665', 'tblTempUsageDetail_20' ) end [2025-03-04 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:13:21] Production.INFO: ==21904== Releasing lock... [2025-03-04 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:13:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:14:05 [end_date_ymd] => 2025-03-04 02:14:05 [RateCDR] => 1 ) [2025-03-04 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-03 23:14:05' and `end` < '2025-03-04 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-04 02:14:17] Production.INFO: count ==594 [2025-03-04 02:14:17] Production.ERROR: pbx CDR StartTime 2025-03-03 23:14:05 - End Time 2025-03-04 02:14:05 [2025-03-04 02:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602670', 'tblTempUsageDetail_20' ) start [2025-03-04 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602670', 'tblTempUsageDetail_20' ) end [2025-03-04 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602670', 'tblTempVendorCDR_20' ) start [2025-03-04 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602670', 'tblTempVendorCDR_20' ) end [2025-03-04 02:14:17] Production.INFO: ProcessCDR(1,14602670,1,1,2) [2025-03-04 02:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602670', 'tblTempUsageDetail_20' ) start [2025-03-04 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602670', 'tblTempUsageDetail_20' ) end [2025-03-04 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:14:21] Production.INFO: ==21980== Releasing lock... [2025-03-04 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:14:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:15:05 [end_date_ymd] => 2025-03-04 02:15:05 [RateCDR] => 1 ) [2025-03-04 02:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 23:15:05' and `end` < '2025-03-04 02:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 02:15:17] Production.INFO: count ==594 [2025-03-04 02:15:17] Production.ERROR: pbx CDR StartTime 2025-03-03 23:15:05 - End Time 2025-03-04 02:15:05 [2025-03-04 02:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602675', 'tblTempUsageDetail_20' ) start [2025-03-04 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602675', 'tblTempUsageDetail_20' ) end [2025-03-04 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602675', 'tblTempVendorCDR_20' ) start [2025-03-04 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602675', 'tblTempVendorCDR_20' ) end [2025-03-04 02:15:18] Production.INFO: ProcessCDR(1,14602675,1,1,2) [2025-03-04 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602675', 'tblTempUsageDetail_20' ) start [2025-03-04 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602675', 'tblTempUsageDetail_20' ) end [2025-03-04 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:15:21] Production.INFO: ==22058== Releasing lock... [2025-03-04 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:15:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:16:05 [end_date_ymd] => 2025-03-04 02:16:05 [RateCDR] => 1 ) [2025-03-04 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-03 23:16:05' and `end` < '2025-03-04 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-04 02:16:17] Production.INFO: count ==594 [2025-03-04 02:16:17] Production.ERROR: pbx CDR StartTime 2025-03-03 23:16:05 - End Time 2025-03-04 02:16:05 [2025-03-04 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602680', 'tblTempUsageDetail_20' ) start [2025-03-04 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602680', 'tblTempUsageDetail_20' ) end [2025-03-04 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602680', 'tblTempVendorCDR_20' ) start [2025-03-04 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602680', 'tblTempVendorCDR_20' ) end [2025-03-04 02:16:17] Production.INFO: ProcessCDR(1,14602680,1,1,2) [2025-03-04 02:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602680', 'tblTempUsageDetail_20' ) start [2025-03-04 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602680', 'tblTempUsageDetail_20' ) end [2025-03-04 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:16:21] Production.INFO: ==22133== Releasing lock... [2025-03-04 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:16:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:17:05 [end_date_ymd] => 2025-03-04 02:17:05 [RateCDR] => 1 ) [2025-03-04 02: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-03 23:17:05' and `end` < '2025-03-04 02: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-04 02:17:17] Production.INFO: count ==594 [2025-03-04 02:17:17] Production.ERROR: pbx CDR StartTime 2025-03-03 23:17:05 - End Time 2025-03-04 02:17:05 [2025-03-04 02:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602685', 'tblTempUsageDetail_20' ) start [2025-03-04 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602685', 'tblTempUsageDetail_20' ) end [2025-03-04 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602685', 'tblTempVendorCDR_20' ) start [2025-03-04 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602685', 'tblTempVendorCDR_20' ) end [2025-03-04 02:17:17] Production.INFO: ProcessCDR(1,14602685,1,1,2) [2025-03-04 02:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602685', 'tblTempUsageDetail_20' ) start [2025-03-04 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602685', 'tblTempUsageDetail_20' ) end [2025-03-04 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:17:21] Production.INFO: ==22212== Releasing lock... [2025-03-04 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:17:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:18:05 [end_date_ymd] => 2025-03-04 02:18:05 [RateCDR] => 1 ) [2025-03-04 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-03 23:18:05' and `end` < '2025-03-04 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-04 02:18:17] Production.INFO: count ==594 [2025-03-04 02:18:17] Production.ERROR: pbx CDR StartTime 2025-03-03 23:18:05 - End Time 2025-03-04 02:18:05 [2025-03-04 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602690', 'tblTempUsageDetail_20' ) start [2025-03-04 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602690', 'tblTempUsageDetail_20' ) end [2025-03-04 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602690', 'tblTempVendorCDR_20' ) start [2025-03-04 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602690', 'tblTempVendorCDR_20' ) end [2025-03-04 02:18:17] Production.INFO: ProcessCDR(1,14602690,1,1,2) [2025-03-04 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602690', 'tblTempUsageDetail_20' ) start [2025-03-04 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602690', 'tblTempUsageDetail_20' ) end [2025-03-04 02:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:18:20] Production.INFO: ==22288== Releasing lock... [2025-03-04 02:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:18:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:19:06 [end_date_ymd] => 2025-03-04 02:19:06 [RateCDR] => 1 ) [2025-03-04 02: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-03 23:19:06' and `end` < '2025-03-04 02: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-04 02:19:18] Production.INFO: count ==594 [2025-03-04 02:19:18] Production.ERROR: pbx CDR StartTime 2025-03-03 23:19:06 - End Time 2025-03-04 02:19:06 [2025-03-04 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602695', 'tblTempUsageDetail_20' ) start [2025-03-04 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602695', 'tblTempUsageDetail_20' ) end [2025-03-04 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602695', 'tblTempVendorCDR_20' ) start [2025-03-04 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602695', 'tblTempVendorCDR_20' ) end [2025-03-04 02:19:18] Production.INFO: ProcessCDR(1,14602695,1,1,2) [2025-03-04 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602695', 'tblTempUsageDetail_20' ) start [2025-03-04 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602695', 'tblTempUsageDetail_20' ) end [2025-03-04 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:19:21] Production.INFO: ==22366== Releasing lock... [2025-03-04 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:19:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:20:06 [end_date_ymd] => 2025-03-04 02:20:06 [RateCDR] => 1 ) [2025-03-04 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-03 23:20:06' and `end` < '2025-03-04 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-04 02:20:18] Production.INFO: count ==602 [2025-03-04 02:20:18] Production.ERROR: pbx CDR StartTime 2025-03-03 23:20:06 - End Time 2025-03-04 02:20:06 [2025-03-04 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602701', 'tblTempUsageDetail_20' ) start [2025-03-04 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602701', 'tblTempUsageDetail_20' ) end [2025-03-04 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602701', 'tblTempVendorCDR_20' ) start [2025-03-04 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602701', 'tblTempVendorCDR_20' ) end [2025-03-04 02:20:18] Production.INFO: ProcessCDR(1,14602701,1,1,2) [2025-03-04 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602701', 'tblTempUsageDetail_20' ) start [2025-03-04 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602701', 'tblTempUsageDetail_20' ) end [2025-03-04 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:20:22] Production.INFO: ==22449== Releasing lock... [2025-03-04 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:20:22] Production.INFO: 33 MB #Memory Used# [2025-03-04 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:21:05 [end_date_ymd] => 2025-03-04 02:21:05 [RateCDR] => 1 ) [2025-03-04 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-03 23:21:05' and `end` < '2025-03-04 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-04 02:21:17] Production.INFO: count ==606 [2025-03-04 02:21:17] Production.ERROR: pbx CDR StartTime 2025-03-03 23:21:05 - End Time 2025-03-04 02:21:05 [2025-03-04 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602706', 'tblTempUsageDetail_20' ) start [2025-03-04 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602706', 'tblTempUsageDetail_20' ) end [2025-03-04 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602706', 'tblTempVendorCDR_20' ) start [2025-03-04 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602706', 'tblTempVendorCDR_20' ) end [2025-03-04 02:21:17] Production.INFO: ProcessCDR(1,14602706,1,1,2) [2025-03-04 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602706', 'tblTempUsageDetail_20' ) start [2025-03-04 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602706', 'tblTempUsageDetail_20' ) end [2025-03-04 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:21:21] Production.INFO: ==22569== Releasing lock... [2025-03-04 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:21:21] Production.INFO: 33 MB #Memory Used# [2025-03-04 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:22:05 [end_date_ymd] => 2025-03-04 02:22:05 [RateCDR] => 1 ) [2025-03-04 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 23:22:05' and `end` < '2025-03-04 02:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 02:22:17] Production.INFO: count ==606 [2025-03-04 02:22:17] Production.ERROR: pbx CDR StartTime 2025-03-03 23:22:05 - End Time 2025-03-04 02:22:05 [2025-03-04 02:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602711', 'tblTempUsageDetail_20' ) start [2025-03-04 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602711', 'tblTempUsageDetail_20' ) end [2025-03-04 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602711', 'tblTempVendorCDR_20' ) start [2025-03-04 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602711', 'tblTempVendorCDR_20' ) end [2025-03-04 02:22:17] Production.INFO: ProcessCDR(1,14602711,1,1,2) [2025-03-04 02:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602711', 'tblTempUsageDetail_20' ) start [2025-03-04 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602711', 'tblTempUsageDetail_20' ) end [2025-03-04 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:22:21] Production.INFO: ==22644== Releasing lock... [2025-03-04 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:22:21] Production.INFO: 33 MB #Memory Used# [2025-03-04 02:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:23:06 [end_date_ymd] => 2025-03-04 02:23:06 [RateCDR] => 1 ) [2025-03-04 02: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-03 23:23:06' and `end` < '2025-03-04 02: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-04 02:23:18] Production.INFO: count ==606 [2025-03-04 02:23:18] Production.ERROR: pbx CDR StartTime 2025-03-03 23:23:06 - End Time 2025-03-04 02:23:06 [2025-03-04 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602716', 'tblTempUsageDetail_20' ) start [2025-03-04 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602716', 'tblTempUsageDetail_20' ) end [2025-03-04 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602716', 'tblTempVendorCDR_20' ) start [2025-03-04 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602716', 'tblTempVendorCDR_20' ) end [2025-03-04 02:23:18] Production.INFO: ProcessCDR(1,14602716,1,1,2) [2025-03-04 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602716', 'tblTempUsageDetail_20' ) start [2025-03-04 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602716', 'tblTempUsageDetail_20' ) end [2025-03-04 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:23:21] Production.INFO: ==22722== Releasing lock... [2025-03-04 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:23:21] Production.INFO: 33 MB #Memory Used# [2025-03-04 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:24:05 [end_date_ymd] => 2025-03-04 02:24:05 [RateCDR] => 1 ) [2025-03-04 02:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 23:24:05' and `end` < '2025-03-04 02:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 02:24:17] Production.INFO: count ==603 [2025-03-04 02:24:17] Production.ERROR: pbx CDR StartTime 2025-03-03 23:24:05 - End Time 2025-03-04 02:24:05 [2025-03-04 02:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602721', 'tblTempUsageDetail_20' ) start [2025-03-04 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602721', 'tblTempUsageDetail_20' ) end [2025-03-04 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602721', 'tblTempVendorCDR_20' ) start [2025-03-04 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602721', 'tblTempVendorCDR_20' ) end [2025-03-04 02:24:17] Production.INFO: ProcessCDR(1,14602721,1,1,2) [2025-03-04 02:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602721', 'tblTempUsageDetail_20' ) start [2025-03-04 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602721', 'tblTempUsageDetail_20' ) end [2025-03-04 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:24:21] Production.INFO: ==22796== Releasing lock... [2025-03-04 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:24:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:25:05 [end_date_ymd] => 2025-03-04 02:25:05 [RateCDR] => 1 ) [2025-03-04 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-03 23:25:05' and `end` < '2025-03-04 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-04 02:25:17] Production.INFO: count ==602 [2025-03-04 02:25:17] Production.ERROR: pbx CDR StartTime 2025-03-03 23:25:05 - End Time 2025-03-04 02:25:05 [2025-03-04 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602726', 'tblTempUsageDetail_20' ) start [2025-03-04 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602726', 'tblTempUsageDetail_20' ) end [2025-03-04 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602726', 'tblTempVendorCDR_20' ) start [2025-03-04 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602726', 'tblTempVendorCDR_20' ) end [2025-03-04 02:25:17] Production.INFO: ProcessCDR(1,14602726,1,1,2) [2025-03-04 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602726', 'tblTempUsageDetail_20' ) start [2025-03-04 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602726', 'tblTempUsageDetail_20' ) end [2025-03-04 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:25:21] Production.INFO: ==22875== Releasing lock... [2025-03-04 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:25:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:26:05 [end_date_ymd] => 2025-03-04 02:26:05 [RateCDR] => 1 ) [2025-03-04 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-03 23:26:05' and `end` < '2025-03-04 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-04 02:26:17] Production.INFO: count ==606 [2025-03-04 02:26:17] Production.ERROR: pbx CDR StartTime 2025-03-03 23:26:05 - End Time 2025-03-04 02:26:05 [2025-03-04 02:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602731', 'tblTempUsageDetail_20' ) start [2025-03-04 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602731', 'tblTempUsageDetail_20' ) end [2025-03-04 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602731', 'tblTempVendorCDR_20' ) start [2025-03-04 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602731', 'tblTempVendorCDR_20' ) end [2025-03-04 02:26:17] Production.INFO: ProcessCDR(1,14602731,1,1,2) [2025-03-04 02:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602731', 'tblTempUsageDetail_20' ) start [2025-03-04 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602731', 'tblTempUsageDetail_20' ) end [2025-03-04 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:26:21] Production.INFO: ==22952== Releasing lock... [2025-03-04 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:26:21] Production.INFO: 33 MB #Memory Used# [2025-03-04 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:27:05 [end_date_ymd] => 2025-03-04 02:27:05 [RateCDR] => 1 ) [2025-03-04 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-03 23:27:05' and `end` < '2025-03-04 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-04 02:27:18] Production.INFO: count ==607 [2025-03-04 02:27:18] Production.ERROR: pbx CDR StartTime 2025-03-03 23:27:05 - End Time 2025-03-04 02:27:05 [2025-03-04 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602736', 'tblTempUsageDetail_20' ) start [2025-03-04 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602736', 'tblTempUsageDetail_20' ) end [2025-03-04 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602736', 'tblTempVendorCDR_20' ) start [2025-03-04 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602736', 'tblTempVendorCDR_20' ) end [2025-03-04 02:27:18] Production.INFO: ProcessCDR(1,14602736,1,1,2) [2025-03-04 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602736', 'tblTempUsageDetail_20' ) start [2025-03-04 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602736', 'tblTempUsageDetail_20' ) end [2025-03-04 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:27:21] Production.INFO: ==23054== Releasing lock... [2025-03-04 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:27:21] Production.INFO: 33 MB #Memory Used# [2025-03-04 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:28:05 [end_date_ymd] => 2025-03-04 02:28:05 [RateCDR] => 1 ) [2025-03-04 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-03 23:28:05' and `end` < '2025-03-04 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-04 02:28:17] Production.INFO: count ==605 [2025-03-04 02:28:17] Production.ERROR: pbx CDR StartTime 2025-03-03 23:28:05 - End Time 2025-03-04 02:28:05 [2025-03-04 02:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602741', 'tblTempUsageDetail_20' ) start [2025-03-04 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602741', 'tblTempUsageDetail_20' ) end [2025-03-04 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602741', 'tblTempVendorCDR_20' ) start [2025-03-04 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602741', 'tblTempVendorCDR_20' ) end [2025-03-04 02:28:17] Production.INFO: ProcessCDR(1,14602741,1,1,2) [2025-03-04 02:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602741', 'tblTempUsageDetail_20' ) start [2025-03-04 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602741', 'tblTempUsageDetail_20' ) end [2025-03-04 02:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:28:20] Production.INFO: ==23131== Releasing lock... [2025-03-04 02:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:28:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:29:06 [end_date_ymd] => 2025-03-04 02:29:06 [RateCDR] => 1 ) [2025-03-04 02: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-03 23:29:06' and `end` < '2025-03-04 02: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-04 02:29:18] Production.INFO: count ==604 [2025-03-04 02:29:18] Production.ERROR: pbx CDR StartTime 2025-03-03 23:29:06 - End Time 2025-03-04 02:29:06 [2025-03-04 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602746', 'tblTempUsageDetail_20' ) start [2025-03-04 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602746', 'tblTempUsageDetail_20' ) end [2025-03-04 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602746', 'tblTempVendorCDR_20' ) start [2025-03-04 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602746', 'tblTempVendorCDR_20' ) end [2025-03-04 02:29:18] Production.INFO: ProcessCDR(1,14602746,1,1,2) [2025-03-04 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602746', 'tblTempUsageDetail_20' ) start [2025-03-04 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602746', 'tblTempUsageDetail_20' ) end [2025-03-04 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:29:21] Production.INFO: ==23211== Releasing lock... [2025-03-04 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:29:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-04 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:30:06 [end_date_ymd] => 2025-03-04 02:30:06 [RateCDR] => 1 ) [2025-03-04 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-03 23:30:06' and `end` < '2025-03-04 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-04 02:30:18] Production.INFO: count ==610 [2025-03-04 02:30:18] Production.ERROR: pbx CDR StartTime 2025-03-03 23:30:06 - End Time 2025-03-04 02:30:06 [2025-03-04 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602752', 'tblTempUsageDetail_20' ) start [2025-03-04 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602752', 'tblTempUsageDetail_20' ) end [2025-03-04 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602752', 'tblTempVendorCDR_20' ) start [2025-03-04 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602752', 'tblTempVendorCDR_20' ) end [2025-03-04 02:30:18] Production.INFO: ProcessCDR(1,14602752,1,1,2) [2025-03-04 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602752', 'tblTempUsageDetail_20' ) start [2025-03-04 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602752', 'tblTempUsageDetail_20' ) end [2025-03-04 02:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:30:21] Production.INFO: ==23344== Releasing lock... [2025-03-04 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:30:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:31:05 [end_date_ymd] => 2025-03-04 02:31:05 [RateCDR] => 1 ) [2025-03-04 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-03 23:31:05' and `end` < '2025-03-04 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-04 02:31:17] Production.INFO: count ==608 [2025-03-04 02:31:18] Production.ERROR: pbx CDR StartTime 2025-03-03 23:31:05 - End Time 2025-03-04 02:31:05 [2025-03-04 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602757', 'tblTempUsageDetail_20' ) start [2025-03-04 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602757', 'tblTempUsageDetail_20' ) end [2025-03-04 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602757', 'tblTempVendorCDR_20' ) start [2025-03-04 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602757', 'tblTempVendorCDR_20' ) end [2025-03-04 02:31:18] Production.INFO: ProcessCDR(1,14602757,1,1,2) [2025-03-04 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602757', 'tblTempUsageDetail_20' ) start [2025-03-04 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602757', 'tblTempUsageDetail_20' ) end [2025-03-04 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:31:21] Production.INFO: ==23462== Releasing lock... [2025-03-04 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:31:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-04 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:32:05 [end_date_ymd] => 2025-03-04 02:32:05 [RateCDR] => 1 ) [2025-03-04 02:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 23:32:05' and `end` < '2025-03-04 02:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 02:32:17] Production.INFO: count ==608 [2025-03-04 02:32:17] Production.ERROR: pbx CDR StartTime 2025-03-03 23:32:05 - End Time 2025-03-04 02:32:05 [2025-03-04 02:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602762', 'tblTempUsageDetail_20' ) start [2025-03-04 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602762', 'tblTempUsageDetail_20' ) end [2025-03-04 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602762', 'tblTempVendorCDR_20' ) start [2025-03-04 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602762', 'tblTempVendorCDR_20' ) end [2025-03-04 02:32:17] Production.INFO: ProcessCDR(1,14602762,1,1,2) [2025-03-04 02:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602762', 'tblTempUsageDetail_20' ) start [2025-03-04 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602762', 'tblTempUsageDetail_20' ) end [2025-03-04 02:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:32:20] Production.INFO: ==23537== Releasing lock... [2025-03-04 02:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:32:20] Production.INFO: 33.5 MB #Memory Used# [2025-03-04 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:33:05 [end_date_ymd] => 2025-03-04 02:33:05 [RateCDR] => 1 ) [2025-03-04 02: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-03 23:33:05' and `end` < '2025-03-04 02: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-04 02:33:17] Production.INFO: count ==608 [2025-03-04 02:33:17] Production.ERROR: pbx CDR StartTime 2025-03-03 23:33:05 - End Time 2025-03-04 02:33:05 [2025-03-04 02:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602767', 'tblTempUsageDetail_20' ) start [2025-03-04 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602767', 'tblTempUsageDetail_20' ) end [2025-03-04 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602767', 'tblTempVendorCDR_20' ) start [2025-03-04 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602767', 'tblTempVendorCDR_20' ) end [2025-03-04 02:33:17] Production.INFO: ProcessCDR(1,14602767,1,1,2) [2025-03-04 02:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602767', 'tblTempUsageDetail_20' ) start [2025-03-04 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602767', 'tblTempUsageDetail_20' ) end [2025-03-04 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:33:21] Production.INFO: ==23620== Releasing lock... [2025-03-04 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:33:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-04 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:34:05 [end_date_ymd] => 2025-03-04 02:34:05 [RateCDR] => 1 ) [2025-03-04 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-03 23:34:05' and `end` < '2025-03-04 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-04 02:34:17] Production.INFO: count ==610 [2025-03-04 02:34:17] Production.ERROR: pbx CDR StartTime 2025-03-03 23:34:05 - End Time 2025-03-04 02:34:05 [2025-03-04 02:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602772', 'tblTempUsageDetail_20' ) start [2025-03-04 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602772', 'tblTempUsageDetail_20' ) end [2025-03-04 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602772', 'tblTempVendorCDR_20' ) start [2025-03-04 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602772', 'tblTempVendorCDR_20' ) end [2025-03-04 02:34:17] Production.INFO: ProcessCDR(1,14602772,1,1,2) [2025-03-04 02:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602772', 'tblTempUsageDetail_20' ) start [2025-03-04 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602772', 'tblTempUsageDetail_20' ) end [2025-03-04 02:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:34:21] Production.INFO: ==23698== Releasing lock... [2025-03-04 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:34:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:35:05 [end_date_ymd] => 2025-03-04 02:35:05 [RateCDR] => 1 ) [2025-03-04 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-03 23:35:05' and `end` < '2025-03-04 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-04 02:35:17] Production.INFO: count ==609 [2025-03-04 02:35:17] Production.ERROR: pbx CDR StartTime 2025-03-03 23:35:05 - End Time 2025-03-04 02:35:05 [2025-03-04 02:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602777', 'tblTempUsageDetail_20' ) start [2025-03-04 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602777', 'tblTempUsageDetail_20' ) end [2025-03-04 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602777', 'tblTempVendorCDR_20' ) start [2025-03-04 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602777', 'tblTempVendorCDR_20' ) end [2025-03-04 02:35:17] Production.INFO: ProcessCDR(1,14602777,1,1,2) [2025-03-04 02:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602777', 'tblTempUsageDetail_20' ) start [2025-03-04 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602777', 'tblTempUsageDetail_20' ) end [2025-03-04 02:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:35:21] Production.INFO: ==23773== Releasing lock... [2025-03-04 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:35:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:36:06 [end_date_ymd] => 2025-03-04 02:36:06 [RateCDR] => 1 ) [2025-03-04 02: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-03 23:36:06' and `end` < '2025-03-04 02: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-04 02:36:18] Production.INFO: count ==610 [2025-03-04 02:36:18] Production.ERROR: pbx CDR StartTime 2025-03-03 23:36:06 - End Time 2025-03-04 02:36:06 [2025-03-04 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602782', 'tblTempUsageDetail_20' ) start [2025-03-04 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602782', 'tblTempUsageDetail_20' ) end [2025-03-04 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602782', 'tblTempVendorCDR_20' ) start [2025-03-04 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602782', 'tblTempVendorCDR_20' ) end [2025-03-04 02:36:18] Production.INFO: ProcessCDR(1,14602782,1,1,2) [2025-03-04 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602782', 'tblTempUsageDetail_20' ) start [2025-03-04 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602782', 'tblTempUsageDetail_20' ) end [2025-03-04 02:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:36:21] Production.INFO: ==23850== Releasing lock... [2025-03-04 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:36:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:37:05 [end_date_ymd] => 2025-03-04 02:37:05 [RateCDR] => 1 ) [2025-03-04 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-03 23:37:05' and `end` < '2025-03-04 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-04 02:37:17] Production.INFO: count ==609 [2025-03-04 02:37:17] Production.ERROR: pbx CDR StartTime 2025-03-03 23:37:05 - End Time 2025-03-04 02:37:05 [2025-03-04 02:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602787', 'tblTempUsageDetail_20' ) start [2025-03-04 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602787', 'tblTempUsageDetail_20' ) end [2025-03-04 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602787', 'tblTempVendorCDR_20' ) start [2025-03-04 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602787', 'tblTempVendorCDR_20' ) end [2025-03-04 02:37:17] Production.INFO: ProcessCDR(1,14602787,1,1,2) [2025-03-04 02:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602787', 'tblTempUsageDetail_20' ) start [2025-03-04 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602787', 'tblTempUsageDetail_20' ) end [2025-03-04 02:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:37:20] Production.INFO: ==23968== Releasing lock... [2025-03-04 02:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:37:20] Production.INFO: 33.75 MB #Memory Used# [2025-03-04 02:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:38:06 [end_date_ymd] => 2025-03-04 02:38:06 [RateCDR] => 1 ) [2025-03-04 02: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-03 23:38:06' and `end` < '2025-03-04 02: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-04 02:38:18] Production.INFO: count ==609 [2025-03-04 02:38:18] Production.ERROR: pbx CDR StartTime 2025-03-03 23:38:06 - End Time 2025-03-04 02:38:06 [2025-03-04 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602792', 'tblTempUsageDetail_20' ) start [2025-03-04 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602792', 'tblTempUsageDetail_20' ) end [2025-03-04 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602792', 'tblTempVendorCDR_20' ) start [2025-03-04 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602792', 'tblTempVendorCDR_20' ) end [2025-03-04 02:38:18] Production.INFO: ProcessCDR(1,14602792,1,1,2) [2025-03-04 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602792', 'tblTempUsageDetail_20' ) start [2025-03-04 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602792', 'tblTempUsageDetail_20' ) end [2025-03-04 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:38:21] Production.INFO: ==24048== Releasing lock... [2025-03-04 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:38:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-04 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:39:05 [end_date_ymd] => 2025-03-04 02:39:05 [RateCDR] => 1 ) [2025-03-04 02:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 23:39:05' and `end` < '2025-03-04 02:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 02:39:17] Production.INFO: count ==609 [2025-03-04 02:39:17] Production.ERROR: pbx CDR StartTime 2025-03-03 23:39:05 - End Time 2025-03-04 02:39:05 [2025-03-04 02:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602797', 'tblTempUsageDetail_20' ) start [2025-03-04 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602797', 'tblTempUsageDetail_20' ) end [2025-03-04 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602797', 'tblTempVendorCDR_20' ) start [2025-03-04 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602797', 'tblTempVendorCDR_20' ) end [2025-03-04 02:39:17] Production.INFO: ProcessCDR(1,14602797,1,1,2) [2025-03-04 02:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602797', 'tblTempUsageDetail_20' ) start [2025-03-04 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602797', 'tblTempUsageDetail_20' ) end [2025-03-04 02:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:39:20] Production.INFO: ==24124== Releasing lock... [2025-03-04 02:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:39:20] Production.INFO: 33.75 MB #Memory Used# [2025-03-04 02:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:40:07 [end_date_ymd] => 2025-03-04 02:40:07 [RateCDR] => 1 ) [2025-03-04 02: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-03 23:40:07' and `end` < '2025-03-04 02: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-04 02:40:19] Production.INFO: count ==619 [2025-03-04 02:40:19] Production.ERROR: pbx CDR StartTime 2025-03-03 23:40:07 - End Time 2025-03-04 02:40:07 [2025-03-04 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602802', 'tblTempUsageDetail_20' ) start [2025-03-04 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602802', 'tblTempUsageDetail_20' ) end [2025-03-04 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602802', 'tblTempVendorCDR_20' ) start [2025-03-04 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602802', 'tblTempVendorCDR_20' ) end [2025-03-04 02:40:19] Production.INFO: ProcessCDR(1,14602802,1,1,2) [2025-03-04 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602802', 'tblTempUsageDetail_20' ) start [2025-03-04 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602802', 'tblTempUsageDetail_20' ) end [2025-03-04 02:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:40:22] Production.INFO: ==24202== Releasing lock... [2025-03-04 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:40:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-04 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:41:05 [end_date_ymd] => 2025-03-04 02:41:05 [RateCDR] => 1 ) [2025-03-04 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-03 23:41:05' and `end` < '2025-03-04 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-04 02:41:17] Production.INFO: count ==621 [2025-03-04 02:41:17] Production.ERROR: pbx CDR StartTime 2025-03-03 23:41:05 - End Time 2025-03-04 02:41:05 [2025-03-04 02:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602808', 'tblTempUsageDetail_20' ) start [2025-03-04 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602808', 'tblTempUsageDetail_20' ) end [2025-03-04 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602808', 'tblTempVendorCDR_20' ) start [2025-03-04 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602808', 'tblTempVendorCDR_20' ) end [2025-03-04 02:41:17] Production.INFO: ProcessCDR(1,14602808,1,1,2) [2025-03-04 02:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602808', 'tblTempUsageDetail_20' ) start [2025-03-04 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602808', 'tblTempUsageDetail_20' ) end [2025-03-04 02:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:41:20] Production.INFO: ==24283== Releasing lock... [2025-03-04 02:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:41:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:42:05 [end_date_ymd] => 2025-03-04 02:42:05 [RateCDR] => 1 ) [2025-03-04 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-03 23:42:05' and `end` < '2025-03-04 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-04 02:42:17] Production.INFO: count ==621 [2025-03-04 02:42:17] Production.ERROR: pbx CDR StartTime 2025-03-03 23:42:05 - End Time 2025-03-04 02:42:05 [2025-03-04 02:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602813', 'tblTempUsageDetail_20' ) start [2025-03-04 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602813', 'tblTempUsageDetail_20' ) end [2025-03-04 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602813', 'tblTempVendorCDR_20' ) start [2025-03-04 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602813', 'tblTempVendorCDR_20' ) end [2025-03-04 02:42:17] Production.INFO: ProcessCDR(1,14602813,1,1,2) [2025-03-04 02:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602813', 'tblTempUsageDetail_20' ) start [2025-03-04 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602813', 'tblTempUsageDetail_20' ) end [2025-03-04 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:42:21] Production.INFO: ==24361== Releasing lock... [2025-03-04 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:42:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:43:05 [end_date_ymd] => 2025-03-04 02:43:05 [RateCDR] => 1 ) [2025-03-04 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-03 23:43:05' and `end` < '2025-03-04 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-04 02:43:17] Production.INFO: count ==620 [2025-03-04 02:43:17] Production.ERROR: pbx CDR StartTime 2025-03-03 23:43:05 - End Time 2025-03-04 02:43:05 [2025-03-04 02:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602818', 'tblTempUsageDetail_20' ) start [2025-03-04 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602818', 'tblTempUsageDetail_20' ) end [2025-03-04 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602818', 'tblTempVendorCDR_20' ) start [2025-03-04 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602818', 'tblTempVendorCDR_20' ) end [2025-03-04 02:43:17] Production.INFO: ProcessCDR(1,14602818,1,1,2) [2025-03-04 02:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602818', 'tblTempUsageDetail_20' ) start [2025-03-04 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602818', 'tblTempUsageDetail_20' ) end [2025-03-04 02:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:43:20] Production.INFO: ==24440== Releasing lock... [2025-03-04 02:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:43:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:44:05 [end_date_ymd] => 2025-03-04 02:44:05 [RateCDR] => 1 ) [2025-03-04 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-03 23:44:05' and `end` < '2025-03-04 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-04 02:44:17] Production.INFO: count ==620 [2025-03-04 02:44:18] Production.ERROR: pbx CDR StartTime 2025-03-03 23:44:05 - End Time 2025-03-04 02:44:05 [2025-03-04 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602823', 'tblTempUsageDetail_20' ) start [2025-03-04 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602823', 'tblTempUsageDetail_20' ) end [2025-03-04 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602823', 'tblTempVendorCDR_20' ) start [2025-03-04 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602823', 'tblTempVendorCDR_20' ) end [2025-03-04 02:44:18] Production.INFO: ProcessCDR(1,14602823,1,1,2) [2025-03-04 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602823', 'tblTempUsageDetail_20' ) start [2025-03-04 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602823', 'tblTempUsageDetail_20' ) end [2025-03-04 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:44:21] Production.INFO: ==24521== Releasing lock... [2025-03-04 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:44:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:45:05 [end_date_ymd] => 2025-03-04 02:45:05 [RateCDR] => 1 ) [2025-03-04 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-03 23:45:05' and `end` < '2025-03-04 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-04 02:45:17] Production.INFO: count ==619 [2025-03-04 02:45:17] Production.ERROR: pbx CDR StartTime 2025-03-03 23:45:05 - End Time 2025-03-04 02:45:05 [2025-03-04 02:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602828', 'tblTempUsageDetail_20' ) start [2025-03-04 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602828', 'tblTempUsageDetail_20' ) end [2025-03-04 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602828', 'tblTempVendorCDR_20' ) start [2025-03-04 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602828', 'tblTempVendorCDR_20' ) end [2025-03-04 02:45:17] Production.INFO: ProcessCDR(1,14602828,1,1,2) [2025-03-04 02:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602828', 'tblTempUsageDetail_20' ) start [2025-03-04 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602828', 'tblTempUsageDetail_20' ) end [2025-03-04 02:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:45:20] Production.INFO: ==24604== Releasing lock... [2025-03-04 02:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:45:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:46:05 [end_date_ymd] => 2025-03-04 02:46:05 [RateCDR] => 1 ) [2025-03-04 02:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 23:46:05' and `end` < '2025-03-04 02:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 02:46:17] Production.INFO: count ==619 [2025-03-04 02:46:17] Production.ERROR: pbx CDR StartTime 2025-03-03 23:46:05 - End Time 2025-03-04 02:46:05 [2025-03-04 02:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602833', 'tblTempUsageDetail_20' ) start [2025-03-04 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602833', 'tblTempUsageDetail_20' ) end [2025-03-04 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602833', 'tblTempVendorCDR_20' ) start [2025-03-04 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602833', 'tblTempVendorCDR_20' ) end [2025-03-04 02:46:17] Production.INFO: ProcessCDR(1,14602833,1,1,2) [2025-03-04 02:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602833', 'tblTempUsageDetail_20' ) start [2025-03-04 02:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602833', 'tblTempUsageDetail_20' ) end [2025-03-04 02:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:46:20] Production.INFO: ==24684== Releasing lock... [2025-03-04 02:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:46:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:47:06 [end_date_ymd] => 2025-03-04 02:47:06 [RateCDR] => 1 ) [2025-03-04 02: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-03 23:47:06' and `end` < '2025-03-04 02: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-04 02:47:18] Production.INFO: count ==619 [2025-03-04 02:47:18] Production.ERROR: pbx CDR StartTime 2025-03-03 23:47:06 - End Time 2025-03-04 02:47:06 [2025-03-04 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602838', 'tblTempUsageDetail_20' ) start [2025-03-04 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602838', 'tblTempUsageDetail_20' ) end [2025-03-04 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602838', 'tblTempVendorCDR_20' ) start [2025-03-04 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602838', 'tblTempVendorCDR_20' ) end [2025-03-04 02:47:18] Production.INFO: ProcessCDR(1,14602838,1,1,2) [2025-03-04 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602838', 'tblTempUsageDetail_20' ) start [2025-03-04 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602838', 'tblTempUsageDetail_20' ) end [2025-03-04 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:47:21] Production.INFO: ==24762== Releasing lock... [2025-03-04 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:47:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:48:05 [end_date_ymd] => 2025-03-04 02:48:05 [RateCDR] => 1 ) [2025-03-04 02:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 23:48:05' and `end` < '2025-03-04 02:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 02:48:17] Production.INFO: count ==619 [2025-03-04 02:48:17] Production.ERROR: pbx CDR StartTime 2025-03-03 23:48:05 - End Time 2025-03-04 02:48:05 [2025-03-04 02:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602843', 'tblTempUsageDetail_20' ) start [2025-03-04 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602843', 'tblTempUsageDetail_20' ) end [2025-03-04 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602843', 'tblTempVendorCDR_20' ) start [2025-03-04 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602843', 'tblTempVendorCDR_20' ) end [2025-03-04 02:48:17] Production.INFO: ProcessCDR(1,14602843,1,1,2) [2025-03-04 02:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602843', 'tblTempUsageDetail_20' ) start [2025-03-04 02:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602843', 'tblTempUsageDetail_20' ) end [2025-03-04 02:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:48:20] Production.INFO: ==24841== Releasing lock... [2025-03-04 02:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:48:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:49:06 [end_date_ymd] => 2025-03-04 02:49:06 [RateCDR] => 1 ) [2025-03-04 02: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-03 23:49:06' and `end` < '2025-03-04 02: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-04 02:49:18] Production.INFO: count ==619 [2025-03-04 02:49:18] Production.ERROR: pbx CDR StartTime 2025-03-03 23:49:06 - End Time 2025-03-04 02:49:06 [2025-03-04 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602848', 'tblTempUsageDetail_20' ) start [2025-03-04 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602848', 'tblTempUsageDetail_20' ) end [2025-03-04 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602848', 'tblTempVendorCDR_20' ) start [2025-03-04 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602848', 'tblTempVendorCDR_20' ) end [2025-03-04 02:49:18] Production.INFO: ProcessCDR(1,14602848,1,1,2) [2025-03-04 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602848', 'tblTempUsageDetail_20' ) start [2025-03-04 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602848', 'tblTempUsageDetail_20' ) end [2025-03-04 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:49:21] Production.INFO: ==24920== Releasing lock... [2025-03-04 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:49:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:50:06 [end_date_ymd] => 2025-03-04 02:50:06 [RateCDR] => 1 ) [2025-03-04 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-03 23:50:06' and `end` < '2025-03-04 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-04 02:50:18] Production.INFO: count ==627 [2025-03-04 02:50:18] Production.ERROR: pbx CDR StartTime 2025-03-03 23:50:06 - End Time 2025-03-04 02:50:06 [2025-03-04 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602854', 'tblTempUsageDetail_20' ) start [2025-03-04 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602854', 'tblTempUsageDetail_20' ) end [2025-03-04 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602854', 'tblTempVendorCDR_20' ) start [2025-03-04 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602854', 'tblTempVendorCDR_20' ) end [2025-03-04 02:50:18] Production.INFO: ProcessCDR(1,14602854,1,1,2) [2025-03-04 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602854', 'tblTempUsageDetail_20' ) start [2025-03-04 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602854', 'tblTempUsageDetail_20' ) end [2025-03-04 02:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:50:21] Production.INFO: ==25001== Releasing lock... [2025-03-04 02:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:50:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:51:05 [end_date_ymd] => 2025-03-04 02:51:05 [RateCDR] => 1 ) [2025-03-04 02: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-03 23:51:05' and `end` < '2025-03-04 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-04 02:51:17] Production.INFO: count ==629 [2025-03-04 02:51:18] Production.ERROR: pbx CDR StartTime 2025-03-03 23:51:05 - End Time 2025-03-04 02:51:05 [2025-03-04 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602859', 'tblTempUsageDetail_20' ) start [2025-03-04 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602859', 'tblTempUsageDetail_20' ) end [2025-03-04 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602859', 'tblTempVendorCDR_20' ) start [2025-03-04 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602859', 'tblTempVendorCDR_20' ) end [2025-03-04 02:51:18] Production.INFO: ProcessCDR(1,14602859,1,1,2) [2025-03-04 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602859', 'tblTempUsageDetail_20' ) start [2025-03-04 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602859', 'tblTempUsageDetail_20' ) end [2025-03-04 02:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:51:21] Production.INFO: ==25082== Releasing lock... [2025-03-04 02:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:51:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:52:05 [end_date_ymd] => 2025-03-04 02:52:05 [RateCDR] => 1 ) [2025-03-04 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-03 23:52:05' and `end` < '2025-03-04 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-04 02:52:17] Production.INFO: count ==629 [2025-03-04 02:52:17] Production.ERROR: pbx CDR StartTime 2025-03-03 23:52:05 - End Time 2025-03-04 02:52:05 [2025-03-04 02:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602864', 'tblTempUsageDetail_20' ) start [2025-03-04 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602864', 'tblTempUsageDetail_20' ) end [2025-03-04 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602864', 'tblTempVendorCDR_20' ) start [2025-03-04 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602864', 'tblTempVendorCDR_20' ) end [2025-03-04 02:52:17] Production.INFO: ProcessCDR(1,14602864,1,1,2) [2025-03-04 02:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602864', 'tblTempUsageDetail_20' ) start [2025-03-04 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602864', 'tblTempUsageDetail_20' ) end [2025-03-04 02:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:52:21] Production.INFO: ==25204== Releasing lock... [2025-03-04 02:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:52:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:53:05 [end_date_ymd] => 2025-03-04 02:53:05 [RateCDR] => 1 ) [2025-03-04 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-03 23:53:05' and `end` < '2025-03-04 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-04 02:53:17] Production.INFO: count ==629 [2025-03-04 02:53:18] Production.ERROR: pbx CDR StartTime 2025-03-03 23:53:05 - End Time 2025-03-04 02:53:05 [2025-03-04 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602869', 'tblTempUsageDetail_20' ) start [2025-03-04 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602869', 'tblTempUsageDetail_20' ) end [2025-03-04 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602869', 'tblTempVendorCDR_20' ) start [2025-03-04 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602869', 'tblTempVendorCDR_20' ) end [2025-03-04 02:53:18] Production.INFO: ProcessCDR(1,14602869,1,1,2) [2025-03-04 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602869', 'tblTempUsageDetail_20' ) start [2025-03-04 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602869', 'tblTempUsageDetail_20' ) end [2025-03-04 02:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:53:21] Production.INFO: ==25284== Releasing lock... [2025-03-04 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:53:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:54:05 [end_date_ymd] => 2025-03-04 02:54:05 [RateCDR] => 1 ) [2025-03-04 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-03 23:54:05' and `end` < '2025-03-04 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-04 02:54:17] Production.INFO: count ==627 [2025-03-04 02:54:17] Production.ERROR: pbx CDR StartTime 2025-03-03 23:54:05 - End Time 2025-03-04 02:54:05 [2025-03-04 02:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602874', 'tblTempUsageDetail_20' ) start [2025-03-04 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602874', 'tblTempUsageDetail_20' ) end [2025-03-04 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602874', 'tblTempVendorCDR_20' ) start [2025-03-04 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602874', 'tblTempVendorCDR_20' ) end [2025-03-04 02:54:17] Production.INFO: ProcessCDR(1,14602874,1,1,2) [2025-03-04 02:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602874', 'tblTempUsageDetail_20' ) start [2025-03-04 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602874', 'tblTempUsageDetail_20' ) end [2025-03-04 02:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:54:20] Production.INFO: ==25359== Releasing lock... [2025-03-04 02:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:54:20] Production.INFO: 33.5 MB #Memory Used# [2025-03-04 02:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:55:06 [end_date_ymd] => 2025-03-04 02:55:06 [RateCDR] => 1 ) [2025-03-04 02: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-03 23:55:06' and `end` < '2025-03-04 02: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-04 02:55:18] Production.INFO: count ==627 [2025-03-04 02:55:18] Production.ERROR: pbx CDR StartTime 2025-03-03 23:55:06 - End Time 2025-03-04 02:55:06 [2025-03-04 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602879', 'tblTempUsageDetail_20' ) start [2025-03-04 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602879', 'tblTempUsageDetail_20' ) end [2025-03-04 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602879', 'tblTempVendorCDR_20' ) start [2025-03-04 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602879', 'tblTempVendorCDR_20' ) end [2025-03-04 02:55:18] Production.INFO: ProcessCDR(1,14602879,1,1,2) [2025-03-04 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602879', 'tblTempUsageDetail_20' ) start [2025-03-04 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602879', 'tblTempUsageDetail_20' ) end [2025-03-04 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:55:21] Production.INFO: ==25438== Releasing lock... [2025-03-04 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:55:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-04 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:56:05 [end_date_ymd] => 2025-03-04 02:56:05 [RateCDR] => 1 ) [2025-03-04 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-03 23:56:05' and `end` < '2025-03-04 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-04 02:56:17] Production.INFO: count ==625 [2025-03-04 02:56:17] Production.ERROR: pbx CDR StartTime 2025-03-03 23:56:05 - End Time 2025-03-04 02:56:05 [2025-03-04 02:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602884', 'tblTempUsageDetail_20' ) start [2025-03-04 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602884', 'tblTempUsageDetail_20' ) end [2025-03-04 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602884', 'tblTempVendorCDR_20' ) start [2025-03-04 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602884', 'tblTempVendorCDR_20' ) end [2025-03-04 02:56:17] Production.INFO: ProcessCDR(1,14602884,1,1,2) [2025-03-04 02:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602884', 'tblTempUsageDetail_20' ) start [2025-03-04 02:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602884', 'tblTempUsageDetail_20' ) end [2025-03-04 02:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:56:20] Production.INFO: ==25518== Releasing lock... [2025-03-04 02:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:56:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:57:05 [end_date_ymd] => 2025-03-04 02:57:05 [RateCDR] => 1 ) [2025-03-04 02:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 23:57:05' and `end` < '2025-03-04 02:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 02:57:17] Production.INFO: count ==625 [2025-03-04 02:57:17] Production.ERROR: pbx CDR StartTime 2025-03-03 23:57:05 - End Time 2025-03-04 02:57:05 [2025-03-04 02:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602889', 'tblTempUsageDetail_20' ) start [2025-03-04 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602889', 'tblTempUsageDetail_20' ) end [2025-03-04 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602889', 'tblTempVendorCDR_20' ) start [2025-03-04 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602889', 'tblTempVendorCDR_20' ) end [2025-03-04 02:57:17] Production.INFO: ProcessCDR(1,14602889,1,1,2) [2025-03-04 02:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602889', 'tblTempUsageDetail_20' ) start [2025-03-04 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602889', 'tblTempUsageDetail_20' ) end [2025-03-04 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:57:22] Production.INFO: ==25598== Releasing lock... [2025-03-04 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:57:22] Production.INFO: 33 MB #Memory Used# [2025-03-04 02:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:58:06 [end_date_ymd] => 2025-03-04 02:58:06 [RateCDR] => 1 ) [2025-03-04 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-03 23:58:06' and `end` < '2025-03-04 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-04 02:58:18] Production.INFO: count ==625 [2025-03-04 02:58:18] Production.ERROR: pbx CDR StartTime 2025-03-03 23:58:06 - End Time 2025-03-04 02:58:06 [2025-03-04 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602894', 'tblTempUsageDetail_20' ) start [2025-03-04 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602894', 'tblTempUsageDetail_20' ) end [2025-03-04 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602894', 'tblTempVendorCDR_20' ) start [2025-03-04 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602894', 'tblTempVendorCDR_20' ) end [2025-03-04 02:58:18] Production.INFO: ProcessCDR(1,14602894,1,1,2) [2025-03-04 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602894', 'tblTempUsageDetail_20' ) start [2025-03-04 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602894', 'tblTempUsageDetail_20' ) end [2025-03-04 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:58:22] Production.INFO: ==25679== Releasing lock... [2025-03-04 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:58:22] Production.INFO: 33 MB #Memory Used# [2025-03-04 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-03 23:59:05 [end_date_ymd] => 2025-03-04 02:59:05 [RateCDR] => 1 ) [2025-03-04 02:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-03 23:59:05' and `end` < '2025-03-04 02:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 02:59:17] Production.INFO: count ==625 [2025-03-04 02:59:18] Production.ERROR: pbx CDR StartTime 2025-03-03 23:59:05 - End Time 2025-03-04 02:59:05 [2025-03-04 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602899', 'tblTempUsageDetail_20' ) start [2025-03-04 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602899', 'tblTempUsageDetail_20' ) end [2025-03-04 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602899', 'tblTempVendorCDR_20' ) start [2025-03-04 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602899', 'tblTempVendorCDR_20' ) end [2025-03-04 02:59:18] Production.INFO: ProcessCDR(1,14602899,1,1,2) [2025-03-04 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602899', 'tblTempUsageDetail_20' ) start [2025-03-04 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602899', 'tblTempUsageDetail_20' ) end [2025-03-04 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 02:59:21] Production.INFO: ==25758== Releasing lock... [2025-03-04 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 02:59:21] Production.INFO: 33 MB #Memory Used# [2025-03-04 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:00:05 [end_date_ymd] => 2025-03-04 03:00:05 [RateCDR] => 1 ) [2025-03-04 03:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 00:00:05' and `end` < '2025-03-04 03:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 03:00:18] Production.INFO: count ==633 [2025-03-04 03:00:18] Production.ERROR: pbx CDR StartTime 2025-03-04 00:00:05 - End Time 2025-03-04 03:00:05 [2025-03-04 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602904', 'tblTempUsageDetail_20' ) start [2025-03-04 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602904', 'tblTempUsageDetail_20' ) end [2025-03-04 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602904', 'tblTempVendorCDR_20' ) start [2025-03-04 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602904', 'tblTempVendorCDR_20' ) end [2025-03-04 03:00:18] Production.INFO: ProcessCDR(1,14602904,1,1,2) [2025-03-04 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602904', 'tblTempUsageDetail_20' ) start [2025-03-04 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602904', 'tblTempUsageDetail_20' ) end [2025-03-04 03:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:00:21] Production.INFO: ==25841== Releasing lock... [2025-03-04 03:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:00:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-04 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:01:05 [end_date_ymd] => 2025-03-04 03:01:05 [RateCDR] => 1 ) [2025-03-04 03:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 00:01:05' and `end` < '2025-03-04 03:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 03:01:17] Production.INFO: count ==637 [2025-03-04 03:01:18] Production.ERROR: pbx CDR StartTime 2025-03-04 00:01:05 - End Time 2025-03-04 03:01:05 [2025-03-04 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602910', 'tblTempUsageDetail_20' ) start [2025-03-04 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602910', 'tblTempUsageDetail_20' ) end [2025-03-04 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602910', 'tblTempVendorCDR_20' ) start [2025-03-04 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602910', 'tblTempVendorCDR_20' ) end [2025-03-04 03:01:18] Production.INFO: ProcessCDR(1,14602910,1,1,2) [2025-03-04 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602910', 'tblTempUsageDetail_20' ) start [2025-03-04 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602910', 'tblTempUsageDetail_20' ) end [2025-03-04 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:01:21] Production.INFO: ==25935== Releasing lock... [2025-03-04 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:01:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-04 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:02:05 [end_date_ymd] => 2025-03-04 03:02:05 [RateCDR] => 1 ) [2025-03-04 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-04 00:02:05' and `end` < '2025-03-04 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-04 03:02:17] Production.INFO: count ==637 [2025-03-04 03:02:17] Production.ERROR: pbx CDR StartTime 2025-03-04 00:02:05 - End Time 2025-03-04 03:02:05 [2025-03-04 03:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602915', 'tblTempUsageDetail_20' ) start [2025-03-04 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602915', 'tblTempUsageDetail_20' ) end [2025-03-04 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602915', 'tblTempVendorCDR_20' ) start [2025-03-04 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602915', 'tblTempVendorCDR_20' ) end [2025-03-04 03:02:17] Production.INFO: ProcessCDR(1,14602915,1,1,2) [2025-03-04 03:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602915', 'tblTempUsageDetail_20' ) start [2025-03-04 03:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602915', 'tblTempUsageDetail_20' ) end [2025-03-04 03:02:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:02:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:02:20] Production.INFO: ==26091== Releasing lock... [2025-03-04 03:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:02:20] Production.INFO: 33.5 MB #Memory Used# [2025-03-04 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:03:05 [end_date_ymd] => 2025-03-04 03:03:05 [RateCDR] => 1 ) [2025-03-04 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-04 00:03:05' and `end` < '2025-03-04 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-04 03:03:17] Production.INFO: count ==634 [2025-03-04 03:03:17] Production.ERROR: pbx CDR StartTime 2025-03-04 00:03:05 - End Time 2025-03-04 03:03:05 [2025-03-04 03:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602920', 'tblTempUsageDetail_20' ) start [2025-03-04 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602920', 'tblTempUsageDetail_20' ) end [2025-03-04 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602920', 'tblTempVendorCDR_20' ) start [2025-03-04 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602920', 'tblTempVendorCDR_20' ) end [2025-03-04 03:03:17] Production.INFO: ProcessCDR(1,14602920,1,1,2) [2025-03-04 03:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602920', 'tblTempUsageDetail_20' ) start [2025-03-04 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602920', 'tblTempUsageDetail_20' ) end [2025-03-04 03:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:03:21] Production.INFO: ==26167== Releasing lock... [2025-03-04 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:03:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 03:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:04:06 [end_date_ymd] => 2025-03-04 03:04:06 [RateCDR] => 1 ) [2025-03-04 03: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 00:04:06' and `end` < '2025-03-04 03: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-04 03:04:18] Production.INFO: count ==632 [2025-03-04 03:04:18] Production.ERROR: pbx CDR StartTime 2025-03-04 00:04:06 - End Time 2025-03-04 03:04:06 [2025-03-04 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602925', 'tblTempUsageDetail_20' ) start [2025-03-04 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602925', 'tblTempUsageDetail_20' ) end [2025-03-04 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602925', 'tblTempVendorCDR_20' ) start [2025-03-04 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602925', 'tblTempVendorCDR_20' ) end [2025-03-04 03:04:18] Production.INFO: ProcessCDR(1,14602925,1,1,2) [2025-03-04 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602925', 'tblTempUsageDetail_20' ) start [2025-03-04 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602925', 'tblTempUsageDetail_20' ) end [2025-03-04 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:04:21] Production.INFO: ==26246== Releasing lock... [2025-03-04 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:04:21] Production.INFO: 33 MB #Memory Used# [2025-03-04 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:05:05 [end_date_ymd] => 2025-03-04 03:05:05 [RateCDR] => 1 ) [2025-03-04 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-04 00:05:05' and `end` < '2025-03-04 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-04 03:05:17] Production.INFO: count ==631 [2025-03-04 03:05:17] Production.ERROR: pbx CDR StartTime 2025-03-04 00:05:05 - End Time 2025-03-04 03:05:05 [2025-03-04 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602930', 'tblTempUsageDetail_20' ) start [2025-03-04 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602930', 'tblTempUsageDetail_20' ) end [2025-03-04 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602930', 'tblTempVendorCDR_20' ) start [2025-03-04 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602930', 'tblTempVendorCDR_20' ) end [2025-03-04 03:05:17] Production.INFO: ProcessCDR(1,14602930,1,1,2) [2025-03-04 03:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602930', 'tblTempUsageDetail_20' ) start [2025-03-04 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602930', 'tblTempUsageDetail_20' ) end [2025-03-04 03:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:05:20] Production.INFO: ==26323== Releasing lock... [2025-03-04 03:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:05:20] Production.INFO: 33 MB #Memory Used# [2025-03-04 03:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:06:06 [end_date_ymd] => 2025-03-04 03:06:06 [RateCDR] => 1 ) [2025-03-04 03: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 00:06:06' and `end` < '2025-03-04 03: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-04 03:06:17] Production.INFO: count ==630 [2025-03-04 03:06:18] Production.ERROR: pbx CDR StartTime 2025-03-04 00:06:06 - End Time 2025-03-04 03:06:06 [2025-03-04 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602935', 'tblTempUsageDetail_20' ) start [2025-03-04 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602935', 'tblTempUsageDetail_20' ) end [2025-03-04 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602935', 'tblTempVendorCDR_20' ) start [2025-03-04 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602935', 'tblTempVendorCDR_20' ) end [2025-03-04 03:06:18] Production.INFO: ProcessCDR(1,14602935,1,1,2) [2025-03-04 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602935', 'tblTempUsageDetail_20' ) start [2025-03-04 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602935', 'tblTempUsageDetail_20' ) end [2025-03-04 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:06:21] Production.INFO: ==26478== Releasing lock... [2025-03-04 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:06:21] Production.INFO: 33 MB #Memory Used# [2025-03-04 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:07:05 [end_date_ymd] => 2025-03-04 03:07:05 [RateCDR] => 1 ) [2025-03-04 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-04 00:07:05' and `end` < '2025-03-04 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-04 03:07:17] Production.INFO: count ==630 [2025-03-04 03:07:17] Production.ERROR: pbx CDR StartTime 2025-03-04 00:07:05 - End Time 2025-03-04 03:07:05 [2025-03-04 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602940', 'tblTempUsageDetail_20' ) start [2025-03-04 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602940', 'tblTempUsageDetail_20' ) end [2025-03-04 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602940', 'tblTempVendorCDR_20' ) start [2025-03-04 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602940', 'tblTempVendorCDR_20' ) end [2025-03-04 03:07:17] Production.INFO: ProcessCDR(1,14602940,1,1,2) [2025-03-04 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602940', 'tblTempUsageDetail_20' ) start [2025-03-04 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602940', 'tblTempUsageDetail_20' ) end [2025-03-04 03:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:07:20] Production.INFO: ==26555== Releasing lock... [2025-03-04 03:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:07:20] Production.INFO: 33 MB #Memory Used# [2025-03-04 03:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:08:06 [end_date_ymd] => 2025-03-04 03:08:06 [RateCDR] => 1 ) [2025-03-04 03: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-04 00:08:06' and `end` < '2025-03-04 03: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-04 03:08:18] Production.INFO: count ==628 [2025-03-04 03:08:18] Production.ERROR: pbx CDR StartTime 2025-03-04 00:08:06 - End Time 2025-03-04 03:08:06 [2025-03-04 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602945', 'tblTempUsageDetail_20' ) start [2025-03-04 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602945', 'tblTempUsageDetail_20' ) end [2025-03-04 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602945', 'tblTempVendorCDR_20' ) start [2025-03-04 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602945', 'tblTempVendorCDR_20' ) end [2025-03-04 03:08:18] Production.INFO: ProcessCDR(1,14602945,1,1,2) [2025-03-04 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602945', 'tblTempUsageDetail_20' ) start [2025-03-04 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602945', 'tblTempUsageDetail_20' ) end [2025-03-04 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:08:21] Production.INFO: ==26673== Releasing lock... [2025-03-04 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:08:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-04 03:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:09:04 [end_date_ymd] => 2025-03-04 03:09:04 [RateCDR] => 1 ) [2025-03-04 03: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-04 00:09:04' and `end` < '2025-03-04 03: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-04 03:09:16] Production.INFO: count ==625 [2025-03-04 03:09:17] Production.ERROR: pbx CDR StartTime 2025-03-04 00:09:04 - End Time 2025-03-04 03:09:04 [2025-03-04 03:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602950', 'tblTempUsageDetail_20' ) start [2025-03-04 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602950', 'tblTempUsageDetail_20' ) end [2025-03-04 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602950', 'tblTempVendorCDR_20' ) start [2025-03-04 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602950', 'tblTempVendorCDR_20' ) end [2025-03-04 03:09:17] Production.INFO: ProcessCDR(1,14602950,1,1,2) [2025-03-04 03:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602950', 'tblTempUsageDetail_20' ) start [2025-03-04 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602950', 'tblTempUsageDetail_20' ) end [2025-03-04 03:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:09:20] Production.INFO: ==26827== Releasing lock... [2025-03-04 03:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:09:20] Production.INFO: 33.5 MB #Memory Used# [2025-03-04 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:10:06 [end_date_ymd] => 2025-03-04 03:10:06 [RateCDR] => 1 ) [2025-03-04 03:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 00:10:06' and `end` < '2025-03-04 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-04 03:10:18] Production.INFO: count ==621 [2025-03-04 03:10:18] Production.ERROR: pbx CDR StartTime 2025-03-04 00:10:06 - End Time 2025-03-04 03:10:06 [2025-03-04 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602956', 'tblTempUsageDetail_20' ) start [2025-03-04 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602956', 'tblTempUsageDetail_20' ) end [2025-03-04 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602956', 'tblTempVendorCDR_20' ) start [2025-03-04 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602956', 'tblTempVendorCDR_20' ) end [2025-03-04 03:10:18] Production.INFO: ProcessCDR(1,14602956,1,1,2) [2025-03-04 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602956', 'tblTempUsageDetail_20' ) start [2025-03-04 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602956', 'tblTempUsageDetail_20' ) end [2025-03-04 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:10:22] Production.INFO: ==26906== Releasing lock... [2025-03-04 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:10:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-04 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:11:05 [end_date_ymd] => 2025-03-04 03:11:05 [RateCDR] => 1 ) [2025-03-04 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-04 00:11:05' and `end` < '2025-03-04 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-04 03:11:17] Production.INFO: count ==605 [2025-03-04 03:11:17] Production.ERROR: pbx CDR StartTime 2025-03-04 00:11:05 - End Time 2025-03-04 03:11:05 [2025-03-04 03:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602961', 'tblTempUsageDetail_20' ) start [2025-03-04 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602961', 'tblTempUsageDetail_20' ) end [2025-03-04 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602961', 'tblTempVendorCDR_20' ) start [2025-03-04 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602961', 'tblTempVendorCDR_20' ) end [2025-03-04 03:11:17] Production.INFO: ProcessCDR(1,14602961,1,1,2) [2025-03-04 03:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602961', 'tblTempUsageDetail_20' ) start [2025-03-04 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602961', 'tblTempUsageDetail_20' ) end [2025-03-04 03:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:11:20] Production.INFO: ==26990== Releasing lock... [2025-03-04 03:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:11:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:12:05 [end_date_ymd] => 2025-03-04 03:12:05 [RateCDR] => 1 ) [2025-03-04 03:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 00:12:05' and `end` < '2025-03-04 03:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 03:12:17] Production.INFO: count ==604 [2025-03-04 03:12:17] Production.ERROR: pbx CDR StartTime 2025-03-04 00:12:05 - End Time 2025-03-04 03:12:05 [2025-03-04 03:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602966', 'tblTempUsageDetail_20' ) start [2025-03-04 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602966', 'tblTempUsageDetail_20' ) end [2025-03-04 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602966', 'tblTempVendorCDR_20' ) start [2025-03-04 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602966', 'tblTempVendorCDR_20' ) end [2025-03-04 03:12:17] Production.INFO: ProcessCDR(1,14602966,1,1,2) [2025-03-04 03:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602966', 'tblTempUsageDetail_20' ) start [2025-03-04 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602966', 'tblTempUsageDetail_20' ) end [2025-03-04 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:12:21] Production.INFO: ==27068== Releasing lock... [2025-03-04 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:12:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:13:05 [end_date_ymd] => 2025-03-04 03:13:05 [RateCDR] => 1 ) [2025-03-04 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-04 00:13:05' and `end` < '2025-03-04 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-04 03:13:17] Production.INFO: count ==602 [2025-03-04 03:13:18] Production.ERROR: pbx CDR StartTime 2025-03-04 00:13:05 - End Time 2025-03-04 03:13:05 [2025-03-04 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602971', 'tblTempUsageDetail_20' ) start [2025-03-04 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602971', 'tblTempUsageDetail_20' ) end [2025-03-04 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602971', 'tblTempVendorCDR_20' ) start [2025-03-04 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602971', 'tblTempVendorCDR_20' ) end [2025-03-04 03:13:18] Production.INFO: ProcessCDR(1,14602971,1,1,2) [2025-03-04 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602971', 'tblTempUsageDetail_20' ) start [2025-03-04 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602971', 'tblTempUsageDetail_20' ) end [2025-03-04 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:13:21] Production.INFO: ==27224== Releasing lock... [2025-03-04 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:13:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-04 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:14:05 [end_date_ymd] => 2025-03-04 03:14:05 [RateCDR] => 1 ) [2025-03-04 03:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 00:14:05' and `end` < '2025-03-04 03:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 03:14:17] Production.INFO: count ==597 [2025-03-04 03:14:17] Production.ERROR: pbx CDR StartTime 2025-03-04 00:14:05 - End Time 2025-03-04 03:14:05 [2025-03-04 03:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602976', 'tblTempUsageDetail_20' ) start [2025-03-04 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602976', 'tblTempUsageDetail_20' ) end [2025-03-04 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602976', 'tblTempVendorCDR_20' ) start [2025-03-04 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602976', 'tblTempVendorCDR_20' ) end [2025-03-04 03:14:17] Production.INFO: ProcessCDR(1,14602976,1,1,2) [2025-03-04 03:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602976', 'tblTempUsageDetail_20' ) start [2025-03-04 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602976', 'tblTempUsageDetail_20' ) end [2025-03-04 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:14:21] Production.INFO: ==27307== Releasing lock... [2025-03-04 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:14:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:15:05 [end_date_ymd] => 2025-03-04 03:15:05 [RateCDR] => 1 ) [2025-03-04 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-04 00:15:05' and `end` < '2025-03-04 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-04 03:15:17] Production.INFO: count ==595 [2025-03-04 03:15:17] Production.ERROR: pbx CDR StartTime 2025-03-04 00:15:05 - End Time 2025-03-04 03:15:05 [2025-03-04 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602981', 'tblTempUsageDetail_20' ) start [2025-03-04 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602981', 'tblTempUsageDetail_20' ) end [2025-03-04 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602981', 'tblTempVendorCDR_20' ) start [2025-03-04 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602981', 'tblTempVendorCDR_20' ) end [2025-03-04 03:15:17] Production.INFO: ProcessCDR(1,14602981,1,1,2) [2025-03-04 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602981', 'tblTempUsageDetail_20' ) start [2025-03-04 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602981', 'tblTempUsageDetail_20' ) end [2025-03-04 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:15:21] Production.INFO: ==27385== Releasing lock... [2025-03-04 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:15:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:16:05 [end_date_ymd] => 2025-03-04 03:16:05 [RateCDR] => 1 ) [2025-03-04 03:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 00:16:05' and `end` < '2025-03-04 03:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 03:16:17] Production.INFO: count ==593 [2025-03-04 03:16:17] Production.ERROR: pbx CDR StartTime 2025-03-04 00:16:05 - End Time 2025-03-04 03:16:05 [2025-03-04 03:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602986', 'tblTempUsageDetail_20' ) start [2025-03-04 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602986', 'tblTempUsageDetail_20' ) end [2025-03-04 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602986', 'tblTempVendorCDR_20' ) start [2025-03-04 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602986', 'tblTempVendorCDR_20' ) end [2025-03-04 03:16:17] Production.INFO: ProcessCDR(1,14602986,1,1,2) [2025-03-04 03:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602986', 'tblTempUsageDetail_20' ) start [2025-03-04 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602986', 'tblTempUsageDetail_20' ) end [2025-03-04 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:16:21] Production.INFO: ==27460== Releasing lock... [2025-03-04 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:16:21] Production.INFO: 33 MB #Memory Used# [2025-03-04 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:17:05 [end_date_ymd] => 2025-03-04 03:17:05 [RateCDR] => 1 ) [2025-03-04 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-04 00:17:05' and `end` < '2025-03-04 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-04 03:17:17] Production.INFO: count ==592 [2025-03-04 03:17:17] Production.ERROR: pbx CDR StartTime 2025-03-04 00:17:05 - End Time 2025-03-04 03:17:05 [2025-03-04 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602991', 'tblTempUsageDetail_20' ) start [2025-03-04 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602991', 'tblTempUsageDetail_20' ) end [2025-03-04 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602991', 'tblTempVendorCDR_20' ) start [2025-03-04 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602991', 'tblTempVendorCDR_20' ) end [2025-03-04 03:17:17] Production.INFO: ProcessCDR(1,14602991,1,1,2) [2025-03-04 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602991', 'tblTempUsageDetail_20' ) start [2025-03-04 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602991', 'tblTempUsageDetail_20' ) end [2025-03-04 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:17:21] Production.INFO: ==27615== Releasing lock... [2025-03-04 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:17:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:18:05 [end_date_ymd] => 2025-03-04 03:18:05 [RateCDR] => 1 ) [2025-03-04 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-04 00:18:05' and `end` < '2025-03-04 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-04 03:18:17] Production.INFO: count ==589 [2025-03-04 03:18:17] Production.ERROR: pbx CDR StartTime 2025-03-04 00:18:05 - End Time 2025-03-04 03:18:05 [2025-03-04 03:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602996', 'tblTempUsageDetail_20' ) start [2025-03-04 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14602996', 'tblTempUsageDetail_20' ) end [2025-03-04 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602996', 'tblTempVendorCDR_20' ) start [2025-03-04 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14602996', 'tblTempVendorCDR_20' ) end [2025-03-04 03:18:17] Production.INFO: ProcessCDR(1,14602996,1,1,2) [2025-03-04 03:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14602996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14602996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14602996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14602996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602996', 'tblTempUsageDetail_20' ) start [2025-03-04 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14602996', 'tblTempUsageDetail_20' ) end [2025-03-04 03:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:18:20] Production.INFO: ==27691== Releasing lock... [2025-03-04 03:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:18:20] Production.INFO: 33.75 MB #Memory Used# [2025-03-04 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:19:05 [end_date_ymd] => 2025-03-04 03:19:05 [RateCDR] => 1 ) [2025-03-04 03:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 00:19:05' and `end` < '2025-03-04 03:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 03:19:17] Production.INFO: count ==589 [2025-03-04 03:19:17] Production.ERROR: pbx CDR StartTime 2025-03-04 00:19:05 - End Time 2025-03-04 03:19:05 [2025-03-04 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603001', 'tblTempUsageDetail_20' ) start [2025-03-04 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603001', 'tblTempUsageDetail_20' ) end [2025-03-04 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603001', 'tblTempVendorCDR_20' ) start [2025-03-04 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603001', 'tblTempVendorCDR_20' ) end [2025-03-04 03:19:17] Production.INFO: ProcessCDR(1,14603001,1,1,2) [2025-03-04 03:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603001', 'tblTempUsageDetail_20' ) start [2025-03-04 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603001', 'tblTempUsageDetail_20' ) end [2025-03-04 03:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:19:20] Production.INFO: ==27770== Releasing lock... [2025-03-04 03:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:19:20] Production.INFO: 33.75 MB #Memory Used# [2025-03-04 03:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:20:07 [end_date_ymd] => 2025-03-04 03:20:07 [RateCDR] => 1 ) [2025-03-04 03: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-04 00:20:07' and `end` < '2025-03-04 03: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-04 03:20:19] Production.INFO: count ==582 [2025-03-04 03:20:19] Production.ERROR: pbx CDR StartTime 2025-03-04 00:20:07 - End Time 2025-03-04 03:20:07 [2025-03-04 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603007', 'tblTempUsageDetail_20' ) start [2025-03-04 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603007', 'tblTempUsageDetail_20' ) end [2025-03-04 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603007', 'tblTempVendorCDR_20' ) start [2025-03-04 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603007', 'tblTempVendorCDR_20' ) end [2025-03-04 03:20:19] Production.INFO: ProcessCDR(1,14603007,1,1,2) [2025-03-04 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603007', 'tblTempUsageDetail_20' ) start [2025-03-04 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603007', 'tblTempUsageDetail_20' ) end [2025-03-04 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:20:22] Production.INFO: ==27849== Releasing lock... [2025-03-04 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:20:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:21:05 [end_date_ymd] => 2025-03-04 03:21:05 [RateCDR] => 1 ) [2025-03-04 03:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 00:21:05' and `end` < '2025-03-04 03:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 03:21:17] Production.INFO: count ==565 [2025-03-04 03:21:17] Production.ERROR: pbx CDR StartTime 2025-03-04 00:21:05 - End Time 2025-03-04 03:21:05 [2025-03-04 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603012', 'tblTempUsageDetail_20' ) start [2025-03-04 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603012', 'tblTempUsageDetail_20' ) end [2025-03-04 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603012', 'tblTempVendorCDR_20' ) start [2025-03-04 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603012', 'tblTempVendorCDR_20' ) end [2025-03-04 03:21:18] Production.INFO: ProcessCDR(1,14603012,1,1,2) [2025-03-04 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603012', 'tblTempUsageDetail_20' ) start [2025-03-04 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603012', 'tblTempUsageDetail_20' ) end [2025-03-04 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:21:21] Production.INFO: ==27926== Releasing lock... [2025-03-04 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:21:21] Production.INFO: 33 MB #Memory Used# [2025-03-04 03:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:22:06 [end_date_ymd] => 2025-03-04 03:22:06 [RateCDR] => 1 ) [2025-03-04 03: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 00:22:06' and `end` < '2025-03-04 03: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-04 03:22:18] Production.INFO: count ==564 [2025-03-04 03:22:18] Production.ERROR: pbx CDR StartTime 2025-03-04 00:22:06 - End Time 2025-03-04 03:22:06 [2025-03-04 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603017', 'tblTempUsageDetail_20' ) start [2025-03-04 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603017', 'tblTempUsageDetail_20' ) end [2025-03-04 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603017', 'tblTempVendorCDR_20' ) start [2025-03-04 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603017', 'tblTempVendorCDR_20' ) end [2025-03-04 03:22:18] Production.INFO: ProcessCDR(1,14603017,1,1,2) [2025-03-04 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603017', 'tblTempUsageDetail_20' ) start [2025-03-04 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603017', 'tblTempUsageDetail_20' ) end [2025-03-04 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:22:21] Production.INFO: ==28001== Releasing lock... [2025-03-04 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:22:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-04 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:23:05 [end_date_ymd] => 2025-03-04 03:23:05 [RateCDR] => 1 ) [2025-03-04 03: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 00:23:05' and `end` < '2025-03-04 03: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-04 03:23:17] Production.INFO: count ==562 [2025-03-04 03:23:17] Production.ERROR: pbx CDR StartTime 2025-03-04 00:23:05 - End Time 2025-03-04 03:23:05 [2025-03-04 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603022', 'tblTempUsageDetail_20' ) start [2025-03-04 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603022', 'tblTempUsageDetail_20' ) end [2025-03-04 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603022', 'tblTempVendorCDR_20' ) start [2025-03-04 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603022', 'tblTempVendorCDR_20' ) end [2025-03-04 03:23:17] Production.INFO: ProcessCDR(1,14603022,1,1,2) [2025-03-04 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603022', 'tblTempUsageDetail_20' ) start [2025-03-04 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603022', 'tblTempUsageDetail_20' ) end [2025-03-04 03:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:23:20] Production.INFO: ==28077== Releasing lock... [2025-03-04 03:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:23:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-04 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:24:05 [end_date_ymd] => 2025-03-04 03:24:05 [RateCDR] => 1 ) [2025-03-04 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-04 00:24:05' and `end` < '2025-03-04 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-04 03:24:17] Production.INFO: count ==553 [2025-03-04 03:24:17] Production.ERROR: pbx CDR StartTime 2025-03-04 00:24:05 - End Time 2025-03-04 03:24:05 [2025-03-04 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603027', 'tblTempUsageDetail_20' ) start [2025-03-04 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603027', 'tblTempUsageDetail_20' ) end [2025-03-04 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603027', 'tblTempVendorCDR_20' ) start [2025-03-04 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603027', 'tblTempVendorCDR_20' ) end [2025-03-04 03:24:18] Production.INFO: ProcessCDR(1,14603027,1,1,2) [2025-03-04 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603027', 'tblTempUsageDetail_20' ) start [2025-03-04 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603027', 'tblTempUsageDetail_20' ) end [2025-03-04 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:24:21] Production.INFO: ==28149== Releasing lock... [2025-03-04 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:24:21] Production.INFO: 33 MB #Memory Used# [2025-03-04 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:25:05 [end_date_ymd] => 2025-03-04 03:25:05 [RateCDR] => 1 ) [2025-03-04 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 00:25:05' and `end` < '2025-03-04 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-04 03:25:17] Production.INFO: count ==531 [2025-03-04 03:25:17] Production.ERROR: pbx CDR StartTime 2025-03-04 00:25:05 - End Time 2025-03-04 03:25:05 [2025-03-04 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603032', 'tblTempUsageDetail_20' ) start [2025-03-04 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603032', 'tblTempUsageDetail_20' ) end [2025-03-04 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603032', 'tblTempVendorCDR_20' ) start [2025-03-04 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603032', 'tblTempVendorCDR_20' ) end [2025-03-04 03:25:17] Production.INFO: ProcessCDR(1,14603032,1,1,2) [2025-03-04 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603032', 'tblTempUsageDetail_20' ) start [2025-03-04 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603032', 'tblTempUsageDetail_20' ) end [2025-03-04 03:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:25:20] Production.INFO: ==28264== Releasing lock... [2025-03-04 03:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:25:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-04 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:26:05 [end_date_ymd] => 2025-03-04 03:26:05 [RateCDR] => 1 ) [2025-03-04 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-04 00:26:05' and `end` < '2025-03-04 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-04 03:26:17] Production.INFO: count ==506 [2025-03-04 03:26:17] Production.ERROR: pbx CDR StartTime 2025-03-04 00:26:05 - End Time 2025-03-04 03:26:05 [2025-03-04 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603037', 'tblTempUsageDetail_20' ) start [2025-03-04 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603037', 'tblTempUsageDetail_20' ) end [2025-03-04 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603037', 'tblTempVendorCDR_20' ) start [2025-03-04 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603037', 'tblTempVendorCDR_20' ) end [2025-03-04 03:26:17] Production.INFO: ProcessCDR(1,14603037,1,1,2) [2025-03-04 03:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603037', 'tblTempUsageDetail_20' ) start [2025-03-04 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603037', 'tblTempUsageDetail_20' ) end [2025-03-04 03:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:26:21] Production.INFO: ==28341== Releasing lock... [2025-03-04 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:26:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-04 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:27:05 [end_date_ymd] => 2025-03-04 03:27:05 [RateCDR] => 1 ) [2025-03-04 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-04 00:27:05' and `end` < '2025-03-04 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-04 03:27:17] Production.INFO: count ==481 [2025-03-04 03:27:17] Production.ERROR: pbx CDR StartTime 2025-03-04 00:27:05 - End Time 2025-03-04 03:27:05 [2025-03-04 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603042', 'tblTempUsageDetail_20' ) start [2025-03-04 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603042', 'tblTempUsageDetail_20' ) end [2025-03-04 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603042', 'tblTempVendorCDR_20' ) start [2025-03-04 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603042', 'tblTempVendorCDR_20' ) end [2025-03-04 03:27:17] Production.INFO: ProcessCDR(1,14603042,1,1,2) [2025-03-04 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603042', 'tblTempUsageDetail_20' ) start [2025-03-04 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603042', 'tblTempUsageDetail_20' ) end [2025-03-04 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:27:21] Production.INFO: ==28418== Releasing lock... [2025-03-04 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:27:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-04 03:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:28:06 [end_date_ymd] => 2025-03-04 03:28:06 [RateCDR] => 1 ) [2025-03-04 03: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-04 00:28:06' and `end` < '2025-03-04 03: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-04 03:28:18] Production.INFO: count ==478 [2025-03-04 03:28:18] Production.ERROR: pbx CDR StartTime 2025-03-04 00:28:06 - End Time 2025-03-04 03:28:06 [2025-03-04 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603047', 'tblTempUsageDetail_20' ) start [2025-03-04 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603047', 'tblTempUsageDetail_20' ) end [2025-03-04 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603047', 'tblTempVendorCDR_20' ) start [2025-03-04 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603047', 'tblTempVendorCDR_20' ) end [2025-03-04 03:28:18] Production.INFO: ProcessCDR(1,14603047,1,1,2) [2025-03-04 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603047', 'tblTempUsageDetail_20' ) start [2025-03-04 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603047', 'tblTempUsageDetail_20' ) end [2025-03-04 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:28:22] Production.INFO: ==28495== Releasing lock... [2025-03-04 03:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:28:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-04 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:29:05 [end_date_ymd] => 2025-03-04 03:29:05 [RateCDR] => 1 ) [2025-03-04 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-04 00:29:05' and `end` < '2025-03-04 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-04 03:29:17] Production.INFO: count ==464 [2025-03-04 03:29:17] Production.ERROR: pbx CDR StartTime 2025-03-04 00:29:05 - End Time 2025-03-04 03:29:05 [2025-03-04 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603052', 'tblTempUsageDetail_20' ) start [2025-03-04 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603052', 'tblTempUsageDetail_20' ) end [2025-03-04 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603052', 'tblTempVendorCDR_20' ) start [2025-03-04 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603052', 'tblTempVendorCDR_20' ) end [2025-03-04 03:29:17] Production.INFO: ProcessCDR(1,14603052,1,1,2) [2025-03-04 03:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603052', 'tblTempUsageDetail_20' ) start [2025-03-04 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603052', 'tblTempUsageDetail_20' ) end [2025-03-04 03:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:29:20] Production.INFO: ==28571== Releasing lock... [2025-03-04 03:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:29:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-04 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:30:06 [end_date_ymd] => 2025-03-04 03:30:06 [RateCDR] => 1 ) [2025-03-04 03: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 00:30:06' and `end` < '2025-03-04 03: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-04 03:30:18] Production.INFO: count ==448 [2025-03-04 03:30:18] Production.ERROR: pbx CDR StartTime 2025-03-04 00:30:06 - End Time 2025-03-04 03:30:06 [2025-03-04 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603058', 'tblTempUsageDetail_20' ) start [2025-03-04 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603058', 'tblTempUsageDetail_20' ) end [2025-03-04 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603058', 'tblTempVendorCDR_20' ) start [2025-03-04 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603058', 'tblTempVendorCDR_20' ) end [2025-03-04 03:30:18] Production.INFO: ProcessCDR(1,14603058,1,1,2) [2025-03-04 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603058', 'tblTempUsageDetail_20' ) start [2025-03-04 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603058', 'tblTempUsageDetail_20' ) end [2025-03-04 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:30:22] Production.INFO: ==28650== Releasing lock... [2025-03-04 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:30:22] Production.INFO: 32 MB #Memory Used# [2025-03-04 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:31:05 [end_date_ymd] => 2025-03-04 03:31:05 [RateCDR] => 1 ) [2025-03-04 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-04 00:31:05' and `end` < '2025-03-04 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-04 03:31:17] Production.INFO: count ==430 [2025-03-04 03:31:17] Production.ERROR: pbx CDR StartTime 2025-03-04 00:31:05 - End Time 2025-03-04 03:31:05 [2025-03-04 03:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603063', 'tblTempUsageDetail_20' ) start [2025-03-04 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603063', 'tblTempUsageDetail_20' ) end [2025-03-04 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603063', 'tblTempVendorCDR_20' ) start [2025-03-04 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603063', 'tblTempVendorCDR_20' ) end [2025-03-04 03:31:17] Production.INFO: ProcessCDR(1,14603063,1,1,2) [2025-03-04 03:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603063', 'tblTempUsageDetail_20' ) start [2025-03-04 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603063', 'tblTempUsageDetail_20' ) end [2025-03-04 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:31:21] Production.INFO: ==28732== Releasing lock... [2025-03-04 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:31:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-04 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:32:06 [end_date_ymd] => 2025-03-04 03:32:06 [RateCDR] => 1 ) [2025-03-04 03: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 00:32:06' and `end` < '2025-03-04 03: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-04 03:32:18] Production.INFO: count ==430 [2025-03-04 03:32:18] Production.ERROR: pbx CDR StartTime 2025-03-04 00:32:06 - End Time 2025-03-04 03:32:06 [2025-03-04 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603068', 'tblTempUsageDetail_20' ) start [2025-03-04 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603068', 'tblTempUsageDetail_20' ) end [2025-03-04 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603068', 'tblTempVendorCDR_20' ) start [2025-03-04 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603068', 'tblTempVendorCDR_20' ) end [2025-03-04 03:32:18] Production.INFO: ProcessCDR(1,14603068,1,1,2) [2025-03-04 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603068', 'tblTempUsageDetail_20' ) start [2025-03-04 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603068', 'tblTempUsageDetail_20' ) end [2025-03-04 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:32:22] Production.INFO: ==28809== Releasing lock... [2025-03-04 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:32:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-04 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:33:05 [end_date_ymd] => 2025-03-04 03:33:05 [RateCDR] => 1 ) [2025-03-04 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-04 00:33:05' and `end` < '2025-03-04 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-04 03:33:17] Production.INFO: count ==429 [2025-03-04 03:33:17] Production.ERROR: pbx CDR StartTime 2025-03-04 00:33:05 - End Time 2025-03-04 03:33:05 [2025-03-04 03:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603073', 'tblTempUsageDetail_20' ) start [2025-03-04 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603073', 'tblTempUsageDetail_20' ) end [2025-03-04 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603073', 'tblTempVendorCDR_20' ) start [2025-03-04 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603073', 'tblTempVendorCDR_20' ) end [2025-03-04 03:33:17] Production.INFO: ProcessCDR(1,14603073,1,1,2) [2025-03-04 03:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603073', 'tblTempUsageDetail_20' ) start [2025-03-04 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603073', 'tblTempUsageDetail_20' ) end [2025-03-04 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:33:21] Production.INFO: ==28900== Releasing lock... [2025-03-04 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:33:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-04 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:34:05 [end_date_ymd] => 2025-03-04 03:34:05 [RateCDR] => 1 ) [2025-03-04 03:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 00:34:05' and `end` < '2025-03-04 03:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 03:34:17] Production.INFO: count ==429 [2025-03-04 03:34:17] Production.ERROR: pbx CDR StartTime 2025-03-04 00:34:05 - End Time 2025-03-04 03:34:05 [2025-03-04 03:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603078', 'tblTempUsageDetail_20' ) start [2025-03-04 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603078', 'tblTempUsageDetail_20' ) end [2025-03-04 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603078', 'tblTempVendorCDR_20' ) start [2025-03-04 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603078', 'tblTempVendorCDR_20' ) end [2025-03-04 03:34:17] Production.INFO: ProcessCDR(1,14603078,1,1,2) [2025-03-04 03:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603078', 'tblTempUsageDetail_20' ) start [2025-03-04 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603078', 'tblTempUsageDetail_20' ) end [2025-03-04 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:34:21] Production.INFO: ==29000== Releasing lock... [2025-03-04 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:34:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-04 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:35:05 [end_date_ymd] => 2025-03-04 03:35:05 [RateCDR] => 1 ) [2025-03-04 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-04 00:35:05' and `end` < '2025-03-04 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-04 03:35:17] Production.INFO: count ==429 [2025-03-04 03:35:17] Production.ERROR: pbx CDR StartTime 2025-03-04 00:35:05 - End Time 2025-03-04 03:35:05 [2025-03-04 03:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603083', 'tblTempUsageDetail_20' ) start [2025-03-04 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603083', 'tblTempUsageDetail_20' ) end [2025-03-04 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603083', 'tblTempVendorCDR_20' ) start [2025-03-04 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603083', 'tblTempVendorCDR_20' ) end [2025-03-04 03:35:17] Production.INFO: ProcessCDR(1,14603083,1,1,2) [2025-03-04 03:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603083', 'tblTempUsageDetail_20' ) start [2025-03-04 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603083', 'tblTempUsageDetail_20' ) end [2025-03-04 03:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:35:20] Production.INFO: ==29075== Releasing lock... [2025-03-04 03:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:35:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-04 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:36:05 [end_date_ymd] => 2025-03-04 03:36:05 [RateCDR] => 1 ) [2025-03-04 03:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 00:36:05' and `end` < '2025-03-04 03:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 03:36:17] Production.INFO: count ==427 [2025-03-04 03:36:17] Production.ERROR: pbx CDR StartTime 2025-03-04 00:36:05 - End Time 2025-03-04 03:36:05 [2025-03-04 03:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603088', 'tblTempUsageDetail_20' ) start [2025-03-04 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603088', 'tblTempUsageDetail_20' ) end [2025-03-04 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603088', 'tblTempVendorCDR_20' ) start [2025-03-04 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603088', 'tblTempVendorCDR_20' ) end [2025-03-04 03:36:17] Production.INFO: ProcessCDR(1,14603088,1,1,2) [2025-03-04 03:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603088', 'tblTempUsageDetail_20' ) start [2025-03-04 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603088', 'tblTempUsageDetail_20' ) end [2025-03-04 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:36:21] Production.INFO: ==29152== Releasing lock... [2025-03-04 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:36:21] Production.INFO: 32 MB #Memory Used# [2025-03-04 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:37:05 [end_date_ymd] => 2025-03-04 03:37:05 [RateCDR] => 1 ) [2025-03-04 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-04 00:37:05' and `end` < '2025-03-04 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-04 03:37:17] Production.INFO: count ==426 [2025-03-04 03:37:17] Production.ERROR: pbx CDR StartTime 2025-03-04 00:37:05 - End Time 2025-03-04 03:37:05 [2025-03-04 03:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603093', 'tblTempUsageDetail_20' ) start [2025-03-04 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603093', 'tblTempUsageDetail_20' ) end [2025-03-04 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603093', 'tblTempVendorCDR_20' ) start [2025-03-04 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603093', 'tblTempVendorCDR_20' ) end [2025-03-04 03:37:17] Production.INFO: ProcessCDR(1,14603093,1,1,2) [2025-03-04 03:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603093', 'tblTempUsageDetail_20' ) start [2025-03-04 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603093', 'tblTempUsageDetail_20' ) end [2025-03-04 03:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:37:21] Production.INFO: ==29230== Releasing lock... [2025-03-04 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:37:21] Production.INFO: 32 MB #Memory Used# [2025-03-04 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:38:05 [end_date_ymd] => 2025-03-04 03:38:05 [RateCDR] => 1 ) [2025-03-04 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-04 00:38:05' and `end` < '2025-03-04 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-04 03:38:18] Production.INFO: count ==423 [2025-03-04 03:38:18] Production.ERROR: pbx CDR StartTime 2025-03-04 00:38:05 - End Time 2025-03-04 03:38:05 [2025-03-04 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603098', 'tblTempUsageDetail_20' ) start [2025-03-04 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603098', 'tblTempUsageDetail_20' ) end [2025-03-04 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603098', 'tblTempVendorCDR_20' ) start [2025-03-04 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603098', 'tblTempVendorCDR_20' ) end [2025-03-04 03:38:18] Production.INFO: ProcessCDR(1,14603098,1,1,2) [2025-03-04 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603098', 'tblTempUsageDetail_20' ) start [2025-03-04 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603098', 'tblTempUsageDetail_20' ) end [2025-03-04 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:38:21] Production.INFO: ==29306== Releasing lock... [2025-03-04 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:38:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-04 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:39:05 [end_date_ymd] => 2025-03-04 03:39:05 [RateCDR] => 1 ) [2025-03-04 03:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 00:39:05' and `end` < '2025-03-04 03:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 03:39:17] Production.INFO: count ==423 [2025-03-04 03:39:17] Production.ERROR: pbx CDR StartTime 2025-03-04 00:39:05 - End Time 2025-03-04 03:39:05 [2025-03-04 03:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603103', 'tblTempUsageDetail_20' ) start [2025-03-04 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603103', 'tblTempUsageDetail_20' ) end [2025-03-04 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603103', 'tblTempVendorCDR_20' ) start [2025-03-04 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603103', 'tblTempVendorCDR_20' ) end [2025-03-04 03:39:17] Production.INFO: ProcessCDR(1,14603103,1,1,2) [2025-03-04 03:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603103', 'tblTempUsageDetail_20' ) start [2025-03-04 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603103', 'tblTempUsageDetail_20' ) end [2025-03-04 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:39:21] Production.INFO: ==29383== Releasing lock... [2025-03-04 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:39:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-04 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:40:06 [end_date_ymd] => 2025-03-04 03:40:06 [RateCDR] => 1 ) [2025-03-04 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-04 00:40:06' and `end` < '2025-03-04 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-04 03:40:18] Production.INFO: count ==418 [2025-03-04 03:40:18] Production.ERROR: pbx CDR StartTime 2025-03-04 00:40:06 - End Time 2025-03-04 03:40:06 [2025-03-04 03:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603109', 'tblTempUsageDetail_20' ) start [2025-03-04 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603109', 'tblTempUsageDetail_20' ) end [2025-03-04 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603109', 'tblTempVendorCDR_20' ) start [2025-03-04 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603109', 'tblTempVendorCDR_20' ) end [2025-03-04 03:40:18] Production.INFO: ProcessCDR(1,14603109,1,1,2) [2025-03-04 03:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603109', 'tblTempUsageDetail_20' ) start [2025-03-04 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603109', 'tblTempUsageDetail_20' ) end [2025-03-04 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:40:22] Production.INFO: ==29503== Releasing lock... [2025-03-04 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:40:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-04 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:41:05 [end_date_ymd] => 2025-03-04 03:41:05 [RateCDR] => 1 ) [2025-03-04 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-04 00:41:05' and `end` < '2025-03-04 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-04 03:41:17] Production.INFO: count ==412 [2025-03-04 03:41:17] Production.ERROR: pbx CDR StartTime 2025-03-04 00:41:05 - End Time 2025-03-04 03:41:05 [2025-03-04 03:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603114', 'tblTempUsageDetail_20' ) start [2025-03-04 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603114', 'tblTempUsageDetail_20' ) end [2025-03-04 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603114', 'tblTempVendorCDR_20' ) start [2025-03-04 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603114', 'tblTempVendorCDR_20' ) end [2025-03-04 03:41:17] Production.INFO: ProcessCDR(1,14603114,1,1,2) [2025-03-04 03:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603114', 'tblTempUsageDetail_20' ) start [2025-03-04 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603114', 'tblTempUsageDetail_20' ) end [2025-03-04 03:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:41:21] Production.INFO: ==29581== Releasing lock... [2025-03-04 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:41:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-04 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:42:06 [end_date_ymd] => 2025-03-04 03:42:06 [RateCDR] => 1 ) [2025-03-04 03: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 00:42:06' and `end` < '2025-03-04 03: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-04 03:42:18] Production.INFO: count ==412 [2025-03-04 03:42:18] Production.ERROR: pbx CDR StartTime 2025-03-04 00:42:06 - End Time 2025-03-04 03:42:06 [2025-03-04 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603119', 'tblTempUsageDetail_20' ) start [2025-03-04 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603119', 'tblTempUsageDetail_20' ) end [2025-03-04 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603119', 'tblTempVendorCDR_20' ) start [2025-03-04 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603119', 'tblTempVendorCDR_20' ) end [2025-03-04 03:42:18] Production.INFO: ProcessCDR(1,14603119,1,1,2) [2025-03-04 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603119', 'tblTempUsageDetail_20' ) start [2025-03-04 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603119', 'tblTempUsageDetail_20' ) end [2025-03-04 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:42:22] Production.INFO: ==29654== Releasing lock... [2025-03-04 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:42:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-04 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:43:05 [end_date_ymd] => 2025-03-04 03:43:05 [RateCDR] => 1 ) [2025-03-04 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-04 00:43:05' and `end` < '2025-03-04 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-04 03:43:17] Production.INFO: count ==412 [2025-03-04 03:43:18] Production.ERROR: pbx CDR StartTime 2025-03-04 00:43:05 - End Time 2025-03-04 03:43:05 [2025-03-04 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603124', 'tblTempUsageDetail_20' ) start [2025-03-04 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603124', 'tblTempUsageDetail_20' ) end [2025-03-04 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603124', 'tblTempVendorCDR_20' ) start [2025-03-04 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603124', 'tblTempVendorCDR_20' ) end [2025-03-04 03:43:18] Production.INFO: ProcessCDR(1,14603124,1,1,2) [2025-03-04 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603124', 'tblTempUsageDetail_20' ) start [2025-03-04 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603124', 'tblTempUsageDetail_20' ) end [2025-03-04 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:43:21] Production.INFO: ==29729== Releasing lock... [2025-03-04 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:43:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-04 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:44:06 [end_date_ymd] => 2025-03-04 03:44:06 [RateCDR] => 1 ) [2025-03-04 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-04 00:44:06' and `end` < '2025-03-04 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-04 03:44:18] Production.INFO: count ==412 [2025-03-04 03:44:18] Production.ERROR: pbx CDR StartTime 2025-03-04 00:44:06 - End Time 2025-03-04 03:44:06 [2025-03-04 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603129', 'tblTempUsageDetail_20' ) start [2025-03-04 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603129', 'tblTempUsageDetail_20' ) end [2025-03-04 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603129', 'tblTempVendorCDR_20' ) start [2025-03-04 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603129', 'tblTempVendorCDR_20' ) end [2025-03-04 03:44:18] Production.INFO: ProcessCDR(1,14603129,1,1,2) [2025-03-04 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603129', 'tblTempUsageDetail_20' ) start [2025-03-04 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603129', 'tblTempUsageDetail_20' ) end [2025-03-04 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:44:22] Production.INFO: ==29807== Releasing lock... [2025-03-04 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:44:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-04 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:45:05 [end_date_ymd] => 2025-03-04 03:45:05 [RateCDR] => 1 ) [2025-03-04 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-04 00:45:05' and `end` < '2025-03-04 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-04 03:45:17] Production.INFO: count ==412 [2025-03-04 03:45:17] Production.ERROR: pbx CDR StartTime 2025-03-04 00:45:05 - End Time 2025-03-04 03:45:05 [2025-03-04 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603134', 'tblTempUsageDetail_20' ) start [2025-03-04 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603134', 'tblTempUsageDetail_20' ) end [2025-03-04 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603134', 'tblTempVendorCDR_20' ) start [2025-03-04 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603134', 'tblTempVendorCDR_20' ) end [2025-03-04 03:45:17] Production.INFO: ProcessCDR(1,14603134,1,1,2) [2025-03-04 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603134', 'tblTempUsageDetail_20' ) start [2025-03-04 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603134', 'tblTempUsageDetail_20' ) end [2025-03-04 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:45:21] Production.INFO: ==29883== Releasing lock... [2025-03-04 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:45:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-04 03:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:46:06 [end_date_ymd] => 2025-03-04 03:46:06 [RateCDR] => 1 ) [2025-03-04 03:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 00:46:06' and `end` < '2025-03-04 03:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 03:46:18] Production.INFO: count ==412 [2025-03-04 03:46:18] Production.ERROR: pbx CDR StartTime 2025-03-04 00:46:06 - End Time 2025-03-04 03:46:06 [2025-03-04 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603139', 'tblTempUsageDetail_20' ) start [2025-03-04 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603139', 'tblTempUsageDetail_20' ) end [2025-03-04 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603139', 'tblTempVendorCDR_20' ) start [2025-03-04 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603139', 'tblTempVendorCDR_20' ) end [2025-03-04 03:46:18] Production.INFO: ProcessCDR(1,14603139,1,1,2) [2025-03-04 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603139', 'tblTempUsageDetail_20' ) start [2025-03-04 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603139', 'tblTempUsageDetail_20' ) end [2025-03-04 03:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:46:22] Production.INFO: ==29960== Releasing lock... [2025-03-04 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:46:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-04 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:47:05 [end_date_ymd] => 2025-03-04 03:47:05 [RateCDR] => 1 ) [2025-03-04 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-04 00:47:05' and `end` < '2025-03-04 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-04 03:47:17] Production.INFO: count ==412 [2025-03-04 03:47:17] Production.ERROR: pbx CDR StartTime 2025-03-04 00:47:05 - End Time 2025-03-04 03:47:05 [2025-03-04 03:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603144', 'tblTempUsageDetail_20' ) start [2025-03-04 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603144', 'tblTempUsageDetail_20' ) end [2025-03-04 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603144', 'tblTempVendorCDR_20' ) start [2025-03-04 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603144', 'tblTempVendorCDR_20' ) end [2025-03-04 03:47:17] Production.INFO: ProcessCDR(1,14603144,1,1,2) [2025-03-04 03:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603144', 'tblTempUsageDetail_20' ) start [2025-03-04 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603144', 'tblTempUsageDetail_20' ) end [2025-03-04 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:47:21] Production.INFO: ==30035== Releasing lock... [2025-03-04 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:47:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-04 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:48:06 [end_date_ymd] => 2025-03-04 03:48:06 [RateCDR] => 1 ) [2025-03-04 03: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 00:48:06' and `end` < '2025-03-04 03: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-04 03:48:18] Production.INFO: count ==410 [2025-03-04 03:48:18] Production.ERROR: pbx CDR StartTime 2025-03-04 00:48:06 - End Time 2025-03-04 03:48:06 [2025-03-04 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603149', 'tblTempUsageDetail_20' ) start [2025-03-04 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603149', 'tblTempUsageDetail_20' ) end [2025-03-04 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603149', 'tblTempVendorCDR_20' ) start [2025-03-04 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603149', 'tblTempVendorCDR_20' ) end [2025-03-04 03:48:18] Production.INFO: ProcessCDR(1,14603149,1,1,2) [2025-03-04 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603149', 'tblTempUsageDetail_20' ) start [2025-03-04 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603149', 'tblTempUsageDetail_20' ) end [2025-03-04 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:48:21] Production.INFO: ==30114== Releasing lock... [2025-03-04 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:48:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-04 03:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:49:06 [end_date_ymd] => 2025-03-04 03:49:06 [RateCDR] => 1 ) [2025-03-04 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-04 00:49:06' and `end` < '2025-03-04 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-04 03:49:18] Production.INFO: count ==410 [2025-03-04 03:49:18] Production.ERROR: pbx CDR StartTime 2025-03-04 00:49:06 - End Time 2025-03-04 03:49:06 [2025-03-04 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603154', 'tblTempUsageDetail_20' ) start [2025-03-04 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603154', 'tblTempUsageDetail_20' ) end [2025-03-04 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603154', 'tblTempVendorCDR_20' ) start [2025-03-04 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603154', 'tblTempVendorCDR_20' ) end [2025-03-04 03:49:18] Production.INFO: ProcessCDR(1,14603154,1,1,2) [2025-03-04 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603154', 'tblTempUsageDetail_20' ) start [2025-03-04 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603154', 'tblTempUsageDetail_20' ) end [2025-03-04 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:49:21] Production.INFO: ==30192== Releasing lock... [2025-03-04 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:49:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-04 03:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:50:07 [end_date_ymd] => 2025-03-04 03:50:07 [RateCDR] => 1 ) [2025-03-04 03:50: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 00:50:07' and `end` < '2025-03-04 03:50: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-04 03:50:19] Production.INFO: count ==404 [2025-03-04 03:50:19] Production.ERROR: pbx CDR StartTime 2025-03-04 00:50:07 - End Time 2025-03-04 03:50:07 [2025-03-04 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603160', 'tblTempUsageDetail_20' ) start [2025-03-04 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603160', 'tblTempUsageDetail_20' ) end [2025-03-04 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603160', 'tblTempVendorCDR_20' ) start [2025-03-04 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603160', 'tblTempVendorCDR_20' ) end [2025-03-04 03:50:19] Production.INFO: ProcessCDR(1,14603160,1,1,2) [2025-03-04 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603160', 'tblTempUsageDetail_20' ) start [2025-03-04 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603160', 'tblTempUsageDetail_20' ) end [2025-03-04 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:50:22] Production.INFO: ==30276== Releasing lock... [2025-03-04 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:50:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-04 03:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:51:06 [end_date_ymd] => 2025-03-04 03:51:06 [RateCDR] => 1 ) [2025-03-04 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-04 00:51:06' and `end` < '2025-03-04 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-04 03:51:18] Production.INFO: count ==399 [2025-03-04 03:51:18] Production.ERROR: pbx CDR StartTime 2025-03-04 00:51:06 - End Time 2025-03-04 03:51:06 [2025-03-04 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603165', 'tblTempUsageDetail_20' ) start [2025-03-04 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603165', 'tblTempUsageDetail_20' ) end [2025-03-04 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603165', 'tblTempVendorCDR_20' ) start [2025-03-04 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603165', 'tblTempVendorCDR_20' ) end [2025-03-04 03:51:18] Production.INFO: ProcessCDR(1,14603165,1,1,2) [2025-03-04 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603165', 'tblTempUsageDetail_20' ) start [2025-03-04 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603165', 'tblTempUsageDetail_20' ) end [2025-03-04 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:51:21] Production.INFO: ==30355== Releasing lock... [2025-03-04 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:51:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-04 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:52:06 [end_date_ymd] => 2025-03-04 03:52:06 [RateCDR] => 1 ) [2025-03-04 03:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 00:52:06' and `end` < '2025-03-04 03:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 03:52:18] Production.INFO: count ==399 [2025-03-04 03:52:18] Production.ERROR: pbx CDR StartTime 2025-03-04 00:52:06 - End Time 2025-03-04 03:52:06 [2025-03-04 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603170', 'tblTempUsageDetail_20' ) start [2025-03-04 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603170', 'tblTempUsageDetail_20' ) end [2025-03-04 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603170', 'tblTempVendorCDR_20' ) start [2025-03-04 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603170', 'tblTempVendorCDR_20' ) end [2025-03-04 03:52:18] Production.INFO: ProcessCDR(1,14603170,1,1,2) [2025-03-04 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603170', 'tblTempUsageDetail_20' ) start [2025-03-04 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603170', 'tblTempUsageDetail_20' ) end [2025-03-04 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:52:22] Production.INFO: ==30439== Releasing lock... [2025-03-04 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:52:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-04 03:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:53:06 [end_date_ymd] => 2025-03-04 03:53:06 [RateCDR] => 1 ) [2025-03-04 03: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 00:53:06' and `end` < '2025-03-04 03: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-04 03:53:18] Production.INFO: count ==399 [2025-03-04 03:53:18] Production.ERROR: pbx CDR StartTime 2025-03-04 00:53:06 - End Time 2025-03-04 03:53:06 [2025-03-04 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603175', 'tblTempUsageDetail_20' ) start [2025-03-04 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603175', 'tblTempUsageDetail_20' ) end [2025-03-04 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603175', 'tblTempVendorCDR_20' ) start [2025-03-04 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603175', 'tblTempVendorCDR_20' ) end [2025-03-04 03:53:18] Production.INFO: ProcessCDR(1,14603175,1,1,2) [2025-03-04 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603175', 'tblTempUsageDetail_20' ) start [2025-03-04 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603175', 'tblTempUsageDetail_20' ) end [2025-03-04 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:53:22] Production.INFO: ==30524== Releasing lock... [2025-03-04 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:53:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-04 03:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:54:06 [end_date_ymd] => 2025-03-04 03:54:06 [RateCDR] => 1 ) [2025-03-04 03: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 00:54:06' and `end` < '2025-03-04 03: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-04 03:54:18] Production.INFO: count ==399 [2025-03-04 03:54:18] Production.ERROR: pbx CDR StartTime 2025-03-04 00:54:06 - End Time 2025-03-04 03:54:06 [2025-03-04 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603180', 'tblTempUsageDetail_20' ) start [2025-03-04 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603180', 'tblTempUsageDetail_20' ) end [2025-03-04 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603180', 'tblTempVendorCDR_20' ) start [2025-03-04 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603180', 'tblTempVendorCDR_20' ) end [2025-03-04 03:54:18] Production.INFO: ProcessCDR(1,14603180,1,1,2) [2025-03-04 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603180', 'tblTempUsageDetail_20' ) start [2025-03-04 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603180', 'tblTempUsageDetail_20' ) end [2025-03-04 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:54:22] Production.INFO: ==30611== Releasing lock... [2025-03-04 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:54:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-04 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:55:05 [end_date_ymd] => 2025-03-04 03:55:05 [RateCDR] => 1 ) [2025-03-04 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-04 00:55:05' and `end` < '2025-03-04 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-04 03:55:17] Production.INFO: count ==402 [2025-03-04 03:55:18] Production.ERROR: pbx CDR StartTime 2025-03-04 00:55:05 - End Time 2025-03-04 03:55:05 [2025-03-04 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603185', 'tblTempUsageDetail_20' ) start [2025-03-04 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603185', 'tblTempUsageDetail_20' ) end [2025-03-04 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603185', 'tblTempVendorCDR_20' ) start [2025-03-04 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603185', 'tblTempVendorCDR_20' ) end [2025-03-04 03:55:18] Production.INFO: ProcessCDR(1,14603185,1,1,2) [2025-03-04 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603185', 'tblTempUsageDetail_20' ) start [2025-03-04 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603185', 'tblTempUsageDetail_20' ) end [2025-03-04 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:55:21] Production.INFO: ==30695== Releasing lock... [2025-03-04 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:55:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-04 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:56:06 [end_date_ymd] => 2025-03-04 03:56:06 [RateCDR] => 1 ) [2025-03-04 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-04 00:56:06' and `end` < '2025-03-04 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-04 03:56:18] Production.INFO: count ==401 [2025-03-04 03:56:18] Production.ERROR: pbx CDR StartTime 2025-03-04 00:56:06 - End Time 2025-03-04 03:56:06 [2025-03-04 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603190', 'tblTempUsageDetail_20' ) start [2025-03-04 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603190', 'tblTempUsageDetail_20' ) end [2025-03-04 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603190', 'tblTempVendorCDR_20' ) start [2025-03-04 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603190', 'tblTempVendorCDR_20' ) end [2025-03-04 03:56:18] Production.INFO: ProcessCDR(1,14603190,1,1,2) [2025-03-04 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603190', 'tblTempUsageDetail_20' ) start [2025-03-04 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603190', 'tblTempUsageDetail_20' ) end [2025-03-04 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:56:22] Production.INFO: ==30818== Releasing lock... [2025-03-04 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:56:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-04 03:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:57:06 [end_date_ymd] => 2025-03-04 03:57:06 [RateCDR] => 1 ) [2025-03-04 03: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 00:57:06' and `end` < '2025-03-04 03: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-04 03:57:18] Production.INFO: count ==398 [2025-03-04 03:57:18] Production.ERROR: pbx CDR StartTime 2025-03-04 00:57:06 - End Time 2025-03-04 03:57:06 [2025-03-04 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603195', 'tblTempUsageDetail_20' ) start [2025-03-04 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603195', 'tblTempUsageDetail_20' ) end [2025-03-04 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603195', 'tblTempVendorCDR_20' ) start [2025-03-04 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603195', 'tblTempVendorCDR_20' ) end [2025-03-04 03:57:18] Production.INFO: ProcessCDR(1,14603195,1,1,2) [2025-03-04 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603195', 'tblTempUsageDetail_20' ) start [2025-03-04 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603195', 'tblTempUsageDetail_20' ) end [2025-03-04 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:57:21] Production.INFO: ==30900== Releasing lock... [2025-03-04 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:57:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-04 03:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:58:06 [end_date_ymd] => 2025-03-04 03:58:06 [RateCDR] => 1 ) [2025-03-04 03: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 00:58:06' and `end` < '2025-03-04 03: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-04 03:58:18] Production.INFO: count ==388 [2025-03-04 03:58:18] Production.ERROR: pbx CDR StartTime 2025-03-04 00:58:06 - End Time 2025-03-04 03:58:06 [2025-03-04 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603200', 'tblTempUsageDetail_20' ) start [2025-03-04 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603200', 'tblTempUsageDetail_20' ) end [2025-03-04 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603200', 'tblTempVendorCDR_20' ) start [2025-03-04 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603200', 'tblTempVendorCDR_20' ) end [2025-03-04 03:58:18] Production.INFO: ProcessCDR(1,14603200,1,1,2) [2025-03-04 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603200', 'tblTempUsageDetail_20' ) start [2025-03-04 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603200', 'tblTempUsageDetail_20' ) end [2025-03-04 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:58:22] Production.INFO: ==30987== Releasing lock... [2025-03-04 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:58:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-04 03:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 00:59:06 [end_date_ymd] => 2025-03-04 03:59:06 [RateCDR] => 1 ) [2025-03-04 03:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 00:59:06' and `end` < '2025-03-04 03:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 03:59:17] Production.INFO: count ==308 [2025-03-04 03:59:18] Production.ERROR: pbx CDR StartTime 2025-03-04 00:59:06 - End Time 2025-03-04 03:59:06 [2025-03-04 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603205', 'tblTempUsageDetail_20' ) start [2025-03-04 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603205', 'tblTempUsageDetail_20' ) end [2025-03-04 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603205', 'tblTempVendorCDR_20' ) start [2025-03-04 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603205', 'tblTempVendorCDR_20' ) end [2025-03-04 03:59:18] Production.INFO: ProcessCDR(1,14603205,1,1,2) [2025-03-04 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603205', 'tblTempUsageDetail_20' ) start [2025-03-04 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603205', 'tblTempUsageDetail_20' ) end [2025-03-04 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 03:59:21] Production.INFO: ==31117== Releasing lock... [2025-03-04 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 03:59:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-04 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:00:07 [end_date_ymd] => 2025-03-04 04:00:07 [RateCDR] => 1 ) [2025-03-04 04: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-04 01:00:07' and `end` < '2025-03-04 04: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-04 04:00:19] Production.INFO: count ==224 [2025-03-04 04:00:19] Production.ERROR: pbx CDR StartTime 2025-03-04 01:00:07 - End Time 2025-03-04 04:00:07 [2025-03-04 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603211', 'tblTempUsageDetail_20' ) start [2025-03-04 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603211', 'tblTempUsageDetail_20' ) end [2025-03-04 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603211', 'tblTempVendorCDR_20' ) start [2025-03-04 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603211', 'tblTempVendorCDR_20' ) end [2025-03-04 04:00:19] Production.INFO: ProcessCDR(1,14603211,1,1,2) [2025-03-04 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603211', 'tblTempUsageDetail_20' ) start [2025-03-04 04:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603211', 'tblTempUsageDetail_20' ) end [2025-03-04 04:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:00:25] Production.INFO: ==31248== Releasing lock... [2025-03-04 04:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:00:25] Production.INFO: 29.25 MB #Memory Used# [2025-03-04 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:01:06 [end_date_ymd] => 2025-03-04 04:01:06 [RateCDR] => 1 ) [2025-03-04 04: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 01:01:06' and `end` < '2025-03-04 04: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-04 04:01:18] Production.INFO: count ==195 [2025-03-04 04:01:18] Production.ERROR: pbx CDR StartTime 2025-03-04 01:01:06 - End Time 2025-03-04 04:01:06 [2025-03-04 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603217', 'tblTempUsageDetail_20' ) start [2025-03-04 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603217', 'tblTempUsageDetail_20' ) end [2025-03-04 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603217', 'tblTempVendorCDR_20' ) start [2025-03-04 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603217', 'tblTempVendorCDR_20' ) end [2025-03-04 04:01:18] Production.INFO: ProcessCDR(1,14603217,1,1,2) [2025-03-04 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603217', 'tblTempUsageDetail_20' ) start [2025-03-04 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603217', 'tblTempUsageDetail_20' ) end [2025-03-04 04:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:01:22] Production.INFO: ==31347== Releasing lock... [2025-03-04 04:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:01:22] Production.INFO: 29 MB #Memory Used# [2025-03-04 04:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:02:06 [end_date_ymd] => 2025-03-04 04:02:06 [RateCDR] => 1 ) [2025-03-04 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-04 01:02:06' and `end` < '2025-03-04 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-04 04:02:18] Production.INFO: count ==195 [2025-03-04 04:02:18] Production.ERROR: pbx CDR StartTime 2025-03-04 01:02:06 - End Time 2025-03-04 04:02:06 [2025-03-04 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603222', 'tblTempUsageDetail_20' ) start [2025-03-04 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603222', 'tblTempUsageDetail_20' ) end [2025-03-04 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603222', 'tblTempVendorCDR_20' ) start [2025-03-04 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603222', 'tblTempVendorCDR_20' ) end [2025-03-04 04:02:18] Production.INFO: ProcessCDR(1,14603222,1,1,2) [2025-03-04 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603222', 'tblTempUsageDetail_20' ) start [2025-03-04 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603222', 'tblTempUsageDetail_20' ) end [2025-03-04 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:02:21] Production.INFO: ==31427== Releasing lock... [2025-03-04 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:02:21] Production.INFO: 29 MB #Memory Used# [2025-03-04 04:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:03:06 [end_date_ymd] => 2025-03-04 04:03:06 [RateCDR] => 1 ) [2025-03-04 04: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-04 01:03:06' and `end` < '2025-03-04 04: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-04 04:03:18] Production.INFO: count ==195 [2025-03-04 04:03:18] Production.ERROR: pbx CDR StartTime 2025-03-04 01:03:06 - End Time 2025-03-04 04:03:06 [2025-03-04 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603227', 'tblTempUsageDetail_20' ) start [2025-03-04 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603227', 'tblTempUsageDetail_20' ) end [2025-03-04 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603227', 'tblTempVendorCDR_20' ) start [2025-03-04 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603227', 'tblTempVendorCDR_20' ) end [2025-03-04 04:03:18] Production.INFO: ProcessCDR(1,14603227,1,1,2) [2025-03-04 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603227', 'tblTempUsageDetail_20' ) start [2025-03-04 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603227', 'tblTempUsageDetail_20' ) end [2025-03-04 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:03:22] Production.INFO: ==31510== Releasing lock... [2025-03-04 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:03:22] Production.INFO: 29 MB #Memory Used# [2025-03-04 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:04:05 [end_date_ymd] => 2025-03-04 04:04:05 [RateCDR] => 1 ) [2025-03-04 04:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 01:04:05' and `end` < '2025-03-04 04:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 04:04:17] Production.INFO: count ==192 [2025-03-04 04:04:17] Production.ERROR: pbx CDR StartTime 2025-03-04 01:04:05 - End Time 2025-03-04 04:04:05 [2025-03-04 04:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603232', 'tblTempUsageDetail_20' ) start [2025-03-04 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603232', 'tblTempUsageDetail_20' ) end [2025-03-04 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603232', 'tblTempVendorCDR_20' ) start [2025-03-04 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603232', 'tblTempVendorCDR_20' ) end [2025-03-04 04:04:17] Production.INFO: ProcessCDR(1,14603232,1,1,2) [2025-03-04 04:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603232', 'tblTempUsageDetail_20' ) start [2025-03-04 04:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603232', 'tblTempUsageDetail_20' ) end [2025-03-04 04:04:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:04:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:04:20] Production.INFO: ==31597== Releasing lock... [2025-03-04 04:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:04:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 04:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:05:06 [end_date_ymd] => 2025-03-04 04:05:06 [RateCDR] => 1 ) [2025-03-04 04: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 01:05:06' and `end` < '2025-03-04 04: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-04 04:05:18] Production.INFO: count ==192 [2025-03-04 04:05:18] Production.ERROR: pbx CDR StartTime 2025-03-04 01:05:06 - End Time 2025-03-04 04:05:06 [2025-03-04 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603237', 'tblTempUsageDetail_20' ) start [2025-03-04 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603237', 'tblTempUsageDetail_20' ) end [2025-03-04 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603237', 'tblTempVendorCDR_20' ) start [2025-03-04 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603237', 'tblTempVendorCDR_20' ) end [2025-03-04 04:05:18] Production.INFO: ProcessCDR(1,14603237,1,1,2) [2025-03-04 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603237', 'tblTempUsageDetail_20' ) start [2025-03-04 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603237', 'tblTempUsageDetail_20' ) end [2025-03-04 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:05:21] Production.INFO: ==31684== Releasing lock... [2025-03-04 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:05:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:06:05 [end_date_ymd] => 2025-03-04 04:06:05 [RateCDR] => 1 ) [2025-03-04 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-04 01:06:05' and `end` < '2025-03-04 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-04 04:06:17] Production.INFO: count ==186 [2025-03-04 04:06:17] Production.ERROR: pbx CDR StartTime 2025-03-04 01:06:05 - End Time 2025-03-04 04:06:05 [2025-03-04 04:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603242', 'tblTempUsageDetail_20' ) start [2025-03-04 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603242', 'tblTempUsageDetail_20' ) end [2025-03-04 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603242', 'tblTempVendorCDR_20' ) start [2025-03-04 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603242', 'tblTempVendorCDR_20' ) end [2025-03-04 04:06:17] Production.INFO: ProcessCDR(1,14603242,1,1,2) [2025-03-04 04:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603242', 'tblTempUsageDetail_20' ) start [2025-03-04 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603242', 'tblTempUsageDetail_20' ) end [2025-03-04 04:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:06:21] Production.INFO: ==31764== Releasing lock... [2025-03-04 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:06:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:07:05 [end_date_ymd] => 2025-03-04 04:07:05 [RateCDR] => 1 ) [2025-03-04 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-04 01:07:05' and `end` < '2025-03-04 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-04 04:07:17] Production.INFO: count ==185 [2025-03-04 04:07:17] Production.ERROR: pbx CDR StartTime 2025-03-04 01:07:05 - End Time 2025-03-04 04:07:05 [2025-03-04 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603247', 'tblTempUsageDetail_20' ) start [2025-03-04 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603247', 'tblTempUsageDetail_20' ) end [2025-03-04 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603247', 'tblTempVendorCDR_20' ) start [2025-03-04 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603247', 'tblTempVendorCDR_20' ) end [2025-03-04 04:07:17] Production.INFO: ProcessCDR(1,14603247,1,1,2) [2025-03-04 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603247', 'tblTempUsageDetail_20' ) start [2025-03-04 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603247', 'tblTempUsageDetail_20' ) end [2025-03-04 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:07:21] Production.INFO: ==31849== Releasing lock... [2025-03-04 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:07:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:08:05 [end_date_ymd] => 2025-03-04 04:08:05 [RateCDR] => 1 ) [2025-03-04 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-04 01:08:05' and `end` < '2025-03-04 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-04 04:08:17] Production.INFO: count ==185 [2025-03-04 04:08:17] Production.ERROR: pbx CDR StartTime 2025-03-04 01:08:05 - End Time 2025-03-04 04:08:05 [2025-03-04 04:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603252', 'tblTempUsageDetail_20' ) start [2025-03-04 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603252', 'tblTempUsageDetail_20' ) end [2025-03-04 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603252', 'tblTempVendorCDR_20' ) start [2025-03-04 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603252', 'tblTempVendorCDR_20' ) end [2025-03-04 04:08:17] Production.INFO: ProcessCDR(1,14603252,1,1,2) [2025-03-04 04:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603252', 'tblTempUsageDetail_20' ) start [2025-03-04 04:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603252', 'tblTempUsageDetail_20' ) end [2025-03-04 04:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:08:20] Production.INFO: ==31931== Releasing lock... [2025-03-04 04:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:08:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 04:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:09:06 [end_date_ymd] => 2025-03-04 04:09:06 [RateCDR] => 1 ) [2025-03-04 04: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 01:09:06' and `end` < '2025-03-04 04: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-04 04:09:18] Production.INFO: count ==185 [2025-03-04 04:09:18] Production.ERROR: pbx CDR StartTime 2025-03-04 01:09:06 - End Time 2025-03-04 04:09:06 [2025-03-04 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603257', 'tblTempUsageDetail_20' ) start [2025-03-04 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603257', 'tblTempUsageDetail_20' ) end [2025-03-04 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603257', 'tblTempVendorCDR_20' ) start [2025-03-04 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603257', 'tblTempVendorCDR_20' ) end [2025-03-04 04:09:18] Production.INFO: ProcessCDR(1,14603257,1,1,2) [2025-03-04 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603257', 'tblTempUsageDetail_20' ) start [2025-03-04 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603257', 'tblTempUsageDetail_20' ) end [2025-03-04 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:09:21] Production.INFO: ==32017== Releasing lock... [2025-03-04 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:09:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:10:06 [end_date_ymd] => 2025-03-04 04:10:06 [RateCDR] => 1 ) [2025-03-04 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-04 01:10:06' and `end` < '2025-03-04 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-04 04:10:18] Production.INFO: count ==181 [2025-03-04 04:10:18] Production.ERROR: pbx CDR StartTime 2025-03-04 01:10:06 - End Time 2025-03-04 04:10:06 [2025-03-04 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603263', 'tblTempUsageDetail_20' ) start [2025-03-04 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603263', 'tblTempUsageDetail_20' ) end [2025-03-04 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603263', 'tblTempVendorCDR_20' ) start [2025-03-04 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603263', 'tblTempVendorCDR_20' ) end [2025-03-04 04:10:18] Production.INFO: ProcessCDR(1,14603263,1,1,2) [2025-03-04 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603263', 'tblTempUsageDetail_20' ) start [2025-03-04 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603263', 'tblTempUsageDetail_20' ) end [2025-03-04 04:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:10:21] Production.INFO: ==32106== Releasing lock... [2025-03-04 04:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:10:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:11:05 [end_date_ymd] => 2025-03-04 04:11:05 [RateCDR] => 1 ) [2025-03-04 04:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 01:11:05' and `end` < '2025-03-04 04:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 04:11:17] Production.INFO: count ==172 [2025-03-04 04:11:17] Production.ERROR: pbx CDR StartTime 2025-03-04 01:11:05 - End Time 2025-03-04 04:11:05 [2025-03-04 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603268', 'tblTempUsageDetail_20' ) start [2025-03-04 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603268', 'tblTempUsageDetail_20' ) end [2025-03-04 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603268', 'tblTempVendorCDR_20' ) start [2025-03-04 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603268', 'tblTempVendorCDR_20' ) end [2025-03-04 04:11:17] Production.INFO: ProcessCDR(1,14603268,1,1,2) [2025-03-04 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603268', 'tblTempUsageDetail_20' ) start [2025-03-04 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603268', 'tblTempUsageDetail_20' ) end [2025-03-04 04:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:11:20] Production.INFO: ==32232== Releasing lock... [2025-03-04 04:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:11:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:12:05 [end_date_ymd] => 2025-03-04 04:12:05 [RateCDR] => 1 ) [2025-03-04 04:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 01:12:05' and `end` < '2025-03-04 04:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 04:12:17] Production.INFO: count ==172 [2025-03-04 04:12:17] Production.ERROR: pbx CDR StartTime 2025-03-04 01:12:05 - End Time 2025-03-04 04:12:05 [2025-03-04 04:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603273', 'tblTempUsageDetail_20' ) start [2025-03-04 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603273', 'tblTempUsageDetail_20' ) end [2025-03-04 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603273', 'tblTempVendorCDR_20' ) start [2025-03-04 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603273', 'tblTempVendorCDR_20' ) end [2025-03-04 04:12:17] Production.INFO: ProcessCDR(1,14603273,1,1,2) [2025-03-04 04:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603273', 'tblTempUsageDetail_20' ) start [2025-03-04 04:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603273', 'tblTempUsageDetail_20' ) end [2025-03-04 04:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:12:20] Production.INFO: ==32317== Releasing lock... [2025-03-04 04:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:12:20] Production.INFO: 29 MB #Memory Used# [2025-03-04 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:13:05 [end_date_ymd] => 2025-03-04 04:13:05 [RateCDR] => 1 ) [2025-03-04 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-04 01:13:05' and `end` < '2025-03-04 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-04 04:13:17] Production.INFO: count ==172 [2025-03-04 04:13:17] Production.ERROR: pbx CDR StartTime 2025-03-04 01:13:05 - End Time 2025-03-04 04:13:05 [2025-03-04 04:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603278', 'tblTempUsageDetail_20' ) start [2025-03-04 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603278', 'tblTempUsageDetail_20' ) end [2025-03-04 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603278', 'tblTempVendorCDR_20' ) start [2025-03-04 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603278', 'tblTempVendorCDR_20' ) end [2025-03-04 04:13:17] Production.INFO: ProcessCDR(1,14603278,1,1,2) [2025-03-04 04:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603278', 'tblTempUsageDetail_20' ) start [2025-03-04 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603278', 'tblTempUsageDetail_20' ) end [2025-03-04 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:13:21] Production.INFO: ==32409== Releasing lock... [2025-03-04 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:13:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:14:05 [end_date_ymd] => 2025-03-04 04:14:05 [RateCDR] => 1 ) [2025-03-04 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-04 01:14:05' and `end` < '2025-03-04 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-04 04:14:17] Production.INFO: count ==171 [2025-03-04 04:14:17] Production.ERROR: pbx CDR StartTime 2025-03-04 01:14:05 - End Time 2025-03-04 04:14:05 [2025-03-04 04:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603283', 'tblTempUsageDetail_20' ) start [2025-03-04 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603283', 'tblTempUsageDetail_20' ) end [2025-03-04 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603283', 'tblTempVendorCDR_20' ) start [2025-03-04 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603283', 'tblTempVendorCDR_20' ) end [2025-03-04 04:14:17] Production.INFO: ProcessCDR(1,14603283,1,1,2) [2025-03-04 04:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603283', 'tblTempUsageDetail_20' ) start [2025-03-04 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603283', 'tblTempUsageDetail_20' ) end [2025-03-04 04:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:14:20] Production.INFO: ==32493== Releasing lock... [2025-03-04 04:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:14:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:15:05 [end_date_ymd] => 2025-03-04 04:15:05 [RateCDR] => 1 ) [2025-03-04 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 01:15:05' and `end` < '2025-03-04 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 04:15:17] Production.INFO: count ==170 [2025-03-04 04:15:17] Production.ERROR: pbx CDR StartTime 2025-03-04 01:15:05 - End Time 2025-03-04 04:15:05 [2025-03-04 04:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603288', 'tblTempUsageDetail_20' ) start [2025-03-04 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603288', 'tblTempUsageDetail_20' ) end [2025-03-04 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603288', 'tblTempVendorCDR_20' ) start [2025-03-04 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603288', 'tblTempVendorCDR_20' ) end [2025-03-04 04:15:17] Production.INFO: ProcessCDR(1,14603288,1,1,2) [2025-03-04 04:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603288', 'tblTempUsageDetail_20' ) start [2025-03-04 04:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603288', 'tblTempUsageDetail_20' ) end [2025-03-04 04:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:15:20] Production.INFO: ==32576== Releasing lock... [2025-03-04 04:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:15:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:16:05 [end_date_ymd] => 2025-03-04 04:16:05 [RateCDR] => 1 ) [2025-03-04 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-04 01:16:05' and `end` < '2025-03-04 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-04 04:16:17] Production.INFO: count ==169 [2025-03-04 04:16:17] Production.ERROR: pbx CDR StartTime 2025-03-04 01:16:05 - End Time 2025-03-04 04:16:05 [2025-03-04 04:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603293', 'tblTempUsageDetail_20' ) start [2025-03-04 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603293', 'tblTempUsageDetail_20' ) end [2025-03-04 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603293', 'tblTempVendorCDR_20' ) start [2025-03-04 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603293', 'tblTempVendorCDR_20' ) end [2025-03-04 04:16:17] Production.INFO: ProcessCDR(1,14603293,1,1,2) [2025-03-04 04:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603293', 'tblTempUsageDetail_20' ) start [2025-03-04 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603293', 'tblTempUsageDetail_20' ) end [2025-03-04 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:16:21] Production.INFO: ==32661== Releasing lock... [2025-03-04 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:16:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:17:05 [end_date_ymd] => 2025-03-04 04:17:05 [RateCDR] => 1 ) [2025-03-04 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-04 01:17:05' and `end` < '2025-03-04 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-04 04:17:17] Production.INFO: count ==169 [2025-03-04 04:17:17] Production.ERROR: pbx CDR StartTime 2025-03-04 01:17:05 - End Time 2025-03-04 04:17:05 [2025-03-04 04:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603298', 'tblTempUsageDetail_20' ) start [2025-03-04 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603298', 'tblTempUsageDetail_20' ) end [2025-03-04 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603298', 'tblTempVendorCDR_20' ) start [2025-03-04 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603298', 'tblTempVendorCDR_20' ) end [2025-03-04 04:17:17] Production.INFO: ProcessCDR(1,14603298,1,1,2) [2025-03-04 04:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603298', 'tblTempUsageDetail_20' ) start [2025-03-04 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603298', 'tblTempUsageDetail_20' ) end [2025-03-04 04:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:17:20] Production.INFO: ==32742== Releasing lock... [2025-03-04 04:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:17:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:18:05 [end_date_ymd] => 2025-03-04 04:18:05 [RateCDR] => 1 ) [2025-03-04 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-04 01:18:05' and `end` < '2025-03-04 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-04 04:18:17] Production.INFO: count ==169 [2025-03-04 04:18:17] Production.ERROR: pbx CDR StartTime 2025-03-04 01:18:05 - End Time 2025-03-04 04:18:05 [2025-03-04 04:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603303', 'tblTempUsageDetail_20' ) start [2025-03-04 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603303', 'tblTempUsageDetail_20' ) end [2025-03-04 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603303', 'tblTempVendorCDR_20' ) start [2025-03-04 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603303', 'tblTempVendorCDR_20' ) end [2025-03-04 04:18:17] Production.INFO: ProcessCDR(1,14603303,1,1,2) [2025-03-04 04:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603303', 'tblTempUsageDetail_20' ) start [2025-03-04 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603303', 'tblTempUsageDetail_20' ) end [2025-03-04 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:18:21] Production.INFO: ==391== Releasing lock... [2025-03-04 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:18:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:19:05 [end_date_ymd] => 2025-03-04 04:19:05 [RateCDR] => 1 ) [2025-03-04 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-04 01:19:05' and `end` < '2025-03-04 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-04 04:19:17] Production.INFO: count ==169 [2025-03-04 04:19:17] Production.ERROR: pbx CDR StartTime 2025-03-04 01:19:05 - End Time 2025-03-04 04:19:05 [2025-03-04 04:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603308', 'tblTempUsageDetail_20' ) start [2025-03-04 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603308', 'tblTempUsageDetail_20' ) end [2025-03-04 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603308', 'tblTempVendorCDR_20' ) start [2025-03-04 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603308', 'tblTempVendorCDR_20' ) end [2025-03-04 04:19:17] Production.INFO: ProcessCDR(1,14603308,1,1,2) [2025-03-04 04:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603308', 'tblTempUsageDetail_20' ) start [2025-03-04 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603308', 'tblTempUsageDetail_20' ) end [2025-03-04 04:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:19:20] Production.INFO: ==476== Releasing lock... [2025-03-04 04:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:19:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:20:06 [end_date_ymd] => 2025-03-04 04:20:06 [RateCDR] => 1 ) [2025-03-04 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 01:20:06' and `end` < '2025-03-04 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 04:20:18] Production.INFO: count ==167 [2025-03-04 04:20:18] Production.ERROR: pbx CDR StartTime 2025-03-04 01:20:06 - End Time 2025-03-04 04:20:06 [2025-03-04 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603313', 'tblTempUsageDetail_20' ) start [2025-03-04 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603313', 'tblTempUsageDetail_20' ) end [2025-03-04 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603313', 'tblTempVendorCDR_20' ) start [2025-03-04 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603313', 'tblTempVendorCDR_20' ) end [2025-03-04 04:20:18] Production.INFO: ProcessCDR(1,14603313,1,1,2) [2025-03-04 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603313', 'tblTempUsageDetail_20' ) start [2025-03-04 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603313', 'tblTempUsageDetail_20' ) end [2025-03-04 04:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:20:21] Production.INFO: ==564== Releasing lock... [2025-03-04 04:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:20:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:21:05 [end_date_ymd] => 2025-03-04 04:21:05 [RateCDR] => 1 ) [2025-03-04 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-04 01:21:05' and `end` < '2025-03-04 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-04 04:21:17] Production.INFO: count ==167 [2025-03-04 04:21:17] Production.ERROR: pbx CDR StartTime 2025-03-04 01:21:05 - End Time 2025-03-04 04:21:05 [2025-03-04 04:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603319', 'tblTempUsageDetail_20' ) start [2025-03-04 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603319', 'tblTempUsageDetail_20' ) end [2025-03-04 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603319', 'tblTempVendorCDR_20' ) start [2025-03-04 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603319', 'tblTempVendorCDR_20' ) end [2025-03-04 04:21:17] Production.INFO: ProcessCDR(1,14603319,1,1,2) [2025-03-04 04:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603319', 'tblTempUsageDetail_20' ) start [2025-03-04 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603319', 'tblTempUsageDetail_20' ) end [2025-03-04 04:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:21:20] Production.INFO: ==665== Releasing lock... [2025-03-04 04:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:21:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:22:06 [end_date_ymd] => 2025-03-04 04:22:06 [RateCDR] => 1 ) [2025-03-04 04: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 01:22:06' and `end` < '2025-03-04 04: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-04 04:22:18] Production.INFO: count ==167 [2025-03-04 04:22:18] Production.ERROR: pbx CDR StartTime 2025-03-04 01:22:06 - End Time 2025-03-04 04:22:06 [2025-03-04 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603324', 'tblTempUsageDetail_20' ) start [2025-03-04 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603324', 'tblTempUsageDetail_20' ) end [2025-03-04 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603324', 'tblTempVendorCDR_20' ) start [2025-03-04 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603324', 'tblTempVendorCDR_20' ) end [2025-03-04 04:22:18] Production.INFO: ProcessCDR(1,14603324,1,1,2) [2025-03-04 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603324', 'tblTempUsageDetail_20' ) start [2025-03-04 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603324', 'tblTempUsageDetail_20' ) end [2025-03-04 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:22:21] Production.INFO: ==769== Releasing lock... [2025-03-04 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:22:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:23:05 [end_date_ymd] => 2025-03-04 04:23:05 [RateCDR] => 1 ) [2025-03-04 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-04 01:23:05' and `end` < '2025-03-04 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-04 04:23:17] Production.INFO: count ==167 [2025-03-04 04:23:17] Production.ERROR: pbx CDR StartTime 2025-03-04 01:23:05 - End Time 2025-03-04 04:23:05 [2025-03-04 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603329', 'tblTempUsageDetail_20' ) start [2025-03-04 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603329', 'tblTempUsageDetail_20' ) end [2025-03-04 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603329', 'tblTempVendorCDR_20' ) start [2025-03-04 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603329', 'tblTempVendorCDR_20' ) end [2025-03-04 04:23:17] Production.INFO: ProcessCDR(1,14603329,1,1,2) [2025-03-04 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603329', 'tblTempUsageDetail_20' ) start [2025-03-04 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603329', 'tblTempUsageDetail_20' ) end [2025-03-04 04:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:23:20] Production.INFO: ==851== Releasing lock... [2025-03-04 04:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:23:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:24:05 [end_date_ymd] => 2025-03-04 04:24:05 [RateCDR] => 1 ) [2025-03-04 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-04 01:24:05' and `end` < '2025-03-04 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-04 04:24:17] Production.INFO: count ==167 [2025-03-04 04:24:17] Production.ERROR: pbx CDR StartTime 2025-03-04 01:24:05 - End Time 2025-03-04 04:24:05 [2025-03-04 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603334', 'tblTempUsageDetail_20' ) start [2025-03-04 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603334', 'tblTempUsageDetail_20' ) end [2025-03-04 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603334', 'tblTempVendorCDR_20' ) start [2025-03-04 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603334', 'tblTempVendorCDR_20' ) end [2025-03-04 04:24:17] Production.INFO: ProcessCDR(1,14603334,1,1,2) [2025-03-04 04:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603334', 'tblTempUsageDetail_20' ) start [2025-03-04 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603334', 'tblTempUsageDetail_20' ) end [2025-03-04 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:24:21] Production.INFO: ==932== Releasing lock... [2025-03-04 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:24:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:25:05 [end_date_ymd] => 2025-03-04 04:25:05 [RateCDR] => 1 ) [2025-03-04 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-04 01:25:05' and `end` < '2025-03-04 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-04 04:25:17] Production.INFO: count ==164 [2025-03-04 04:25:17] Production.ERROR: pbx CDR StartTime 2025-03-04 01:25:05 - End Time 2025-03-04 04:25:05 [2025-03-04 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603339', 'tblTempUsageDetail_20' ) start [2025-03-04 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603339', 'tblTempUsageDetail_20' ) end [2025-03-04 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603339', 'tblTempVendorCDR_20' ) start [2025-03-04 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603339', 'tblTempVendorCDR_20' ) end [2025-03-04 04:25:17] Production.INFO: ProcessCDR(1,14603339,1,1,2) [2025-03-04 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603339', 'tblTempUsageDetail_20' ) start [2025-03-04 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603339', 'tblTempUsageDetail_20' ) end [2025-03-04 04:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:25:20] Production.INFO: ==1011== Releasing lock... [2025-03-04 04:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:25:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:26:05 [end_date_ymd] => 2025-03-04 04:26:05 [RateCDR] => 1 ) [2025-03-04 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-04 01:26:05' and `end` < '2025-03-04 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-04 04:26:17] Production.INFO: count ==164 [2025-03-04 04:26:17] Production.ERROR: pbx CDR StartTime 2025-03-04 01:26:05 - End Time 2025-03-04 04:26:05 [2025-03-04 04:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603344', 'tblTempUsageDetail_20' ) start [2025-03-04 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603344', 'tblTempUsageDetail_20' ) end [2025-03-04 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603344', 'tblTempVendorCDR_20' ) start [2025-03-04 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603344', 'tblTempVendorCDR_20' ) end [2025-03-04 04:26:17] Production.INFO: ProcessCDR(1,14603344,1,1,2) [2025-03-04 04:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603344', 'tblTempUsageDetail_20' ) start [2025-03-04 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603344', 'tblTempUsageDetail_20' ) end [2025-03-04 04:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:26:20] Production.INFO: ==1134== Releasing lock... [2025-03-04 04:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:26:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:27:05 [end_date_ymd] => 2025-03-04 04:27:05 [RateCDR] => 1 ) [2025-03-04 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-04 01:27:05' and `end` < '2025-03-04 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-04 04:27:18] Production.INFO: count ==164 [2025-03-04 04:27:18] Production.ERROR: pbx CDR StartTime 2025-03-04 01:27:05 - End Time 2025-03-04 04:27:05 [2025-03-04 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603349', 'tblTempUsageDetail_20' ) start [2025-03-04 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603349', 'tblTempUsageDetail_20' ) end [2025-03-04 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603349', 'tblTempVendorCDR_20' ) start [2025-03-04 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603349', 'tblTempVendorCDR_20' ) end [2025-03-04 04:27:18] Production.INFO: ProcessCDR(1,14603349,1,1,2) [2025-03-04 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603349', 'tblTempUsageDetail_20' ) start [2025-03-04 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603349', 'tblTempUsageDetail_20' ) end [2025-03-04 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:27:21] Production.INFO: ==1221== Releasing lock... [2025-03-04 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:27:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:28:05 [end_date_ymd] => 2025-03-04 04:28:05 [RateCDR] => 1 ) [2025-03-04 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-04 01:28:05' and `end` < '2025-03-04 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-04 04:28:17] Production.INFO: count ==164 [2025-03-04 04:28:17] Production.ERROR: pbx CDR StartTime 2025-03-04 01:28:05 - End Time 2025-03-04 04:28:05 [2025-03-04 04:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603354', 'tblTempUsageDetail_20' ) start [2025-03-04 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603354', 'tblTempUsageDetail_20' ) end [2025-03-04 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603354', 'tblTempVendorCDR_20' ) start [2025-03-04 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603354', 'tblTempVendorCDR_20' ) end [2025-03-04 04:28:17] Production.INFO: ProcessCDR(1,14603354,1,1,2) [2025-03-04 04:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603354', 'tblTempUsageDetail_20' ) start [2025-03-04 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603354', 'tblTempUsageDetail_20' ) end [2025-03-04 04:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:28:20] Production.INFO: ==1312== Releasing lock... [2025-03-04 04:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:28:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:29:05 [end_date_ymd] => 2025-03-04 04:29:05 [RateCDR] => 1 ) [2025-03-04 04: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-04 01:29:05' and `end` < '2025-03-04 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-04 04:29:17] Production.INFO: count ==164 [2025-03-04 04:29:17] Production.ERROR: pbx CDR StartTime 2025-03-04 01:29:05 - End Time 2025-03-04 04:29:05 [2025-03-04 04:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603359', 'tblTempUsageDetail_20' ) start [2025-03-04 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603359', 'tblTempUsageDetail_20' ) end [2025-03-04 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603359', 'tblTempVendorCDR_20' ) start [2025-03-04 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603359', 'tblTempVendorCDR_20' ) end [2025-03-04 04:29:17] Production.INFO: ProcessCDR(1,14603359,1,1,2) [2025-03-04 04:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603359', 'tblTempUsageDetail_20' ) start [2025-03-04 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603359', 'tblTempUsageDetail_20' ) end [2025-03-04 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:29:21] Production.INFO: ==1395== Releasing lock... [2025-03-04 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:29:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:30:06 [end_date_ymd] => 2025-03-04 04:30:06 [RateCDR] => 1 ) [2025-03-04 04:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 01:30:06' and `end` < '2025-03-04 04:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 04:30:18] Production.INFO: count ==162 [2025-03-04 04:30:18] Production.ERROR: pbx CDR StartTime 2025-03-04 01:30:06 - End Time 2025-03-04 04:30:06 [2025-03-04 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603365', 'tblTempUsageDetail_20' ) start [2025-03-04 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603365', 'tblTempUsageDetail_20' ) end [2025-03-04 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603365', 'tblTempVendorCDR_20' ) start [2025-03-04 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603365', 'tblTempVendorCDR_20' ) end [2025-03-04 04:30:18] Production.INFO: ProcessCDR(1,14603365,1,1,2) [2025-03-04 04:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603365', 'tblTempUsageDetail_20' ) start [2025-03-04 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603365', 'tblTempUsageDetail_20' ) end [2025-03-04 04:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:30:21] Production.INFO: ==1480== Releasing lock... [2025-03-04 04:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:30:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:31:06 [end_date_ymd] => 2025-03-04 04:31:06 [RateCDR] => 1 ) [2025-03-04 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-04 01:31:06' and `end` < '2025-03-04 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-04 04:31:18] Production.INFO: count ==151 [2025-03-04 04:31:18] Production.ERROR: pbx CDR StartTime 2025-03-04 01:31:06 - End Time 2025-03-04 04:31:06 [2025-03-04 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603371', 'tblTempUsageDetail_20' ) start [2025-03-04 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603371', 'tblTempUsageDetail_20' ) end [2025-03-04 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603371', 'tblTempVendorCDR_20' ) start [2025-03-04 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603371', 'tblTempVendorCDR_20' ) end [2025-03-04 04:31:18] Production.INFO: ProcessCDR(1,14603371,1,1,2) [2025-03-04 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603371', 'tblTempUsageDetail_20' ) start [2025-03-04 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603371', 'tblTempUsageDetail_20' ) end [2025-03-04 04:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:31:22] Production.INFO: ==1598== Releasing lock... [2025-03-04 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:31:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:32:05 [end_date_ymd] => 2025-03-04 04:32:05 [RateCDR] => 1 ) [2025-03-04 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-04 01:32:05' and `end` < '2025-03-04 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-04 04:32:17] Production.INFO: count ==150 [2025-03-04 04:32:17] Production.ERROR: pbx CDR StartTime 2025-03-04 01:32:05 - End Time 2025-03-04 04:32:05 [2025-03-04 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603376', 'tblTempUsageDetail_20' ) start [2025-03-04 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603376', 'tblTempUsageDetail_20' ) end [2025-03-04 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603376', 'tblTempVendorCDR_20' ) start [2025-03-04 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603376', 'tblTempVendorCDR_20' ) end [2025-03-04 04:32:17] Production.INFO: ProcessCDR(1,14603376,1,1,2) [2025-03-04 04:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603376', 'tblTempUsageDetail_20' ) start [2025-03-04 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603376', 'tblTempUsageDetail_20' ) end [2025-03-04 04:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:32:20] Production.INFO: ==1784== Releasing lock... [2025-03-04 04:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:32:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:33:05 [end_date_ymd] => 2025-03-04 04:33:05 [RateCDR] => 1 ) [2025-03-04 04:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 01:33:05' and `end` < '2025-03-04 04:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 04:33:17] Production.INFO: count ==150 [2025-03-04 04:33:17] Production.ERROR: pbx CDR StartTime 2025-03-04 01:33:05 - End Time 2025-03-04 04:33:05 [2025-03-04 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603381', 'tblTempUsageDetail_20' ) start [2025-03-04 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603381', 'tblTempUsageDetail_20' ) end [2025-03-04 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603381', 'tblTempVendorCDR_20' ) start [2025-03-04 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603381', 'tblTempVendorCDR_20' ) end [2025-03-04 04:33:17] Production.INFO: ProcessCDR(1,14603381,1,1,2) [2025-03-04 04:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603381', 'tblTempUsageDetail_20' ) start [2025-03-04 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603381', 'tblTempUsageDetail_20' ) end [2025-03-04 04:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:33:20] Production.INFO: ==1864== Releasing lock... [2025-03-04 04:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:33:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:34:05 [end_date_ymd] => 2025-03-04 04:34:05 [RateCDR] => 1 ) [2025-03-04 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-04 01:34:05' and `end` < '2025-03-04 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-04 04:34:17] Production.INFO: count ==150 [2025-03-04 04:34:17] Production.ERROR: pbx CDR StartTime 2025-03-04 01:34:05 - End Time 2025-03-04 04:34:05 [2025-03-04 04:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603386', 'tblTempUsageDetail_20' ) start [2025-03-04 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603386', 'tblTempUsageDetail_20' ) end [2025-03-04 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603386', 'tblTempVendorCDR_20' ) start [2025-03-04 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603386', 'tblTempVendorCDR_20' ) end [2025-03-04 04:34:17] Production.INFO: ProcessCDR(1,14603386,1,1,2) [2025-03-04 04:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603386', 'tblTempUsageDetail_20' ) start [2025-03-04 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603386', 'tblTempUsageDetail_20' ) end [2025-03-04 04:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:34:20] Production.INFO: ==1945== Releasing lock... [2025-03-04 04:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:34:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:35:05 [end_date_ymd] => 2025-03-04 04:35:05 [RateCDR] => 1 ) [2025-03-04 04:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 01:35:05' and `end` < '2025-03-04 04:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 04:35:17] Production.INFO: count ==150 [2025-03-04 04:35:17] Production.ERROR: pbx CDR StartTime 2025-03-04 01:35:05 - End Time 2025-03-04 04:35:05 [2025-03-04 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603391', 'tblTempUsageDetail_20' ) start [2025-03-04 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603391', 'tblTempUsageDetail_20' ) end [2025-03-04 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603391', 'tblTempVendorCDR_20' ) start [2025-03-04 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603391', 'tblTempVendorCDR_20' ) end [2025-03-04 04:35:17] Production.INFO: ProcessCDR(1,14603391,1,1,2) [2025-03-04 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603391', 'tblTempUsageDetail_20' ) start [2025-03-04 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603391', 'tblTempUsageDetail_20' ) end [2025-03-04 04:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:35:20] Production.INFO: ==2024== Releasing lock... [2025-03-04 04:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:35:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:36:06 [end_date_ymd] => 2025-03-04 04:36:06 [RateCDR] => 1 ) [2025-03-04 04: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 01:36:06' and `end` < '2025-03-04 04: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-04 04:36:18] Production.INFO: count ==150 [2025-03-04 04:36:18] Production.ERROR: pbx CDR StartTime 2025-03-04 01:36:06 - End Time 2025-03-04 04:36:06 [2025-03-04 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603396', 'tblTempUsageDetail_20' ) start [2025-03-04 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603396', 'tblTempUsageDetail_20' ) end [2025-03-04 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603396', 'tblTempVendorCDR_20' ) start [2025-03-04 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603396', 'tblTempVendorCDR_20' ) end [2025-03-04 04:36:18] Production.INFO: ProcessCDR(1,14603396,1,1,2) [2025-03-04 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603396', 'tblTempUsageDetail_20' ) start [2025-03-04 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603396', 'tblTempUsageDetail_20' ) end [2025-03-04 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:36:21] Production.INFO: ==2112== Releasing lock... [2025-03-04 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:36:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:37:05 [end_date_ymd] => 2025-03-04 04:37:05 [RateCDR] => 1 ) [2025-03-04 04: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 01:37:05' and `end` < '2025-03-04 04: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-04 04:37:17] Production.INFO: count ==150 [2025-03-04 04:37:17] Production.ERROR: pbx CDR StartTime 2025-03-04 01:37:05 - End Time 2025-03-04 04:37:05 [2025-03-04 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603401', 'tblTempUsageDetail_20' ) start [2025-03-04 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603401', 'tblTempUsageDetail_20' ) end [2025-03-04 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603401', 'tblTempVendorCDR_20' ) start [2025-03-04 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603401', 'tblTempVendorCDR_20' ) end [2025-03-04 04:37:17] Production.INFO: ProcessCDR(1,14603401,1,1,2) [2025-03-04 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603401', 'tblTempUsageDetail_20' ) start [2025-03-04 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603401', 'tblTempUsageDetail_20' ) end [2025-03-04 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:37:21] Production.INFO: ==2208== Releasing lock... [2025-03-04 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:37:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:38:06 [end_date_ymd] => 2025-03-04 04:38:06 [RateCDR] => 1 ) [2025-03-04 04: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 01:38:06' and `end` < '2025-03-04 04: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-04 04:38:18] Production.INFO: count ==150 [2025-03-04 04:38:18] Production.ERROR: pbx CDR StartTime 2025-03-04 01:38:06 - End Time 2025-03-04 04:38:06 [2025-03-04 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603406', 'tblTempUsageDetail_20' ) start [2025-03-04 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603406', 'tblTempUsageDetail_20' ) end [2025-03-04 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603406', 'tblTempVendorCDR_20' ) start [2025-03-04 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603406', 'tblTempVendorCDR_20' ) end [2025-03-04 04:38:18] Production.INFO: ProcessCDR(1,14603406,1,1,2) [2025-03-04 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603406', 'tblTempUsageDetail_20' ) start [2025-03-04 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603406', 'tblTempUsageDetail_20' ) end [2025-03-04 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:38:21] Production.INFO: ==2301== Releasing lock... [2025-03-04 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:38:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:39:05 [end_date_ymd] => 2025-03-04 04:39:05 [RateCDR] => 1 ) [2025-03-04 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-04 01:39:05' and `end` < '2025-03-04 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-04 04:39:17] Production.INFO: count ==150 [2025-03-04 04:39:17] Production.ERROR: pbx CDR StartTime 2025-03-04 01:39:05 - End Time 2025-03-04 04:39:05 [2025-03-04 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603411', 'tblTempUsageDetail_20' ) start [2025-03-04 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603411', 'tblTempUsageDetail_20' ) end [2025-03-04 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603411', 'tblTempVendorCDR_20' ) start [2025-03-04 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603411', 'tblTempVendorCDR_20' ) end [2025-03-04 04:39:17] Production.INFO: ProcessCDR(1,14603411,1,1,2) [2025-03-04 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603411', 'tblTempUsageDetail_20' ) start [2025-03-04 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603411', 'tblTempUsageDetail_20' ) end [2025-03-04 04:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:39:20] Production.INFO: ==2393== Releasing lock... [2025-03-04 04:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:39:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:40:07 [end_date_ymd] => 2025-03-04 04:40:07 [RateCDR] => 1 ) [2025-03-04 04: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 01:40:07' and `end` < '2025-03-04 04: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-04 04:40:19] Production.INFO: count ==150 [2025-03-04 04:40:19] Production.ERROR: pbx CDR StartTime 2025-03-04 01:40:07 - End Time 2025-03-04 04:40:07 [2025-03-04 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603417', 'tblTempUsageDetail_20' ) start [2025-03-04 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603417', 'tblTempUsageDetail_20' ) end [2025-03-04 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603417', 'tblTempVendorCDR_20' ) start [2025-03-04 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603417', 'tblTempVendorCDR_20' ) end [2025-03-04 04:40:19] Production.INFO: ProcessCDR(1,14603417,1,1,2) [2025-03-04 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603417', 'tblTempUsageDetail_20' ) start [2025-03-04 04:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603417', 'tblTempUsageDetail_20' ) end [2025-03-04 04:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:40:23] Production.INFO: ==2488== Releasing lock... [2025-03-04 04:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:40:23] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:41:06 [end_date_ymd] => 2025-03-04 04:41:06 [RateCDR] => 1 ) [2025-03-04 04: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 01:41:06' and `end` < '2025-03-04 04: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-04 04:41:18] Production.INFO: count ==150 [2025-03-04 04:41:18] Production.ERROR: pbx CDR StartTime 2025-03-04 01:41:06 - End Time 2025-03-04 04:41:06 [2025-03-04 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603422', 'tblTempUsageDetail_20' ) start [2025-03-04 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603422', 'tblTempUsageDetail_20' ) end [2025-03-04 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603422', 'tblTempVendorCDR_20' ) start [2025-03-04 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603422', 'tblTempVendorCDR_20' ) end [2025-03-04 04:41:18] Production.INFO: ProcessCDR(1,14603422,1,1,2) [2025-03-04 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603422', 'tblTempUsageDetail_20' ) start [2025-03-04 04:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603422', 'tblTempUsageDetail_20' ) end [2025-03-04 04:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:41:22] Production.INFO: ==2585== Releasing lock... [2025-03-04 04:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:41:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:42:06 [end_date_ymd] => 2025-03-04 04:42:06 [RateCDR] => 1 ) [2025-03-04 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-04 01:42:06' and `end` < '2025-03-04 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-04 04:42:18] Production.INFO: count ==150 [2025-03-04 04:42:18] Production.ERROR: pbx CDR StartTime 2025-03-04 01:42:06 - End Time 2025-03-04 04:42:06 [2025-03-04 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603425', 'tblTempUsageDetail_20' ) start [2025-03-04 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603425', 'tblTempUsageDetail_20' ) end [2025-03-04 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603425', 'tblTempVendorCDR_20' ) start [2025-03-04 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603425', 'tblTempVendorCDR_20' ) end [2025-03-04 04:42:18] Production.INFO: ProcessCDR(1,14603425,1,1,2) [2025-03-04 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603425', 'tblTempUsageDetail_20' ) start [2025-03-04 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603425', 'tblTempUsageDetail_20' ) end [2025-03-04 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:42:21] Production.INFO: ==2726== Releasing lock... [2025-03-04 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:42:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:43:06 [end_date_ymd] => 2025-03-04 04:43:06 [RateCDR] => 1 ) [2025-03-04 04: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-04 01:43:06' and `end` < '2025-03-04 04: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-04 04:43:18] Production.INFO: count ==149 [2025-03-04 04:43:18] Production.ERROR: pbx CDR StartTime 2025-03-04 01:43:06 - End Time 2025-03-04 04:43:06 [2025-03-04 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603432', 'tblTempUsageDetail_20' ) start [2025-03-04 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603432', 'tblTempUsageDetail_20' ) end [2025-03-04 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603432', 'tblTempVendorCDR_20' ) start [2025-03-04 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603432', 'tblTempVendorCDR_20' ) end [2025-03-04 04:43:18] Production.INFO: ProcessCDR(1,14603432,1,1,2) [2025-03-04 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603432', 'tblTempUsageDetail_20' ) start [2025-03-04 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603432', 'tblTempUsageDetail_20' ) end [2025-03-04 04:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:43:22] Production.INFO: ==2823== Releasing lock... [2025-03-04 04:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:43:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:44:06 [end_date_ymd] => 2025-03-04 04:44:06 [RateCDR] => 1 ) [2025-03-04 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-04 01:44:06' and `end` < '2025-03-04 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-04 04:44:18] Production.INFO: count ==149 [2025-03-04 04:44:18] Production.ERROR: pbx CDR StartTime 2025-03-04 01:44:06 - End Time 2025-03-04 04:44:06 [2025-03-04 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603437', 'tblTempUsageDetail_20' ) start [2025-03-04 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603437', 'tblTempUsageDetail_20' ) end [2025-03-04 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603437', 'tblTempVendorCDR_20' ) start [2025-03-04 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603437', 'tblTempVendorCDR_20' ) end [2025-03-04 04:44:18] Production.INFO: ProcessCDR(1,14603437,1,1,2) [2025-03-04 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603437', 'tblTempUsageDetail_20' ) start [2025-03-04 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603437', 'tblTempUsageDetail_20' ) end [2025-03-04 04:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:44:22] Production.INFO: ==2918== Releasing lock... [2025-03-04 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:44:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:45:06 [end_date_ymd] => 2025-03-04 04:45:06 [RateCDR] => 1 ) [2025-03-04 04: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 01:45:06' and `end` < '2025-03-04 04: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-04 04:45:18] Production.INFO: count ==149 [2025-03-04 04:45:18] Production.ERROR: pbx CDR StartTime 2025-03-04 01:45:06 - End Time 2025-03-04 04:45:06 [2025-03-04 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603442', 'tblTempUsageDetail_20' ) start [2025-03-04 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603442', 'tblTempUsageDetail_20' ) end [2025-03-04 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603442', 'tblTempVendorCDR_20' ) start [2025-03-04 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603442', 'tblTempVendorCDR_20' ) end [2025-03-04 04:45:18] Production.INFO: ProcessCDR(1,14603442,1,1,2) [2025-03-04 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603442', 'tblTempUsageDetail_20' ) start [2025-03-04 04:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603442', 'tblTempUsageDetail_20' ) end [2025-03-04 04:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:45:22] Production.INFO: ==3013== Releasing lock... [2025-03-04 04:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:45:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:46:05 [end_date_ymd] => 2025-03-04 04:46:05 [RateCDR] => 1 ) [2025-03-04 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-04 01:46:05' and `end` < '2025-03-04 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-04 04:46:18] Production.INFO: count ==149 [2025-03-04 04:46:18] Production.ERROR: pbx CDR StartTime 2025-03-04 01:46:05 - End Time 2025-03-04 04:46:05 [2025-03-04 04:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603447', 'tblTempUsageDetail_20' ) start [2025-03-04 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603447', 'tblTempUsageDetail_20' ) end [2025-03-04 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603447', 'tblTempVendorCDR_20' ) start [2025-03-04 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603447', 'tblTempVendorCDR_20' ) end [2025-03-04 04:46:18] Production.INFO: ProcessCDR(1,14603447,1,1,2) [2025-03-04 04:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603447', 'tblTempUsageDetail_20' ) start [2025-03-04 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603447', 'tblTempUsageDetail_20' ) end [2025-03-04 04:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:46:22] Production.INFO: ==3106== Releasing lock... [2025-03-04 04:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:46:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:47:06 [end_date_ymd] => 2025-03-04 04:47:06 [RateCDR] => 1 ) [2025-03-04 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-04 01:47:06' and `end` < '2025-03-04 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-04 04:47:18] Production.INFO: count ==149 [2025-03-04 04:47:18] Production.ERROR: pbx CDR StartTime 2025-03-04 01:47:06 - End Time 2025-03-04 04:47:06 [2025-03-04 04:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603452', 'tblTempUsageDetail_20' ) start [2025-03-04 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603452', 'tblTempUsageDetail_20' ) end [2025-03-04 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603452', 'tblTempVendorCDR_20' ) start [2025-03-04 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603452', 'tblTempVendorCDR_20' ) end [2025-03-04 04:47:18] Production.INFO: ProcessCDR(1,14603452,1,1,2) [2025-03-04 04:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603452', 'tblTempUsageDetail_20' ) start [2025-03-04 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603452', 'tblTempUsageDetail_20' ) end [2025-03-04 04:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:47:22] Production.INFO: ==3203== Releasing lock... [2025-03-04 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:47:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:48:06 [end_date_ymd] => 2025-03-04 04:48:06 [RateCDR] => 1 ) [2025-03-04 04: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 01:48:06' and `end` < '2025-03-04 04: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-04 04:48:18] Production.INFO: count ==149 [2025-03-04 04:48:18] Production.ERROR: pbx CDR StartTime 2025-03-04 01:48:06 - End Time 2025-03-04 04:48:06 [2025-03-04 04:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603457', 'tblTempUsageDetail_20' ) start [2025-03-04 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603457', 'tblTempUsageDetail_20' ) end [2025-03-04 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603457', 'tblTempVendorCDR_20' ) start [2025-03-04 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603457', 'tblTempVendorCDR_20' ) end [2025-03-04 04:48:18] Production.INFO: ProcessCDR(1,14603457,1,1,2) [2025-03-04 04:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603457', 'tblTempUsageDetail_20' ) start [2025-03-04 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603457', 'tblTempUsageDetail_20' ) end [2025-03-04 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:48:22] Production.INFO: ==3300== Releasing lock... [2025-03-04 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:48:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:49:06 [end_date_ymd] => 2025-03-04 04:49:06 [RateCDR] => 1 ) [2025-03-04 04: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-04 01:49:06' and `end` < '2025-03-04 04: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-04 04:49:18] Production.INFO: count ==149 [2025-03-04 04:49:18] Production.ERROR: pbx CDR StartTime 2025-03-04 01:49:06 - End Time 2025-03-04 04:49:06 [2025-03-04 04:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603462', 'tblTempUsageDetail_20' ) start [2025-03-04 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603462', 'tblTempUsageDetail_20' ) end [2025-03-04 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603462', 'tblTempVendorCDR_20' ) start [2025-03-04 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603462', 'tblTempVendorCDR_20' ) end [2025-03-04 04:49:18] Production.INFO: ProcessCDR(1,14603462,1,1,2) [2025-03-04 04:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603462', 'tblTempUsageDetail_20' ) start [2025-03-04 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603462', 'tblTempUsageDetail_20' ) end [2025-03-04 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:49:22] Production.INFO: ==3399== Releasing lock... [2025-03-04 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:49:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:50:07 [end_date_ymd] => 2025-03-04 04:50:07 [RateCDR] => 1 ) [2025-03-04 04:50: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 01:50:07' and `end` < '2025-03-04 04:50: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-04 04:50:20] Production.INFO: count ==149 [2025-03-04 04:50:20] Production.ERROR: pbx CDR StartTime 2025-03-04 01:50:07 - End Time 2025-03-04 04:50:07 [2025-03-04 04:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603468', 'tblTempUsageDetail_20' ) start [2025-03-04 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603468', 'tblTempUsageDetail_20' ) end [2025-03-04 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603468', 'tblTempVendorCDR_20' ) start [2025-03-04 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603468', 'tblTempVendorCDR_20' ) end [2025-03-04 04:50:20] Production.INFO: ProcessCDR(1,14603468,1,1,2) [2025-03-04 04:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603468', 'tblTempUsageDetail_20' ) start [2025-03-04 04:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603468', 'tblTempUsageDetail_20' ) end [2025-03-04 04:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:50:24] Production.INFO: ==3496== Releasing lock... [2025-03-04 04:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:50:24] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:51:06 [end_date_ymd] => 2025-03-04 04:51:06 [RateCDR] => 1 ) [2025-03-04 04: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-04 01:51:06' and `end` < '2025-03-04 04: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-04 04:51:18] Production.INFO: count ==149 [2025-03-04 04:51:18] Production.ERROR: pbx CDR StartTime 2025-03-04 01:51:06 - End Time 2025-03-04 04:51:06 [2025-03-04 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603473', 'tblTempUsageDetail_20' ) start [2025-03-04 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603473', 'tblTempUsageDetail_20' ) end [2025-03-04 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603473', 'tblTempVendorCDR_20' ) start [2025-03-04 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603473', 'tblTempVendorCDR_20' ) end [2025-03-04 04:51:18] Production.INFO: ProcessCDR(1,14603473,1,1,2) [2025-03-04 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603473', 'tblTempUsageDetail_20' ) start [2025-03-04 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603473', 'tblTempUsageDetail_20' ) end [2025-03-04 04:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:51:21] Production.INFO: ==3594== Releasing lock... [2025-03-04 04:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:51:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:52:05 [end_date_ymd] => 2025-03-04 04:52:05 [RateCDR] => 1 ) [2025-03-04 04:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 01:52:05' and `end` < '2025-03-04 04:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 04:52:17] Production.INFO: count ==149 [2025-03-04 04:52:17] Production.ERROR: pbx CDR StartTime 2025-03-04 01:52:05 - End Time 2025-03-04 04:52:05 [2025-03-04 04:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603478', 'tblTempUsageDetail_20' ) start [2025-03-04 04:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603478', 'tblTempUsageDetail_20' ) end [2025-03-04 04:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603478', 'tblTempVendorCDR_20' ) start [2025-03-04 04:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603478', 'tblTempVendorCDR_20' ) end [2025-03-04 04:52:17] Production.INFO: ProcessCDR(1,14603478,1,1,2) [2025-03-04 04:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603478', 'tblTempUsageDetail_20' ) start [2025-03-04 04:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603478', 'tblTempUsageDetail_20' ) end [2025-03-04 04:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:52:20] Production.INFO: ==3688== Releasing lock... [2025-03-04 04:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:52:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:53:05 [end_date_ymd] => 2025-03-04 04:53:05 [RateCDR] => 1 ) [2025-03-04 04: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 01:53:05' and `end` < '2025-03-04 04: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-04 04:53:17] Production.INFO: count ==149 [2025-03-04 04:53:17] Production.ERROR: pbx CDR StartTime 2025-03-04 01:53:05 - End Time 2025-03-04 04:53:05 [2025-03-04 04:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603483', 'tblTempUsageDetail_20' ) start [2025-03-04 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603483', 'tblTempUsageDetail_20' ) end [2025-03-04 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603483', 'tblTempVendorCDR_20' ) start [2025-03-04 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603483', 'tblTempVendorCDR_20' ) end [2025-03-04 04:53:17] Production.INFO: ProcessCDR(1,14603483,1,1,2) [2025-03-04 04:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603483', 'tblTempUsageDetail_20' ) start [2025-03-04 04:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603483', 'tblTempUsageDetail_20' ) end [2025-03-04 04:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:53:20] Production.INFO: ==3785== Releasing lock... [2025-03-04 04:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:53:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:54:05 [end_date_ymd] => 2025-03-04 04:54:05 [RateCDR] => 1 ) [2025-03-04 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-04 01:54:05' and `end` < '2025-03-04 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-04 04:54:17] Production.INFO: count ==149 [2025-03-04 04:54:17] Production.ERROR: pbx CDR StartTime 2025-03-04 01:54:05 - End Time 2025-03-04 04:54:05 [2025-03-04 04:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603488', 'tblTempUsageDetail_20' ) start [2025-03-04 04:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603488', 'tblTempUsageDetail_20' ) end [2025-03-04 04:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603488', 'tblTempVendorCDR_20' ) start [2025-03-04 04:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603488', 'tblTempVendorCDR_20' ) end [2025-03-04 04:54:17] Production.INFO: ProcessCDR(1,14603488,1,1,2) [2025-03-04 04:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603488', 'tblTempUsageDetail_20' ) start [2025-03-04 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603488', 'tblTempUsageDetail_20' ) end [2025-03-04 04:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:54:21] Production.INFO: ==3880== Releasing lock... [2025-03-04 04:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:54:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:55:05 [end_date_ymd] => 2025-03-04 04:55:05 [RateCDR] => 1 ) [2025-03-04 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-04 01:55:05' and `end` < '2025-03-04 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-04 04:55:18] Production.INFO: count ==149 [2025-03-04 04:55:18] Production.ERROR: pbx CDR StartTime 2025-03-04 01:55:05 - End Time 2025-03-04 04:55:05 [2025-03-04 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603492', 'tblTempUsageDetail_20' ) start [2025-03-04 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603492', 'tblTempUsageDetail_20' ) end [2025-03-04 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603492', 'tblTempVendorCDR_20' ) start [2025-03-04 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603492', 'tblTempVendorCDR_20' ) end [2025-03-04 04:55:18] Production.INFO: ProcessCDR(1,14603492,1,1,2) [2025-03-04 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603492', 'tblTempUsageDetail_20' ) start [2025-03-04 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603492', 'tblTempUsageDetail_20' ) end [2025-03-04 04:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:55:21] Production.INFO: ==3978== Releasing lock... [2025-03-04 04:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:55:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:56:06 [end_date_ymd] => 2025-03-04 04:56:06 [RateCDR] => 1 ) [2025-03-04 04: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 01:56:06' and `end` < '2025-03-04 04: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-04 04:56:19] Production.INFO: count ==149 [2025-03-04 04:56:19] Production.ERROR: pbx CDR StartTime 2025-03-04 01:56:06 - End Time 2025-03-04 04:56:06 [2025-03-04 04:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603498', 'tblTempUsageDetail_20' ) start [2025-03-04 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603498', 'tblTempUsageDetail_20' ) end [2025-03-04 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603498', 'tblTempVendorCDR_20' ) start [2025-03-04 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603498', 'tblTempVendorCDR_20' ) end [2025-03-04 04:56:19] Production.INFO: ProcessCDR(1,14603498,1,1,2) [2025-03-04 04:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603498', 'tblTempUsageDetail_20' ) start [2025-03-04 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603498', 'tblTempUsageDetail_20' ) end [2025-03-04 04:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:56:22] Production.INFO: ==4082== Releasing lock... [2025-03-04 04:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:56:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:57:05 [end_date_ymd] => 2025-03-04 04:57:05 [RateCDR] => 1 ) [2025-03-04 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-04 01:57:05' and `end` < '2025-03-04 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-04 04:57:18] Production.INFO: count ==149 [2025-03-04 04:57:18] Production.ERROR: pbx CDR StartTime 2025-03-04 01:57:05 - End Time 2025-03-04 04:57:05 [2025-03-04 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603503', 'tblTempUsageDetail_20' ) start [2025-03-04 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603503', 'tblTempUsageDetail_20' ) end [2025-03-04 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603503', 'tblTempVendorCDR_20' ) start [2025-03-04 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603503', 'tblTempVendorCDR_20' ) end [2025-03-04 04:57:18] Production.INFO: ProcessCDR(1,14603503,1,1,2) [2025-03-04 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603503', 'tblTempUsageDetail_20' ) start [2025-03-04 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603503', 'tblTempUsageDetail_20' ) end [2025-03-04 04:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:57:22] Production.INFO: ==4213== Releasing lock... [2025-03-04 04:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:57:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:58:06 [end_date_ymd] => 2025-03-04 04:58:06 [RateCDR] => 1 ) [2025-03-04 04: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 01:58:06' and `end` < '2025-03-04 04: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-04 04:58:18] Production.INFO: count ==149 [2025-03-04 04:58:18] Production.ERROR: pbx CDR StartTime 2025-03-04 01:58:06 - End Time 2025-03-04 04:58:06 [2025-03-04 04:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603508', 'tblTempUsageDetail_20' ) start [2025-03-04 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603508', 'tblTempUsageDetail_20' ) end [2025-03-04 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603508', 'tblTempVendorCDR_20' ) start [2025-03-04 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603508', 'tblTempVendorCDR_20' ) end [2025-03-04 04:58:18] Production.INFO: ProcessCDR(1,14603508,1,1,2) [2025-03-04 04:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603508', 'tblTempUsageDetail_20' ) start [2025-03-04 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603508', 'tblTempUsageDetail_20' ) end [2025-03-04 04:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:58:21] Production.INFO: ==4312== Releasing lock... [2025-03-04 04:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:58:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 01:59:05 [end_date_ymd] => 2025-03-04 04:59:05 [RateCDR] => 1 ) [2025-03-04 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-04 01:59:05' and `end` < '2025-03-04 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-04 04:59:19] Production.INFO: count ==149 [2025-03-04 04:59:19] Production.ERROR: pbx CDR StartTime 2025-03-04 01:59:05 - End Time 2025-03-04 04:59:05 [2025-03-04 04:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603513', 'tblTempUsageDetail_20' ) start [2025-03-04 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603513', 'tblTempUsageDetail_20' ) end [2025-03-04 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603513', 'tblTempVendorCDR_20' ) start [2025-03-04 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603513', 'tblTempVendorCDR_20' ) end [2025-03-04 04:59:19] Production.INFO: ProcessCDR(1,14603513,1,1,2) [2025-03-04 04:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603513', 'tblTempUsageDetail_20' ) start [2025-03-04 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603513', 'tblTempUsageDetail_20' ) end [2025-03-04 04:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 04:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 04:59:22] Production.INFO: ==4411== Releasing lock... [2025-03-04 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 04:59:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:00:06 [end_date_ymd] => 2025-03-04 05:00:06 [RateCDR] => 1 ) [2025-03-04 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 02:00:06' and `end` < '2025-03-04 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 05:00:19] Production.INFO: count ==150 [2025-03-04 05:00:19] Production.ERROR: pbx CDR StartTime 2025-03-04 02:00:06 - End Time 2025-03-04 05:00:06 [2025-03-04 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603518', 'tblTempUsageDetail_20' ) start [2025-03-04 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603518', 'tblTempUsageDetail_20' ) end [2025-03-04 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603518', 'tblTempVendorCDR_20' ) start [2025-03-04 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603518', 'tblTempVendorCDR_20' ) end [2025-03-04 05:00:19] Production.INFO: ProcessCDR(1,14603518,1,1,2) [2025-03-04 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603518', 'tblTempUsageDetail_20' ) start [2025-03-04 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603518', 'tblTempUsageDetail_20' ) end [2025-03-04 05:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:00:22] Production.INFO: ==4511== Releasing lock... [2025-03-04 05:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:00:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:01:05 [end_date_ymd] => 2025-03-04 05:01:05 [RateCDR] => 1 ) [2025-03-04 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-04 02:01:05' and `end` < '2025-03-04 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-04 05:01:18] Production.INFO: count ==162 [2025-03-04 05:01:18] Production.ERROR: pbx CDR StartTime 2025-03-04 02:01:05 - End Time 2025-03-04 05:01:05 [2025-03-04 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603524', 'tblTempUsageDetail_20' ) start [2025-03-04 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603524', 'tblTempUsageDetail_20' ) end [2025-03-04 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603524', 'tblTempVendorCDR_20' ) start [2025-03-04 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603524', 'tblTempVendorCDR_20' ) end [2025-03-04 05:01:18] Production.INFO: ProcessCDR(1,14603524,1,1,2) [2025-03-04 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603524', 'tblTempUsageDetail_20' ) start [2025-03-04 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603524', 'tblTempUsageDetail_20' ) end [2025-03-04 05:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:01:21] Production.INFO: ==4626== Releasing lock... [2025-03-04 05:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:01:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 05:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:02:06 [end_date_ymd] => 2025-03-04 05:02:06 [RateCDR] => 1 ) [2025-03-04 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-04 02:02:06' and `end` < '2025-03-04 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-04 05:02:19] Production.INFO: count ==162 [2025-03-04 05:02:19] Production.ERROR: pbx CDR StartTime 2025-03-04 02:02:06 - End Time 2025-03-04 05:02:06 [2025-03-04 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603529', 'tblTempUsageDetail_20' ) start [2025-03-04 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603529', 'tblTempUsageDetail_20' ) end [2025-03-04 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603529', 'tblTempVendorCDR_20' ) start [2025-03-04 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603529', 'tblTempVendorCDR_20' ) end [2025-03-04 05:02:19] Production.INFO: ProcessCDR(1,14603529,1,1,2) [2025-03-04 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603529', 'tblTempUsageDetail_20' ) start [2025-03-04 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603529', 'tblTempUsageDetail_20' ) end [2025-03-04 05:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:02:22] Production.INFO: ==4719== Releasing lock... [2025-03-04 05:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:02:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:03:05 [end_date_ymd] => 2025-03-04 05:03:05 [RateCDR] => 1 ) [2025-03-04 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-04 02:03:05' and `end` < '2025-03-04 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-04 05:03:17] Production.INFO: count ==158 [2025-03-04 05:03:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:03:05 - End Time 2025-03-04 05:03:05 [2025-03-04 05:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603534', 'tblTempUsageDetail_20' ) start [2025-03-04 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603534', 'tblTempUsageDetail_20' ) end [2025-03-04 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603534', 'tblTempVendorCDR_20' ) start [2025-03-04 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603534', 'tblTempVendorCDR_20' ) end [2025-03-04 05:03:17] Production.INFO: ProcessCDR(1,14603534,1,1,2) [2025-03-04 05:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603534', 'tblTempUsageDetail_20' ) start [2025-03-04 05:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603534', 'tblTempUsageDetail_20' ) end [2025-03-04 05:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:03:20] Production.INFO: ==4809== Releasing lock... [2025-03-04 05:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:03:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:04:05 [end_date_ymd] => 2025-03-04 05:04:05 [RateCDR] => 1 ) [2025-03-04 05:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 02:04:05' and `end` < '2025-03-04 05:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 05:04:17] Production.INFO: count ==158 [2025-03-04 05:04:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:04:05 - End Time 2025-03-04 05:04:05 [2025-03-04 05:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603539', 'tblTempUsageDetail_20' ) start [2025-03-04 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603539', 'tblTempUsageDetail_20' ) end [2025-03-04 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603539', 'tblTempVendorCDR_20' ) start [2025-03-04 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603539', 'tblTempVendorCDR_20' ) end [2025-03-04 05:04:17] Production.INFO: ProcessCDR(1,14603539,1,1,2) [2025-03-04 05:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603539', 'tblTempUsageDetail_20' ) start [2025-03-04 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603539', 'tblTempUsageDetail_20' ) end [2025-03-04 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:04:21] Production.INFO: ==4908== Releasing lock... [2025-03-04 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:04:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:05:05 [end_date_ymd] => 2025-03-04 05:05:05 [RateCDR] => 1 ) [2025-03-04 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-04 02:05:05' and `end` < '2025-03-04 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-04 05:05:17] Production.INFO: count ==158 [2025-03-04 05:05:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:05:05 - End Time 2025-03-04 05:05:05 [2025-03-04 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603544', 'tblTempUsageDetail_20' ) start [2025-03-04 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603544', 'tblTempUsageDetail_20' ) end [2025-03-04 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603544', 'tblTempVendorCDR_20' ) start [2025-03-04 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603544', 'tblTempVendorCDR_20' ) end [2025-03-04 05:05:17] Production.INFO: ProcessCDR(1,14603544,1,1,2) [2025-03-04 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603544', 'tblTempUsageDetail_20' ) start [2025-03-04 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603544', 'tblTempUsageDetail_20' ) end [2025-03-04 05:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:05:20] Production.INFO: ==5000== Releasing lock... [2025-03-04 05:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:05:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 05:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:06:06 [end_date_ymd] => 2025-03-04 05:06:06 [RateCDR] => 1 ) [2025-03-04 05: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 02:06:06' and `end` < '2025-03-04 05: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-04 05:06:18] Production.INFO: count ==158 [2025-03-04 05:06:18] Production.ERROR: pbx CDR StartTime 2025-03-04 02:06:06 - End Time 2025-03-04 05:06:06 [2025-03-04 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603549', 'tblTempUsageDetail_20' ) start [2025-03-04 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603549', 'tblTempUsageDetail_20' ) end [2025-03-04 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603549', 'tblTempVendorCDR_20' ) start [2025-03-04 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603549', 'tblTempVendorCDR_20' ) end [2025-03-04 05:06:18] Production.INFO: ProcessCDR(1,14603549,1,1,2) [2025-03-04 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603549', 'tblTempUsageDetail_20' ) start [2025-03-04 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603549', 'tblTempUsageDetail_20' ) end [2025-03-04 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:06:21] Production.INFO: ==5093== Releasing lock... [2025-03-04 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:06:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:07:05 [end_date_ymd] => 2025-03-04 05:07:05 [RateCDR] => 1 ) [2025-03-04 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-04 02:07:05' and `end` < '2025-03-04 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-04 05:07:17] Production.INFO: count ==158 [2025-03-04 05:07:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:07:05 - End Time 2025-03-04 05:07:05 [2025-03-04 05:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603554', 'tblTempUsageDetail_20' ) start [2025-03-04 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603554', 'tblTempUsageDetail_20' ) end [2025-03-04 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603554', 'tblTempVendorCDR_20' ) start [2025-03-04 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603554', 'tblTempVendorCDR_20' ) end [2025-03-04 05:07:17] Production.INFO: ProcessCDR(1,14603554,1,1,2) [2025-03-04 05:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603554', 'tblTempUsageDetail_20' ) start [2025-03-04 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603554', 'tblTempUsageDetail_20' ) end [2025-03-04 05:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:07:20] Production.INFO: ==5181== Releasing lock... [2025-03-04 05:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:07:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:08:05 [end_date_ymd] => 2025-03-04 05:08:05 [RateCDR] => 1 ) [2025-03-04 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-04 02:08:05' and `end` < '2025-03-04 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-04 05:08:17] Production.INFO: count ==158 [2025-03-04 05:08:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:08:05 - End Time 2025-03-04 05:08:05 [2025-03-04 05:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603559', 'tblTempUsageDetail_20' ) start [2025-03-04 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603559', 'tblTempUsageDetail_20' ) end [2025-03-04 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603559', 'tblTempVendorCDR_20' ) start [2025-03-04 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603559', 'tblTempVendorCDR_20' ) end [2025-03-04 05:08:17] Production.INFO: ProcessCDR(1,14603559,1,1,2) [2025-03-04 05:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603559', 'tblTempUsageDetail_20' ) start [2025-03-04 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603559', 'tblTempUsageDetail_20' ) end [2025-03-04 05:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:08:20] Production.INFO: ==5280== Releasing lock... [2025-03-04 05:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:08:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:09:05 [end_date_ymd] => 2025-03-04 05:09:05 [RateCDR] => 1 ) [2025-03-04 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-04 02:09:05' and `end` < '2025-03-04 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-04 05:09:17] Production.INFO: count ==158 [2025-03-04 05:09:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:09:05 - End Time 2025-03-04 05:09:05 [2025-03-04 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603564', 'tblTempUsageDetail_20' ) start [2025-03-04 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603564', 'tblTempUsageDetail_20' ) end [2025-03-04 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603564', 'tblTempVendorCDR_20' ) start [2025-03-04 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603564', 'tblTempVendorCDR_20' ) end [2025-03-04 05:09:17] Production.INFO: ProcessCDR(1,14603564,1,1,2) [2025-03-04 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603564', 'tblTempUsageDetail_20' ) start [2025-03-04 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603564', 'tblTempUsageDetail_20' ) end [2025-03-04 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:09:21] Production.INFO: ==5371== Releasing lock... [2025-03-04 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:09:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:10:06 [end_date_ymd] => 2025-03-04 05:10:06 [RateCDR] => 1 ) [2025-03-04 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-04 02:10:06' and `end` < '2025-03-04 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-04 05:10:18] Production.INFO: count ==157 [2025-03-04 05:10:18] Production.ERROR: pbx CDR StartTime 2025-03-04 02:10:06 - End Time 2025-03-04 05:10:06 [2025-03-04 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603570', 'tblTempUsageDetail_20' ) start [2025-03-04 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603570', 'tblTempUsageDetail_20' ) end [2025-03-04 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603570', 'tblTempVendorCDR_20' ) start [2025-03-04 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603570', 'tblTempVendorCDR_20' ) end [2025-03-04 05:10:18] Production.INFO: ProcessCDR(1,14603570,1,1,2) [2025-03-04 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603570', 'tblTempUsageDetail_20' ) start [2025-03-04 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603570', 'tblTempUsageDetail_20' ) end [2025-03-04 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:10:22] Production.INFO: ==5462== Releasing lock... [2025-03-04 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:10:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:11:05 [end_date_ymd] => 2025-03-04 05:11:05 [RateCDR] => 1 ) [2025-03-04 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-04 02:11:05' and `end` < '2025-03-04 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-04 05:11:16] Production.INFO: count ==157 [2025-03-04 05:11:16] Production.ERROR: pbx CDR StartTime 2025-03-04 02:11:05 - End Time 2025-03-04 05:11:05 [2025-03-04 05:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603575', 'tblTempUsageDetail_20' ) start [2025-03-04 05:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603575', 'tblTempUsageDetail_20' ) end [2025-03-04 05:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603575', 'tblTempVendorCDR_20' ) start [2025-03-04 05:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603575', 'tblTempVendorCDR_20' ) end [2025-03-04 05:11:16] Production.INFO: ProcessCDR(1,14603575,1,1,2) [2025-03-04 05:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:11:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:11:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603575', 'tblTempUsageDetail_20' ) start [2025-03-04 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603575', 'tblTempUsageDetail_20' ) end [2025-03-04 05:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:11:20] Production.INFO: ==5561== Releasing lock... [2025-03-04 05:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:11:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:12:05 [end_date_ymd] => 2025-03-04 05:12:05 [RateCDR] => 1 ) [2025-03-04 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-04 02:12:05' and `end` < '2025-03-04 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-04 05:12:17] Production.INFO: count ==157 [2025-03-04 05:12:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:12:05 - End Time 2025-03-04 05:12:05 [2025-03-04 05:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603580', 'tblTempUsageDetail_20' ) start [2025-03-04 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603580', 'tblTempUsageDetail_20' ) end [2025-03-04 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603580', 'tblTempVendorCDR_20' ) start [2025-03-04 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603580', 'tblTempVendorCDR_20' ) end [2025-03-04 05:12:17] Production.INFO: ProcessCDR(1,14603580,1,1,2) [2025-03-04 05:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603580', 'tblTempUsageDetail_20' ) start [2025-03-04 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603580', 'tblTempUsageDetail_20' ) end [2025-03-04 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:12:21] Production.INFO: ==5652== Releasing lock... [2025-03-04 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:12:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:13:05 [end_date_ymd] => 2025-03-04 05:13:05 [RateCDR] => 1 ) [2025-03-04 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-04 02:13:05' and `end` < '2025-03-04 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-04 05:13:17] Production.INFO: count ==157 [2025-03-04 05:13:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:13:05 - End Time 2025-03-04 05:13:05 [2025-03-04 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603585', 'tblTempUsageDetail_20' ) start [2025-03-04 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603585', 'tblTempUsageDetail_20' ) end [2025-03-04 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603585', 'tblTempVendorCDR_20' ) start [2025-03-04 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603585', 'tblTempVendorCDR_20' ) end [2025-03-04 05:13:17] Production.INFO: ProcessCDR(1,14603585,1,1,2) [2025-03-04 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603585', 'tblTempUsageDetail_20' ) start [2025-03-04 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603585', 'tblTempUsageDetail_20' ) end [2025-03-04 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:13:21] Production.INFO: ==5782== Releasing lock... [2025-03-04 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:13:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:14:05 [end_date_ymd] => 2025-03-04 05:14:05 [RateCDR] => 1 ) [2025-03-04 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-04 02:14:05' and `end` < '2025-03-04 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-04 05:14:17] Production.INFO: count ==157 [2025-03-04 05:14:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:14:05 - End Time 2025-03-04 05:14:05 [2025-03-04 05:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603590', 'tblTempUsageDetail_20' ) start [2025-03-04 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603590', 'tblTempUsageDetail_20' ) end [2025-03-04 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603590', 'tblTempVendorCDR_20' ) start [2025-03-04 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603590', 'tblTempVendorCDR_20' ) end [2025-03-04 05:14:17] Production.INFO: ProcessCDR(1,14603590,1,1,2) [2025-03-04 05:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603590', 'tblTempUsageDetail_20' ) start [2025-03-04 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603590', 'tblTempUsageDetail_20' ) end [2025-03-04 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:14:21] Production.INFO: ==5873== Releasing lock... [2025-03-04 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:14:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:15:05 [end_date_ymd] => 2025-03-04 05:15:05 [RateCDR] => 1 ) [2025-03-04 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-04 02:15:05' and `end` < '2025-03-04 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-04 05:15:17] Production.INFO: count ==157 [2025-03-04 05:15:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:15:05 - End Time 2025-03-04 05:15:05 [2025-03-04 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603595', 'tblTempUsageDetail_20' ) start [2025-03-04 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603595', 'tblTempUsageDetail_20' ) end [2025-03-04 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603595', 'tblTempVendorCDR_20' ) start [2025-03-04 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603595', 'tblTempVendorCDR_20' ) end [2025-03-04 05:15:17] Production.INFO: ProcessCDR(1,14603595,1,1,2) [2025-03-04 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603595', 'tblTempUsageDetail_20' ) start [2025-03-04 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603595', 'tblTempUsageDetail_20' ) end [2025-03-04 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:15:21] Production.INFO: ==5969== Releasing lock... [2025-03-04 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:15:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:16:05 [end_date_ymd] => 2025-03-04 05:16:05 [RateCDR] => 1 ) [2025-03-04 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-04 02:16:05' and `end` < '2025-03-04 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-04 05:16:17] Production.INFO: count ==157 [2025-03-04 05:16:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:16:05 - End Time 2025-03-04 05:16:05 [2025-03-04 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603600', 'tblTempUsageDetail_20' ) start [2025-03-04 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603600', 'tblTempUsageDetail_20' ) end [2025-03-04 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603600', 'tblTempVendorCDR_20' ) start [2025-03-04 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603600', 'tblTempVendorCDR_20' ) end [2025-03-04 05:16:17] Production.INFO: ProcessCDR(1,14603600,1,1,2) [2025-03-04 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603600', 'tblTempUsageDetail_20' ) start [2025-03-04 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603600', 'tblTempUsageDetail_20' ) end [2025-03-04 05:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:16:20] Production.INFO: ==6057== Releasing lock... [2025-03-04 05:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:16:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 05:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:17:06 [end_date_ymd] => 2025-03-04 05:17:06 [RateCDR] => 1 ) [2025-03-04 05: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 02:17:06' and `end` < '2025-03-04 05: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-04 05:17:18] Production.INFO: count ==157 [2025-03-04 05:17:18] Production.ERROR: pbx CDR StartTime 2025-03-04 02:17:06 - End Time 2025-03-04 05:17:06 [2025-03-04 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603605', 'tblTempUsageDetail_20' ) start [2025-03-04 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603605', 'tblTempUsageDetail_20' ) end [2025-03-04 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603605', 'tblTempVendorCDR_20' ) start [2025-03-04 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603605', 'tblTempVendorCDR_20' ) end [2025-03-04 05:17:18] Production.INFO: ProcessCDR(1,14603605,1,1,2) [2025-03-04 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603605', 'tblTempUsageDetail_20' ) start [2025-03-04 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603605', 'tblTempUsageDetail_20' ) end [2025-03-04 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:17:21] Production.INFO: ==6150== Releasing lock... [2025-03-04 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:17:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:18:05 [end_date_ymd] => 2025-03-04 05:18:05 [RateCDR] => 1 ) [2025-03-04 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-04 02:18:05' and `end` < '2025-03-04 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-04 05:18:17] Production.INFO: count ==157 [2025-03-04 05:18:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:18:05 - End Time 2025-03-04 05:18:05 [2025-03-04 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603610', 'tblTempUsageDetail_20' ) start [2025-03-04 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603610', 'tblTempUsageDetail_20' ) end [2025-03-04 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603610', 'tblTempVendorCDR_20' ) start [2025-03-04 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603610', 'tblTempVendorCDR_20' ) end [2025-03-04 05:18:17] Production.INFO: ProcessCDR(1,14603610,1,1,2) [2025-03-04 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603610', 'tblTempUsageDetail_20' ) start [2025-03-04 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603610', 'tblTempUsageDetail_20' ) end [2025-03-04 05:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:18:20] Production.INFO: ==6239== Releasing lock... [2025-03-04 05:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:18:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:19:05 [end_date_ymd] => 2025-03-04 05:19:05 [RateCDR] => 1 ) [2025-03-04 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-04 02:19:05' and `end` < '2025-03-04 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-04 05:19:17] Production.INFO: count ==157 [2025-03-04 05:19:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:19:05 - End Time 2025-03-04 05:19:05 [2025-03-04 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603615', 'tblTempUsageDetail_20' ) start [2025-03-04 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603615', 'tblTempUsageDetail_20' ) end [2025-03-04 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603615', 'tblTempVendorCDR_20' ) start [2025-03-04 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603615', 'tblTempVendorCDR_20' ) end [2025-03-04 05:19:17] Production.INFO: ProcessCDR(1,14603615,1,1,2) [2025-03-04 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603615', 'tblTempUsageDetail_20' ) start [2025-03-04 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603615', 'tblTempUsageDetail_20' ) end [2025-03-04 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:19:21] Production.INFO: ==6326== Releasing lock... [2025-03-04 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:19:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:20:06 [end_date_ymd] => 2025-03-04 05:20:06 [RateCDR] => 1 ) [2025-03-04 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-04 02:20:06' and `end` < '2025-03-04 05:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 05:20:18] Production.INFO: count ==153 [2025-03-04 05:20:18] Production.ERROR: pbx CDR StartTime 2025-03-04 02:20:06 - End Time 2025-03-04 05:20:06 [2025-03-04 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603621', 'tblTempUsageDetail_20' ) start [2025-03-04 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603621', 'tblTempUsageDetail_20' ) end [2025-03-04 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603621', 'tblTempVendorCDR_20' ) start [2025-03-04 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603621', 'tblTempVendorCDR_20' ) end [2025-03-04 05:20:18] Production.INFO: ProcessCDR(1,14603621,1,1,2) [2025-03-04 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603621', 'tblTempUsageDetail_20' ) start [2025-03-04 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603621', 'tblTempUsageDetail_20' ) end [2025-03-04 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:20:22] Production.INFO: ==6422== Releasing lock... [2025-03-04 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:20:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 05:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:21:06 [end_date_ymd] => 2025-03-04 05:21:06 [RateCDR] => 1 ) [2025-03-04 05: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-04 02:21:06' and `end` < '2025-03-04 05: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-04 05:21:18] Production.INFO: count ==149 [2025-03-04 05:21:18] Production.ERROR: pbx CDR StartTime 2025-03-04 02:21:06 - End Time 2025-03-04 05:21:06 [2025-03-04 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603626', 'tblTempUsageDetail_20' ) start [2025-03-04 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603626', 'tblTempUsageDetail_20' ) end [2025-03-04 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603626', 'tblTempVendorCDR_20' ) start [2025-03-04 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603626', 'tblTempVendorCDR_20' ) end [2025-03-04 05:21:18] Production.INFO: ProcessCDR(1,14603626,1,1,2) [2025-03-04 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603626', 'tblTempUsageDetail_20' ) start [2025-03-04 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603626', 'tblTempUsageDetail_20' ) end [2025-03-04 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:21:21] Production.INFO: ==6515== Releasing lock... [2025-03-04 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:21:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:22:05 [end_date_ymd] => 2025-03-04 05:22:05 [RateCDR] => 1 ) [2025-03-04 05: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 02:22:05' and `end` < '2025-03-04 05:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 05:22:17] Production.INFO: count ==149 [2025-03-04 05:22:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:22:05 - End Time 2025-03-04 05:22:05 [2025-03-04 05:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603631', 'tblTempUsageDetail_20' ) start [2025-03-04 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603631', 'tblTempUsageDetail_20' ) end [2025-03-04 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603631', 'tblTempVendorCDR_20' ) start [2025-03-04 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603631', 'tblTempVendorCDR_20' ) end [2025-03-04 05:22:17] Production.INFO: ProcessCDR(1,14603631,1,1,2) [2025-03-04 05:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603631', 'tblTempUsageDetail_20' ) start [2025-03-04 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603631', 'tblTempUsageDetail_20' ) end [2025-03-04 05:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:22:20] Production.INFO: ==6588== Releasing lock... [2025-03-04 05:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:22:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 05:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:23:05 [end_date_ymd] => 2025-03-04 05:23:05 [RateCDR] => 1 ) [2025-03-04 05: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-04 02:23:05' and `end` < '2025-03-04 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-04 05:23:17] Production.INFO: count ==149 [2025-03-04 05:23:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:23:05 - End Time 2025-03-04 05:23:05 [2025-03-04 05:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603636', 'tblTempUsageDetail_20' ) start [2025-03-04 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603636', 'tblTempUsageDetail_20' ) end [2025-03-04 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603636', 'tblTempVendorCDR_20' ) start [2025-03-04 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603636', 'tblTempVendorCDR_20' ) end [2025-03-04 05:23:17] Production.INFO: ProcessCDR(1,14603636,1,1,2) [2025-03-04 05:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603636', 'tblTempUsageDetail_20' ) start [2025-03-04 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603636', 'tblTempUsageDetail_20' ) end [2025-03-04 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:23:21] Production.INFO: ==6665== Releasing lock... [2025-03-04 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:23:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:24:05 [end_date_ymd] => 2025-03-04 05:24:05 [RateCDR] => 1 ) [2025-03-04 05:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 02:24:05' and `end` < '2025-03-04 05:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 05:24:17] Production.INFO: count ==149 [2025-03-04 05:24:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:24:05 - End Time 2025-03-04 05:24:05 [2025-03-04 05:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603641', 'tblTempUsageDetail_20' ) start [2025-03-04 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603641', 'tblTempUsageDetail_20' ) end [2025-03-04 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603641', 'tblTempVendorCDR_20' ) start [2025-03-04 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603641', 'tblTempVendorCDR_20' ) end [2025-03-04 05:24:17] Production.INFO: ProcessCDR(1,14603641,1,1,2) [2025-03-04 05:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603641', 'tblTempUsageDetail_20' ) start [2025-03-04 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603641', 'tblTempUsageDetail_20' ) end [2025-03-04 05:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:24:20] Production.INFO: ==6737== Releasing lock... [2025-03-04 05:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:24:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:25:05 [end_date_ymd] => 2025-03-04 05:25:05 [RateCDR] => 1 ) [2025-03-04 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-04 02:25:05' and `end` < '2025-03-04 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-04 05:25:17] Production.INFO: count ==149 [2025-03-04 05:25:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:25:05 - End Time 2025-03-04 05:25:05 [2025-03-04 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603646', 'tblTempUsageDetail_20' ) start [2025-03-04 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603646', 'tblTempUsageDetail_20' ) end [2025-03-04 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603646', 'tblTempVendorCDR_20' ) start [2025-03-04 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603646', 'tblTempVendorCDR_20' ) end [2025-03-04 05:25:17] Production.INFO: ProcessCDR(1,14603646,1,1,2) [2025-03-04 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603646', 'tblTempUsageDetail_20' ) start [2025-03-04 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603646', 'tblTempUsageDetail_20' ) end [2025-03-04 05:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:25:20] Production.INFO: ==6817== Releasing lock... [2025-03-04 05:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:25:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:26:05 [end_date_ymd] => 2025-03-04 05:26:05 [RateCDR] => 1 ) [2025-03-04 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-04 02:26:05' and `end` < '2025-03-04 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-04 05:26:17] Production.INFO: count ==143 [2025-03-04 05:26:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:26:05 - End Time 2025-03-04 05:26:05 [2025-03-04 05:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603651', 'tblTempUsageDetail_20' ) start [2025-03-04 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603651', 'tblTempUsageDetail_20' ) end [2025-03-04 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603651', 'tblTempVendorCDR_20' ) start [2025-03-04 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603651', 'tblTempVendorCDR_20' ) end [2025-03-04 05:26:17] Production.INFO: ProcessCDR(1,14603651,1,1,2) [2025-03-04 05:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603651', 'tblTempUsageDetail_20' ) start [2025-03-04 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603651', 'tblTempUsageDetail_20' ) end [2025-03-04 05:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:26:20] Production.INFO: ==6889== Releasing lock... [2025-03-04 05:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:26:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:27:05 [end_date_ymd] => 2025-03-04 05:27:05 [RateCDR] => 1 ) [2025-03-04 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-04 02:27:05' and `end` < '2025-03-04 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-04 05:27:17] Production.INFO: count ==143 [2025-03-04 05:27:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:27:05 - End Time 2025-03-04 05:27:05 [2025-03-04 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603656', 'tblTempUsageDetail_20' ) start [2025-03-04 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603656', 'tblTempUsageDetail_20' ) end [2025-03-04 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603656', 'tblTempVendorCDR_20' ) start [2025-03-04 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603656', 'tblTempVendorCDR_20' ) end [2025-03-04 05:27:17] Production.INFO: ProcessCDR(1,14603656,1,1,2) [2025-03-04 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603656', 'tblTempUsageDetail_20' ) start [2025-03-04 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603656', 'tblTempUsageDetail_20' ) end [2025-03-04 05:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:27:20] Production.INFO: ==6968== Releasing lock... [2025-03-04 05:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:27:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:28:05 [end_date_ymd] => 2025-03-04 05:28:05 [RateCDR] => 1 ) [2025-03-04 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-04 02:28:05' and `end` < '2025-03-04 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-04 05:28:17] Production.INFO: count ==143 [2025-03-04 05:28:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:28:05 - End Time 2025-03-04 05:28:05 [2025-03-04 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603661', 'tblTempUsageDetail_20' ) start [2025-03-04 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603661', 'tblTempUsageDetail_20' ) end [2025-03-04 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603661', 'tblTempVendorCDR_20' ) start [2025-03-04 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603661', 'tblTempVendorCDR_20' ) end [2025-03-04 05:28:17] Production.INFO: ProcessCDR(1,14603661,1,1,2) [2025-03-04 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603661', 'tblTempUsageDetail_20' ) start [2025-03-04 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603661', 'tblTempUsageDetail_20' ) end [2025-03-04 05:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:28:20] Production.INFO: ==7083== Releasing lock... [2025-03-04 05:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:28:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:29:05 [end_date_ymd] => 2025-03-04 05:29:05 [RateCDR] => 1 ) [2025-03-04 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-04 02:29:05' and `end` < '2025-03-04 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-04 05:29:17] Production.INFO: count ==143 [2025-03-04 05:29:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:29:05 - End Time 2025-03-04 05:29:05 [2025-03-04 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603666', 'tblTempUsageDetail_20' ) start [2025-03-04 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603666', 'tblTempUsageDetail_20' ) end [2025-03-04 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603666', 'tblTempVendorCDR_20' ) start [2025-03-04 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603666', 'tblTempVendorCDR_20' ) end [2025-03-04 05:29:17] Production.INFO: ProcessCDR(1,14603666,1,1,2) [2025-03-04 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603666', 'tblTempUsageDetail_20' ) start [2025-03-04 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603666', 'tblTempUsageDetail_20' ) end [2025-03-04 05:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:29:20] Production.INFO: ==7158== Releasing lock... [2025-03-04 05:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:29:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 05:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:30:07 [end_date_ymd] => 2025-03-04 05:30:07 [RateCDR] => 1 ) [2025-03-04 05: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-04 02:30:07' and `end` < '2025-03-04 05: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-04 05:30:19] Production.INFO: count ==141 [2025-03-04 05:30:19] Production.ERROR: pbx CDR StartTime 2025-03-04 02:30:07 - End Time 2025-03-04 05:30:07 [2025-03-04 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603672', 'tblTempUsageDetail_20' ) start [2025-03-04 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603672', 'tblTempUsageDetail_20' ) end [2025-03-04 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603672', 'tblTempVendorCDR_20' ) start [2025-03-04 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603672', 'tblTempVendorCDR_20' ) end [2025-03-04 05:30:19] Production.INFO: ProcessCDR(1,14603672,1,1,2) [2025-03-04 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603672', 'tblTempUsageDetail_20' ) start [2025-03-04 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603672', 'tblTempUsageDetail_20' ) end [2025-03-04 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:30:22] Production.INFO: ==7232== Releasing lock... [2025-03-04 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:30:22] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:31:05 [end_date_ymd] => 2025-03-04 05:31:05 [RateCDR] => 1 ) [2025-03-04 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 02:31:05' and `end` < '2025-03-04 05:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 05:31:17] Production.INFO: count ==141 [2025-03-04 05:31:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:31:05 - End Time 2025-03-04 05:31:05 [2025-03-04 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603677', 'tblTempUsageDetail_20' ) start [2025-03-04 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603677', 'tblTempUsageDetail_20' ) end [2025-03-04 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603677', 'tblTempVendorCDR_20' ) start [2025-03-04 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603677', 'tblTempVendorCDR_20' ) end [2025-03-04 05:31:17] Production.INFO: ProcessCDR(1,14603677,1,1,2) [2025-03-04 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603677', 'tblTempUsageDetail_20' ) start [2025-03-04 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603677', 'tblTempUsageDetail_20' ) end [2025-03-04 05:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:31:21] Production.INFO: ==7311== Releasing lock... [2025-03-04 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:31:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:32:05 [end_date_ymd] => 2025-03-04 05:32:05 [RateCDR] => 1 ) [2025-03-04 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-04 02:32:05' and `end` < '2025-03-04 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-04 05:32:17] Production.INFO: count ==138 [2025-03-04 05:32:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:32:05 - End Time 2025-03-04 05:32:05 [2025-03-04 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603682', 'tblTempUsageDetail_20' ) start [2025-03-04 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603682', 'tblTempUsageDetail_20' ) end [2025-03-04 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603682', 'tblTempVendorCDR_20' ) start [2025-03-04 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603682', 'tblTempVendorCDR_20' ) end [2025-03-04 05:32:17] Production.INFO: ProcessCDR(1,14603682,1,1,2) [2025-03-04 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603682', 'tblTempUsageDetail_20' ) start [2025-03-04 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603682', 'tblTempUsageDetail_20' ) end [2025-03-04 05:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:32:20] Production.INFO: ==7385== Releasing lock... [2025-03-04 05:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:32:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:33:05 [end_date_ymd] => 2025-03-04 05:33:05 [RateCDR] => 1 ) [2025-03-04 05:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 02:33:05' and `end` < '2025-03-04 05:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 05:33:17] Production.INFO: count ==138 [2025-03-04 05:33:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:33:05 - End Time 2025-03-04 05:33:05 [2025-03-04 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603687', 'tblTempUsageDetail_20' ) start [2025-03-04 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603687', 'tblTempUsageDetail_20' ) end [2025-03-04 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603687', 'tblTempVendorCDR_20' ) start [2025-03-04 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603687', 'tblTempVendorCDR_20' ) end [2025-03-04 05:33:17] Production.INFO: ProcessCDR(1,14603687,1,1,2) [2025-03-04 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603687', 'tblTempUsageDetail_20' ) start [2025-03-04 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603687', 'tblTempUsageDetail_20' ) end [2025-03-04 05:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:33:20] Production.INFO: ==7457== Releasing lock... [2025-03-04 05:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:33:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 05:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:34:04 [end_date_ymd] => 2025-03-04 05:34:04 [RateCDR] => 1 ) [2025-03-04 05:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 02:34:04' and `end` < '2025-03-04 05:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 05:34:16] Production.INFO: count ==138 [2025-03-04 05:34:16] Production.ERROR: pbx CDR StartTime 2025-03-04 02:34:04 - End Time 2025-03-04 05:34:04 [2025-03-04 05:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603692', 'tblTempUsageDetail_20' ) start [2025-03-04 05:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603692', 'tblTempUsageDetail_20' ) end [2025-03-04 05:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603692', 'tblTempVendorCDR_20' ) start [2025-03-04 05:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603692', 'tblTempVendorCDR_20' ) end [2025-03-04 05:34:16] Production.INFO: ProcessCDR(1,14603692,1,1,2) [2025-03-04 05:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:34:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:34:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603692', 'tblTempUsageDetail_20' ) start [2025-03-04 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603692', 'tblTempUsageDetail_20' ) end [2025-03-04 05:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:34:20] Production.INFO: ==7530== Releasing lock... [2025-03-04 05:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:34:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:35:05 [end_date_ymd] => 2025-03-04 05:35:05 [RateCDR] => 1 ) [2025-03-04 05: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 02:35:05' and `end` < '2025-03-04 05: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-04 05:35:17] Production.INFO: count ==138 [2025-03-04 05:35:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:35:05 - End Time 2025-03-04 05:35:05 [2025-03-04 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603697', 'tblTempUsageDetail_20' ) start [2025-03-04 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603697', 'tblTempUsageDetail_20' ) end [2025-03-04 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603697', 'tblTempVendorCDR_20' ) start [2025-03-04 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603697', 'tblTempVendorCDR_20' ) end [2025-03-04 05:35:17] Production.INFO: ProcessCDR(1,14603697,1,1,2) [2025-03-04 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603697', 'tblTempUsageDetail_20' ) start [2025-03-04 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603697', 'tblTempUsageDetail_20' ) end [2025-03-04 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:35:21] Production.INFO: ==7604== Releasing lock... [2025-03-04 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:35:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 05:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:36:06 [end_date_ymd] => 2025-03-04 05:36:06 [RateCDR] => 1 ) [2025-03-04 05: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 02:36:06' and `end` < '2025-03-04 05: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-04 05:36:18] Production.INFO: count ==135 [2025-03-04 05:36:18] Production.ERROR: pbx CDR StartTime 2025-03-04 02:36:06 - End Time 2025-03-04 05:36:06 [2025-03-04 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603702', 'tblTempUsageDetail_20' ) start [2025-03-04 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603702', 'tblTempUsageDetail_20' ) end [2025-03-04 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603702', 'tblTempVendorCDR_20' ) start [2025-03-04 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603702', 'tblTempVendorCDR_20' ) end [2025-03-04 05:36:18] Production.INFO: ProcessCDR(1,14603702,1,1,2) [2025-03-04 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603702', 'tblTempUsageDetail_20' ) start [2025-03-04 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603702', 'tblTempUsageDetail_20' ) end [2025-03-04 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:36:21] Production.INFO: ==7681== Releasing lock... [2025-03-04 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:36:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:37:05 [end_date_ymd] => 2025-03-04 05:37:05 [RateCDR] => 1 ) [2025-03-04 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-04 02:37:05' and `end` < '2025-03-04 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-04 05:37:17] Production.INFO: count ==135 [2025-03-04 05:37:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:37:05 - End Time 2025-03-04 05:37:05 [2025-03-04 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603707', 'tblTempUsageDetail_20' ) start [2025-03-04 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603707', 'tblTempUsageDetail_20' ) end [2025-03-04 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603707', 'tblTempVendorCDR_20' ) start [2025-03-04 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603707', 'tblTempVendorCDR_20' ) end [2025-03-04 05:37:17] Production.INFO: ProcessCDR(1,14603707,1,1,2) [2025-03-04 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603707', 'tblTempUsageDetail_20' ) start [2025-03-04 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603707', 'tblTempUsageDetail_20' ) end [2025-03-04 05:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:37:20] Production.INFO: ==7753== Releasing lock... [2025-03-04 05:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:37:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:38:05 [end_date_ymd] => 2025-03-04 05:38:05 [RateCDR] => 1 ) [2025-03-04 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-04 02:38:05' and `end` < '2025-03-04 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-04 05:38:17] Production.INFO: count ==135 [2025-03-04 05:38:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:38:05 - End Time 2025-03-04 05:38:05 [2025-03-04 05:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603712', 'tblTempUsageDetail_20' ) start [2025-03-04 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603712', 'tblTempUsageDetail_20' ) end [2025-03-04 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603712', 'tblTempVendorCDR_20' ) start [2025-03-04 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603712', 'tblTempVendorCDR_20' ) end [2025-03-04 05:38:17] Production.INFO: ProcessCDR(1,14603712,1,1,2) [2025-03-04 05:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603712', 'tblTempUsageDetail_20' ) start [2025-03-04 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603712', 'tblTempUsageDetail_20' ) end [2025-03-04 05:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:38:20] Production.INFO: ==7826== Releasing lock... [2025-03-04 05:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:38:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:39:05 [end_date_ymd] => 2025-03-04 05:39:05 [RateCDR] => 1 ) [2025-03-04 05: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 02:39:05' and `end` < '2025-03-04 05: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-04 05:39:17] Production.INFO: count ==135 [2025-03-04 05:39:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:39:05 - End Time 2025-03-04 05:39:05 [2025-03-04 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603717', 'tblTempUsageDetail_20' ) start [2025-03-04 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603717', 'tblTempUsageDetail_20' ) end [2025-03-04 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603717', 'tblTempVendorCDR_20' ) start [2025-03-04 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603717', 'tblTempVendorCDR_20' ) end [2025-03-04 05:39:17] Production.INFO: ProcessCDR(1,14603717,1,1,2) [2025-03-04 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603717', 'tblTempUsageDetail_20' ) start [2025-03-04 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603717', 'tblTempUsageDetail_20' ) end [2025-03-04 05:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:39:20] Production.INFO: ==7900== Releasing lock... [2025-03-04 05:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:39:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:40:06 [end_date_ymd] => 2025-03-04 05:40:06 [RateCDR] => 1 ) [2025-03-04 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-04 02:40:06' and `end` < '2025-03-04 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-04 05:40:18] Production.INFO: count ==131 [2025-03-04 05:40:18] Production.ERROR: pbx CDR StartTime 2025-03-04 02:40:06 - End Time 2025-03-04 05:40:06 [2025-03-04 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603723', 'tblTempUsageDetail_20' ) start [2025-03-04 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603723', 'tblTempUsageDetail_20' ) end [2025-03-04 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603723', 'tblTempVendorCDR_20' ) start [2025-03-04 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603723', 'tblTempVendorCDR_20' ) end [2025-03-04 05:40:18] Production.INFO: ProcessCDR(1,14603723,1,1,2) [2025-03-04 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603723', 'tblTempUsageDetail_20' ) start [2025-03-04 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603723', 'tblTempUsageDetail_20' ) end [2025-03-04 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:40:21] Production.INFO: ==7982== Releasing lock... [2025-03-04 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:40:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:41:05 [end_date_ymd] => 2025-03-04 05:41:05 [RateCDR] => 1 ) [2025-03-04 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-04 02:41:05' and `end` < '2025-03-04 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-04 05:41:17] Production.INFO: count ==125 [2025-03-04 05:41:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:41:05 - End Time 2025-03-04 05:41:05 [2025-03-04 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603728', 'tblTempUsageDetail_20' ) start [2025-03-04 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603728', 'tblTempUsageDetail_20' ) end [2025-03-04 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603728', 'tblTempVendorCDR_20' ) start [2025-03-04 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603728', 'tblTempVendorCDR_20' ) end [2025-03-04 05:41:17] Production.INFO: ProcessCDR(1,14603728,1,1,2) [2025-03-04 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603728', 'tblTempUsageDetail_20' ) start [2025-03-04 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603728', 'tblTempUsageDetail_20' ) end [2025-03-04 05:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:41:20] Production.INFO: ==8054== Releasing lock... [2025-03-04 05:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:41:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:42:05 [end_date_ymd] => 2025-03-04 05:42:05 [RateCDR] => 1 ) [2025-03-04 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-04 02:42:05' and `end` < '2025-03-04 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-04 05:42:17] Production.INFO: count ==125 [2025-03-04 05:42:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:42:05 - End Time 2025-03-04 05:42:05 [2025-03-04 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603733', 'tblTempUsageDetail_20' ) start [2025-03-04 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603733', 'tblTempUsageDetail_20' ) end [2025-03-04 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603733', 'tblTempVendorCDR_20' ) start [2025-03-04 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603733', 'tblTempVendorCDR_20' ) end [2025-03-04 05:42:17] Production.INFO: ProcessCDR(1,14603733,1,1,2) [2025-03-04 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603733', 'tblTempUsageDetail_20' ) start [2025-03-04 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603733', 'tblTempUsageDetail_20' ) end [2025-03-04 05:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:42:20] Production.INFO: ==8130== Releasing lock... [2025-03-04 05:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:42:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 05:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:43:04 [end_date_ymd] => 2025-03-04 05:43:04 [RateCDR] => 1 ) [2025-03-04 05: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-04 02:43:04' and `end` < '2025-03-04 05: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-04 05:43:16] Production.INFO: count ==125 [2025-03-04 05:43:16] Production.ERROR: pbx CDR StartTime 2025-03-04 02:43:04 - End Time 2025-03-04 05:43:04 [2025-03-04 05:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603738', 'tblTempUsageDetail_20' ) start [2025-03-04 05:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603738', 'tblTempUsageDetail_20' ) end [2025-03-04 05:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603738', 'tblTempVendorCDR_20' ) start [2025-03-04 05:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603738', 'tblTempVendorCDR_20' ) end [2025-03-04 05:43:16] Production.INFO: ProcessCDR(1,14603738,1,1,2) [2025-03-04 05:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:43:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:43:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:43:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:43:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603738', 'tblTempUsageDetail_20' ) start [2025-03-04 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603738', 'tblTempUsageDetail_20' ) end [2025-03-04 05:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:43:20] Production.INFO: ==8208== Releasing lock... [2025-03-04 05:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:43:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:44:05 [end_date_ymd] => 2025-03-04 05:44:05 [RateCDR] => 1 ) [2025-03-04 05: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 02:44:05' and `end` < '2025-03-04 05: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-04 05:44:17] Production.INFO: count ==125 [2025-03-04 05:44:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:44:05 - End Time 2025-03-04 05:44:05 [2025-03-04 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603743', 'tblTempUsageDetail_20' ) start [2025-03-04 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603743', 'tblTempUsageDetail_20' ) end [2025-03-04 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603743', 'tblTempVendorCDR_20' ) start [2025-03-04 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603743', 'tblTempVendorCDR_20' ) end [2025-03-04 05:44:17] Production.INFO: ProcessCDR(1,14603743,1,1,2) [2025-03-04 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603743', 'tblTempUsageDetail_20' ) start [2025-03-04 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603743', 'tblTempUsageDetail_20' ) end [2025-03-04 05:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:44:20] Production.INFO: ==8319== Releasing lock... [2025-03-04 05:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:44:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:45:05 [end_date_ymd] => 2025-03-04 05:45:05 [RateCDR] => 1 ) [2025-03-04 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-04 02:45:05' and `end` < '2025-03-04 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-04 05:45:17] Production.INFO: count ==125 [2025-03-04 05:45:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:45:05 - End Time 2025-03-04 05:45:05 [2025-03-04 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603748', 'tblTempUsageDetail_20' ) start [2025-03-04 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603748', 'tblTempUsageDetail_20' ) end [2025-03-04 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603748', 'tblTempVendorCDR_20' ) start [2025-03-04 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603748', 'tblTempVendorCDR_20' ) end [2025-03-04 05:45:17] Production.INFO: ProcessCDR(1,14603748,1,1,2) [2025-03-04 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603748', 'tblTempUsageDetail_20' ) start [2025-03-04 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603748', 'tblTempUsageDetail_20' ) end [2025-03-04 05:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:45:20] Production.INFO: ==8392== Releasing lock... [2025-03-04 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:45:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:46:05 [end_date_ymd] => 2025-03-04 05:46:05 [RateCDR] => 1 ) [2025-03-04 05: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 02:46:05' and `end` < '2025-03-04 05: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-04 05:46:17] Production.INFO: count ==125 [2025-03-04 05:46:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:46:05 - End Time 2025-03-04 05:46:05 [2025-03-04 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603753', 'tblTempUsageDetail_20' ) start [2025-03-04 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603753', 'tblTempUsageDetail_20' ) end [2025-03-04 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603753', 'tblTempVendorCDR_20' ) start [2025-03-04 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603753', 'tblTempVendorCDR_20' ) end [2025-03-04 05:46:17] Production.INFO: ProcessCDR(1,14603753,1,1,2) [2025-03-04 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603753', 'tblTempUsageDetail_20' ) start [2025-03-04 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603753', 'tblTempUsageDetail_20' ) end [2025-03-04 05:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:46:20] Production.INFO: ==8471== Releasing lock... [2025-03-04 05:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:46:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 05:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:47:06 [end_date_ymd] => 2025-03-04 05:47:06 [RateCDR] => 1 ) [2025-03-04 05: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-04 02:47:06' and `end` < '2025-03-04 05: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-04 05:47:18] Production.INFO: count ==125 [2025-03-04 05:47:18] Production.ERROR: pbx CDR StartTime 2025-03-04 02:47:06 - End Time 2025-03-04 05:47:06 [2025-03-04 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603758', 'tblTempUsageDetail_20' ) start [2025-03-04 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603758', 'tblTempUsageDetail_20' ) end [2025-03-04 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603758', 'tblTempVendorCDR_20' ) start [2025-03-04 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603758', 'tblTempVendorCDR_20' ) end [2025-03-04 05:47:18] Production.INFO: ProcessCDR(1,14603758,1,1,2) [2025-03-04 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603758', 'tblTempUsageDetail_20' ) start [2025-03-04 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603758', 'tblTempUsageDetail_20' ) end [2025-03-04 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:47:21] Production.INFO: ==8544== Releasing lock... [2025-03-04 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:47:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 05:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:48:06 [end_date_ymd] => 2025-03-04 05:48:06 [RateCDR] => 1 ) [2025-03-04 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-04 02:48:06' and `end` < '2025-03-04 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-04 05:48:18] Production.INFO: count ==125 [2025-03-04 05:48:18] Production.ERROR: pbx CDR StartTime 2025-03-04 02:48:06 - End Time 2025-03-04 05:48:06 [2025-03-04 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603763', 'tblTempUsageDetail_20' ) start [2025-03-04 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603763', 'tblTempUsageDetail_20' ) end [2025-03-04 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603763', 'tblTempVendorCDR_20' ) start [2025-03-04 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603763', 'tblTempVendorCDR_20' ) end [2025-03-04 05:48:18] Production.INFO: ProcessCDR(1,14603763,1,1,2) [2025-03-04 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603763', 'tblTempUsageDetail_20' ) start [2025-03-04 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603763', 'tblTempUsageDetail_20' ) end [2025-03-04 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:48:21] Production.INFO: ==8617== Releasing lock... [2025-03-04 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:48:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:49:05 [end_date_ymd] => 2025-03-04 05:49:05 [RateCDR] => 1 ) [2025-03-04 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-04 02:49:05' and `end` < '2025-03-04 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-04 05:49:17] Production.INFO: count ==125 [2025-03-04 05:49:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:49:05 - End Time 2025-03-04 05:49:05 [2025-03-04 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603768', 'tblTempUsageDetail_20' ) start [2025-03-04 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603768', 'tblTempUsageDetail_20' ) end [2025-03-04 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603768', 'tblTempVendorCDR_20' ) start [2025-03-04 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603768', 'tblTempVendorCDR_20' ) end [2025-03-04 05:49:17] Production.INFO: ProcessCDR(1,14603768,1,1,2) [2025-03-04 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603768', 'tblTempUsageDetail_20' ) start [2025-03-04 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603768', 'tblTempUsageDetail_20' ) end [2025-03-04 05:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:49:20] Production.INFO: ==8689== Releasing lock... [2025-03-04 05:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:49:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:50:06 [end_date_ymd] => 2025-03-04 05:50:06 [RateCDR] => 1 ) [2025-03-04 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-04 02:50:06' and `end` < '2025-03-04 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-04 05:50:17] Production.INFO: count ==121 [2025-03-04 05:50:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:50:06 - End Time 2025-03-04 05:50:06 [2025-03-04 05:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603774', 'tblTempUsageDetail_20' ) start [2025-03-04 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603774', 'tblTempUsageDetail_20' ) end [2025-03-04 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603774', 'tblTempVendorCDR_20' ) start [2025-03-04 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603774', 'tblTempVendorCDR_20' ) end [2025-03-04 05:50:17] Production.INFO: ProcessCDR(1,14603774,1,1,2) [2025-03-04 05:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603774', 'tblTempUsageDetail_20' ) start [2025-03-04 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603774', 'tblTempUsageDetail_20' ) end [2025-03-04 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:50:21] Production.INFO: ==8764== Releasing lock... [2025-03-04 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:50:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 05:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:51:06 [end_date_ymd] => 2025-03-04 05:51:06 [RateCDR] => 1 ) [2025-03-04 05: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-04 02:51:06' and `end` < '2025-03-04 05: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-04 05:51:18] Production.INFO: count ==119 [2025-03-04 05:51:18] Production.ERROR: pbx CDR StartTime 2025-03-04 02:51:06 - End Time 2025-03-04 05:51:06 [2025-03-04 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603779', 'tblTempUsageDetail_20' ) start [2025-03-04 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603779', 'tblTempUsageDetail_20' ) end [2025-03-04 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603779', 'tblTempVendorCDR_20' ) start [2025-03-04 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603779', 'tblTempVendorCDR_20' ) end [2025-03-04 05:51:18] Production.INFO: ProcessCDR(1,14603779,1,1,2) [2025-03-04 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603779', 'tblTempUsageDetail_20' ) start [2025-03-04 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603779', 'tblTempUsageDetail_20' ) end [2025-03-04 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:51:21] Production.INFO: ==8837== Releasing lock... [2025-03-04 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:51:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:52:05 [end_date_ymd] => 2025-03-04 05:52:05 [RateCDR] => 1 ) [2025-03-04 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-04 02:52:05' and `end` < '2025-03-04 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-04 05:52:17] Production.INFO: count ==119 [2025-03-04 05:52:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:52:05 - End Time 2025-03-04 05:52:05 [2025-03-04 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603784', 'tblTempUsageDetail_20' ) start [2025-03-04 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603784', 'tblTempUsageDetail_20' ) end [2025-03-04 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603784', 'tblTempVendorCDR_20' ) start [2025-03-04 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603784', 'tblTempVendorCDR_20' ) end [2025-03-04 05:52:17] Production.INFO: ProcessCDR(1,14603784,1,1,2) [2025-03-04 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603784', 'tblTempUsageDetail_20' ) start [2025-03-04 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603784', 'tblTempUsageDetail_20' ) end [2025-03-04 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:52:21] Production.INFO: ==8909== Releasing lock... [2025-03-04 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:52:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 05:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:53:06 [end_date_ymd] => 2025-03-04 05:53:06 [RateCDR] => 1 ) [2025-03-04 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-04 02:53:06' and `end` < '2025-03-04 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-04 05:53:17] Production.INFO: count ==119 [2025-03-04 05:53:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:53:06 - End Time 2025-03-04 05:53:06 [2025-03-04 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603789', 'tblTempUsageDetail_20' ) start [2025-03-04 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603789', 'tblTempUsageDetail_20' ) end [2025-03-04 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603789', 'tblTempVendorCDR_20' ) start [2025-03-04 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603789', 'tblTempVendorCDR_20' ) end [2025-03-04 05:53:17] Production.INFO: ProcessCDR(1,14603789,1,1,2) [2025-03-04 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603789', 'tblTempUsageDetail_20' ) start [2025-03-04 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603789', 'tblTempUsageDetail_20' ) end [2025-03-04 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:53:21] Production.INFO: ==8985== Releasing lock... [2025-03-04 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:53:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:54:05 [end_date_ymd] => 2025-03-04 05:54:05 [RateCDR] => 1 ) [2025-03-04 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-04 02:54:05' and `end` < '2025-03-04 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-04 05:54:17] Production.INFO: count ==119 [2025-03-04 05:54:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:54:05 - End Time 2025-03-04 05:54:05 [2025-03-04 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603794', 'tblTempUsageDetail_20' ) start [2025-03-04 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603794', 'tblTempUsageDetail_20' ) end [2025-03-04 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603794', 'tblTempVendorCDR_20' ) start [2025-03-04 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603794', 'tblTempVendorCDR_20' ) end [2025-03-04 05:54:17] Production.INFO: ProcessCDR(1,14603794,1,1,2) [2025-03-04 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603794', 'tblTempUsageDetail_20' ) start [2025-03-04 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603794', 'tblTempUsageDetail_20' ) end [2025-03-04 05:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:54:20] Production.INFO: ==9060== Releasing lock... [2025-03-04 05:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:54:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:55:05 [end_date_ymd] => 2025-03-04 05:55:05 [RateCDR] => 1 ) [2025-03-04 05:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 02:55:05' and `end` < '2025-03-04 05:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 05:55:17] Production.INFO: count ==120 [2025-03-04 05:55:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:55:05 - End Time 2025-03-04 05:55:05 [2025-03-04 05:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603799', 'tblTempUsageDetail_20' ) start [2025-03-04 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603799', 'tblTempUsageDetail_20' ) end [2025-03-04 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603799', 'tblTempVendorCDR_20' ) start [2025-03-04 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603799', 'tblTempVendorCDR_20' ) end [2025-03-04 05:55:17] Production.INFO: ProcessCDR(1,14603799,1,1,2) [2025-03-04 05:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603799', 'tblTempUsageDetail_20' ) start [2025-03-04 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603799', 'tblTempUsageDetail_20' ) end [2025-03-04 05:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:55:22] Production.INFO: ==9132== Releasing lock... [2025-03-04 05:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:55:22] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:56:05 [end_date_ymd] => 2025-03-04 05:56:05 [RateCDR] => 1 ) [2025-03-04 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-04 02:56:05' and `end` < '2025-03-04 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-04 05:56:17] Production.INFO: count ==120 [2025-03-04 05:56:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:56:05 - End Time 2025-03-04 05:56:05 [2025-03-04 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603804', 'tblTempUsageDetail_20' ) start [2025-03-04 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603804', 'tblTempUsageDetail_20' ) end [2025-03-04 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603804', 'tblTempVendorCDR_20' ) start [2025-03-04 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603804', 'tblTempVendorCDR_20' ) end [2025-03-04 05:56:17] Production.INFO: ProcessCDR(1,14603804,1,1,2) [2025-03-04 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603804', 'tblTempUsageDetail_20' ) start [2025-03-04 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603804', 'tblTempUsageDetail_20' ) end [2025-03-04 05:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:56:20] Production.INFO: ==9204== Releasing lock... [2025-03-04 05:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:56:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:57:05 [end_date_ymd] => 2025-03-04 05:57:05 [RateCDR] => 1 ) [2025-03-04 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-04 02:57:05' and `end` < '2025-03-04 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-04 05:57:17] Production.INFO: count ==119 [2025-03-04 05:57:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:57:05 - End Time 2025-03-04 05:57:05 [2025-03-04 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603809', 'tblTempUsageDetail_20' ) start [2025-03-04 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603809', 'tblTempUsageDetail_20' ) end [2025-03-04 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603809', 'tblTempVendorCDR_20' ) start [2025-03-04 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603809', 'tblTempVendorCDR_20' ) end [2025-03-04 05:57:17] Production.INFO: ProcessCDR(1,14603809,1,1,2) [2025-03-04 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603809', 'tblTempUsageDetail_20' ) start [2025-03-04 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603809', 'tblTempUsageDetail_20' ) end [2025-03-04 05:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:57:20] Production.INFO: ==9276== Releasing lock... [2025-03-04 05:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:57:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:58:05 [end_date_ymd] => 2025-03-04 05:58:05 [RateCDR] => 1 ) [2025-03-04 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-04 02:58:05' and `end` < '2025-03-04 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-04 05:58:17] Production.INFO: count ==119 [2025-03-04 05:58:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:58:05 - End Time 2025-03-04 05:58:05 [2025-03-04 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603814', 'tblTempUsageDetail_20' ) start [2025-03-04 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603814', 'tblTempUsageDetail_20' ) end [2025-03-04 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603814', 'tblTempVendorCDR_20' ) start [2025-03-04 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603814', 'tblTempVendorCDR_20' ) end [2025-03-04 05:58:17] Production.INFO: ProcessCDR(1,14603814,1,1,2) [2025-03-04 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603814', 'tblTempUsageDetail_20' ) start [2025-03-04 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603814', 'tblTempUsageDetail_20' ) end [2025-03-04 05:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:58:20] Production.INFO: ==9347== Releasing lock... [2025-03-04 05:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:58:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 02:59:05 [end_date_ymd] => 2025-03-04 05:59:05 [RateCDR] => 1 ) [2025-03-04 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-04 02:59:05' and `end` < '2025-03-04 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-04 05:59:17] Production.INFO: count ==119 [2025-03-04 05:59:17] Production.ERROR: pbx CDR StartTime 2025-03-04 02:59:05 - End Time 2025-03-04 05:59:05 [2025-03-04 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603819', 'tblTempUsageDetail_20' ) start [2025-03-04 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603819', 'tblTempUsageDetail_20' ) end [2025-03-04 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603819', 'tblTempVendorCDR_20' ) start [2025-03-04 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603819', 'tblTempVendorCDR_20' ) end [2025-03-04 05:59:17] Production.INFO: ProcessCDR(1,14603819,1,1,2) [2025-03-04 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603819', 'tblTempUsageDetail_20' ) start [2025-03-04 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603819', 'tblTempUsageDetail_20' ) end [2025-03-04 05:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 05:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 05:59:20] Production.INFO: ==9460== Releasing lock... [2025-03-04 05:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 05:59:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 06:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:00:05 [end_date_ymd] => 2025-03-04 06:00:05 [RateCDR] => 1 ) [2025-03-04 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-04 03:00:05' and `end` < '2025-03-04 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-04 06:00:17] Production.INFO: count ==115 [2025-03-04 06:00:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:00:05 - End Time 2025-03-04 06:00:05 [2025-03-04 06:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603825', 'tblTempUsageDetail_20' ) start [2025-03-04 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603825', 'tblTempUsageDetail_20' ) end [2025-03-04 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603825', 'tblTempVendorCDR_20' ) start [2025-03-04 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603825', 'tblTempVendorCDR_20' ) end [2025-03-04 06:00:17] Production.INFO: ProcessCDR(1,14603825,1,1,2) [2025-03-04 06:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603825', 'tblTempUsageDetail_20' ) start [2025-03-04 06:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603825', 'tblTempUsageDetail_20' ) end [2025-03-04 06:00:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:00:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:00:20] Production.INFO: ==9534== Releasing lock... [2025-03-04 06:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:00:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:01:05 [end_date_ymd] => 2025-03-04 06:01:05 [RateCDR] => 1 ) [2025-03-04 06: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 03:01:05' and `end` < '2025-03-04 06: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-04 06:01:17] Production.INFO: count ==111 [2025-03-04 06:01:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:01:05 - End Time 2025-03-04 06:01:05 [2025-03-04 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603830', 'tblTempUsageDetail_20' ) start [2025-03-04 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603830', 'tblTempUsageDetail_20' ) end [2025-03-04 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603830', 'tblTempVendorCDR_20' ) start [2025-03-04 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603830', 'tblTempVendorCDR_20' ) end [2025-03-04 06:01:17] Production.INFO: ProcessCDR(1,14603830,1,1,2) [2025-03-04 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603830', 'tblTempUsageDetail_20' ) start [2025-03-04 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603830', 'tblTempUsageDetail_20' ) end [2025-03-04 06:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:01:20] Production.INFO: ==9619== Releasing lock... [2025-03-04 06:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:01:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 06:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:02:06 [end_date_ymd] => 2025-03-04 06:02:06 [RateCDR] => 1 ) [2025-03-04 06: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-04 03:02:06' and `end` < '2025-03-04 06: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-04 06:02:18] Production.INFO: count ==111 [2025-03-04 06:02:18] Production.ERROR: pbx CDR StartTime 2025-03-04 03:02:06 - End Time 2025-03-04 06:02:06 [2025-03-04 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603835', 'tblTempUsageDetail_20' ) start [2025-03-04 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603835', 'tblTempUsageDetail_20' ) end [2025-03-04 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603835', 'tblTempVendorCDR_20' ) start [2025-03-04 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603835', 'tblTempVendorCDR_20' ) end [2025-03-04 06:02:18] Production.INFO: ProcessCDR(1,14603835,1,1,2) [2025-03-04 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603835', 'tblTempUsageDetail_20' ) start [2025-03-04 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603835', 'tblTempUsageDetail_20' ) end [2025-03-04 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:02:21] Production.INFO: ==9690== Releasing lock... [2025-03-04 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:02:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:03:05 [end_date_ymd] => 2025-03-04 06:03:05 [RateCDR] => 1 ) [2025-03-04 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-04 03:03:05' and `end` < '2025-03-04 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-04 06:03:17] Production.INFO: count ==111 [2025-03-04 06:03:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:03:05 - End Time 2025-03-04 06:03:05 [2025-03-04 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603840', 'tblTempUsageDetail_20' ) start [2025-03-04 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603840', 'tblTempUsageDetail_20' ) end [2025-03-04 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603840', 'tblTempVendorCDR_20' ) start [2025-03-04 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603840', 'tblTempVendorCDR_20' ) end [2025-03-04 06:03:17] Production.INFO: ProcessCDR(1,14603840,1,1,2) [2025-03-04 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603840', 'tblTempUsageDetail_20' ) start [2025-03-04 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603840', 'tblTempUsageDetail_20' ) end [2025-03-04 06:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:03:20] Production.INFO: ==9761== Releasing lock... [2025-03-04 06:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:03:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 06:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:04:06 [end_date_ymd] => 2025-03-04 06:04:06 [RateCDR] => 1 ) [2025-03-04 06: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 03:04:06' and `end` < '2025-03-04 06: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-04 06:04:17] Production.INFO: count ==111 [2025-03-04 06:04:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:04:06 - End Time 2025-03-04 06:04:06 [2025-03-04 06:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603845', 'tblTempUsageDetail_20' ) start [2025-03-04 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603845', 'tblTempUsageDetail_20' ) end [2025-03-04 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603845', 'tblTempVendorCDR_20' ) start [2025-03-04 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603845', 'tblTempVendorCDR_20' ) end [2025-03-04 06:04:18] Production.INFO: ProcessCDR(1,14603845,1,1,2) [2025-03-04 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603845', 'tblTempUsageDetail_20' ) start [2025-03-04 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603845', 'tblTempUsageDetail_20' ) end [2025-03-04 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:04:21] Production.INFO: ==9833== Releasing lock... [2025-03-04 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:04:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:05:05 [end_date_ymd] => 2025-03-04 06:05:05 [RateCDR] => 1 ) [2025-03-04 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-04 03:05:05' and `end` < '2025-03-04 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-04 06:05:17] Production.INFO: count ==111 [2025-03-04 06:05:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:05:05 - End Time 2025-03-04 06:05:05 [2025-03-04 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603850', 'tblTempUsageDetail_20' ) start [2025-03-04 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603850', 'tblTempUsageDetail_20' ) end [2025-03-04 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603850', 'tblTempVendorCDR_20' ) start [2025-03-04 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603850', 'tblTempVendorCDR_20' ) end [2025-03-04 06:05:17] Production.INFO: ProcessCDR(1,14603850,1,1,2) [2025-03-04 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603850', 'tblTempUsageDetail_20' ) start [2025-03-04 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603850', 'tblTempUsageDetail_20' ) end [2025-03-04 06:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:05:20] Production.INFO: ==9904== Releasing lock... [2025-03-04 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:05:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:06:05 [end_date_ymd] => 2025-03-04 06:06:05 [RateCDR] => 1 ) [2025-03-04 06:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 03:06:05' and `end` < '2025-03-04 06:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 06:06:17] Production.INFO: count ==115 [2025-03-04 06:06:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:06:05 - End Time 2025-03-04 06:06:05 [2025-03-04 06:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603855', 'tblTempUsageDetail_20' ) start [2025-03-04 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603855', 'tblTempUsageDetail_20' ) end [2025-03-04 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603855', 'tblTempVendorCDR_20' ) start [2025-03-04 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603855', 'tblTempVendorCDR_20' ) end [2025-03-04 06:06:17] Production.INFO: ProcessCDR(1,14603855,1,1,2) [2025-03-04 06:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603855', 'tblTempUsageDetail_20' ) start [2025-03-04 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603855', 'tblTempUsageDetail_20' ) end [2025-03-04 06:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:06:20] Production.INFO: ==9979== Releasing lock... [2025-03-04 06:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:06:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:07:05 [end_date_ymd] => 2025-03-04 06:07:05 [RateCDR] => 1 ) [2025-03-04 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-04 03:07:05' and `end` < '2025-03-04 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-04 06:07:17] Production.INFO: count ==115 [2025-03-04 06:07:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:07:05 - End Time 2025-03-04 06:07:05 [2025-03-04 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603860', 'tblTempUsageDetail_20' ) start [2025-03-04 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603860', 'tblTempUsageDetail_20' ) end [2025-03-04 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603860', 'tblTempVendorCDR_20' ) start [2025-03-04 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603860', 'tblTempVendorCDR_20' ) end [2025-03-04 06:07:17] Production.INFO: ProcessCDR(1,14603860,1,1,2) [2025-03-04 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603860', 'tblTempUsageDetail_20' ) start [2025-03-04 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603860', 'tblTempUsageDetail_20' ) end [2025-03-04 06:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:07:20] Production.INFO: ==10048== Releasing lock... [2025-03-04 06:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:07:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:08:05 [end_date_ymd] => 2025-03-04 06:08:05 [RateCDR] => 1 ) [2025-03-04 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-04 03:08:05' and `end` < '2025-03-04 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-04 06:08:17] Production.INFO: count ==115 [2025-03-04 06:08:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:08:05 - End Time 2025-03-04 06:08:05 [2025-03-04 06:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603865', 'tblTempUsageDetail_20' ) start [2025-03-04 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603865', 'tblTempUsageDetail_20' ) end [2025-03-04 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603865', 'tblTempVendorCDR_20' ) start [2025-03-04 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603865', 'tblTempVendorCDR_20' ) end [2025-03-04 06:08:17] Production.INFO: ProcessCDR(1,14603865,1,1,2) [2025-03-04 06:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603865', 'tblTempUsageDetail_20' ) start [2025-03-04 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603865', 'tblTempUsageDetail_20' ) end [2025-03-04 06:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:08:20] Production.INFO: ==10123== Releasing lock... [2025-03-04 06:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:08:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:09:05 [end_date_ymd] => 2025-03-04 06:09:05 [RateCDR] => 1 ) [2025-03-04 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-04 03:09:05' and `end` < '2025-03-04 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-04 06:09:17] Production.INFO: count ==115 [2025-03-04 06:09:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:09:05 - End Time 2025-03-04 06:09:05 [2025-03-04 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603870', 'tblTempUsageDetail_20' ) start [2025-03-04 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603870', 'tblTempUsageDetail_20' ) end [2025-03-04 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603870', 'tblTempVendorCDR_20' ) start [2025-03-04 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603870', 'tblTempVendorCDR_20' ) end [2025-03-04 06:09:17] Production.INFO: ProcessCDR(1,14603870,1,1,2) [2025-03-04 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603870', 'tblTempUsageDetail_20' ) start [2025-03-04 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603870', 'tblTempUsageDetail_20' ) end [2025-03-04 06:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:09:20] Production.INFO: ==10192== Releasing lock... [2025-03-04 06:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:09:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:10:06 [end_date_ymd] => 2025-03-04 06:10:06 [RateCDR] => 1 ) [2025-03-04 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-04 03:10:06' and `end` < '2025-03-04 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-04 06:10:18] Production.INFO: count ==119 [2025-03-04 06:10:18] Production.ERROR: pbx CDR StartTime 2025-03-04 03:10:06 - End Time 2025-03-04 06:10:06 [2025-03-04 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603876', 'tblTempUsageDetail_20' ) start [2025-03-04 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603876', 'tblTempUsageDetail_20' ) end [2025-03-04 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603876', 'tblTempVendorCDR_20' ) start [2025-03-04 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603876', 'tblTempVendorCDR_20' ) end [2025-03-04 06:10:18] Production.INFO: ProcessCDR(1,14603876,1,1,2) [2025-03-04 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603876', 'tblTempUsageDetail_20' ) start [2025-03-04 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603876', 'tblTempUsageDetail_20' ) end [2025-03-04 06:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:10:21] Production.INFO: ==10264== Releasing lock... [2025-03-04 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:10:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 06:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:11:04 [end_date_ymd] => 2025-03-04 06:11:04 [RateCDR] => 1 ) [2025-03-04 06: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-04 03:11:04' and `end` < '2025-03-04 06: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-04 06:11:16] Production.INFO: count ==123 [2025-03-04 06:11:16] Production.ERROR: pbx CDR StartTime 2025-03-04 03:11:04 - End Time 2025-03-04 06:11:04 [2025-03-04 06:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603881', 'tblTempUsageDetail_20' ) start [2025-03-04 06:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603881', 'tblTempUsageDetail_20' ) end [2025-03-04 06:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603881', 'tblTempVendorCDR_20' ) start [2025-03-04 06:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603881', 'tblTempVendorCDR_20' ) end [2025-03-04 06:11:16] Production.INFO: ProcessCDR(1,14603881,1,1,2) [2025-03-04 06:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:11:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:11:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:11:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:11:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603881', 'tblTempUsageDetail_20' ) start [2025-03-04 06:11:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603881', 'tblTempUsageDetail_20' ) end [2025-03-04 06:11:19] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:11:19] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:11:19] Production.INFO: ==10338== Releasing lock... [2025-03-04 06:11:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:11:19] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 06:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:12:06 [end_date_ymd] => 2025-03-04 06:12:06 [RateCDR] => 1 ) [2025-03-04 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-04 03:12:06' and `end` < '2025-03-04 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-04 06:12:18] Production.INFO: count ==123 [2025-03-04 06:12:18] Production.ERROR: pbx CDR StartTime 2025-03-04 03:12:06 - End Time 2025-03-04 06:12:06 [2025-03-04 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603886', 'tblTempUsageDetail_20' ) start [2025-03-04 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603886', 'tblTempUsageDetail_20' ) end [2025-03-04 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603886', 'tblTempVendorCDR_20' ) start [2025-03-04 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603886', 'tblTempVendorCDR_20' ) end [2025-03-04 06:12:18] Production.INFO: ProcessCDR(1,14603886,1,1,2) [2025-03-04 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603886', 'tblTempUsageDetail_20' ) start [2025-03-04 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603886', 'tblTempUsageDetail_20' ) end [2025-03-04 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:12:21] Production.INFO: ==10409== Releasing lock... [2025-03-04 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:12:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:13:05 [end_date_ymd] => 2025-03-04 06:13:05 [RateCDR] => 1 ) [2025-03-04 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-04 03:13:05' and `end` < '2025-03-04 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-04 06:13:17] Production.INFO: count ==123 [2025-03-04 06:13:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:13:05 - End Time 2025-03-04 06:13:05 [2025-03-04 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603891', 'tblTempUsageDetail_20' ) start [2025-03-04 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603891', 'tblTempUsageDetail_20' ) end [2025-03-04 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603891', 'tblTempVendorCDR_20' ) start [2025-03-04 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603891', 'tblTempVendorCDR_20' ) end [2025-03-04 06:13:17] Production.INFO: ProcessCDR(1,14603891,1,1,2) [2025-03-04 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603891', 'tblTempUsageDetail_20' ) start [2025-03-04 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603891', 'tblTempUsageDetail_20' ) end [2025-03-04 06:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:13:20] Production.INFO: ==10479== Releasing lock... [2025-03-04 06:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:13:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 06:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:14:05 [end_date_ymd] => 2025-03-04 06:14:05 [RateCDR] => 1 ) [2025-03-04 06: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 03:14:05' and `end` < '2025-03-04 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-04 06:14:18] Production.INFO: count ==123 [2025-03-04 06:14:18] Production.ERROR: pbx CDR StartTime 2025-03-04 03:14:05 - End Time 2025-03-04 06:14:05 [2025-03-04 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603896', 'tblTempUsageDetail_20' ) start [2025-03-04 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603896', 'tblTempUsageDetail_20' ) end [2025-03-04 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603896', 'tblTempVendorCDR_20' ) start [2025-03-04 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603896', 'tblTempVendorCDR_20' ) end [2025-03-04 06:14:18] Production.INFO: ProcessCDR(1,14603896,1,1,2) [2025-03-04 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603896', 'tblTempUsageDetail_20' ) start [2025-03-04 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603896', 'tblTempUsageDetail_20' ) end [2025-03-04 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:14:21] Production.INFO: ==10592== Releasing lock... [2025-03-04 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:14:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 06:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:15:04 [end_date_ymd] => 2025-03-04 06:15:04 [RateCDR] => 1 ) [2025-03-04 06: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-04 03:15:04' and `end` < '2025-03-04 06: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-04 06:15:16] Production.INFO: count ==123 [2025-03-04 06:15:16] Production.ERROR: pbx CDR StartTime 2025-03-04 03:15:04 - End Time 2025-03-04 06:15:04 [2025-03-04 06:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603901', 'tblTempUsageDetail_20' ) start [2025-03-04 06:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603901', 'tblTempUsageDetail_20' ) end [2025-03-04 06:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603901', 'tblTempVendorCDR_20' ) start [2025-03-04 06:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603901', 'tblTempVendorCDR_20' ) end [2025-03-04 06:15:16] Production.INFO: ProcessCDR(1,14603901,1,1,2) [2025-03-04 06:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:15:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:15:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603901', 'tblTempUsageDetail_20' ) start [2025-03-04 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603901', 'tblTempUsageDetail_20' ) end [2025-03-04 06:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:15:20] Production.INFO: ==10662== Releasing lock... [2025-03-04 06:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:15:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:16:05 [end_date_ymd] => 2025-03-04 06:16:05 [RateCDR] => 1 ) [2025-03-04 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-04 03:16:05' and `end` < '2025-03-04 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-04 06:16:17] Production.INFO: count ==123 [2025-03-04 06:16:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:16:05 - End Time 2025-03-04 06:16:05 [2025-03-04 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603906', 'tblTempUsageDetail_20' ) start [2025-03-04 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603906', 'tblTempUsageDetail_20' ) end [2025-03-04 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603906', 'tblTempVendorCDR_20' ) start [2025-03-04 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603906', 'tblTempVendorCDR_20' ) end [2025-03-04 06:16:17] Production.INFO: ProcessCDR(1,14603906,1,1,2) [2025-03-04 06:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603906', 'tblTempUsageDetail_20' ) start [2025-03-04 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603906', 'tblTempUsageDetail_20' ) end [2025-03-04 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:16:21] Production.INFO: ==10732== Releasing lock... [2025-03-04 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:16:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:17:05 [end_date_ymd] => 2025-03-04 06:17:05 [RateCDR] => 1 ) [2025-03-04 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 03:17:05' and `end` < '2025-03-04 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 06:17:17] Production.INFO: count ==132 [2025-03-04 06:17:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:17:05 - End Time 2025-03-04 06:17:05 [2025-03-04 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603911', 'tblTempUsageDetail_20' ) start [2025-03-04 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603911', 'tblTempUsageDetail_20' ) end [2025-03-04 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603911', 'tblTempVendorCDR_20' ) start [2025-03-04 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603911', 'tblTempVendorCDR_20' ) end [2025-03-04 06:17:17] Production.INFO: ProcessCDR(1,14603911,1,1,2) [2025-03-04 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603911', 'tblTempUsageDetail_20' ) start [2025-03-04 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603911', 'tblTempUsageDetail_20' ) end [2025-03-04 06:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:17:20] Production.INFO: ==10803== Releasing lock... [2025-03-04 06:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:17:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-04 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:18:05 [end_date_ymd] => 2025-03-04 06:18:05 [RateCDR] => 1 ) [2025-03-04 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-04 03:18:05' and `end` < '2025-03-04 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-04 06:18:17] Production.INFO: count ==135 [2025-03-04 06:18:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:18:05 - End Time 2025-03-04 06:18:05 [2025-03-04 06:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603916', 'tblTempUsageDetail_20' ) start [2025-03-04 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603916', 'tblTempUsageDetail_20' ) end [2025-03-04 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603916', 'tblTempVendorCDR_20' ) start [2025-03-04 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603916', 'tblTempVendorCDR_20' ) end [2025-03-04 06:18:17] Production.INFO: ProcessCDR(1,14603916,1,1,2) [2025-03-04 06:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603916', 'tblTempUsageDetail_20' ) start [2025-03-04 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603916', 'tblTempUsageDetail_20' ) end [2025-03-04 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:18:21] Production.INFO: ==10874== Releasing lock... [2025-03-04 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:18:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 06:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:19:06 [end_date_ymd] => 2025-03-04 06:19:06 [RateCDR] => 1 ) [2025-03-04 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-04 03:19:06' and `end` < '2025-03-04 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-04 06:19:18] Production.INFO: count ==135 [2025-03-04 06:19:18] Production.ERROR: pbx CDR StartTime 2025-03-04 03:19:06 - End Time 2025-03-04 06:19:06 [2025-03-04 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603921', 'tblTempUsageDetail_20' ) start [2025-03-04 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603921', 'tblTempUsageDetail_20' ) end [2025-03-04 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603921', 'tblTempVendorCDR_20' ) start [2025-03-04 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603921', 'tblTempVendorCDR_20' ) end [2025-03-04 06:19:18] Production.INFO: ProcessCDR(1,14603921,1,1,2) [2025-03-04 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603921', 'tblTempUsageDetail_20' ) start [2025-03-04 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603921', 'tblTempUsageDetail_20' ) end [2025-03-04 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:19:21] Production.INFO: ==10947== Releasing lock... [2025-03-04 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:19:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:20:06 [end_date_ymd] => 2025-03-04 06:20:06 [RateCDR] => 1 ) [2025-03-04 06:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 03:20:06' and `end` < '2025-03-04 06:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 06:20:18] Production.INFO: count ==144 [2025-03-04 06:20:18] Production.ERROR: pbx CDR StartTime 2025-03-04 03:20:06 - End Time 2025-03-04 06:20:06 [2025-03-04 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603927', 'tblTempUsageDetail_20' ) start [2025-03-04 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603927', 'tblTempUsageDetail_20' ) end [2025-03-04 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603927', 'tblTempVendorCDR_20' ) start [2025-03-04 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603927', 'tblTempVendorCDR_20' ) end [2025-03-04 06:20:18] Production.INFO: ProcessCDR(1,14603927,1,1,2) [2025-03-04 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603927', 'tblTempUsageDetail_20' ) start [2025-03-04 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603927', 'tblTempUsageDetail_20' ) end [2025-03-04 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:20:21] Production.INFO: ==11018== Releasing lock... [2025-03-04 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:20:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:21:05 [end_date_ymd] => 2025-03-04 06:21:05 [RateCDR] => 1 ) [2025-03-04 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-04 03:21:05' and `end` < '2025-03-04 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-04 06:21:17] Production.INFO: count ==151 [2025-03-04 06:21:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:21:05 - End Time 2025-03-04 06:21:05 [2025-03-04 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603932', 'tblTempUsageDetail_20' ) start [2025-03-04 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603932', 'tblTempUsageDetail_20' ) end [2025-03-04 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603932', 'tblTempVendorCDR_20' ) start [2025-03-04 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603932', 'tblTempVendorCDR_20' ) end [2025-03-04 06:21:17] Production.INFO: ProcessCDR(1,14603932,1,1,2) [2025-03-04 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603932', 'tblTempUsageDetail_20' ) start [2025-03-04 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603932', 'tblTempUsageDetail_20' ) end [2025-03-04 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:21:21] Production.INFO: ==11092== Releasing lock... [2025-03-04 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:21:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:22:05 [end_date_ymd] => 2025-03-04 06:22:05 [RateCDR] => 1 ) [2025-03-04 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-04 03:22:05' and `end` < '2025-03-04 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-04 06:22:17] Production.INFO: count ==152 [2025-03-04 06:22:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:22:05 - End Time 2025-03-04 06:22:05 [2025-03-04 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603937', 'tblTempUsageDetail_20' ) start [2025-03-04 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603937', 'tblTempUsageDetail_20' ) end [2025-03-04 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603937', 'tblTempVendorCDR_20' ) start [2025-03-04 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603937', 'tblTempVendorCDR_20' ) end [2025-03-04 06:22:17] Production.INFO: ProcessCDR(1,14603937,1,1,2) [2025-03-04 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603937', 'tblTempUsageDetail_20' ) start [2025-03-04 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603937', 'tblTempUsageDetail_20' ) end [2025-03-04 06:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:22:22] Production.INFO: ==11168== Releasing lock... [2025-03-04 06:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:22:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 06:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:23:06 [end_date_ymd] => 2025-03-04 06:23:06 [RateCDR] => 1 ) [2025-03-04 06: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-04 03:23:06' and `end` < '2025-03-04 06: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-04 06:23:18] Production.INFO: count ==152 [2025-03-04 06:23:18] Production.ERROR: pbx CDR StartTime 2025-03-04 03:23:06 - End Time 2025-03-04 06:23:06 [2025-03-04 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603942', 'tblTempUsageDetail_20' ) start [2025-03-04 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603942', 'tblTempUsageDetail_20' ) end [2025-03-04 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603942', 'tblTempVendorCDR_20' ) start [2025-03-04 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603942', 'tblTempVendorCDR_20' ) end [2025-03-04 06:23:18] Production.INFO: ProcessCDR(1,14603942,1,1,2) [2025-03-04 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603942', 'tblTempUsageDetail_20' ) start [2025-03-04 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603942', 'tblTempUsageDetail_20' ) end [2025-03-04 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:23:21] Production.INFO: ==11241== Releasing lock... [2025-03-04 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:23:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:24:05 [end_date_ymd] => 2025-03-04 06:24:05 [RateCDR] => 1 ) [2025-03-04 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-04 03:24:05' and `end` < '2025-03-04 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-04 06:24:17] Production.INFO: count ==152 [2025-03-04 06:24:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:24:05 - End Time 2025-03-04 06:24:05 [2025-03-04 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603947', 'tblTempUsageDetail_20' ) start [2025-03-04 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603947', 'tblTempUsageDetail_20' ) end [2025-03-04 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603947', 'tblTempVendorCDR_20' ) start [2025-03-04 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603947', 'tblTempVendorCDR_20' ) end [2025-03-04 06:24:17] Production.INFO: ProcessCDR(1,14603947,1,1,2) [2025-03-04 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603947', 'tblTempUsageDetail_20' ) start [2025-03-04 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603947', 'tblTempUsageDetail_20' ) end [2025-03-04 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:24:21] Production.INFO: ==11310== Releasing lock... [2025-03-04 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:24:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 06:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:25:06 [end_date_ymd] => 2025-03-04 06:25:06 [RateCDR] => 1 ) [2025-03-04 06: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-04 03:25:06' and `end` < '2025-03-04 06: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-04 06:25:18] Production.INFO: count ==152 [2025-03-04 06:25:18] Production.ERROR: pbx CDR StartTime 2025-03-04 03:25:06 - End Time 2025-03-04 06:25:06 [2025-03-04 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603952', 'tblTempUsageDetail_20' ) start [2025-03-04 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603952', 'tblTempUsageDetail_20' ) end [2025-03-04 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603952', 'tblTempVendorCDR_20' ) start [2025-03-04 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603952', 'tblTempVendorCDR_20' ) end [2025-03-04 06:25:18] Production.INFO: ProcessCDR(1,14603952,1,1,2) [2025-03-04 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603952', 'tblTempUsageDetail_20' ) start [2025-03-04 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603952', 'tblTempUsageDetail_20' ) end [2025-03-04 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:25:21] Production.INFO: ==11385== Releasing lock... [2025-03-04 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:25:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:26:05 [end_date_ymd] => 2025-03-04 06:26:05 [RateCDR] => 1 ) [2025-03-04 06: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 03:26:05' and `end` < '2025-03-04 06: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-04 06:26:17] Production.INFO: count ==152 [2025-03-04 06:26:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:26:05 - End Time 2025-03-04 06:26:05 [2025-03-04 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603957', 'tblTempUsageDetail_20' ) start [2025-03-04 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603957', 'tblTempUsageDetail_20' ) end [2025-03-04 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603957', 'tblTempVendorCDR_20' ) start [2025-03-04 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603957', 'tblTempVendorCDR_20' ) end [2025-03-04 06:26:17] Production.INFO: ProcessCDR(1,14603957,1,1,2) [2025-03-04 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603957', 'tblTempUsageDetail_20' ) start [2025-03-04 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603957', 'tblTempUsageDetail_20' ) end [2025-03-04 06:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:26:20] Production.INFO: ==11456== Releasing lock... [2025-03-04 06:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:26:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 06:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:27:06 [end_date_ymd] => 2025-03-04 06:27:06 [RateCDR] => 1 ) [2025-03-04 06: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 03:27:06' and `end` < '2025-03-04 06: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-04 06:27:18] Production.INFO: count ==152 [2025-03-04 06:27:18] Production.ERROR: pbx CDR StartTime 2025-03-04 03:27:06 - End Time 2025-03-04 06:27:06 [2025-03-04 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603962', 'tblTempUsageDetail_20' ) start [2025-03-04 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603962', 'tblTempUsageDetail_20' ) end [2025-03-04 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603962', 'tblTempVendorCDR_20' ) start [2025-03-04 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603962', 'tblTempVendorCDR_20' ) end [2025-03-04 06:27:18] Production.INFO: ProcessCDR(1,14603962,1,1,2) [2025-03-04 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603962', 'tblTempUsageDetail_20' ) start [2025-03-04 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603962', 'tblTempUsageDetail_20' ) end [2025-03-04 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:27:21] Production.INFO: ==11528== Releasing lock... [2025-03-04 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:27:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:28:05 [end_date_ymd] => 2025-03-04 06:28:05 [RateCDR] => 1 ) [2025-03-04 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-04 03:28:05' and `end` < '2025-03-04 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-04 06:28:17] Production.INFO: count ==152 [2025-03-04 06:28:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:28:05 - End Time 2025-03-04 06:28:05 [2025-03-04 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603967', 'tblTempUsageDetail_20' ) start [2025-03-04 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603967', 'tblTempUsageDetail_20' ) end [2025-03-04 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603967', 'tblTempVendorCDR_20' ) start [2025-03-04 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603967', 'tblTempVendorCDR_20' ) end [2025-03-04 06:28:17] Production.INFO: ProcessCDR(1,14603967,1,1,2) [2025-03-04 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603967', 'tblTempUsageDetail_20' ) start [2025-03-04 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603967', 'tblTempUsageDetail_20' ) end [2025-03-04 06:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:28:20] Production.INFO: ==11609== Releasing lock... [2025-03-04 06:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:28:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:29:05 [end_date_ymd] => 2025-03-04 06:29:05 [RateCDR] => 1 ) [2025-03-04 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-04 03:29:05' and `end` < '2025-03-04 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-04 06:29:17] Production.INFO: count ==155 [2025-03-04 06:29:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:29:05 - End Time 2025-03-04 06:29:05 [2025-03-04 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603972', 'tblTempUsageDetail_20' ) start [2025-03-04 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603972', 'tblTempUsageDetail_20' ) end [2025-03-04 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603972', 'tblTempVendorCDR_20' ) start [2025-03-04 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603972', 'tblTempVendorCDR_20' ) end [2025-03-04 06:29:17] Production.INFO: ProcessCDR(1,14603972,1,1,2) [2025-03-04 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603972', 'tblTempUsageDetail_20' ) start [2025-03-04 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603972', 'tblTempUsageDetail_20' ) end [2025-03-04 06:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:29:20] Production.INFO: ==11691== Releasing lock... [2025-03-04 06:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:29:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:30:06 [end_date_ymd] => 2025-03-04 06:30:06 [RateCDR] => 1 ) [2025-03-04 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-04 03:30:06' and `end` < '2025-03-04 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-04 06:30:18] Production.INFO: count ==159 [2025-03-04 06:30:18] Production.ERROR: pbx CDR StartTime 2025-03-04 03:30:06 - End Time 2025-03-04 06:30:06 [2025-03-04 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603978', 'tblTempUsageDetail_20' ) start [2025-03-04 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603978', 'tblTempUsageDetail_20' ) end [2025-03-04 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603978', 'tblTempVendorCDR_20' ) start [2025-03-04 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603978', 'tblTempVendorCDR_20' ) end [2025-03-04 06:30:18] Production.INFO: ProcessCDR(1,14603978,1,1,2) [2025-03-04 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603978', 'tblTempUsageDetail_20' ) start [2025-03-04 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603978', 'tblTempUsageDetail_20' ) end [2025-03-04 06:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:30:21] Production.INFO: ==11815== Releasing lock... [2025-03-04 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:30:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:31:05 [end_date_ymd] => 2025-03-04 06:31:05 [RateCDR] => 1 ) [2025-03-04 06: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 03:31:05' and `end` < '2025-03-04 06: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-04 06:31:17] Production.INFO: count ==162 [2025-03-04 06:31:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:31:05 - End Time 2025-03-04 06:31:05 [2025-03-04 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603982', 'tblTempUsageDetail_20' ) start [2025-03-04 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603982', 'tblTempUsageDetail_20' ) end [2025-03-04 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603982', 'tblTempVendorCDR_20' ) start [2025-03-04 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603982', 'tblTempVendorCDR_20' ) end [2025-03-04 06:31:17] Production.INFO: ProcessCDR(1,14603982,1,1,2) [2025-03-04 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603982', 'tblTempUsageDetail_20' ) start [2025-03-04 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603982', 'tblTempUsageDetail_20' ) end [2025-03-04 06:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:31:20] Production.INFO: ==11898== Releasing lock... [2025-03-04 06:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:31:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:32:05 [end_date_ymd] => 2025-03-04 06:32:05 [RateCDR] => 1 ) [2025-03-04 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-04 03:32:05' and `end` < '2025-03-04 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-04 06:32:17] Production.INFO: count ==162 [2025-03-04 06:32:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:32:05 - End Time 2025-03-04 06:32:05 [2025-03-04 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603988', 'tblTempUsageDetail_20' ) start [2025-03-04 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603988', 'tblTempUsageDetail_20' ) end [2025-03-04 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603988', 'tblTempVendorCDR_20' ) start [2025-03-04 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603988', 'tblTempVendorCDR_20' ) end [2025-03-04 06:32:17] Production.INFO: ProcessCDR(1,14603988,1,1,2) [2025-03-04 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603988', 'tblTempUsageDetail_20' ) start [2025-03-04 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603988', 'tblTempUsageDetail_20' ) end [2025-03-04 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:32:21] Production.INFO: ==11976== Releasing lock... [2025-03-04 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:32:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 06:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:33:06 [end_date_ymd] => 2025-03-04 06:33:06 [RateCDR] => 1 ) [2025-03-04 06: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 03:33:06' and `end` < '2025-03-04 06: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-04 06:33:18] Production.INFO: count ==162 [2025-03-04 06:33:18] Production.ERROR: pbx CDR StartTime 2025-03-04 03:33:06 - End Time 2025-03-04 06:33:06 [2025-03-04 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603993', 'tblTempUsageDetail_20' ) start [2025-03-04 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603993', 'tblTempUsageDetail_20' ) end [2025-03-04 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603993', 'tblTempVendorCDR_20' ) start [2025-03-04 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603993', 'tblTempVendorCDR_20' ) end [2025-03-04 06:33:18] Production.INFO: ProcessCDR(1,14603993,1,1,2) [2025-03-04 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603993', 'tblTempUsageDetail_20' ) start [2025-03-04 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603993', 'tblTempUsageDetail_20' ) end [2025-03-04 06:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:33:22] Production.INFO: ==12054== Releasing lock... [2025-03-04 06:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:33:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 06:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:34:06 [end_date_ymd] => 2025-03-04 06:34:06 [RateCDR] => 1 ) [2025-03-04 06:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 03:34:06' and `end` < '2025-03-04 06:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 06:34:18] Production.INFO: count ==162 [2025-03-04 06:34:18] Production.ERROR: pbx CDR StartTime 2025-03-04 03:34:06 - End Time 2025-03-04 06:34:06 [2025-03-04 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603998', 'tblTempUsageDetail_20' ) start [2025-03-04 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14603998', 'tblTempUsageDetail_20' ) end [2025-03-04 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603998', 'tblTempVendorCDR_20' ) start [2025-03-04 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14603998', 'tblTempVendorCDR_20' ) end [2025-03-04 06:34:18] Production.INFO: ProcessCDR(1,14603998,1,1,2) [2025-03-04 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14603998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14603998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14603998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14603998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603998', 'tblTempUsageDetail_20' ) start [2025-03-04 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14603998', 'tblTempUsageDetail_20' ) end [2025-03-04 06:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:34:22] Production.INFO: ==12132== Releasing lock... [2025-03-04 06:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:34:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:35:05 [end_date_ymd] => 2025-03-04 06:35:05 [RateCDR] => 1 ) [2025-03-04 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-04 03:35:05' and `end` < '2025-03-04 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-04 06:35:17] Production.INFO: count ==162 [2025-03-04 06:35:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:35:05 - End Time 2025-03-04 06:35:05 [2025-03-04 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604003', 'tblTempUsageDetail_20' ) start [2025-03-04 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604003', 'tblTempUsageDetail_20' ) end [2025-03-04 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604003', 'tblTempVendorCDR_20' ) start [2025-03-04 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604003', 'tblTempVendorCDR_20' ) end [2025-03-04 06:35:17] Production.INFO: ProcessCDR(1,14604003,1,1,2) [2025-03-04 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604003', 'tblTempUsageDetail_20' ) start [2025-03-04 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604003', 'tblTempUsageDetail_20' ) end [2025-03-04 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:35:21] Production.INFO: ==12210== Releasing lock... [2025-03-04 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:35:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:36:05 [end_date_ymd] => 2025-03-04 06:36:05 [RateCDR] => 1 ) [2025-03-04 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-04 03:36:05' and `end` < '2025-03-04 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-04 06:36:17] Production.INFO: count ==162 [2025-03-04 06:36:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:36:05 - End Time 2025-03-04 06:36:05 [2025-03-04 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604008', 'tblTempUsageDetail_20' ) start [2025-03-04 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604008', 'tblTempUsageDetail_20' ) end [2025-03-04 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604008', 'tblTempVendorCDR_20' ) start [2025-03-04 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604008', 'tblTempVendorCDR_20' ) end [2025-03-04 06:36:17] Production.INFO: ProcessCDR(1,14604008,1,1,2) [2025-03-04 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604008', 'tblTempUsageDetail_20' ) start [2025-03-04 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604008', 'tblTempUsageDetail_20' ) end [2025-03-04 06:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:36:20] Production.INFO: ==12291== Releasing lock... [2025-03-04 06:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:36:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:37:05 [end_date_ymd] => 2025-03-04 06:37:05 [RateCDR] => 1 ) [2025-03-04 06: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 03:37:05' and `end` < '2025-03-04 06: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-04 06:37:17] Production.INFO: count ==162 [2025-03-04 06:37:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:37:05 - End Time 2025-03-04 06:37:05 [2025-03-04 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604013', 'tblTempUsageDetail_20' ) start [2025-03-04 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604013', 'tblTempUsageDetail_20' ) end [2025-03-04 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604013', 'tblTempVendorCDR_20' ) start [2025-03-04 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604013', 'tblTempVendorCDR_20' ) end [2025-03-04 06:37:17] Production.INFO: ProcessCDR(1,14604013,1,1,2) [2025-03-04 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604013', 'tblTempUsageDetail_20' ) start [2025-03-04 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604013', 'tblTempUsageDetail_20' ) end [2025-03-04 06:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:37:20] Production.INFO: ==12368== Releasing lock... [2025-03-04 06:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:37:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 06:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:38:06 [end_date_ymd] => 2025-03-04 06:38:06 [RateCDR] => 1 ) [2025-03-04 06: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 03:38:06' and `end` < '2025-03-04 06: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-04 06:38:18] Production.INFO: count ==162 [2025-03-04 06:38:18] Production.ERROR: pbx CDR StartTime 2025-03-04 03:38:06 - End Time 2025-03-04 06:38:06 [2025-03-04 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604018', 'tblTempUsageDetail_20' ) start [2025-03-04 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604018', 'tblTempUsageDetail_20' ) end [2025-03-04 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604018', 'tblTempVendorCDR_20' ) start [2025-03-04 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604018', 'tblTempVendorCDR_20' ) end [2025-03-04 06:38:18] Production.INFO: ProcessCDR(1,14604018,1,1,2) [2025-03-04 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604018', 'tblTempUsageDetail_20' ) start [2025-03-04 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604018', 'tblTempUsageDetail_20' ) end [2025-03-04 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:38:21] Production.INFO: ==12447== Releasing lock... [2025-03-04 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:38:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:39:05 [end_date_ymd] => 2025-03-04 06:39:05 [RateCDR] => 1 ) [2025-03-04 06: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 03:39:05' and `end` < '2025-03-04 06: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-04 06:39:17] Production.INFO: count ==162 [2025-03-04 06:39:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:39:05 - End Time 2025-03-04 06:39:05 [2025-03-04 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604023', 'tblTempUsageDetail_20' ) start [2025-03-04 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604023', 'tblTempUsageDetail_20' ) end [2025-03-04 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604023', 'tblTempVendorCDR_20' ) start [2025-03-04 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604023', 'tblTempVendorCDR_20' ) end [2025-03-04 06:39:17] Production.INFO: ProcessCDR(1,14604023,1,1,2) [2025-03-04 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604023', 'tblTempUsageDetail_20' ) start [2025-03-04 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604023', 'tblTempUsageDetail_20' ) end [2025-03-04 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:39:21] Production.INFO: ==12526== Releasing lock... [2025-03-04 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:39:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:40:06 [end_date_ymd] => 2025-03-04 06:40:06 [RateCDR] => 1 ) [2025-03-04 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-04 03:40:06' and `end` < '2025-03-04 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-04 06:40:18] Production.INFO: count ==164 [2025-03-04 06:40:18] Production.ERROR: pbx CDR StartTime 2025-03-04 03:40:06 - End Time 2025-03-04 06:40:06 [2025-03-04 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604027', 'tblTempUsageDetail_20' ) start [2025-03-04 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604027', 'tblTempUsageDetail_20' ) end [2025-03-04 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604027', 'tblTempVendorCDR_20' ) start [2025-03-04 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604027', 'tblTempVendorCDR_20' ) end [2025-03-04 06:40:18] Production.INFO: ProcessCDR(1,14604027,1,1,2) [2025-03-04 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604027', 'tblTempUsageDetail_20' ) start [2025-03-04 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604027', 'tblTempUsageDetail_20' ) end [2025-03-04 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:40:21] Production.INFO: ==12605== Releasing lock... [2025-03-04 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:40:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:41:05 [end_date_ymd] => 2025-03-04 06:41:05 [RateCDR] => 1 ) [2025-03-04 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-04 03:41:05' and `end` < '2025-03-04 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-04 06:41:17] Production.INFO: count ==164 [2025-03-04 06:41:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:41:05 - End Time 2025-03-04 06:41:05 [2025-03-04 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604034', 'tblTempUsageDetail_20' ) start [2025-03-04 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604034', 'tblTempUsageDetail_20' ) end [2025-03-04 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604034', 'tblTempVendorCDR_20' ) start [2025-03-04 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604034', 'tblTempVendorCDR_20' ) end [2025-03-04 06:41:17] Production.INFO: ProcessCDR(1,14604034,1,1,2) [2025-03-04 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604034', 'tblTempUsageDetail_20' ) start [2025-03-04 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604034', 'tblTempUsageDetail_20' ) end [2025-03-04 06:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:41:20] Production.INFO: ==12687== Releasing lock... [2025-03-04 06:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:41:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 06:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:42:06 [end_date_ymd] => 2025-03-04 06:42:06 [RateCDR] => 1 ) [2025-03-04 06: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 03:42:06' and `end` < '2025-03-04 06: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-04 06:42:17] Production.INFO: count ==164 [2025-03-04 06:42:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:42:06 - End Time 2025-03-04 06:42:06 [2025-03-04 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604039', 'tblTempUsageDetail_20' ) start [2025-03-04 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604039', 'tblTempUsageDetail_20' ) end [2025-03-04 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604039', 'tblTempVendorCDR_20' ) start [2025-03-04 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604039', 'tblTempVendorCDR_20' ) end [2025-03-04 06:42:17] Production.INFO: ProcessCDR(1,14604039,1,1,2) [2025-03-04 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604039', 'tblTempUsageDetail_20' ) start [2025-03-04 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604039', 'tblTempUsageDetail_20' ) end [2025-03-04 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:42:21] Production.INFO: ==12764== Releasing lock... [2025-03-04 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:42:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:43:05 [end_date_ymd] => 2025-03-04 06:43:05 [RateCDR] => 1 ) [2025-03-04 06: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 03:43:05' and `end` < '2025-03-04 06: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-04 06:43:17] Production.INFO: count ==164 [2025-03-04 06:43:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:43:05 - End Time 2025-03-04 06:43:05 [2025-03-04 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604044', 'tblTempUsageDetail_20' ) start [2025-03-04 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604044', 'tblTempUsageDetail_20' ) end [2025-03-04 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604044', 'tblTempVendorCDR_20' ) start [2025-03-04 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604044', 'tblTempVendorCDR_20' ) end [2025-03-04 06:43:17] Production.INFO: ProcessCDR(1,14604044,1,1,2) [2025-03-04 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604044', 'tblTempUsageDetail_20' ) start [2025-03-04 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604044', 'tblTempUsageDetail_20' ) end [2025-03-04 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:43:21] Production.INFO: ==12843== Releasing lock... [2025-03-04 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:43:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:44:05 [end_date_ymd] => 2025-03-04 06:44:05 [RateCDR] => 1 ) [2025-03-04 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-04 03:44:05' and `end` < '2025-03-04 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-04 06:44:17] Production.INFO: count ==164 [2025-03-04 06:44:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:44:05 - End Time 2025-03-04 06:44:05 [2025-03-04 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604049', 'tblTempUsageDetail_20' ) start [2025-03-04 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604049', 'tblTempUsageDetail_20' ) end [2025-03-04 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604049', 'tblTempVendorCDR_20' ) start [2025-03-04 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604049', 'tblTempVendorCDR_20' ) end [2025-03-04 06:44:17] Production.INFO: ProcessCDR(1,14604049,1,1,2) [2025-03-04 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604049', 'tblTempUsageDetail_20' ) start [2025-03-04 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604049', 'tblTempUsageDetail_20' ) end [2025-03-04 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:44:21] Production.INFO: ==12925== Releasing lock... [2025-03-04 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:44:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:45:05 [end_date_ymd] => 2025-03-04 06:45:05 [RateCDR] => 1 ) [2025-03-04 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-04 03:45:05' and `end` < '2025-03-04 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-04 06:45:17] Production.INFO: count ==164 [2025-03-04 06:45:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:45:05 - End Time 2025-03-04 06:45:05 [2025-03-04 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604054', 'tblTempUsageDetail_20' ) start [2025-03-04 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604054', 'tblTempUsageDetail_20' ) end [2025-03-04 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604054', 'tblTempVendorCDR_20' ) start [2025-03-04 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604054', 'tblTempVendorCDR_20' ) end [2025-03-04 06:45:17] Production.INFO: ProcessCDR(1,14604054,1,1,2) [2025-03-04 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604054', 'tblTempUsageDetail_20' ) start [2025-03-04 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604054', 'tblTempUsageDetail_20' ) end [2025-03-04 06:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:45:20] Production.INFO: ==13044== Releasing lock... [2025-03-04 06:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:45:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:46:05 [end_date_ymd] => 2025-03-04 06:46:05 [RateCDR] => 1 ) [2025-03-04 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-04 03:46:05' and `end` < '2025-03-04 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-04 06:46:17] Production.INFO: count ==164 [2025-03-04 06:46:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:46:05 - End Time 2025-03-04 06:46:05 [2025-03-04 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604059', 'tblTempUsageDetail_20' ) start [2025-03-04 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604059', 'tblTempUsageDetail_20' ) end [2025-03-04 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604059', 'tblTempVendorCDR_20' ) start [2025-03-04 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604059', 'tblTempVendorCDR_20' ) end [2025-03-04 06:46:17] Production.INFO: ProcessCDR(1,14604059,1,1,2) [2025-03-04 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604059', 'tblTempUsageDetail_20' ) start [2025-03-04 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604059', 'tblTempUsageDetail_20' ) end [2025-03-04 06:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:46:20] Production.INFO: ==13121== Releasing lock... [2025-03-04 06:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:46:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:47:05 [end_date_ymd] => 2025-03-04 06:47:05 [RateCDR] => 1 ) [2025-03-04 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-04 03:47:05' and `end` < '2025-03-04 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-04 06:47:17] Production.INFO: count ==164 [2025-03-04 06:47:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:47:05 - End Time 2025-03-04 06:47:05 [2025-03-04 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604064', 'tblTempUsageDetail_20' ) start [2025-03-04 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604064', 'tblTempUsageDetail_20' ) end [2025-03-04 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604064', 'tblTempVendorCDR_20' ) start [2025-03-04 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604064', 'tblTempVendorCDR_20' ) end [2025-03-04 06:47:17] Production.INFO: ProcessCDR(1,14604064,1,1,2) [2025-03-04 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604064', 'tblTempUsageDetail_20' ) start [2025-03-04 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604064', 'tblTempUsageDetail_20' ) end [2025-03-04 06:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:47:20] Production.INFO: ==13200== Releasing lock... [2025-03-04 06:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:47:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:48:05 [end_date_ymd] => 2025-03-04 06:48:05 [RateCDR] => 1 ) [2025-03-04 06: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 03:48:05' and `end` < '2025-03-04 06: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-04 06:48:17] Production.INFO: count ==164 [2025-03-04 06:48:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:48:05 - End Time 2025-03-04 06:48:05 [2025-03-04 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604069', 'tblTempUsageDetail_20' ) start [2025-03-04 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604069', 'tblTempUsageDetail_20' ) end [2025-03-04 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604069', 'tblTempVendorCDR_20' ) start [2025-03-04 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604069', 'tblTempVendorCDR_20' ) end [2025-03-04 06:48:17] Production.INFO: ProcessCDR(1,14604069,1,1,2) [2025-03-04 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604069', 'tblTempUsageDetail_20' ) start [2025-03-04 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604069', 'tblTempUsageDetail_20' ) end [2025-03-04 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:48:21] Production.INFO: ==13279== Releasing lock... [2025-03-04 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:48:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:49:05 [end_date_ymd] => 2025-03-04 06:49:05 [RateCDR] => 1 ) [2025-03-04 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-04 03:49:05' and `end` < '2025-03-04 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-04 06:49:17] Production.INFO: count ==164 [2025-03-04 06:49:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:49:05 - End Time 2025-03-04 06:49:05 [2025-03-04 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604074', 'tblTempUsageDetail_20' ) start [2025-03-04 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604074', 'tblTempUsageDetail_20' ) end [2025-03-04 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604074', 'tblTempVendorCDR_20' ) start [2025-03-04 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604074', 'tblTempVendorCDR_20' ) end [2025-03-04 06:49:17] Production.INFO: ProcessCDR(1,14604074,1,1,2) [2025-03-04 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604074', 'tblTempUsageDetail_20' ) start [2025-03-04 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604074', 'tblTempUsageDetail_20' ) end [2025-03-04 06:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:49:20] Production.INFO: ==13360== Releasing lock... [2025-03-04 06:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:49:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:50:06 [end_date_ymd] => 2025-03-04 06:50:06 [RateCDR] => 1 ) [2025-03-04 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-04 03:50:06' and `end` < '2025-03-04 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-04 06:50:18] Production.INFO: count ==164 [2025-03-04 06:50:18] Production.ERROR: pbx CDR StartTime 2025-03-04 03:50:06 - End Time 2025-03-04 06:50:06 [2025-03-04 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604080', 'tblTempUsageDetail_20' ) start [2025-03-04 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604080', 'tblTempUsageDetail_20' ) end [2025-03-04 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604080', 'tblTempVendorCDR_20' ) start [2025-03-04 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604080', 'tblTempVendorCDR_20' ) end [2025-03-04 06:50:18] Production.INFO: ProcessCDR(1,14604080,1,1,2) [2025-03-04 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604080', 'tblTempUsageDetail_20' ) start [2025-03-04 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604080', 'tblTempUsageDetail_20' ) end [2025-03-04 06:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:50:21] Production.INFO: ==13446== Releasing lock... [2025-03-04 06:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:50:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 06:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:51:06 [end_date_ymd] => 2025-03-04 06:51:06 [RateCDR] => 1 ) [2025-03-04 06: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-04 03:51:06' and `end` < '2025-03-04 06: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-04 06:51:18] Production.INFO: count ==164 [2025-03-04 06:51:18] Production.ERROR: pbx CDR StartTime 2025-03-04 03:51:06 - End Time 2025-03-04 06:51:06 [2025-03-04 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604085', 'tblTempUsageDetail_20' ) start [2025-03-04 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604085', 'tblTempUsageDetail_20' ) end [2025-03-04 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604085', 'tblTempVendorCDR_20' ) start [2025-03-04 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604085', 'tblTempVendorCDR_20' ) end [2025-03-04 06:51:18] Production.INFO: ProcessCDR(1,14604085,1,1,2) [2025-03-04 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604085', 'tblTempUsageDetail_20' ) start [2025-03-04 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604085', 'tblTempUsageDetail_20' ) end [2025-03-04 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:51:21] Production.INFO: ==13531== Releasing lock... [2025-03-04 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:51:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:52:05 [end_date_ymd] => 2025-03-04 06:52:05 [RateCDR] => 1 ) [2025-03-04 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-04 03:52:05' and `end` < '2025-03-04 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-04 06:52:17] Production.INFO: count ==164 [2025-03-04 06:52:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:52:05 - End Time 2025-03-04 06:52:05 [2025-03-04 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604090', 'tblTempUsageDetail_20' ) start [2025-03-04 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604090', 'tblTempUsageDetail_20' ) end [2025-03-04 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604090', 'tblTempVendorCDR_20' ) start [2025-03-04 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604090', 'tblTempVendorCDR_20' ) end [2025-03-04 06:52:17] Production.INFO: ProcessCDR(1,14604090,1,1,2) [2025-03-04 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604090', 'tblTempUsageDetail_20' ) start [2025-03-04 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604090', 'tblTempUsageDetail_20' ) end [2025-03-04 06:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:52:20] Production.INFO: ==13613== Releasing lock... [2025-03-04 06:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:52:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 06:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:53:06 [end_date_ymd] => 2025-03-04 06:53:06 [RateCDR] => 1 ) [2025-03-04 06: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 03:53:06' and `end` < '2025-03-04 06: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-04 06:53:18] Production.INFO: count ==164 [2025-03-04 06:53:18] Production.ERROR: pbx CDR StartTime 2025-03-04 03:53:06 - End Time 2025-03-04 06:53:06 [2025-03-04 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604095', 'tblTempUsageDetail_20' ) start [2025-03-04 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604095', 'tblTempUsageDetail_20' ) end [2025-03-04 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604095', 'tblTempVendorCDR_20' ) start [2025-03-04 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604095', 'tblTempVendorCDR_20' ) end [2025-03-04 06:53:18] Production.INFO: ProcessCDR(1,14604095,1,1,2) [2025-03-04 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604095', 'tblTempUsageDetail_20' ) start [2025-03-04 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604095', 'tblTempUsageDetail_20' ) end [2025-03-04 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:53:21] Production.INFO: ==13694== Releasing lock... [2025-03-04 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:53:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 06:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:54:06 [end_date_ymd] => 2025-03-04 06:54:06 [RateCDR] => 1 ) [2025-03-04 06: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 03:54:06' and `end` < '2025-03-04 06: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-04 06:54:18] Production.INFO: count ==164 [2025-03-04 06:54:18] Production.ERROR: pbx CDR StartTime 2025-03-04 03:54:06 - End Time 2025-03-04 06:54:06 [2025-03-04 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604100', 'tblTempUsageDetail_20' ) start [2025-03-04 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604100', 'tblTempUsageDetail_20' ) end [2025-03-04 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604100', 'tblTempVendorCDR_20' ) start [2025-03-04 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604100', 'tblTempVendorCDR_20' ) end [2025-03-04 06:54:18] Production.INFO: ProcessCDR(1,14604100,1,1,2) [2025-03-04 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604100', 'tblTempUsageDetail_20' ) start [2025-03-04 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604100', 'tblTempUsageDetail_20' ) end [2025-03-04 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:54:21] Production.INFO: ==13775== Releasing lock... [2025-03-04 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:54:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 06:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:55:06 [end_date_ymd] => 2025-03-04 06:55:06 [RateCDR] => 1 ) [2025-03-04 06: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 03:55:06' and `end` < '2025-03-04 06: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-04 06:55:18] Production.INFO: count ==161 [2025-03-04 06:55:18] Production.ERROR: pbx CDR StartTime 2025-03-04 03:55:06 - End Time 2025-03-04 06:55:06 [2025-03-04 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604105', 'tblTempUsageDetail_20' ) start [2025-03-04 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604105', 'tblTempUsageDetail_20' ) end [2025-03-04 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604105', 'tblTempVendorCDR_20' ) start [2025-03-04 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604105', 'tblTempVendorCDR_20' ) end [2025-03-04 06:55:18] Production.INFO: ProcessCDR(1,14604105,1,1,2) [2025-03-04 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604105', 'tblTempUsageDetail_20' ) start [2025-03-04 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604105', 'tblTempUsageDetail_20' ) end [2025-03-04 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:55:21] Production.INFO: ==13859== Releasing lock... [2025-03-04 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:55:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:56:05 [end_date_ymd] => 2025-03-04 06:56:05 [RateCDR] => 1 ) [2025-03-04 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-04 03:56:05' and `end` < '2025-03-04 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-04 06:56:17] Production.INFO: count ==161 [2025-03-04 06:56:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:56:05 - End Time 2025-03-04 06:56:05 [2025-03-04 06:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604110', 'tblTempUsageDetail_20' ) start [2025-03-04 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604110', 'tblTempUsageDetail_20' ) end [2025-03-04 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604110', 'tblTempVendorCDR_20' ) start [2025-03-04 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604110', 'tblTempVendorCDR_20' ) end [2025-03-04 06:56:17] Production.INFO: ProcessCDR(1,14604110,1,1,2) [2025-03-04 06:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604110', 'tblTempUsageDetail_20' ) start [2025-03-04 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604110', 'tblTempUsageDetail_20' ) end [2025-03-04 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:56:21] Production.INFO: ==13941== Releasing lock... [2025-03-04 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:56:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 06:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:57:06 [end_date_ymd] => 2025-03-04 06:57:06 [RateCDR] => 1 ) [2025-03-04 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-04 03:57:06' and `end` < '2025-03-04 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-04 06:57:18] Production.INFO: count ==161 [2025-03-04 06:57:18] Production.ERROR: pbx CDR StartTime 2025-03-04 03:57:06 - End Time 2025-03-04 06:57:06 [2025-03-04 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604115', 'tblTempUsageDetail_20' ) start [2025-03-04 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604115', 'tblTempUsageDetail_20' ) end [2025-03-04 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604115', 'tblTempVendorCDR_20' ) start [2025-03-04 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604115', 'tblTempVendorCDR_20' ) end [2025-03-04 06:57:18] Production.INFO: ProcessCDR(1,14604115,1,1,2) [2025-03-04 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604115', 'tblTempUsageDetail_20' ) start [2025-03-04 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604115', 'tblTempUsageDetail_20' ) end [2025-03-04 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:57:21] Production.INFO: ==14023== Releasing lock... [2025-03-04 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:57:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:58:05 [end_date_ymd] => 2025-03-04 06:58:05 [RateCDR] => 1 ) [2025-03-04 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-04 03:58:05' and `end` < '2025-03-04 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-04 06:58:17] Production.INFO: count ==161 [2025-03-04 06:58:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:58:05 - End Time 2025-03-04 06:58:05 [2025-03-04 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604120', 'tblTempUsageDetail_20' ) start [2025-03-04 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604120', 'tblTempUsageDetail_20' ) end [2025-03-04 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604120', 'tblTempVendorCDR_20' ) start [2025-03-04 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604120', 'tblTempVendorCDR_20' ) end [2025-03-04 06:58:17] Production.INFO: ProcessCDR(1,14604120,1,1,2) [2025-03-04 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604120', 'tblTempUsageDetail_20' ) start [2025-03-04 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604120', 'tblTempUsageDetail_20' ) end [2025-03-04 06:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:58:20] Production.INFO: ==14105== Releasing lock... [2025-03-04 06:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:58:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 03:59:05 [end_date_ymd] => 2025-03-04 06:59:05 [RateCDR] => 1 ) [2025-03-04 06:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 03:59:05' and `end` < '2025-03-04 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 06:59:17] Production.INFO: count ==164 [2025-03-04 06:59:17] Production.ERROR: pbx CDR StartTime 2025-03-04 03:59:05 - End Time 2025-03-04 06:59:05 [2025-03-04 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604125', 'tblTempUsageDetail_20' ) start [2025-03-04 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604125', 'tblTempUsageDetail_20' ) end [2025-03-04 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604125', 'tblTempVendorCDR_20' ) start [2025-03-04 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604125', 'tblTempVendorCDR_20' ) end [2025-03-04 06:59:17] Production.INFO: ProcessCDR(1,14604125,1,1,2) [2025-03-04 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604125', 'tblTempUsageDetail_20' ) start [2025-03-04 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604125', 'tblTempUsageDetail_20' ) end [2025-03-04 06:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 06:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 06:59:20] Production.INFO: ==14186== Releasing lock... [2025-03-04 06:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 06:59:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:00:05 [end_date_ymd] => 2025-03-04 07:00:05 [RateCDR] => 1 ) [2025-03-04 07:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 04:00:05' and `end` < '2025-03-04 07:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 07:00:17] Production.INFO: count ==162 [2025-03-04 07:00:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:00:05 - End Time 2025-03-04 07:00:05 [2025-03-04 07:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604130', 'tblTempUsageDetail_20' ) start [2025-03-04 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604130', 'tblTempUsageDetail_20' ) end [2025-03-04 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604130', 'tblTempVendorCDR_20' ) start [2025-03-04 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604130', 'tblTempVendorCDR_20' ) end [2025-03-04 07:00:17] Production.INFO: ProcessCDR(1,14604130,1,1,2) [2025-03-04 07:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604130', 'tblTempUsageDetail_20' ) start [2025-03-04 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604130', 'tblTempUsageDetail_20' ) end [2025-03-04 07:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:00:21] Production.INFO: ==14269== Releasing lock... [2025-03-04 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:00:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:01:05 [end_date_ymd] => 2025-03-04 07:01:05 [RateCDR] => 1 ) [2025-03-04 07:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 04:01:05' and `end` < '2025-03-04 07:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 07:01:17] Production.INFO: count ==157 [2025-03-04 07:01:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:01:05 - End Time 2025-03-04 07:01:05 [2025-03-04 07:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604136', 'tblTempUsageDetail_20' ) start [2025-03-04 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604136', 'tblTempUsageDetail_20' ) end [2025-03-04 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604136', 'tblTempVendorCDR_20' ) start [2025-03-04 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604136', 'tblTempVendorCDR_20' ) end [2025-03-04 07:01:17] Production.INFO: ProcessCDR(1,14604136,1,1,2) [2025-03-04 07:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604136', 'tblTempUsageDetail_20' ) start [2025-03-04 07:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604136', 'tblTempUsageDetail_20' ) end [2025-03-04 07:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:01:20] Production.INFO: ==14482== Releasing lock... [2025-03-04 07:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:01:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 07:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:02:06 [end_date_ymd] => 2025-03-04 07:02:06 [RateCDR] => 1 ) [2025-03-04 07: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-04 04:02:06' and `end` < '2025-03-04 07: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-04 07:02:18] Production.INFO: count ==157 [2025-03-04 07:02:18] Production.ERROR: pbx CDR StartTime 2025-03-04 04:02:06 - End Time 2025-03-04 07:02:06 [2025-03-04 07:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604141', 'tblTempUsageDetail_20' ) start [2025-03-04 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604141', 'tblTempUsageDetail_20' ) end [2025-03-04 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604141', 'tblTempVendorCDR_20' ) start [2025-03-04 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604141', 'tblTempVendorCDR_20' ) end [2025-03-04 07:02:18] Production.INFO: ProcessCDR(1,14604141,1,1,2) [2025-03-04 07:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604141', 'tblTempUsageDetail_20' ) start [2025-03-04 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604141', 'tblTempUsageDetail_20' ) end [2025-03-04 07:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:02:22] Production.INFO: ==14558== Releasing lock... [2025-03-04 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:02:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 07:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:03:06 [end_date_ymd] => 2025-03-04 07:03:06 [RateCDR] => 1 ) [2025-03-04 07:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 04:03:06' and `end` < '2025-03-04 07:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 07:03:18] Production.INFO: count ==157 [2025-03-04 07:03:18] Production.ERROR: pbx CDR StartTime 2025-03-04 04:03:06 - End Time 2025-03-04 07:03:06 [2025-03-04 07:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604146', 'tblTempUsageDetail_20' ) start [2025-03-04 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604146', 'tblTempUsageDetail_20' ) end [2025-03-04 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604146', 'tblTempVendorCDR_20' ) start [2025-03-04 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604146', 'tblTempVendorCDR_20' ) end [2025-03-04 07:03:18] Production.INFO: ProcessCDR(1,14604146,1,1,2) [2025-03-04 07:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604146', 'tblTempUsageDetail_20' ) start [2025-03-04 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604146', 'tblTempUsageDetail_20' ) end [2025-03-04 07:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:03:21] Production.INFO: ==14636== Releasing lock... [2025-03-04 07:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:03:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 07:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:04:06 [end_date_ymd] => 2025-03-04 07:04:06 [RateCDR] => 1 ) [2025-03-04 07: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 04:04:06' and `end` < '2025-03-04 07: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-04 07:04:18] Production.INFO: count ==157 [2025-03-04 07:04:18] Production.ERROR: pbx CDR StartTime 2025-03-04 04:04:06 - End Time 2025-03-04 07:04:06 [2025-03-04 07:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604151', 'tblTempUsageDetail_20' ) start [2025-03-04 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604151', 'tblTempUsageDetail_20' ) end [2025-03-04 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604151', 'tblTempVendorCDR_20' ) start [2025-03-04 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604151', 'tblTempVendorCDR_20' ) end [2025-03-04 07:04:18] Production.INFO: ProcessCDR(1,14604151,1,1,2) [2025-03-04 07:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604151', 'tblTempUsageDetail_20' ) start [2025-03-04 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604151', 'tblTempUsageDetail_20' ) end [2025-03-04 07:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:04:22] Production.INFO: ==14725== Releasing lock... [2025-03-04 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:04:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:05:05 [end_date_ymd] => 2025-03-04 07:05:05 [RateCDR] => 1 ) [2025-03-04 07:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 04:05:05' and `end` < '2025-03-04 07:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 07:05:18] Production.INFO: count ==157 [2025-03-04 07:05:18] Production.ERROR: pbx CDR StartTime 2025-03-04 04:05:05 - End Time 2025-03-04 07:05:05 [2025-03-04 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604156', 'tblTempUsageDetail_20' ) start [2025-03-04 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604156', 'tblTempUsageDetail_20' ) end [2025-03-04 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604156', 'tblTempVendorCDR_20' ) start [2025-03-04 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604156', 'tblTempVendorCDR_20' ) end [2025-03-04 07:05:18] Production.INFO: ProcessCDR(1,14604156,1,1,2) [2025-03-04 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604156', 'tblTempUsageDetail_20' ) start [2025-03-04 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604156', 'tblTempUsageDetail_20' ) end [2025-03-04 07:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:05:21] Production.INFO: ==14879== Releasing lock... [2025-03-04 07:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:05:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-04 07:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:06:06 [end_date_ymd] => 2025-03-04 07:06:06 [RateCDR] => 1 ) [2025-03-04 07: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 04:06:06' and `end` < '2025-03-04 07: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-04 07:06:18] Production.INFO: count ==161 [2025-03-04 07:06:18] Production.ERROR: pbx CDR StartTime 2025-03-04 04:06:06 - End Time 2025-03-04 07:06:06 [2025-03-04 07:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604161', 'tblTempUsageDetail_20' ) start [2025-03-04 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604161', 'tblTempUsageDetail_20' ) end [2025-03-04 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604161', 'tblTempVendorCDR_20' ) start [2025-03-04 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604161', 'tblTempVendorCDR_20' ) end [2025-03-04 07:06:18] Production.INFO: ProcessCDR(1,14604161,1,1,2) [2025-03-04 07:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604161', 'tblTempUsageDetail_20' ) start [2025-03-04 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604161', 'tblTempUsageDetail_20' ) end [2025-03-04 07:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:06:21] Production.INFO: ==14960== Releasing lock... [2025-03-04 07:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:06:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:07:05 [end_date_ymd] => 2025-03-04 07:07:05 [RateCDR] => 1 ) [2025-03-04 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-04 04:07:05' and `end` < '2025-03-04 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-04 07:07:17] Production.INFO: count ==161 [2025-03-04 07:07:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:07:05 - End Time 2025-03-04 07:07:05 [2025-03-04 07:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604166', 'tblTempUsageDetail_20' ) start [2025-03-04 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604166', 'tblTempUsageDetail_20' ) end [2025-03-04 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604166', 'tblTempVendorCDR_20' ) start [2025-03-04 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604166', 'tblTempVendorCDR_20' ) end [2025-03-04 07:07:17] Production.INFO: ProcessCDR(1,14604166,1,1,2) [2025-03-04 07:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604166', 'tblTempUsageDetail_20' ) start [2025-03-04 07:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604166', 'tblTempUsageDetail_20' ) end [2025-03-04 07:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:07:20] Production.INFO: ==15040== Releasing lock... [2025-03-04 07:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:07:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 07:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:08:06 [end_date_ymd] => 2025-03-04 07:08:06 [RateCDR] => 1 ) [2025-03-04 07: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-04 04:08:06' and `end` < '2025-03-04 07: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-04 07:08:18] Production.INFO: count ==161 [2025-03-04 07:08:18] Production.ERROR: pbx CDR StartTime 2025-03-04 04:08:06 - End Time 2025-03-04 07:08:06 [2025-03-04 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604171', 'tblTempUsageDetail_20' ) start [2025-03-04 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604171', 'tblTempUsageDetail_20' ) end [2025-03-04 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604171', 'tblTempVendorCDR_20' ) start [2025-03-04 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604171', 'tblTempVendorCDR_20' ) end [2025-03-04 07:08:18] Production.INFO: ProcessCDR(1,14604171,1,1,2) [2025-03-04 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604171', 'tblTempUsageDetail_20' ) start [2025-03-04 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604171', 'tblTempUsageDetail_20' ) end [2025-03-04 07:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:08:21] Production.INFO: ==15198== Releasing lock... [2025-03-04 07:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:08:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 07:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:09:06 [end_date_ymd] => 2025-03-04 07:09:06 [RateCDR] => 1 ) [2025-03-04 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-04 04:09:06' and `end` < '2025-03-04 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-04 07:09:18] Production.INFO: count ==161 [2025-03-04 07:09:18] Production.ERROR: pbx CDR StartTime 2025-03-04 04:09:06 - End Time 2025-03-04 07:09:06 [2025-03-04 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604176', 'tblTempUsageDetail_20' ) start [2025-03-04 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604176', 'tblTempUsageDetail_20' ) end [2025-03-04 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604176', 'tblTempVendorCDR_20' ) start [2025-03-04 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604176', 'tblTempVendorCDR_20' ) end [2025-03-04 07:09:18] Production.INFO: ProcessCDR(1,14604176,1,1,2) [2025-03-04 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604176', 'tblTempUsageDetail_20' ) start [2025-03-04 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604176', 'tblTempUsageDetail_20' ) end [2025-03-04 07:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:09:21] Production.INFO: ==15276== Releasing lock... [2025-03-04 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:09:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:10:06 [end_date_ymd] => 2025-03-04 07:10:06 [RateCDR] => 1 ) [2025-03-04 07:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 04:10:06' and `end` < '2025-03-04 07:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 07:10:18] Production.INFO: count ==163 [2025-03-04 07:10:18] Production.ERROR: pbx CDR StartTime 2025-03-04 04:10:06 - End Time 2025-03-04 07:10:06 [2025-03-04 07:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604181', 'tblTempUsageDetail_20' ) start [2025-03-04 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604181', 'tblTempUsageDetail_20' ) end [2025-03-04 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604181', 'tblTempVendorCDR_20' ) start [2025-03-04 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604181', 'tblTempVendorCDR_20' ) end [2025-03-04 07:10:18] Production.INFO: ProcessCDR(1,14604181,1,1,2) [2025-03-04 07:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604181', 'tblTempUsageDetail_20' ) start [2025-03-04 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604181', 'tblTempUsageDetail_20' ) end [2025-03-04 07:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:10:21] Production.INFO: ==15360== Releasing lock... [2025-03-04 07:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:10:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:11:05 [end_date_ymd] => 2025-03-04 07:11:05 [RateCDR] => 1 ) [2025-03-04 07: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 04:11:05' and `end` < '2025-03-04 07: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-04 07:11:17] Production.INFO: count ==163 [2025-03-04 07:11:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:11:05 - End Time 2025-03-04 07:11:05 [2025-03-04 07:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604187', 'tblTempUsageDetail_20' ) start [2025-03-04 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604187', 'tblTempUsageDetail_20' ) end [2025-03-04 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604187', 'tblTempVendorCDR_20' ) start [2025-03-04 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604187', 'tblTempVendorCDR_20' ) end [2025-03-04 07:11:17] Production.INFO: ProcessCDR(1,14604187,1,1,2) [2025-03-04 07:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604187', 'tblTempUsageDetail_20' ) start [2025-03-04 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604187', 'tblTempUsageDetail_20' ) end [2025-03-04 07:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:11:21] Production.INFO: ==15441== Releasing lock... [2025-03-04 07:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:11:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:12:05 [end_date_ymd] => 2025-03-04 07:12:05 [RateCDR] => 1 ) [2025-03-04 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-04 04:12:05' and `end` < '2025-03-04 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-04 07:12:17] Production.INFO: count ==163 [2025-03-04 07:12:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:12:05 - End Time 2025-03-04 07:12:05 [2025-03-04 07:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604192', 'tblTempUsageDetail_20' ) start [2025-03-04 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604192', 'tblTempUsageDetail_20' ) end [2025-03-04 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604192', 'tblTempVendorCDR_20' ) start [2025-03-04 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604192', 'tblTempVendorCDR_20' ) end [2025-03-04 07:12:17] Production.INFO: ProcessCDR(1,14604192,1,1,2) [2025-03-04 07:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604192', 'tblTempUsageDetail_20' ) start [2025-03-04 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604192', 'tblTempUsageDetail_20' ) end [2025-03-04 07:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:12:21] Production.INFO: ==15602== Releasing lock... [2025-03-04 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:12:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:13:05 [end_date_ymd] => 2025-03-04 07:13:05 [RateCDR] => 1 ) [2025-03-04 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-04 04:13:05' and `end` < '2025-03-04 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-04 07:13:17] Production.INFO: count ==166 [2025-03-04 07:13:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:13:05 - End Time 2025-03-04 07:13:05 [2025-03-04 07:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604197', 'tblTempUsageDetail_20' ) start [2025-03-04 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604197', 'tblTempUsageDetail_20' ) end [2025-03-04 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604197', 'tblTempVendorCDR_20' ) start [2025-03-04 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604197', 'tblTempVendorCDR_20' ) end [2025-03-04 07:13:17] Production.INFO: ProcessCDR(1,14604197,1,1,2) [2025-03-04 07:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604197', 'tblTempUsageDetail_20' ) start [2025-03-04 07:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604197', 'tblTempUsageDetail_20' ) end [2025-03-04 07:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:13:20] Production.INFO: ==15686== Releasing lock... [2025-03-04 07:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:13:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 07:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:14:06 [end_date_ymd] => 2025-03-04 07:14:06 [RateCDR] => 1 ) [2025-03-04 07: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 04:14:06' and `end` < '2025-03-04 07: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-04 07:14:18] Production.INFO: count ==166 [2025-03-04 07:14:18] Production.ERROR: pbx CDR StartTime 2025-03-04 04:14:06 - End Time 2025-03-04 07:14:06 [2025-03-04 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604202', 'tblTempUsageDetail_20' ) start [2025-03-04 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604202', 'tblTempUsageDetail_20' ) end [2025-03-04 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604202', 'tblTempVendorCDR_20' ) start [2025-03-04 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604202', 'tblTempVendorCDR_20' ) end [2025-03-04 07:14:18] Production.INFO: ProcessCDR(1,14604202,1,1,2) [2025-03-04 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604202', 'tblTempUsageDetail_20' ) start [2025-03-04 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604202', 'tblTempUsageDetail_20' ) end [2025-03-04 07:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:14:22] Production.INFO: ==15770== Releasing lock... [2025-03-04 07:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:14:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:15:05 [end_date_ymd] => 2025-03-04 07:15:05 [RateCDR] => 1 ) [2025-03-04 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-04 04:15:05' and `end` < '2025-03-04 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-04 07:15:17] Production.INFO: count ==166 [2025-03-04 07:15:18] Production.ERROR: pbx CDR StartTime 2025-03-04 04:15:05 - End Time 2025-03-04 07:15:05 [2025-03-04 07:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604207', 'tblTempUsageDetail_20' ) start [2025-03-04 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604207', 'tblTempUsageDetail_20' ) end [2025-03-04 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604207', 'tblTempVendorCDR_20' ) start [2025-03-04 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604207', 'tblTempVendorCDR_20' ) end [2025-03-04 07:15:18] Production.INFO: ProcessCDR(1,14604207,1,1,2) [2025-03-04 07:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604207', 'tblTempUsageDetail_20' ) start [2025-03-04 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604207', 'tblTempUsageDetail_20' ) end [2025-03-04 07:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:15:21] Production.INFO: ==15927== Releasing lock... [2025-03-04 07:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:16:05 [end_date_ymd] => 2025-03-04 07:16:05 [RateCDR] => 1 ) [2025-03-04 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 04:16:05' and `end` < '2025-03-04 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-04 07:16:17] Production.INFO: count ==166 [2025-03-04 07:16:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:16:05 - End Time 2025-03-04 07:16:05 [2025-03-04 07:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604212', 'tblTempUsageDetail_20' ) start [2025-03-04 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604212', 'tblTempUsageDetail_20' ) end [2025-03-04 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604212', 'tblTempVendorCDR_20' ) start [2025-03-04 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604212', 'tblTempVendorCDR_20' ) end [2025-03-04 07:16:17] Production.INFO: ProcessCDR(1,14604212,1,1,2) [2025-03-04 07:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604212', 'tblTempUsageDetail_20' ) start [2025-03-04 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604212', 'tblTempUsageDetail_20' ) end [2025-03-04 07:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:16:21] Production.INFO: ==16050== Releasing lock... [2025-03-04 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:16:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:17:05 [end_date_ymd] => 2025-03-04 07:17:05 [RateCDR] => 1 ) [2025-03-04 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-04 04:17:05' and `end` < '2025-03-04 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-04 07:17:18] Production.INFO: count ==166 [2025-03-04 07:17:18] Production.ERROR: pbx CDR StartTime 2025-03-04 04:17:05 - End Time 2025-03-04 07:17:05 [2025-03-04 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604217', 'tblTempUsageDetail_20' ) start [2025-03-04 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604217', 'tblTempUsageDetail_20' ) end [2025-03-04 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604217', 'tblTempVendorCDR_20' ) start [2025-03-04 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604217', 'tblTempVendorCDR_20' ) end [2025-03-04 07:17:18] Production.INFO: ProcessCDR(1,14604217,1,1,2) [2025-03-04 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604217', 'tblTempUsageDetail_20' ) start [2025-03-04 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604217', 'tblTempUsageDetail_20' ) end [2025-03-04 07:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:17:21] Production.INFO: ==16133== Releasing lock... [2025-03-04 07:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:17:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:18:05 [end_date_ymd] => 2025-03-04 07:18:05 [RateCDR] => 1 ) [2025-03-04 07:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 04:18:05' and `end` < '2025-03-04 07:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 07:18:17] Production.INFO: count ==166 [2025-03-04 07:18:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:18:05 - End Time 2025-03-04 07:18:05 [2025-03-04 07:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604222', 'tblTempUsageDetail_20' ) start [2025-03-04 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604222', 'tblTempUsageDetail_20' ) end [2025-03-04 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604222', 'tblTempVendorCDR_20' ) start [2025-03-04 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604222', 'tblTempVendorCDR_20' ) end [2025-03-04 07:18:17] Production.INFO: ProcessCDR(1,14604222,1,1,2) [2025-03-04 07:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604222', 'tblTempUsageDetail_20' ) start [2025-03-04 07:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604222', 'tblTempUsageDetail_20' ) end [2025-03-04 07:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:18:20] Production.INFO: ==16213== Releasing lock... [2025-03-04 07:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:18:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:19:05 [end_date_ymd] => 2025-03-04 07:19:05 [RateCDR] => 1 ) [2025-03-04 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-04 04:19:05' and `end` < '2025-03-04 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-04 07:19:17] Production.INFO: count ==166 [2025-03-04 07:19:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:19:05 - End Time 2025-03-04 07:19:05 [2025-03-04 07:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604227', 'tblTempUsageDetail_20' ) start [2025-03-04 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604227', 'tblTempUsageDetail_20' ) end [2025-03-04 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604227', 'tblTempVendorCDR_20' ) start [2025-03-04 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604227', 'tblTempVendorCDR_20' ) end [2025-03-04 07:19:17] Production.INFO: ProcessCDR(1,14604227,1,1,2) [2025-03-04 07:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604227', 'tblTempUsageDetail_20' ) start [2025-03-04 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604227', 'tblTempUsageDetail_20' ) end [2025-03-04 07:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:19:21] Production.INFO: ==16302== Releasing lock... [2025-03-04 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:19:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:20:06 [end_date_ymd] => 2025-03-04 07:20:06 [RateCDR] => 1 ) [2025-03-04 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-04 04:20:06' and `end` < '2025-03-04 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-04 07:20:18] Production.INFO: count ==166 [2025-03-04 07:20:18] Production.ERROR: pbx CDR StartTime 2025-03-04 04:20:06 - End Time 2025-03-04 07:20:06 [2025-03-04 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604232', 'tblTempUsageDetail_20' ) start [2025-03-04 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604232', 'tblTempUsageDetail_20' ) end [2025-03-04 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604232', 'tblTempVendorCDR_20' ) start [2025-03-04 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604232', 'tblTempVendorCDR_20' ) end [2025-03-04 07:20:18] Production.INFO: ProcessCDR(1,14604232,1,1,2) [2025-03-04 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604232', 'tblTempUsageDetail_20' ) start [2025-03-04 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604232', 'tblTempUsageDetail_20' ) end [2025-03-04 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:20:22] Production.INFO: ==16385== Releasing lock... [2025-03-04 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:20:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:21:05 [end_date_ymd] => 2025-03-04 07:21:05 [RateCDR] => 1 ) [2025-03-04 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-04 04:21:05' and `end` < '2025-03-04 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-04 07:21:18] Production.INFO: count ==166 [2025-03-04 07:21:18] Production.ERROR: pbx CDR StartTime 2025-03-04 04:21:05 - End Time 2025-03-04 07:21:05 [2025-03-04 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604238', 'tblTempUsageDetail_20' ) start [2025-03-04 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604238', 'tblTempUsageDetail_20' ) end [2025-03-04 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604238', 'tblTempVendorCDR_20' ) start [2025-03-04 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604238', 'tblTempVendorCDR_20' ) end [2025-03-04 07:21:18] Production.INFO: ProcessCDR(1,14604238,1,1,2) [2025-03-04 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604238', 'tblTempUsageDetail_20' ) start [2025-03-04 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604238', 'tblTempUsageDetail_20' ) end [2025-03-04 07:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:21:21] Production.INFO: ==16471== Releasing lock... [2025-03-04 07:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:21:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 07:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:22:06 [end_date_ymd] => 2025-03-04 07:22:06 [RateCDR] => 1 ) [2025-03-04 07: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 04:22:06' and `end` < '2025-03-04 07: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-04 07:22:18] Production.INFO: count ==166 [2025-03-04 07:22:18] Production.ERROR: pbx CDR StartTime 2025-03-04 04:22:06 - End Time 2025-03-04 07:22:06 [2025-03-04 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604243', 'tblTempUsageDetail_20' ) start [2025-03-04 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604243', 'tblTempUsageDetail_20' ) end [2025-03-04 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604243', 'tblTempVendorCDR_20' ) start [2025-03-04 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604243', 'tblTempVendorCDR_20' ) end [2025-03-04 07:22:18] Production.INFO: ProcessCDR(1,14604243,1,1,2) [2025-03-04 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604243', 'tblTempUsageDetail_20' ) start [2025-03-04 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604243', 'tblTempUsageDetail_20' ) end [2025-03-04 07:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:22:21] Production.INFO: ==16558== Releasing lock... [2025-03-04 07:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:22:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:23:05 [end_date_ymd] => 2025-03-04 07:23:05 [RateCDR] => 1 ) [2025-03-04 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-04 04:23:05' and `end` < '2025-03-04 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-04 07:23:17] Production.INFO: count ==166 [2025-03-04 07:23:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:23:05 - End Time 2025-03-04 07:23:05 [2025-03-04 07:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604248', 'tblTempUsageDetail_20' ) start [2025-03-04 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604248', 'tblTempUsageDetail_20' ) end [2025-03-04 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604248', 'tblTempVendorCDR_20' ) start [2025-03-04 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604248', 'tblTempVendorCDR_20' ) end [2025-03-04 07:23:17] Production.INFO: ProcessCDR(1,14604248,1,1,2) [2025-03-04 07:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604248', 'tblTempUsageDetail_20' ) start [2025-03-04 07:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604248', 'tblTempUsageDetail_20' ) end [2025-03-04 07:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:23:20] Production.INFO: ==16645== Releasing lock... [2025-03-04 07:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:23:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:24:05 [end_date_ymd] => 2025-03-04 07:24:05 [RateCDR] => 1 ) [2025-03-04 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-04 04:24:05' and `end` < '2025-03-04 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-04 07:24:17] Production.INFO: count ==166 [2025-03-04 07:24:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:24:05 - End Time 2025-03-04 07:24:05 [2025-03-04 07:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604253', 'tblTempUsageDetail_20' ) start [2025-03-04 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604253', 'tblTempUsageDetail_20' ) end [2025-03-04 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604253', 'tblTempVendorCDR_20' ) start [2025-03-04 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604253', 'tblTempVendorCDR_20' ) end [2025-03-04 07:24:17] Production.INFO: ProcessCDR(1,14604253,1,1,2) [2025-03-04 07:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604253', 'tblTempUsageDetail_20' ) start [2025-03-04 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604253', 'tblTempUsageDetail_20' ) end [2025-03-04 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:24:21] Production.INFO: ==16735== Releasing lock... [2025-03-04 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:24:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:25:05 [end_date_ymd] => 2025-03-04 07:25:05 [RateCDR] => 1 ) [2025-03-04 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-04 04:25:05' and `end` < '2025-03-04 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-04 07:25:17] Production.INFO: count ==166 [2025-03-04 07:25:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:25:05 - End Time 2025-03-04 07:25:05 [2025-03-04 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604258', 'tblTempUsageDetail_20' ) start [2025-03-04 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604258', 'tblTempUsageDetail_20' ) end [2025-03-04 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604258', 'tblTempVendorCDR_20' ) start [2025-03-04 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604258', 'tblTempVendorCDR_20' ) end [2025-03-04 07:25:17] Production.INFO: ProcessCDR(1,14604258,1,1,2) [2025-03-04 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604258', 'tblTempUsageDetail_20' ) start [2025-03-04 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604258', 'tblTempUsageDetail_20' ) end [2025-03-04 07:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:25:20] Production.INFO: ==16821== Releasing lock... [2025-03-04 07:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:25:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 07:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:26:06 [end_date_ymd] => 2025-03-04 07:26:06 [RateCDR] => 1 ) [2025-03-04 07: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-04 04:26:06' and `end` < '2025-03-04 07: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-04 07:26:18] Production.INFO: count ==166 [2025-03-04 07:26:18] Production.ERROR: pbx CDR StartTime 2025-03-04 04:26:06 - End Time 2025-03-04 07:26:06 [2025-03-04 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604263', 'tblTempUsageDetail_20' ) start [2025-03-04 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604263', 'tblTempUsageDetail_20' ) end [2025-03-04 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604263', 'tblTempVendorCDR_20' ) start [2025-03-04 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604263', 'tblTempVendorCDR_20' ) end [2025-03-04 07:26:18] Production.INFO: ProcessCDR(1,14604263,1,1,2) [2025-03-04 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604263', 'tblTempUsageDetail_20' ) start [2025-03-04 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604263', 'tblTempUsageDetail_20' ) end [2025-03-04 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:26:21] Production.INFO: ==16903== Releasing lock... [2025-03-04 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:26:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:27:05 [end_date_ymd] => 2025-03-04 07:27:05 [RateCDR] => 1 ) [2025-03-04 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-04 04:27:05' and `end` < '2025-03-04 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-04 07:27:17] Production.INFO: count ==166 [2025-03-04 07:27:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:27:05 - End Time 2025-03-04 07:27:05 [2025-03-04 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604268', 'tblTempUsageDetail_20' ) start [2025-03-04 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604268', 'tblTempUsageDetail_20' ) end [2025-03-04 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604268', 'tblTempVendorCDR_20' ) start [2025-03-04 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604268', 'tblTempVendorCDR_20' ) end [2025-03-04 07:27:17] Production.INFO: ProcessCDR(1,14604268,1,1,2) [2025-03-04 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604268', 'tblTempUsageDetail_20' ) start [2025-03-04 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604268', 'tblTempUsageDetail_20' ) end [2025-03-04 07:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:27:20] Production.INFO: ==16986== Releasing lock... [2025-03-04 07:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:27:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:28:05 [end_date_ymd] => 2025-03-04 07:28:05 [RateCDR] => 1 ) [2025-03-04 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-04 04:28:05' and `end` < '2025-03-04 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-04 07:28:17] Production.INFO: count ==166 [2025-03-04 07:28:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:28:05 - End Time 2025-03-04 07:28:05 [2025-03-04 07:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604273', 'tblTempUsageDetail_20' ) start [2025-03-04 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604273', 'tblTempUsageDetail_20' ) end [2025-03-04 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604273', 'tblTempVendorCDR_20' ) start [2025-03-04 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604273', 'tblTempVendorCDR_20' ) end [2025-03-04 07:28:17] Production.INFO: ProcessCDR(1,14604273,1,1,2) [2025-03-04 07:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604273', 'tblTempUsageDetail_20' ) start [2025-03-04 07:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604273', 'tblTempUsageDetail_20' ) end [2025-03-04 07:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:28:20] Production.INFO: ==17066== Releasing lock... [2025-03-04 07:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:28:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:29:05 [end_date_ymd] => 2025-03-04 07:29:05 [RateCDR] => 1 ) [2025-03-04 07:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 04:29:05' and `end` < '2025-03-04 07:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 07:29:17] Production.INFO: count ==172 [2025-03-04 07:29:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:29:05 - End Time 2025-03-04 07:29:05 [2025-03-04 07:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604278', 'tblTempUsageDetail_20' ) start [2025-03-04 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604278', 'tblTempUsageDetail_20' ) end [2025-03-04 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604278', 'tblTempVendorCDR_20' ) start [2025-03-04 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604278', 'tblTempVendorCDR_20' ) end [2025-03-04 07:29:17] Production.INFO: ProcessCDR(1,14604278,1,1,2) [2025-03-04 07:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604278', 'tblTempUsageDetail_20' ) start [2025-03-04 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604278', 'tblTempUsageDetail_20' ) end [2025-03-04 07:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:29:20] Production.INFO: ==17151== Releasing lock... [2025-03-04 07:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:29:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:30:06 [end_date_ymd] => 2025-03-04 07:30:06 [RateCDR] => 1 ) [2025-03-04 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-04 04:30:06' and `end` < '2025-03-04 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-04 07:30:18] Production.INFO: count ==173 [2025-03-04 07:30:18] Production.ERROR: pbx CDR StartTime 2025-03-04 04:30:06 - End Time 2025-03-04 07:30:06 [2025-03-04 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604284', 'tblTempUsageDetail_20' ) start [2025-03-04 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604284', 'tblTempUsageDetail_20' ) end [2025-03-04 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604284', 'tblTempVendorCDR_20' ) start [2025-03-04 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604284', 'tblTempVendorCDR_20' ) end [2025-03-04 07:30:18] Production.INFO: ProcessCDR(1,14604284,1,1,2) [2025-03-04 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604284', 'tblTempUsageDetail_20' ) start [2025-03-04 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604284', 'tblTempUsageDetail_20' ) end [2025-03-04 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:30:23] Production.INFO: ==17246== Releasing lock... [2025-03-04 07:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:30:23] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:31:05 [end_date_ymd] => 2025-03-04 07:31:05 [RateCDR] => 1 ) [2025-03-04 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-04 04:31:05' and `end` < '2025-03-04 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-04 07:31:17] Production.INFO: count ==173 [2025-03-04 07:31:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:31:05 - End Time 2025-03-04 07:31:05 [2025-03-04 07:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604289', 'tblTempUsageDetail_20' ) start [2025-03-04 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604289', 'tblTempUsageDetail_20' ) end [2025-03-04 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604289', 'tblTempVendorCDR_20' ) start [2025-03-04 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604289', 'tblTempVendorCDR_20' ) end [2025-03-04 07:31:17] Production.INFO: ProcessCDR(1,14604289,1,1,2) [2025-03-04 07:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604289', 'tblTempUsageDetail_20' ) start [2025-03-04 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604289', 'tblTempUsageDetail_20' ) end [2025-03-04 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:31:21] Production.INFO: ==17329== Releasing lock... [2025-03-04 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:31:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:32:05 [end_date_ymd] => 2025-03-04 07:32:05 [RateCDR] => 1 ) [2025-03-04 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-04 04:32:05' and `end` < '2025-03-04 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-04 07:32:17] Production.INFO: count ==173 [2025-03-04 07:32:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:32:05 - End Time 2025-03-04 07:32:05 [2025-03-04 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604294', 'tblTempUsageDetail_20' ) start [2025-03-04 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604294', 'tblTempUsageDetail_20' ) end [2025-03-04 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604294', 'tblTempVendorCDR_20' ) start [2025-03-04 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604294', 'tblTempVendorCDR_20' ) end [2025-03-04 07:32:17] Production.INFO: ProcessCDR(1,14604294,1,1,2) [2025-03-04 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604294', 'tblTempUsageDetail_20' ) start [2025-03-04 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604294', 'tblTempUsageDetail_20' ) end [2025-03-04 07:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:32:20] Production.INFO: ==17456== Releasing lock... [2025-03-04 07:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:32:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:33:05 [end_date_ymd] => 2025-03-04 07:33:05 [RateCDR] => 1 ) [2025-03-04 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-04 04:33:05' and `end` < '2025-03-04 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-04 07:33:17] Production.INFO: count ==173 [2025-03-04 07:33:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:33:05 - End Time 2025-03-04 07:33:05 [2025-03-04 07:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604299', 'tblTempUsageDetail_20' ) start [2025-03-04 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604299', 'tblTempUsageDetail_20' ) end [2025-03-04 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604299', 'tblTempVendorCDR_20' ) start [2025-03-04 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604299', 'tblTempVendorCDR_20' ) end [2025-03-04 07:33:17] Production.INFO: ProcessCDR(1,14604299,1,1,2) [2025-03-04 07:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604299', 'tblTempUsageDetail_20' ) start [2025-03-04 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604299', 'tblTempUsageDetail_20' ) end [2025-03-04 07:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:33:20] Production.INFO: ==17547== Releasing lock... [2025-03-04 07:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:33:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:34:05 [end_date_ymd] => 2025-03-04 07:34:05 [RateCDR] => 1 ) [2025-03-04 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-04 04:34:05' and `end` < '2025-03-04 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-04 07:34:17] Production.INFO: count ==173 [2025-03-04 07:34:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:34:05 - End Time 2025-03-04 07:34:05 [2025-03-04 07:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604304', 'tblTempUsageDetail_20' ) start [2025-03-04 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604304', 'tblTempUsageDetail_20' ) end [2025-03-04 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604304', 'tblTempVendorCDR_20' ) start [2025-03-04 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604304', 'tblTempVendorCDR_20' ) end [2025-03-04 07:34:17] Production.INFO: ProcessCDR(1,14604304,1,1,2) [2025-03-04 07:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604304', 'tblTempUsageDetail_20' ) start [2025-03-04 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604304', 'tblTempUsageDetail_20' ) end [2025-03-04 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:34:21] Production.INFO: ==17637== Releasing lock... [2025-03-04 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:34:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:35:05 [end_date_ymd] => 2025-03-04 07:35:05 [RateCDR] => 1 ) [2025-03-04 07: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 04:35:05' and `end` < '2025-03-04 07: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-04 07:35:17] Production.INFO: count ==173 [2025-03-04 07:35:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:35:05 - End Time 2025-03-04 07:35:05 [2025-03-04 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604309', 'tblTempUsageDetail_20' ) start [2025-03-04 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604309', 'tblTempUsageDetail_20' ) end [2025-03-04 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604309', 'tblTempVendorCDR_20' ) start [2025-03-04 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604309', 'tblTempVendorCDR_20' ) end [2025-03-04 07:35:17] Production.INFO: ProcessCDR(1,14604309,1,1,2) [2025-03-04 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604309', 'tblTempUsageDetail_20' ) start [2025-03-04 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604309', 'tblTempUsageDetail_20' ) end [2025-03-04 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:35:21] Production.INFO: ==17726== Releasing lock... [2025-03-04 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:35:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:36:05 [end_date_ymd] => 2025-03-04 07:36:05 [RateCDR] => 1 ) [2025-03-04 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-04 04:36:05' and `end` < '2025-03-04 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-04 07:36:17] Production.INFO: count ==173 [2025-03-04 07:36:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:36:05 - End Time 2025-03-04 07:36:05 [2025-03-04 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604314', 'tblTempUsageDetail_20' ) start [2025-03-04 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604314', 'tblTempUsageDetail_20' ) end [2025-03-04 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604314', 'tblTempVendorCDR_20' ) start [2025-03-04 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604314', 'tblTempVendorCDR_20' ) end [2025-03-04 07:36:17] Production.INFO: ProcessCDR(1,14604314,1,1,2) [2025-03-04 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604314', 'tblTempUsageDetail_20' ) start [2025-03-04 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604314', 'tblTempUsageDetail_20' ) end [2025-03-04 07:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:36:20] Production.INFO: ==17810== Releasing lock... [2025-03-04 07:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:36:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:37:05 [end_date_ymd] => 2025-03-04 07:37:05 [RateCDR] => 1 ) [2025-03-04 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-04 04:37:05' and `end` < '2025-03-04 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-04 07:37:17] Production.INFO: count ==173 [2025-03-04 07:37:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:37:05 - End Time 2025-03-04 07:37:05 [2025-03-04 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604319', 'tblTempUsageDetail_20' ) start [2025-03-04 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604319', 'tblTempUsageDetail_20' ) end [2025-03-04 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604319', 'tblTempVendorCDR_20' ) start [2025-03-04 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604319', 'tblTempVendorCDR_20' ) end [2025-03-04 07:37:17] Production.INFO: ProcessCDR(1,14604319,1,1,2) [2025-03-04 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604319', 'tblTempUsageDetail_20' ) start [2025-03-04 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604319', 'tblTempUsageDetail_20' ) end [2025-03-04 07:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:37:20] Production.INFO: ==17900== Releasing lock... [2025-03-04 07:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:37:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-04 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:38:05 [end_date_ymd] => 2025-03-04 07:38:05 [RateCDR] => 1 ) [2025-03-04 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-04 04:38:05' and `end` < '2025-03-04 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-04 07:38:17] Production.INFO: count ==183 [2025-03-04 07:38:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:38:05 - End Time 2025-03-04 07:38:05 [2025-03-04 07:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604324', 'tblTempUsageDetail_20' ) start [2025-03-04 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604324', 'tblTempUsageDetail_20' ) end [2025-03-04 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604324', 'tblTempVendorCDR_20' ) start [2025-03-04 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604324', 'tblTempVendorCDR_20' ) end [2025-03-04 07:38:17] Production.INFO: ProcessCDR(1,14604324,1,1,2) [2025-03-04 07:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604324', 'tblTempUsageDetail_20' ) start [2025-03-04 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604324', 'tblTempUsageDetail_20' ) end [2025-03-04 07:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:38:22] Production.INFO: ==17989== Releasing lock... [2025-03-04 07:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:38:22] Production.INFO: 29 MB #Memory Used# [2025-03-04 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:39:05 [end_date_ymd] => 2025-03-04 07:39:05 [RateCDR] => 1 ) [2025-03-04 07:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 04:39:05' and `end` < '2025-03-04 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-04 07:39:17] Production.INFO: count ==206 [2025-03-04 07:39:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:39:05 - End Time 2025-03-04 07:39:05 [2025-03-04 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604329', 'tblTempUsageDetail_20' ) start [2025-03-04 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604329', 'tblTempUsageDetail_20' ) end [2025-03-04 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604329', 'tblTempVendorCDR_20' ) start [2025-03-04 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604329', 'tblTempVendorCDR_20' ) end [2025-03-04 07:39:17] Production.INFO: ProcessCDR(1,14604329,1,1,2) [2025-03-04 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604329', 'tblTempUsageDetail_20' ) start [2025-03-04 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604329', 'tblTempUsageDetail_20' ) end [2025-03-04 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:39:21] Production.INFO: ==18074== Releasing lock... [2025-03-04 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:39:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-04 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:40:06 [end_date_ymd] => 2025-03-04 07:40:06 [RateCDR] => 1 ) [2025-03-04 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-04 04:40:06' and `end` < '2025-03-04 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-04 07:40:18] Production.INFO: count ==210 [2025-03-04 07:40:18] Production.ERROR: pbx CDR StartTime 2025-03-04 04:40:06 - End Time 2025-03-04 07:40:06 [2025-03-04 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604335', 'tblTempUsageDetail_20' ) start [2025-03-04 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604335', 'tblTempUsageDetail_20' ) end [2025-03-04 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604335', 'tblTempVendorCDR_20' ) start [2025-03-04 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604335', 'tblTempVendorCDR_20' ) end [2025-03-04 07:40:18] Production.INFO: ProcessCDR(1,14604335,1,1,2) [2025-03-04 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604335', 'tblTempUsageDetail_20' ) start [2025-03-04 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604335', 'tblTempUsageDetail_20' ) end [2025-03-04 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:40:22] Production.INFO: ==18167== Releasing lock... [2025-03-04 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:40:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-04 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:41:05 [end_date_ymd] => 2025-03-04 07:41:05 [RateCDR] => 1 ) [2025-03-04 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-04 04:41:05' and `end` < '2025-03-04 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-04 07:41:17] Production.INFO: count ==223 [2025-03-04 07:41:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:41:05 - End Time 2025-03-04 07:41:05 [2025-03-04 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604340', 'tblTempUsageDetail_20' ) start [2025-03-04 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604340', 'tblTempUsageDetail_20' ) end [2025-03-04 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604340', 'tblTempVendorCDR_20' ) start [2025-03-04 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604340', 'tblTempVendorCDR_20' ) end [2025-03-04 07:41:17] Production.INFO: ProcessCDR(1,14604340,1,1,2) [2025-03-04 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604340', 'tblTempUsageDetail_20' ) start [2025-03-04 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604340', 'tblTempUsageDetail_20' ) end [2025-03-04 07:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:41:20] Production.INFO: ==18253== Releasing lock... [2025-03-04 07:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:41:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-04 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:42:05 [end_date_ymd] => 2025-03-04 07:42:05 [RateCDR] => 1 ) [2025-03-04 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-04 04:42:05' and `end` < '2025-03-04 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-04 07:42:17] Production.INFO: count ==223 [2025-03-04 07:42:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:42:05 - End Time 2025-03-04 07:42:05 [2025-03-04 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604345', 'tblTempUsageDetail_20' ) start [2025-03-04 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604345', 'tblTempUsageDetail_20' ) end [2025-03-04 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604345', 'tblTempVendorCDR_20' ) start [2025-03-04 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604345', 'tblTempVendorCDR_20' ) end [2025-03-04 07:42:17] Production.INFO: ProcessCDR(1,14604345,1,1,2) [2025-03-04 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604345', 'tblTempUsageDetail_20' ) start [2025-03-04 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604345', 'tblTempUsageDetail_20' ) end [2025-03-04 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:42:21] Production.INFO: ==18339== Releasing lock... [2025-03-04 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:42:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-04 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:43:05 [end_date_ymd] => 2025-03-04 07:43:05 [RateCDR] => 1 ) [2025-03-04 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-04 04:43:05' and `end` < '2025-03-04 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-04 07:43:17] Production.INFO: count ==223 [2025-03-04 07:43:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:43:05 - End Time 2025-03-04 07:43:05 [2025-03-04 07:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604350', 'tblTempUsageDetail_20' ) start [2025-03-04 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604350', 'tblTempUsageDetail_20' ) end [2025-03-04 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604350', 'tblTempVendorCDR_20' ) start [2025-03-04 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604350', 'tblTempVendorCDR_20' ) end [2025-03-04 07:43:17] Production.INFO: ProcessCDR(1,14604350,1,1,2) [2025-03-04 07:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604350', 'tblTempUsageDetail_20' ) start [2025-03-04 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604350', 'tblTempUsageDetail_20' ) end [2025-03-04 07:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:43:20] Production.INFO: ==18430== Releasing lock... [2025-03-04 07:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:43:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-04 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:44:05 [end_date_ymd] => 2025-03-04 07:44:05 [RateCDR] => 1 ) [2025-03-04 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-04 04:44:05' and `end` < '2025-03-04 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-04 07:44:17] Production.INFO: count ==224 [2025-03-04 07:44:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:44:05 - End Time 2025-03-04 07:44:05 [2025-03-04 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604355', 'tblTempUsageDetail_20' ) start [2025-03-04 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604355', 'tblTempUsageDetail_20' ) end [2025-03-04 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604355', 'tblTempVendorCDR_20' ) start [2025-03-04 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604355', 'tblTempVendorCDR_20' ) end [2025-03-04 07:44:17] Production.INFO: ProcessCDR(1,14604355,1,1,2) [2025-03-04 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604355', 'tblTempUsageDetail_20' ) start [2025-03-04 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604355', 'tblTempUsageDetail_20' ) end [2025-03-04 07:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:44:22] Production.INFO: ==18517== Releasing lock... [2025-03-04 07:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:44:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-04 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:45:05 [end_date_ymd] => 2025-03-04 07:45:05 [RateCDR] => 1 ) [2025-03-04 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-04 04:45:05' and `end` < '2025-03-04 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-04 07:45:17] Production.INFO: count ==224 [2025-03-04 07:45:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:45:05 - End Time 2025-03-04 07:45:05 [2025-03-04 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604360', 'tblTempUsageDetail_20' ) start [2025-03-04 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604360', 'tblTempUsageDetail_20' ) end [2025-03-04 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604360', 'tblTempVendorCDR_20' ) start [2025-03-04 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604360', 'tblTempVendorCDR_20' ) end [2025-03-04 07:45:17] Production.INFO: ProcessCDR(1,14604360,1,1,2) [2025-03-04 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604360', 'tblTempUsageDetail_20' ) start [2025-03-04 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604360', 'tblTempUsageDetail_20' ) end [2025-03-04 07:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:45:20] Production.INFO: ==18603== Releasing lock... [2025-03-04 07:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:45:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-04 07:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:46:06 [end_date_ymd] => 2025-03-04 07:46:06 [RateCDR] => 1 ) [2025-03-04 07: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 04:46:06' and `end` < '2025-03-04 07: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-04 07:46:18] Production.INFO: count ==224 [2025-03-04 07:46:18] Production.ERROR: pbx CDR StartTime 2025-03-04 04:46:06 - End Time 2025-03-04 07:46:06 [2025-03-04 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604365', 'tblTempUsageDetail_20' ) start [2025-03-04 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604365', 'tblTempUsageDetail_20' ) end [2025-03-04 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604365', 'tblTempVendorCDR_20' ) start [2025-03-04 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604365', 'tblTempVendorCDR_20' ) end [2025-03-04 07:46:18] Production.INFO: ProcessCDR(1,14604365,1,1,2) [2025-03-04 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604365', 'tblTempUsageDetail_20' ) start [2025-03-04 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604365', 'tblTempUsageDetail_20' ) end [2025-03-04 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:46:21] Production.INFO: ==18696== Releasing lock... [2025-03-04 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:46:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-04 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:47:05 [end_date_ymd] => 2025-03-04 07:47:05 [RateCDR] => 1 ) [2025-03-04 07:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 04:47:05' and `end` < '2025-03-04 07:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 07:47:17] Production.INFO: count ==224 [2025-03-04 07:47:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:47:05 - End Time 2025-03-04 07:47:05 [2025-03-04 07:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604370', 'tblTempUsageDetail_20' ) start [2025-03-04 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604370', 'tblTempUsageDetail_20' ) end [2025-03-04 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604370', 'tblTempVendorCDR_20' ) start [2025-03-04 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604370', 'tblTempVendorCDR_20' ) end [2025-03-04 07:47:17] Production.INFO: ProcessCDR(1,14604370,1,1,2) [2025-03-04 07:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604370', 'tblTempUsageDetail_20' ) start [2025-03-04 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604370', 'tblTempUsageDetail_20' ) end [2025-03-04 07:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:47:20] Production.INFO: ==18823== Releasing lock... [2025-03-04 07:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:47:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-04 07:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:48:06 [end_date_ymd] => 2025-03-04 07:48:06 [RateCDR] => 1 ) [2025-03-04 07: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 04:48:06' and `end` < '2025-03-04 07: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-04 07:48:18] Production.INFO: count ==224 [2025-03-04 07:48:18] Production.ERROR: pbx CDR StartTime 2025-03-04 04:48:06 - End Time 2025-03-04 07:48:06 [2025-03-04 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604375', 'tblTempUsageDetail_20' ) start [2025-03-04 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604375', 'tblTempUsageDetail_20' ) end [2025-03-04 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604375', 'tblTempVendorCDR_20' ) start [2025-03-04 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604375', 'tblTempVendorCDR_20' ) end [2025-03-04 07:48:18] Production.INFO: ProcessCDR(1,14604375,1,1,2) [2025-03-04 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604375', 'tblTempUsageDetail_20' ) start [2025-03-04 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604375', 'tblTempUsageDetail_20' ) end [2025-03-04 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:48:21] Production.INFO: ==18911== Releasing lock... [2025-03-04 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:48:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-04 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:49:05 [end_date_ymd] => 2025-03-04 07:49:05 [RateCDR] => 1 ) [2025-03-04 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-04 04:49:05' and `end` < '2025-03-04 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-04 07:49:17] Production.INFO: count ==224 [2025-03-04 07:49:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:49:05 - End Time 2025-03-04 07:49:05 [2025-03-04 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604380', 'tblTempUsageDetail_20' ) start [2025-03-04 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604380', 'tblTempUsageDetail_20' ) end [2025-03-04 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604380', 'tblTempVendorCDR_20' ) start [2025-03-04 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604380', 'tblTempVendorCDR_20' ) end [2025-03-04 07:49:17] Production.INFO: ProcessCDR(1,14604380,1,1,2) [2025-03-04 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604380', 'tblTempUsageDetail_20' ) start [2025-03-04 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604380', 'tblTempUsageDetail_20' ) end [2025-03-04 07:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:49:20] Production.INFO: ==18992== Releasing lock... [2025-03-04 07:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:49:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-04 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:50:06 [end_date_ymd] => 2025-03-04 07:50:06 [RateCDR] => 1 ) [2025-03-04 07: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 04:50:06' and `end` < '2025-03-04 07: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-04 07:50:18] Production.INFO: count ==230 [2025-03-04 07:50:18] Production.ERROR: pbx CDR StartTime 2025-03-04 04:50:06 - End Time 2025-03-04 07:50:06 [2025-03-04 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604386', 'tblTempUsageDetail_20' ) start [2025-03-04 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604386', 'tblTempUsageDetail_20' ) end [2025-03-04 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604386', 'tblTempVendorCDR_20' ) start [2025-03-04 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604386', 'tblTempVendorCDR_20' ) end [2025-03-04 07:50:18] Production.INFO: ProcessCDR(1,14604386,1,1,2) [2025-03-04 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604386', 'tblTempUsageDetail_20' ) start [2025-03-04 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604386', 'tblTempUsageDetail_20' ) end [2025-03-04 07:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:50:22] Production.INFO: ==19076== Releasing lock... [2025-03-04 07:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:50:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-04 07:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:51:06 [end_date_ymd] => 2025-03-04 07:51:06 [RateCDR] => 1 ) [2025-03-04 07: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-04 04:51:06' and `end` < '2025-03-04 07: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-04 07:51:18] Production.INFO: count ==230 [2025-03-04 07:51:18] Production.ERROR: pbx CDR StartTime 2025-03-04 04:51:06 - End Time 2025-03-04 07:51:06 [2025-03-04 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604391', 'tblTempUsageDetail_20' ) start [2025-03-04 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604391', 'tblTempUsageDetail_20' ) end [2025-03-04 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604391', 'tblTempVendorCDR_20' ) start [2025-03-04 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604391', 'tblTempVendorCDR_20' ) end [2025-03-04 07:51:18] Production.INFO: ProcessCDR(1,14604391,1,1,2) [2025-03-04 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604391', 'tblTempUsageDetail_20' ) start [2025-03-04 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604391', 'tblTempUsageDetail_20' ) end [2025-03-04 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:51:21] Production.INFO: ==19171== Releasing lock... [2025-03-04 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:51:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-04 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:52:05 [end_date_ymd] => 2025-03-04 07:52:05 [RateCDR] => 1 ) [2025-03-04 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-04 04:52:05' and `end` < '2025-03-04 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-04 07:52:17] Production.INFO: count ==230 [2025-03-04 07:52:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:52:05 - End Time 2025-03-04 07:52:05 [2025-03-04 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604396', 'tblTempUsageDetail_20' ) start [2025-03-04 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604396', 'tblTempUsageDetail_20' ) end [2025-03-04 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604396', 'tblTempVendorCDR_20' ) start [2025-03-04 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604396', 'tblTempVendorCDR_20' ) end [2025-03-04 07:52:17] Production.INFO: ProcessCDR(1,14604396,1,1,2) [2025-03-04 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604396', 'tblTempUsageDetail_20' ) start [2025-03-04 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604396', 'tblTempUsageDetail_20' ) end [2025-03-04 07:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:52:20] Production.INFO: ==19257== Releasing lock... [2025-03-04 07:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:52:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-04 07:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:53:06 [end_date_ymd] => 2025-03-04 07:53:06 [RateCDR] => 1 ) [2025-03-04 07: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 04:53:06' and `end` < '2025-03-04 07: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-04 07:53:18] Production.INFO: count ==230 [2025-03-04 07:53:18] Production.ERROR: pbx CDR StartTime 2025-03-04 04:53:06 - End Time 2025-03-04 07:53:06 [2025-03-04 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604401', 'tblTempUsageDetail_20' ) start [2025-03-04 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604401', 'tblTempUsageDetail_20' ) end [2025-03-04 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604401', 'tblTempVendorCDR_20' ) start [2025-03-04 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604401', 'tblTempVendorCDR_20' ) end [2025-03-04 07:53:18] Production.INFO: ProcessCDR(1,14604401,1,1,2) [2025-03-04 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604401', 'tblTempUsageDetail_20' ) start [2025-03-04 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604401', 'tblTempUsageDetail_20' ) end [2025-03-04 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:53:21] Production.INFO: ==19341== Releasing lock... [2025-03-04 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:53:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-04 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:54:05 [end_date_ymd] => 2025-03-04 07:54:05 [RateCDR] => 1 ) [2025-03-04 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-04 04:54:05' and `end` < '2025-03-04 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-04 07:54:17] Production.INFO: count ==230 [2025-03-04 07:54:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:54:05 - End Time 2025-03-04 07:54:05 [2025-03-04 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604406', 'tblTempUsageDetail_20' ) start [2025-03-04 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604406', 'tblTempUsageDetail_20' ) end [2025-03-04 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604406', 'tblTempVendorCDR_20' ) start [2025-03-04 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604406', 'tblTempVendorCDR_20' ) end [2025-03-04 07:54:17] Production.INFO: ProcessCDR(1,14604406,1,1,2) [2025-03-04 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604406', 'tblTempUsageDetail_20' ) start [2025-03-04 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604406', 'tblTempUsageDetail_20' ) end [2025-03-04 07:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:54:20] Production.INFO: ==19428== Releasing lock... [2025-03-04 07:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:54:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-04 07:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:55:06 [end_date_ymd] => 2025-03-04 07:55:06 [RateCDR] => 1 ) [2025-03-04 07: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 04:55:06' and `end` < '2025-03-04 07: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-04 07:55:17] Production.INFO: count ==235 [2025-03-04 07:55:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:55:06 - End Time 2025-03-04 07:55:06 [2025-03-04 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604411', 'tblTempUsageDetail_20' ) start [2025-03-04 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604411', 'tblTempUsageDetail_20' ) end [2025-03-04 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604411', 'tblTempVendorCDR_20' ) start [2025-03-04 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604411', 'tblTempVendorCDR_20' ) end [2025-03-04 07:55:17] Production.INFO: ProcessCDR(1,14604411,1,1,2) [2025-03-04 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604411', 'tblTempUsageDetail_20' ) start [2025-03-04 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604411', 'tblTempUsageDetail_20' ) end [2025-03-04 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:55:21] Production.INFO: ==19513== Releasing lock... [2025-03-04 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:55:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-04 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:56:05 [end_date_ymd] => 2025-03-04 07:56:05 [RateCDR] => 1 ) [2025-03-04 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-04 04:56:05' and `end` < '2025-03-04 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-04 07:56:17] Production.INFO: count ==235 [2025-03-04 07:56:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:56:05 - End Time 2025-03-04 07:56:05 [2025-03-04 07:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604416', 'tblTempUsageDetail_20' ) start [2025-03-04 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604416', 'tblTempUsageDetail_20' ) end [2025-03-04 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604416', 'tblTempVendorCDR_20' ) start [2025-03-04 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604416', 'tblTempVendorCDR_20' ) end [2025-03-04 07:56:17] Production.INFO: ProcessCDR(1,14604416,1,1,2) [2025-03-04 07:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604416', 'tblTempUsageDetail_20' ) start [2025-03-04 07:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604416', 'tblTempUsageDetail_20' ) end [2025-03-04 07:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:56:20] Production.INFO: ==19599== Releasing lock... [2025-03-04 07:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:56:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-04 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:57:05 [end_date_ymd] => 2025-03-04 07:57:05 [RateCDR] => 1 ) [2025-03-04 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-04 04:57:05' and `end` < '2025-03-04 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-04 07:57:17] Production.INFO: count ==235 [2025-03-04 07:57:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:57:05 - End Time 2025-03-04 07:57:05 [2025-03-04 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604421', 'tblTempUsageDetail_20' ) start [2025-03-04 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604421', 'tblTempUsageDetail_20' ) end [2025-03-04 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604421', 'tblTempVendorCDR_20' ) start [2025-03-04 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604421', 'tblTempVendorCDR_20' ) end [2025-03-04 07:57:17] Production.INFO: ProcessCDR(1,14604421,1,1,2) [2025-03-04 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604421', 'tblTempUsageDetail_20' ) start [2025-03-04 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604421', 'tblTempUsageDetail_20' ) end [2025-03-04 07:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:57:20] Production.INFO: ==19681== Releasing lock... [2025-03-04 07:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:57:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-04 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:58:05 [end_date_ymd] => 2025-03-04 07:58:05 [RateCDR] => 1 ) [2025-03-04 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 04:58:05' and `end` < '2025-03-04 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 07:58:17] Production.INFO: count ==240 [2025-03-04 07:58:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:58:05 - End Time 2025-03-04 07:58:05 [2025-03-04 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604426', 'tblTempUsageDetail_20' ) start [2025-03-04 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604426', 'tblTempUsageDetail_20' ) end [2025-03-04 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604426', 'tblTempVendorCDR_20' ) start [2025-03-04 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604426', 'tblTempVendorCDR_20' ) end [2025-03-04 07:58:17] Production.INFO: ProcessCDR(1,14604426,1,1,2) [2025-03-04 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604426', 'tblTempUsageDetail_20' ) start [2025-03-04 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604426', 'tblTempUsageDetail_20' ) end [2025-03-04 07:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:58:20] Production.INFO: ==19763== Releasing lock... [2025-03-04 07:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:58:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-04 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 04:59:05 [end_date_ymd] => 2025-03-04 07:59:05 [RateCDR] => 1 ) [2025-03-04 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-04 04:59:05' and `end` < '2025-03-04 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-04 07:59:17] Production.INFO: count ==246 [2025-03-04 07:59:17] Production.ERROR: pbx CDR StartTime 2025-03-04 04:59:05 - End Time 2025-03-04 07:59:05 [2025-03-04 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604431', 'tblTempUsageDetail_20' ) start [2025-03-04 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604431', 'tblTempUsageDetail_20' ) end [2025-03-04 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604431', 'tblTempVendorCDR_20' ) start [2025-03-04 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604431', 'tblTempVendorCDR_20' ) end [2025-03-04 07:59:17] Production.INFO: ProcessCDR(1,14604431,1,1,2) [2025-03-04 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604431', 'tblTempUsageDetail_20' ) start [2025-03-04 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604431', 'tblTempUsageDetail_20' ) end [2025-03-04 07:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 07:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 07:59:22] Production.INFO: ==19846== Releasing lock... [2025-03-04 07:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 07:59:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-04 08:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:00:07 [end_date_ymd] => 2025-03-04 08:00:07 [RateCDR] => 1 ) [2025-03-04 08: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-04 05:00:07' and `end` < '2025-03-04 08: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-04 08:00:19] Production.INFO: count ==249 [2025-03-04 08:00:19] Production.ERROR: pbx CDR StartTime 2025-03-04 05:00:07 - End Time 2025-03-04 08:00:07 [2025-03-04 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604437', 'tblTempUsageDetail_20' ) start [2025-03-04 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604437', 'tblTempUsageDetail_20' ) end [2025-03-04 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604437', 'tblTempVendorCDR_20' ) start [2025-03-04 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604437', 'tblTempVendorCDR_20' ) end [2025-03-04 08:00:19] Production.INFO: ProcessCDR(1,14604437,1,1,2) [2025-03-04 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604437', 'tblTempUsageDetail_20' ) start [2025-03-04 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604437', 'tblTempUsageDetail_20' ) end [2025-03-04 08:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:00:22] Production.INFO: ==19932== Releasing lock... [2025-03-04 08:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:00:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-04 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:01:05 [end_date_ymd] => 2025-03-04 08:01:05 [RateCDR] => 1 ) [2025-03-04 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-04 05:01:05' and `end` < '2025-03-04 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-04 08:01:17] Production.INFO: count ==239 [2025-03-04 08:01:17] Production.ERROR: pbx CDR StartTime 2025-03-04 05:01:05 - End Time 2025-03-04 08:01:05 [2025-03-04 08:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604442', 'tblTempUsageDetail_20' ) start [2025-03-04 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604442', 'tblTempUsageDetail_20' ) end [2025-03-04 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604442', 'tblTempVendorCDR_20' ) start [2025-03-04 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604442', 'tblTempVendorCDR_20' ) end [2025-03-04 08:01:17] Production.INFO: ProcessCDR(1,14604442,1,1,2) [2025-03-04 08:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604442', 'tblTempUsageDetail_20' ) start [2025-03-04 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604442', 'tblTempUsageDetail_20' ) end [2025-03-04 08:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:01:20] Production.INFO: ==20028== Releasing lock... [2025-03-04 08:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:01:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-04 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:02:05 [end_date_ymd] => 2025-03-04 08:02:05 [RateCDR] => 1 ) [2025-03-04 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-04 05:02:05' and `end` < '2025-03-04 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-04 08:02:17] Production.INFO: count ==239 [2025-03-04 08:02:17] Production.ERROR: pbx CDR StartTime 2025-03-04 05:02:05 - End Time 2025-03-04 08:02:05 [2025-03-04 08:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604447', 'tblTempUsageDetail_20' ) start [2025-03-04 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604447', 'tblTempUsageDetail_20' ) end [2025-03-04 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604447', 'tblTempVendorCDR_20' ) start [2025-03-04 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604447', 'tblTempVendorCDR_20' ) end [2025-03-04 08:02:17] Production.INFO: ProcessCDR(1,14604447,1,1,2) [2025-03-04 08:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604447', 'tblTempUsageDetail_20' ) start [2025-03-04 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604447', 'tblTempUsageDetail_20' ) end [2025-03-04 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:02:21] Production.INFO: ==20113== Releasing lock... [2025-03-04 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:02:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-04 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:03:05 [end_date_ymd] => 2025-03-04 08:03:05 [RateCDR] => 1 ) [2025-03-04 08:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 05:03:05' and `end` < '2025-03-04 08:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 08:03:17] Production.INFO: count ==244 [2025-03-04 08:03:17] Production.ERROR: pbx CDR StartTime 2025-03-04 05:03:05 - End Time 2025-03-04 08:03:05 [2025-03-04 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604452', 'tblTempUsageDetail_20' ) start [2025-03-04 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604452', 'tblTempUsageDetail_20' ) end [2025-03-04 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604452', 'tblTempVendorCDR_20' ) start [2025-03-04 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604452', 'tblTempVendorCDR_20' ) end [2025-03-04 08:03:17] Production.INFO: ProcessCDR(1,14604452,1,1,2) [2025-03-04 08:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604452', 'tblTempUsageDetail_20' ) start [2025-03-04 08:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604452', 'tblTempUsageDetail_20' ) end [2025-03-04 08:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:03:20] Production.INFO: ==20234== Releasing lock... [2025-03-04 08:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:03:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-04 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:04:05 [end_date_ymd] => 2025-03-04 08:04:05 [RateCDR] => 1 ) [2025-03-04 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-04 05:04:05' and `end` < '2025-03-04 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-04 08:04:17] Production.INFO: count ==260 [2025-03-04 08:04:17] Production.ERROR: pbx CDR StartTime 2025-03-04 05:04:05 - End Time 2025-03-04 08:04:05 [2025-03-04 08:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604457', 'tblTempUsageDetail_20' ) start [2025-03-04 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604457', 'tblTempUsageDetail_20' ) end [2025-03-04 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604457', 'tblTempVendorCDR_20' ) start [2025-03-04 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604457', 'tblTempVendorCDR_20' ) end [2025-03-04 08:04:17] Production.INFO: ProcessCDR(1,14604457,1,1,2) [2025-03-04 08:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604457', 'tblTempUsageDetail_20' ) start [2025-03-04 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604457', 'tblTempUsageDetail_20' ) end [2025-03-04 08:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:04:21] Production.INFO: ==20314== Releasing lock... [2025-03-04 08:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:04:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-04 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:05:05 [end_date_ymd] => 2025-03-04 08:05:05 [RateCDR] => 1 ) [2025-03-04 08: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 05:05:05' and `end` < '2025-03-04 08: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-04 08:05:17] Production.INFO: count ==264 [2025-03-04 08:05:17] Production.ERROR: pbx CDR StartTime 2025-03-04 05:05:05 - End Time 2025-03-04 08:05:05 [2025-03-04 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604462', 'tblTempUsageDetail_20' ) start [2025-03-04 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604462', 'tblTempUsageDetail_20' ) end [2025-03-04 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604462', 'tblTempVendorCDR_20' ) start [2025-03-04 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604462', 'tblTempVendorCDR_20' ) end [2025-03-04 08:05:17] Production.INFO: ProcessCDR(1,14604462,1,1,2) [2025-03-04 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604462', 'tblTempUsageDetail_20' ) start [2025-03-04 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604462', 'tblTempUsageDetail_20' ) end [2025-03-04 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:05:21] Production.INFO: ==20393== Releasing lock... [2025-03-04 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:05:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-04 08:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:06:06 [end_date_ymd] => 2025-03-04 08:06:06 [RateCDR] => 1 ) [2025-03-04 08: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 05:06:06' and `end` < '2025-03-04 08: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-04 08:06:18] Production.INFO: count ==272 [2025-03-04 08:06:18] Production.ERROR: pbx CDR StartTime 2025-03-04 05:06:06 - End Time 2025-03-04 08:06:06 [2025-03-04 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604467', 'tblTempUsageDetail_20' ) start [2025-03-04 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604467', 'tblTempUsageDetail_20' ) end [2025-03-04 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604467', 'tblTempVendorCDR_20' ) start [2025-03-04 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604467', 'tblTempVendorCDR_20' ) end [2025-03-04 08:06:18] Production.INFO: ProcessCDR(1,14604467,1,1,2) [2025-03-04 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604467', 'tblTempUsageDetail_20' ) start [2025-03-04 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604467', 'tblTempUsageDetail_20' ) end [2025-03-04 08:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:06:22] Production.INFO: ==20472== Releasing lock... [2025-03-04 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:06:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-04 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:07:05 [end_date_ymd] => 2025-03-04 08:07:05 [RateCDR] => 1 ) [2025-03-04 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-04 05:07:05' and `end` < '2025-03-04 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-04 08:07:17] Production.INFO: count ==278 [2025-03-04 08:07:17] Production.ERROR: pbx CDR StartTime 2025-03-04 05:07:05 - End Time 2025-03-04 08:07:05 [2025-03-04 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604472', 'tblTempUsageDetail_20' ) start [2025-03-04 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604472', 'tblTempUsageDetail_20' ) end [2025-03-04 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604472', 'tblTempVendorCDR_20' ) start [2025-03-04 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604472', 'tblTempVendorCDR_20' ) end [2025-03-04 08:07:17] Production.INFO: ProcessCDR(1,14604472,1,1,2) [2025-03-04 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604472', 'tblTempUsageDetail_20' ) start [2025-03-04 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604472', 'tblTempUsageDetail_20' ) end [2025-03-04 08:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:07:22] Production.INFO: ==20549== Releasing lock... [2025-03-04 08:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:07:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-04 08:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:08:06 [end_date_ymd] => 2025-03-04 08:08:06 [RateCDR] => 1 ) [2025-03-04 08: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-04 05:08:06' and `end` < '2025-03-04 08: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-04 08:08:18] Production.INFO: count ==278 [2025-03-04 08:08:18] Production.ERROR: pbx CDR StartTime 2025-03-04 05:08:06 - End Time 2025-03-04 08:08:06 [2025-03-04 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604477', 'tblTempUsageDetail_20' ) start [2025-03-04 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604477', 'tblTempUsageDetail_20' ) end [2025-03-04 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604477', 'tblTempVendorCDR_20' ) start [2025-03-04 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604477', 'tblTempVendorCDR_20' ) end [2025-03-04 08:08:18] Production.INFO: ProcessCDR(1,14604477,1,1,2) [2025-03-04 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604477', 'tblTempUsageDetail_20' ) start [2025-03-04 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604477', 'tblTempUsageDetail_20' ) end [2025-03-04 08:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:08:21] Production.INFO: ==20630== Releasing lock... [2025-03-04 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:08:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-04 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:09:05 [end_date_ymd] => 2025-03-04 08:09:05 [RateCDR] => 1 ) [2025-03-04 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-04 05:09:05' and `end` < '2025-03-04 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-04 08:09:17] Production.INFO: count ==286 [2025-03-04 08:09:17] Production.ERROR: pbx CDR StartTime 2025-03-04 05:09:05 - End Time 2025-03-04 08:09:05 [2025-03-04 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604482', 'tblTempUsageDetail_20' ) start [2025-03-04 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604482', 'tblTempUsageDetail_20' ) end [2025-03-04 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604482', 'tblTempVendorCDR_20' ) start [2025-03-04 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604482', 'tblTempVendorCDR_20' ) end [2025-03-04 08:09:17] Production.INFO: ProcessCDR(1,14604482,1,1,2) [2025-03-04 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604482', 'tblTempUsageDetail_20' ) start [2025-03-04 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604482', 'tblTempUsageDetail_20' ) end [2025-03-04 08:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:09:20] Production.INFO: ==20709== Releasing lock... [2025-03-04 08:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:09:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-04 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:10:06 [end_date_ymd] => 2025-03-04 08:10:06 [RateCDR] => 1 ) [2025-03-04 08:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 05:10:06' and `end` < '2025-03-04 08: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-04 08:10:18] Production.INFO: count ==287 [2025-03-04 08:10:18] Production.ERROR: pbx CDR StartTime 2025-03-04 05:10:06 - End Time 2025-03-04 08:10:06 [2025-03-04 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604488', 'tblTempUsageDetail_20' ) start [2025-03-04 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604488', 'tblTempUsageDetail_20' ) end [2025-03-04 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604488', 'tblTempVendorCDR_20' ) start [2025-03-04 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604488', 'tblTempVendorCDR_20' ) end [2025-03-04 08:10:18] Production.INFO: ProcessCDR(1,14604488,1,1,2) [2025-03-04 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604488', 'tblTempUsageDetail_20' ) start [2025-03-04 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604488', 'tblTempUsageDetail_20' ) end [2025-03-04 08:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:10:23] Production.INFO: ==20790== Releasing lock... [2025-03-04 08:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:10:23] Production.INFO: 30.5 MB #Memory Used# [2025-03-04 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:11:05 [end_date_ymd] => 2025-03-04 08:11:05 [RateCDR] => 1 ) [2025-03-04 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-04 05:11:05' and `end` < '2025-03-04 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-04 08:11:17] Production.INFO: count ==332 [2025-03-04 08:11:17] Production.ERROR: pbx CDR StartTime 2025-03-04 05:11:05 - End Time 2025-03-04 08:11:05 [2025-03-04 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604493', 'tblTempUsageDetail_20' ) start [2025-03-04 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604493', 'tblTempUsageDetail_20' ) end [2025-03-04 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604493', 'tblTempVendorCDR_20' ) start [2025-03-04 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604493', 'tblTempVendorCDR_20' ) end [2025-03-04 08:11:17] Production.INFO: ProcessCDR(1,14604493,1,1,2) [2025-03-04 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604493', 'tblTempUsageDetail_20' ) start [2025-03-04 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604493', 'tblTempUsageDetail_20' ) end [2025-03-04 08:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:11:22] Production.INFO: ==20872== Releasing lock... [2025-03-04 08:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:11:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-04 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:12:05 [end_date_ymd] => 2025-03-04 08:12:05 [RateCDR] => 1 ) [2025-03-04 08:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 05:12:05' and `end` < '2025-03-04 08:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 08:12:17] Production.INFO: count ==349 [2025-03-04 08:12:17] Production.ERROR: pbx CDR StartTime 2025-03-04 05:12:05 - End Time 2025-03-04 08:12:05 [2025-03-04 08:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604498', 'tblTempUsageDetail_20' ) start [2025-03-04 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604498', 'tblTempUsageDetail_20' ) end [2025-03-04 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604498', 'tblTempVendorCDR_20' ) start [2025-03-04 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604498', 'tblTempVendorCDR_20' ) end [2025-03-04 08:12:17] Production.INFO: ProcessCDR(1,14604498,1,1,2) [2025-03-04 08:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604498', 'tblTempUsageDetail_20' ) start [2025-03-04 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604498', 'tblTempUsageDetail_20' ) end [2025-03-04 08:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:12:21] Production.INFO: ==20963== Releasing lock... [2025-03-04 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:12:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-04 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:13:05 [end_date_ymd] => 2025-03-04 08:13:05 [RateCDR] => 1 ) [2025-03-04 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-04 05:13:05' and `end` < '2025-03-04 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-04 08:13:17] Production.INFO: count ==350 [2025-03-04 08:13:17] Production.ERROR: pbx CDR StartTime 2025-03-04 05:13:05 - End Time 2025-03-04 08:13:05 [2025-03-04 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604503', 'tblTempUsageDetail_20' ) start [2025-03-04 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604503', 'tblTempUsageDetail_20' ) end [2025-03-04 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604503', 'tblTempVendorCDR_20' ) start [2025-03-04 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604503', 'tblTempVendorCDR_20' ) end [2025-03-04 08:13:17] Production.INFO: ProcessCDR(1,14604503,1,1,2) [2025-03-04 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604503', 'tblTempUsageDetail_20' ) start [2025-03-04 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604503', 'tblTempUsageDetail_20' ) end [2025-03-04 08:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:13:22] Production.INFO: ==21042== Releasing lock... [2025-03-04 08:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:13:22] Production.INFO: 31 MB #Memory Used# [2025-03-04 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:14:05 [end_date_ymd] => 2025-03-04 08:14:05 [RateCDR] => 1 ) [2025-03-04 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 05:14:05' and `end` < '2025-03-04 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 08:14:17] Production.INFO: count ==352 [2025-03-04 08:14:17] Production.ERROR: pbx CDR StartTime 2025-03-04 05:14:05 - End Time 2025-03-04 08:14:05 [2025-03-04 08:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604508', 'tblTempUsageDetail_20' ) start [2025-03-04 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604508', 'tblTempUsageDetail_20' ) end [2025-03-04 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604508', 'tblTempVendorCDR_20' ) start [2025-03-04 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604508', 'tblTempVendorCDR_20' ) end [2025-03-04 08:14:17] Production.INFO: ProcessCDR(1,14604508,1,1,2) [2025-03-04 08:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604508', 'tblTempUsageDetail_20' ) start [2025-03-04 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604508', 'tblTempUsageDetail_20' ) end [2025-03-04 08:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:14:22] Production.INFO: ==21122== Releasing lock... [2025-03-04 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:14:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-04 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:15:05 [end_date_ymd] => 2025-03-04 08:15:05 [RateCDR] => 1 ) [2025-03-04 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-04 05:15:05' and `end` < '2025-03-04 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-04 08:15:17] Production.INFO: count ==358 [2025-03-04 08:15:17] Production.ERROR: pbx CDR StartTime 2025-03-04 05:15:05 - End Time 2025-03-04 08:15:05 [2025-03-04 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604513', 'tblTempUsageDetail_20' ) start [2025-03-04 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604513', 'tblTempUsageDetail_20' ) end [2025-03-04 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604513', 'tblTempVendorCDR_20' ) start [2025-03-04 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604513', 'tblTempVendorCDR_20' ) end [2025-03-04 08:15:17] Production.INFO: ProcessCDR(1,14604513,1,1,2) [2025-03-04 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604513', 'tblTempUsageDetail_20' ) start [2025-03-04 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604513', 'tblTempUsageDetail_20' ) end [2025-03-04 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:15:21] Production.INFO: ==21198== Releasing lock... [2025-03-04 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:15:21] Production.INFO: 31 MB #Memory Used# [2025-03-04 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:16:05 [end_date_ymd] => 2025-03-04 08:16:05 [RateCDR] => 1 ) [2025-03-04 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-04 05:16:05' and `end` < '2025-03-04 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-04 08:16:17] Production.INFO: count ==362 [2025-03-04 08:16:17] Production.ERROR: pbx CDR StartTime 2025-03-04 05:16:05 - End Time 2025-03-04 08:16:05 [2025-03-04 08:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604518', 'tblTempUsageDetail_20' ) start [2025-03-04 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604518', 'tblTempUsageDetail_20' ) end [2025-03-04 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604518', 'tblTempVendorCDR_20' ) start [2025-03-04 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604518', 'tblTempVendorCDR_20' ) end [2025-03-04 08:16:17] Production.INFO: ProcessCDR(1,14604518,1,1,2) [2025-03-04 08:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604518', 'tblTempUsageDetail_20' ) start [2025-03-04 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604518', 'tblTempUsageDetail_20' ) end [2025-03-04 08:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:16:22] Production.INFO: ==21279== Releasing lock... [2025-03-04 08:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:16:22] Production.INFO: 31 MB #Memory Used# [2025-03-04 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:17:05 [end_date_ymd] => 2025-03-04 08:17:05 [RateCDR] => 1 ) [2025-03-04 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-04 05:17:05' and `end` < '2025-03-04 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-04 08:17:17] Production.INFO: count ==378 [2025-03-04 08:17:17] Production.ERROR: pbx CDR StartTime 2025-03-04 05:17:05 - End Time 2025-03-04 08:17:05 [2025-03-04 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604523', 'tblTempUsageDetail_20' ) start [2025-03-04 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604523', 'tblTempUsageDetail_20' ) end [2025-03-04 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604523', 'tblTempVendorCDR_20' ) start [2025-03-04 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604523', 'tblTempVendorCDR_20' ) end [2025-03-04 08:17:17] Production.INFO: ProcessCDR(1,14604523,1,1,2) [2025-03-04 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604523', 'tblTempUsageDetail_20' ) start [2025-03-04 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604523', 'tblTempUsageDetail_20' ) end [2025-03-04 08:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:17:21] Production.INFO: ==21357== Releasing lock... [2025-03-04 08:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:17:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-04 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:18:05 [end_date_ymd] => 2025-03-04 08:18:05 [RateCDR] => 1 ) [2025-03-04 08:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 05:18:05' and `end` < '2025-03-04 08:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 08:18:17] Production.INFO: count ==385 [2025-03-04 08:18:17] Production.ERROR: pbx CDR StartTime 2025-03-04 05:18:05 - End Time 2025-03-04 08:18:05 [2025-03-04 08:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604528', 'tblTempUsageDetail_20' ) start [2025-03-04 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604528', 'tblTempUsageDetail_20' ) end [2025-03-04 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604528', 'tblTempVendorCDR_20' ) start [2025-03-04 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604528', 'tblTempVendorCDR_20' ) end [2025-03-04 08:18:17] Production.INFO: ProcessCDR(1,14604528,1,1,2) [2025-03-04 08:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604528', 'tblTempUsageDetail_20' ) start [2025-03-04 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604528', 'tblTempUsageDetail_20' ) end [2025-03-04 08:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:18:22] Production.INFO: ==21489== Releasing lock... [2025-03-04 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:18:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-04 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:19:05 [end_date_ymd] => 2025-03-04 08:19:05 [RateCDR] => 1 ) [2025-03-04 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-04 05:19:05' and `end` < '2025-03-04 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-04 08:19:17] Production.INFO: count ==394 [2025-03-04 08:19:17] Production.ERROR: pbx CDR StartTime 2025-03-04 05:19:05 - End Time 2025-03-04 08:19:05 [2025-03-04 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604533', 'tblTempUsageDetail_20' ) start [2025-03-04 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604533', 'tblTempUsageDetail_20' ) end [2025-03-04 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604533', 'tblTempVendorCDR_20' ) start [2025-03-04 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604533', 'tblTempVendorCDR_20' ) end [2025-03-04 08:19:17] Production.INFO: ProcessCDR(1,14604533,1,1,2) [2025-03-04 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604533', 'tblTempUsageDetail_20' ) start [2025-03-04 08:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604533', 'tblTempUsageDetail_20' ) end [2025-03-04 08:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:19:20] Production.INFO: ==21572== Releasing lock... [2025-03-04 08:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:19:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-04 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:20:06 [end_date_ymd] => 2025-03-04 08:20:06 [RateCDR] => 1 ) [2025-03-04 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-04 05:20:06' and `end` < '2025-03-04 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-04 08:20:18] Production.INFO: count ==402 [2025-03-04 08:20:18] Production.ERROR: pbx CDR StartTime 2025-03-04 05:20:06 - End Time 2025-03-04 08:20:06 [2025-03-04 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604539', 'tblTempUsageDetail_20' ) start [2025-03-04 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604539', 'tblTempUsageDetail_20' ) end [2025-03-04 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604539', 'tblTempVendorCDR_20' ) start [2025-03-04 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604539', 'tblTempVendorCDR_20' ) end [2025-03-04 08:20:18] Production.INFO: ProcessCDR(1,14604539,1,1,2) [2025-03-04 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604539', 'tblTempUsageDetail_20' ) start [2025-03-04 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604539', 'tblTempUsageDetail_20' ) end [2025-03-04 08:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:20:22] Production.INFO: ==21653== Releasing lock... [2025-03-04 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:20:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-04 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:21:05 [end_date_ymd] => 2025-03-04 08:21:05 [RateCDR] => 1 ) [2025-03-04 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-04 05:21:05' and `end` < '2025-03-04 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-04 08:21:17] Production.INFO: count ==423 [2025-03-04 08:21:17] Production.ERROR: pbx CDR StartTime 2025-03-04 05:21:05 - End Time 2025-03-04 08:21:05 [2025-03-04 08:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604544', 'tblTempUsageDetail_20' ) start [2025-03-04 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604544', 'tblTempUsageDetail_20' ) end [2025-03-04 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604544', 'tblTempVendorCDR_20' ) start [2025-03-04 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604544', 'tblTempVendorCDR_20' ) end [2025-03-04 08:21:17] Production.INFO: ProcessCDR(1,14604544,1,1,2) [2025-03-04 08:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604544', 'tblTempUsageDetail_20' ) start [2025-03-04 08:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604544', 'tblTempUsageDetail_20' ) end [2025-03-04 08:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:21:20] Production.INFO: ==21740== Releasing lock... [2025-03-04 08:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:21:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-04 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:22:05 [end_date_ymd] => 2025-03-04 08:22:05 [RateCDR] => 1 ) [2025-03-04 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-04 05:22:05' and `end` < '2025-03-04 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-04 08:22:17] Production.INFO: count ==433 [2025-03-04 08:22:17] Production.ERROR: pbx CDR StartTime 2025-03-04 05:22:05 - End Time 2025-03-04 08:22:05 [2025-03-04 08:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604549', 'tblTempUsageDetail_20' ) start [2025-03-04 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604549', 'tblTempUsageDetail_20' ) end [2025-03-04 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604549', 'tblTempVendorCDR_20' ) start [2025-03-04 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604549', 'tblTempVendorCDR_20' ) end [2025-03-04 08:22:17] Production.INFO: ProcessCDR(1,14604549,1,1,2) [2025-03-04 08:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604549', 'tblTempUsageDetail_20' ) start [2025-03-04 08:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604549', 'tblTempUsageDetail_20' ) end [2025-03-04 08:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:22:20] Production.INFO: ==21818== Releasing lock... [2025-03-04 08:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:22:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-04 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:23:05 [end_date_ymd] => 2025-03-04 08:23:05 [RateCDR] => 1 ) [2025-03-04 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-04 05:23:05' and `end` < '2025-03-04 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-04 08:23:17] Production.INFO: count ==434 [2025-03-04 08:23:17] Production.ERROR: pbx CDR StartTime 2025-03-04 05:23:05 - End Time 2025-03-04 08:23:05 [2025-03-04 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604554', 'tblTempUsageDetail_20' ) start [2025-03-04 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604554', 'tblTempUsageDetail_20' ) end [2025-03-04 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604554', 'tblTempVendorCDR_20' ) start [2025-03-04 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604554', 'tblTempVendorCDR_20' ) end [2025-03-04 08:23:18] Production.INFO: ProcessCDR(1,14604554,1,1,2) [2025-03-04 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604554', 'tblTempUsageDetail_20' ) start [2025-03-04 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604554', 'tblTempUsageDetail_20' ) end [2025-03-04 08:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:23:21] Production.INFO: ==21897== Releasing lock... [2025-03-04 08:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:23:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-04 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:24:05 [end_date_ymd] => 2025-03-04 08:24:05 [RateCDR] => 1 ) [2025-03-04 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-04 05:24:05' and `end` < '2025-03-04 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-04 08:24:17] Production.INFO: count ==440 [2025-03-04 08:24:17] Production.ERROR: pbx CDR StartTime 2025-03-04 05:24:05 - End Time 2025-03-04 08:24:05 [2025-03-04 08:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604559', 'tblTempUsageDetail_20' ) start [2025-03-04 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604559', 'tblTempUsageDetail_20' ) end [2025-03-04 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604559', 'tblTempVendorCDR_20' ) start [2025-03-04 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604559', 'tblTempVendorCDR_20' ) end [2025-03-04 08:24:17] Production.INFO: ProcessCDR(1,14604559,1,1,2) [2025-03-04 08:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604559', 'tblTempUsageDetail_20' ) start [2025-03-04 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604559', 'tblTempUsageDetail_20' ) end [2025-03-04 08:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:24:22] Production.INFO: ==21980== Releasing lock... [2025-03-04 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:24:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-04 08:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:25:06 [end_date_ymd] => 2025-03-04 08:25:06 [RateCDR] => 1 ) [2025-03-04 08: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-04 05:25:06' and `end` < '2025-03-04 08: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-04 08:25:19] Production.INFO: count ==442 [2025-03-04 08:25:19] Production.ERROR: pbx CDR StartTime 2025-03-04 05:25:06 - End Time 2025-03-04 08:25:06 [2025-03-04 08:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604564', 'tblTempUsageDetail_20' ) start [2025-03-04 08:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604564', 'tblTempUsageDetail_20' ) end [2025-03-04 08:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604564', 'tblTempVendorCDR_20' ) start [2025-03-04 08:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604564', 'tblTempVendorCDR_20' ) end [2025-03-04 08:25:19] Production.INFO: ProcessCDR(1,14604564,1,1,2) [2025-03-04 08:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604564', 'tblTempUsageDetail_20' ) start [2025-03-04 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604564', 'tblTempUsageDetail_20' ) end [2025-03-04 08:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:25:22] Production.INFO: ==22063== Releasing lock... [2025-03-04 08:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:25:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-04 08:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:26:04 [end_date_ymd] => 2025-03-04 08:26:04 [RateCDR] => 1 ) [2025-03-04 08:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 05:26:04' and `end` < '2025-03-04 08:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 08:26:16] Production.INFO: count ==448 [2025-03-04 08:26:17] Production.ERROR: pbx CDR StartTime 2025-03-04 05:26:04 - End Time 2025-03-04 08:26:04 [2025-03-04 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604569', 'tblTempUsageDetail_20' ) start [2025-03-04 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604569', 'tblTempUsageDetail_20' ) end [2025-03-04 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604569', 'tblTempVendorCDR_20' ) start [2025-03-04 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604569', 'tblTempVendorCDR_20' ) end [2025-03-04 08:26:17] Production.INFO: ProcessCDR(1,14604569,1,1,2) [2025-03-04 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604569', 'tblTempUsageDetail_20' ) start [2025-03-04 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604569', 'tblTempUsageDetail_20' ) end [2025-03-04 08:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:26:21] Production.INFO: ==22144== Releasing lock... [2025-03-04 08:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:26:21] Production.INFO: 32 MB #Memory Used# [2025-03-04 08:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:27:06 [end_date_ymd] => 2025-03-04 08:27:06 [RateCDR] => 1 ) [2025-03-04 08: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 05:27:06' and `end` < '2025-03-04 08: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-04 08:27:18] Production.INFO: count ==448 [2025-03-04 08:27:18] Production.ERROR: pbx CDR StartTime 2025-03-04 05:27:06 - End Time 2025-03-04 08:27:06 [2025-03-04 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604574', 'tblTempUsageDetail_20' ) start [2025-03-04 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604574', 'tblTempUsageDetail_20' ) end [2025-03-04 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604574', 'tblTempVendorCDR_20' ) start [2025-03-04 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604574', 'tblTempVendorCDR_20' ) end [2025-03-04 08:27:18] Production.INFO: ProcessCDR(1,14604574,1,1,2) [2025-03-04 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604574', 'tblTempUsageDetail_20' ) start [2025-03-04 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604574', 'tblTempUsageDetail_20' ) end [2025-03-04 08:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:27:21] Production.INFO: ==22230== Releasing lock... [2025-03-04 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:27:21] Production.INFO: 32 MB #Memory Used# [2025-03-04 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:28:05 [end_date_ymd] => 2025-03-04 08:28:05 [RateCDR] => 1 ) [2025-03-04 08:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 05:28:05' and `end` < '2025-03-04 08:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 08:28:17] Production.INFO: count ==468 [2025-03-04 08:28:17] Production.ERROR: pbx CDR StartTime 2025-03-04 05:28:05 - End Time 2025-03-04 08:28:05 [2025-03-04 08:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604579', 'tblTempUsageDetail_20' ) start [2025-03-04 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604579', 'tblTempUsageDetail_20' ) end [2025-03-04 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604579', 'tblTempVendorCDR_20' ) start [2025-03-04 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604579', 'tblTempVendorCDR_20' ) end [2025-03-04 08:28:17] Production.INFO: ProcessCDR(1,14604579,1,1,2) [2025-03-04 08:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604579', 'tblTempUsageDetail_20' ) start [2025-03-04 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604579', 'tblTempUsageDetail_20' ) end [2025-03-04 08:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:28:22] Production.INFO: ==22310== Releasing lock... [2025-03-04 08:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:28:22] Production.INFO: 32 MB #Memory Used# [2025-03-04 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:29:05 [end_date_ymd] => 2025-03-04 08:29:05 [RateCDR] => 1 ) [2025-03-04 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-04 05:29:05' and `end` < '2025-03-04 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-04 08:29:17] Production.INFO: count ==474 [2025-03-04 08:29:17] Production.ERROR: pbx CDR StartTime 2025-03-04 05:29:05 - End Time 2025-03-04 08:29:05 [2025-03-04 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604584', 'tblTempUsageDetail_20' ) start [2025-03-04 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604584', 'tblTempUsageDetail_20' ) end [2025-03-04 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604584', 'tblTempVendorCDR_20' ) start [2025-03-04 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604584', 'tblTempVendorCDR_20' ) end [2025-03-04 08:29:17] Production.INFO: ProcessCDR(1,14604584,1,1,2) [2025-03-04 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604584', 'tblTempUsageDetail_20' ) start [2025-03-04 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604584', 'tblTempUsageDetail_20' ) end [2025-03-04 08:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:29:22] Production.INFO: ==22395== Releasing lock... [2025-03-04 08:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:29:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-04 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:30:06 [end_date_ymd] => 2025-03-04 08:30:06 [RateCDR] => 1 ) [2025-03-04 08: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 05:30:06' and `end` < '2025-03-04 08: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-04 08:30:18] Production.INFO: count ==486 [2025-03-04 08:30:18] Production.ERROR: pbx CDR StartTime 2025-03-04 05:30:06 - End Time 2025-03-04 08:30:06 [2025-03-04 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604590', 'tblTempUsageDetail_20' ) start [2025-03-04 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604590', 'tblTempUsageDetail_20' ) end [2025-03-04 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604590', 'tblTempVendorCDR_20' ) start [2025-03-04 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604590', 'tblTempVendorCDR_20' ) end [2025-03-04 08:30:18] Production.INFO: ProcessCDR(1,14604590,1,1,2) [2025-03-04 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604590', 'tblTempUsageDetail_20' ) start [2025-03-04 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604590', 'tblTempUsageDetail_20' ) end [2025-03-04 08:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:30:22] Production.INFO: ==22481== Releasing lock... [2025-03-04 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:30:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-04 08:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:31:06 [end_date_ymd] => 2025-03-04 08:31:06 [RateCDR] => 1 ) [2025-03-04 08: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-04 05:31:06' and `end` < '2025-03-04 08: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-04 08:31:18] Production.INFO: count ==492 [2025-03-04 08:31:18] Production.ERROR: pbx CDR StartTime 2025-03-04 05:31:06 - End Time 2025-03-04 08:31:06 [2025-03-04 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604595', 'tblTempUsageDetail_20' ) start [2025-03-04 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604595', 'tblTempUsageDetail_20' ) end [2025-03-04 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604595', 'tblTempVendorCDR_20' ) start [2025-03-04 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604595', 'tblTempVendorCDR_20' ) end [2025-03-04 08:31:18] Production.INFO: ProcessCDR(1,14604595,1,1,2) [2025-03-04 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604595', 'tblTempUsageDetail_20' ) start [2025-03-04 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604595', 'tblTempUsageDetail_20' ) end [2025-03-04 08:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:31:21] Production.INFO: ==22566== Releasing lock... [2025-03-04 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:31:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-04 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:32:05 [end_date_ymd] => 2025-03-04 08:32:05 [RateCDR] => 1 ) [2025-03-04 08:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 05:32:05' and `end` < '2025-03-04 08:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 08:32:17] Production.INFO: count ==492 [2025-03-04 08:32:17] Production.ERROR: pbx CDR StartTime 2025-03-04 05:32:05 - End Time 2025-03-04 08:32:05 [2025-03-04 08:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604600', 'tblTempUsageDetail_20' ) start [2025-03-04 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604600', 'tblTempUsageDetail_20' ) end [2025-03-04 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604600', 'tblTempVendorCDR_20' ) start [2025-03-04 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604600', 'tblTempVendorCDR_20' ) end [2025-03-04 08:32:17] Production.INFO: ProcessCDR(1,14604600,1,1,2) [2025-03-04 08:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604600', 'tblTempUsageDetail_20' ) start [2025-03-04 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604600', 'tblTempUsageDetail_20' ) end [2025-03-04 08:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:32:21] Production.INFO: ==22647== Releasing lock... [2025-03-04 08:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:32:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-04 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:33:05 [end_date_ymd] => 2025-03-04 08:33:05 [RateCDR] => 1 ) [2025-03-04 08: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 05:33:05' and `end` < '2025-03-04 08: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-04 08:33:18] Production.INFO: count ==505 [2025-03-04 08:33:18] Production.ERROR: pbx CDR StartTime 2025-03-04 05:33:05 - End Time 2025-03-04 08:33:05 [2025-03-04 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604605', 'tblTempUsageDetail_20' ) start [2025-03-04 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604605', 'tblTempUsageDetail_20' ) end [2025-03-04 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604605', 'tblTempVendorCDR_20' ) start [2025-03-04 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604605', 'tblTempVendorCDR_20' ) end [2025-03-04 08:33:18] Production.INFO: ProcessCDR(1,14604605,1,1,2) [2025-03-04 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604605', 'tblTempUsageDetail_20' ) start [2025-03-04 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604605', 'tblTempUsageDetail_20' ) end [2025-03-04 08:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:33:21] Production.INFO: ==22727== Releasing lock... [2025-03-04 08:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:33:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-04 08:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:34:04 [end_date_ymd] => 2025-03-04 08:34:04 [RateCDR] => 1 ) [2025-03-04 08:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 05:34:04' and `end` < '2025-03-04 08:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 08:34:16] Production.INFO: count ==521 [2025-03-04 08:34:17] Production.ERROR: pbx CDR StartTime 2025-03-04 05:34:04 - End Time 2025-03-04 08:34:04 [2025-03-04 08:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604610', 'tblTempUsageDetail_20' ) start [2025-03-04 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604610', 'tblTempUsageDetail_20' ) end [2025-03-04 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604610', 'tblTempVendorCDR_20' ) start [2025-03-04 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604610', 'tblTempVendorCDR_20' ) end [2025-03-04 08:34:17] Production.INFO: ProcessCDR(1,14604610,1,1,2) [2025-03-04 08:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604610', 'tblTempUsageDetail_20' ) start [2025-03-04 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604610', 'tblTempUsageDetail_20' ) end [2025-03-04 08:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:34:22] Production.INFO: ==22844== Releasing lock... [2025-03-04 08:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:34:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-04 08:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:35:06 [end_date_ymd] => 2025-03-04 08:35:06 [RateCDR] => 1 ) [2025-03-04 08: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-04 05:35:06' and `end` < '2025-03-04 08: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-04 08:35:18] Production.INFO: count ==533 [2025-03-04 08:35:18] Production.ERROR: pbx CDR StartTime 2025-03-04 05:35:06 - End Time 2025-03-04 08:35:06 [2025-03-04 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604615', 'tblTempUsageDetail_20' ) start [2025-03-04 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604615', 'tblTempUsageDetail_20' ) end [2025-03-04 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604615', 'tblTempVendorCDR_20' ) start [2025-03-04 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604615', 'tblTempVendorCDR_20' ) end [2025-03-04 08:35:18] Production.INFO: ProcessCDR(1,14604615,1,1,2) [2025-03-04 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604615', 'tblTempUsageDetail_20' ) start [2025-03-04 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604615', 'tblTempUsageDetail_20' ) end [2025-03-04 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:35:21] Production.INFO: ==22926== Releasing lock... [2025-03-04 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:35:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-04 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:36:05 [end_date_ymd] => 2025-03-04 08:36:05 [RateCDR] => 1 ) [2025-03-04 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-04 05:36:05' and `end` < '2025-03-04 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-04 08:36:17] Production.INFO: count ==544 [2025-03-04 08:36:17] Production.ERROR: pbx CDR StartTime 2025-03-04 05:36:05 - End Time 2025-03-04 08:36:05 [2025-03-04 08:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604620', 'tblTempUsageDetail_20' ) start [2025-03-04 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604620', 'tblTempUsageDetail_20' ) end [2025-03-04 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604620', 'tblTempVendorCDR_20' ) start [2025-03-04 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604620', 'tblTempVendorCDR_20' ) end [2025-03-04 08:36:17] Production.INFO: ProcessCDR(1,14604620,1,1,2) [2025-03-04 08:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604620', 'tblTempUsageDetail_20' ) start [2025-03-04 08:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604620', 'tblTempUsageDetail_20' ) end [2025-03-04 08:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:36:21] Production.INFO: ==23005== Releasing lock... [2025-03-04 08:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:36:21] Production.INFO: 33 MB #Memory Used# [2025-03-04 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:37:05 [end_date_ymd] => 2025-03-04 08:37:05 [RateCDR] => 1 ) [2025-03-04 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-04 05:37:05' and `end` < '2025-03-04 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-04 08:37:17] Production.INFO: count ==545 [2025-03-04 08:37:17] Production.ERROR: pbx CDR StartTime 2025-03-04 05:37:05 - End Time 2025-03-04 08:37:05 [2025-03-04 08:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604625', 'tblTempUsageDetail_20' ) start [2025-03-04 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604625', 'tblTempUsageDetail_20' ) end [2025-03-04 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604625', 'tblTempVendorCDR_20' ) start [2025-03-04 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604625', 'tblTempVendorCDR_20' ) end [2025-03-04 08:37:17] Production.INFO: ProcessCDR(1,14604625,1,1,2) [2025-03-04 08:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604625', 'tblTempUsageDetail_20' ) start [2025-03-04 08:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604625', 'tblTempUsageDetail_20' ) end [2025-03-04 08:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:37:21] Production.INFO: ==23082== Releasing lock... [2025-03-04 08:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:37:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-04 08:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:38:06 [end_date_ymd] => 2025-03-04 08:38:06 [RateCDR] => 1 ) [2025-03-04 08: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 05:38:06' and `end` < '2025-03-04 08: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-04 08:38:18] Production.INFO: count ==556 [2025-03-04 08:38:18] Production.ERROR: pbx CDR StartTime 2025-03-04 05:38:06 - End Time 2025-03-04 08:38:06 [2025-03-04 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604630', 'tblTempUsageDetail_20' ) start [2025-03-04 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604630', 'tblTempUsageDetail_20' ) end [2025-03-04 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604630', 'tblTempVendorCDR_20' ) start [2025-03-04 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604630', 'tblTempVendorCDR_20' ) end [2025-03-04 08:38:18] Production.INFO: ProcessCDR(1,14604630,1,1,2) [2025-03-04 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604630', 'tblTempUsageDetail_20' ) start [2025-03-04 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604630', 'tblTempUsageDetail_20' ) end [2025-03-04 08:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:38:21] Production.INFO: ==23164== Releasing lock... [2025-03-04 08:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:38:21] Production.INFO: 33 MB #Memory Used# [2025-03-04 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:39:05 [end_date_ymd] => 2025-03-04 08:39:05 [RateCDR] => 1 ) [2025-03-04 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-04 05:39:05' and `end` < '2025-03-04 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-04 08:39:17] Production.INFO: count ==564 [2025-03-04 08:39:18] Production.ERROR: pbx CDR StartTime 2025-03-04 05:39:05 - End Time 2025-03-04 08:39:05 [2025-03-04 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604635', 'tblTempUsageDetail_20' ) start [2025-03-04 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604635', 'tblTempUsageDetail_20' ) end [2025-03-04 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604635', 'tblTempVendorCDR_20' ) start [2025-03-04 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604635', 'tblTempVendorCDR_20' ) end [2025-03-04 08:39:18] Production.INFO: ProcessCDR(1,14604635,1,1,2) [2025-03-04 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604635', 'tblTempUsageDetail_20' ) start [2025-03-04 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604635', 'tblTempUsageDetail_20' ) end [2025-03-04 08:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:39:22] Production.INFO: ==23241== Releasing lock... [2025-03-04 08:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:39:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:40:06 [end_date_ymd] => 2025-03-04 08:40:06 [RateCDR] => 1 ) [2025-03-04 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-04 05:40:06' and `end` < '2025-03-04 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-04 08:40:18] Production.INFO: count ==578 [2025-03-04 08:40:18] Production.ERROR: pbx CDR StartTime 2025-03-04 05:40:06 - End Time 2025-03-04 08:40:06 [2025-03-04 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604641', 'tblTempUsageDetail_20' ) start [2025-03-04 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604641', 'tblTempUsageDetail_20' ) end [2025-03-04 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604641', 'tblTempVendorCDR_20' ) start [2025-03-04 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604641', 'tblTempVendorCDR_20' ) end [2025-03-04 08:40:18] Production.INFO: ProcessCDR(1,14604641,1,1,2) [2025-03-04 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604641', 'tblTempUsageDetail_20' ) start [2025-03-04 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604641', 'tblTempUsageDetail_20' ) end [2025-03-04 08:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:40:22] Production.INFO: ==23326== Releasing lock... [2025-03-04 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:40:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:41:05 [end_date_ymd] => 2025-03-04 08:41:05 [RateCDR] => 1 ) [2025-03-04 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-04 05:41:05' and `end` < '2025-03-04 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-04 08:41:17] Production.INFO: count ==602 [2025-03-04 08:41:18] Production.ERROR: pbx CDR StartTime 2025-03-04 05:41:05 - End Time 2025-03-04 08:41:05 [2025-03-04 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604646', 'tblTempUsageDetail_20' ) start [2025-03-04 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604646', 'tblTempUsageDetail_20' ) end [2025-03-04 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604646', 'tblTempVendorCDR_20' ) start [2025-03-04 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604646', 'tblTempVendorCDR_20' ) end [2025-03-04 08:41:18] Production.INFO: ProcessCDR(1,14604646,1,1,2) [2025-03-04 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604646', 'tblTempUsageDetail_20' ) start [2025-03-04 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604646', 'tblTempUsageDetail_20' ) end [2025-03-04 08:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:41:21] Production.INFO: ==23415== Releasing lock... [2025-03-04 08:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:41:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-04 08:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:42:06 [end_date_ymd] => 2025-03-04 08:42:06 [RateCDR] => 1 ) [2025-03-04 08: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 05:42:06' and `end` < '2025-03-04 08: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-04 08:42:18] Production.INFO: count ==608 [2025-03-04 08:42:18] Production.ERROR: pbx CDR StartTime 2025-03-04 05:42:06 - End Time 2025-03-04 08:42:06 [2025-03-04 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604651', 'tblTempUsageDetail_20' ) start [2025-03-04 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604651', 'tblTempUsageDetail_20' ) end [2025-03-04 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604651', 'tblTempVendorCDR_20' ) start [2025-03-04 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604651', 'tblTempVendorCDR_20' ) end [2025-03-04 08:42:18] Production.INFO: ProcessCDR(1,14604651,1,1,2) [2025-03-04 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604651', 'tblTempUsageDetail_20' ) start [2025-03-04 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604651', 'tblTempUsageDetail_20' ) end [2025-03-04 08:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:42:22] Production.INFO: ==23498== Releasing lock... [2025-03-04 08:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:42:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-04 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:43:05 [end_date_ymd] => 2025-03-04 08:43:05 [RateCDR] => 1 ) [2025-03-04 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-04 05:43:05' and `end` < '2025-03-04 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-04 08:43:17] Production.INFO: count ==609 [2025-03-04 08:43:17] Production.ERROR: pbx CDR StartTime 2025-03-04 05:43:05 - End Time 2025-03-04 08:43:05 [2025-03-04 08:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604656', 'tblTempUsageDetail_20' ) start [2025-03-04 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604656', 'tblTempUsageDetail_20' ) end [2025-03-04 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604656', 'tblTempVendorCDR_20' ) start [2025-03-04 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604656', 'tblTempVendorCDR_20' ) end [2025-03-04 08:43:17] Production.INFO: ProcessCDR(1,14604656,1,1,2) [2025-03-04 08:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604656', 'tblTempUsageDetail_20' ) start [2025-03-04 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604656', 'tblTempUsageDetail_20' ) end [2025-03-04 08:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:43:22] Production.INFO: ==23579== Releasing lock... [2025-03-04 08:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:43:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-04 08:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:44:06 [end_date_ymd] => 2025-03-04 08:44:06 [RateCDR] => 1 ) [2025-03-04 08: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 05:44:06' and `end` < '2025-03-04 08: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-04 08:44:18] Production.INFO: count ==610 [2025-03-04 08:44:18] Production.ERROR: pbx CDR StartTime 2025-03-04 05:44:06 - End Time 2025-03-04 08:44:06 [2025-03-04 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604661', 'tblTempUsageDetail_20' ) start [2025-03-04 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604661', 'tblTempUsageDetail_20' ) end [2025-03-04 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604661', 'tblTempVendorCDR_20' ) start [2025-03-04 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604661', 'tblTempVendorCDR_20' ) end [2025-03-04 08:44:18] Production.INFO: ProcessCDR(1,14604661,1,1,2) [2025-03-04 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604661', 'tblTempUsageDetail_20' ) start [2025-03-04 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604661', 'tblTempUsageDetail_20' ) end [2025-03-04 08:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:44:22] Production.INFO: ==23660== Releasing lock... [2025-03-04 08:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:44:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:45:05 [end_date_ymd] => 2025-03-04 08:45:05 [RateCDR] => 1 ) [2025-03-04 08: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 05:45:05' and `end` < '2025-03-04 08: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-04 08:45:17] Production.INFO: count ==617 [2025-03-04 08:45:17] Production.ERROR: pbx CDR StartTime 2025-03-04 05:45:05 - End Time 2025-03-04 08:45:05 [2025-03-04 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604666', 'tblTempUsageDetail_20' ) start [2025-03-04 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604666', 'tblTempUsageDetail_20' ) end [2025-03-04 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604666', 'tblTempVendorCDR_20' ) start [2025-03-04 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604666', 'tblTempVendorCDR_20' ) end [2025-03-04 08:45:17] Production.INFO: ProcessCDR(1,14604666,1,1,2) [2025-03-04 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604666', 'tblTempUsageDetail_20' ) start [2025-03-04 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604666', 'tblTempUsageDetail_20' ) end [2025-03-04 08:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:45:22] Production.INFO: ==23744== Releasing lock... [2025-03-04 08:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:45:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:46:05 [end_date_ymd] => 2025-03-04 08:46:05 [RateCDR] => 1 ) [2025-03-04 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-04 05:46:05' and `end` < '2025-03-04 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-04 08:46:17] Production.INFO: count ==632 [2025-03-04 08:46:17] Production.ERROR: pbx CDR StartTime 2025-03-04 05:46:05 - End Time 2025-03-04 08:46:05 [2025-03-04 08:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604671', 'tblTempUsageDetail_20' ) start [2025-03-04 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604671', 'tblTempUsageDetail_20' ) end [2025-03-04 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604671', 'tblTempVendorCDR_20' ) start [2025-03-04 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604671', 'tblTempVendorCDR_20' ) end [2025-03-04 08:46:18] Production.INFO: ProcessCDR(1,14604671,1,1,2) [2025-03-04 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604671', 'tblTempUsageDetail_20' ) start [2025-03-04 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604671', 'tblTempUsageDetail_20' ) end [2025-03-04 08:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:46:22] Production.INFO: ==23830== Releasing lock... [2025-03-04 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:46:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:47:05 [end_date_ymd] => 2025-03-04 08:47:05 [RateCDR] => 1 ) [2025-03-04 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-04 05:47:05' and `end` < '2025-03-04 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-04 08:47:17] Production.INFO: count ==635 [2025-03-04 08:47:17] Production.ERROR: pbx CDR StartTime 2025-03-04 05:47:05 - End Time 2025-03-04 08:47:05 [2025-03-04 08:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604676', 'tblTempUsageDetail_20' ) start [2025-03-04 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604676', 'tblTempUsageDetail_20' ) end [2025-03-04 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604676', 'tblTempVendorCDR_20' ) start [2025-03-04 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604676', 'tblTempVendorCDR_20' ) end [2025-03-04 08:47:17] Production.INFO: ProcessCDR(1,14604676,1,1,2) [2025-03-04 08:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604676', 'tblTempUsageDetail_20' ) start [2025-03-04 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604676', 'tblTempUsageDetail_20' ) end [2025-03-04 08:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:47:22] Production.INFO: ==23908== Releasing lock... [2025-03-04 08:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:47:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-04 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:48:05 [end_date_ymd] => 2025-03-04 08:48:05 [RateCDR] => 1 ) [2025-03-04 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-04 05:48:05' and `end` < '2025-03-04 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-04 08:48:17] Production.INFO: count ==642 [2025-03-04 08:48:18] Production.ERROR: pbx CDR StartTime 2025-03-04 05:48:05 - End Time 2025-03-04 08:48:05 [2025-03-04 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604681', 'tblTempUsageDetail_20' ) start [2025-03-04 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604681', 'tblTempUsageDetail_20' ) end [2025-03-04 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604681', 'tblTempVendorCDR_20' ) start [2025-03-04 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604681', 'tblTempVendorCDR_20' ) end [2025-03-04 08:48:18] Production.INFO: ProcessCDR(1,14604681,1,1,2) [2025-03-04 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604681', 'tblTempUsageDetail_20' ) start [2025-03-04 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604681', 'tblTempUsageDetail_20' ) end [2025-03-04 08:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:48:21] Production.INFO: ==23994== Releasing lock... [2025-03-04 08:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:48:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 08:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:49:04 [end_date_ymd] => 2025-03-04 08:49:04 [RateCDR] => 1 ) [2025-03-04 08:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 05:49:04' and `end` < '2025-03-04 08:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 08:49:16] Production.INFO: count ==651 [2025-03-04 08:49:16] Production.ERROR: pbx CDR StartTime 2025-03-04 05:49:04 - End Time 2025-03-04 08:49:04 [2025-03-04 08:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604686', 'tblTempUsageDetail_20' ) start [2025-03-04 08:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604686', 'tblTempUsageDetail_20' ) end [2025-03-04 08:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604686', 'tblTempVendorCDR_20' ) start [2025-03-04 08:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604686', 'tblTempVendorCDR_20' ) end [2025-03-04 08:49:16] Production.INFO: ProcessCDR(1,14604686,1,1,2) [2025-03-04 08:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604686', 'tblTempUsageDetail_20' ) start [2025-03-04 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604686', 'tblTempUsageDetail_20' ) end [2025-03-04 08:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:49:21] Production.INFO: ==24114== Releasing lock... [2025-03-04 08:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:49:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:50:06 [end_date_ymd] => 2025-03-04 08:50:06 [RateCDR] => 1 ) [2025-03-04 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-04 05:50:06' and `end` < '2025-03-04 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-04 08:50:18] Production.INFO: count ==664 [2025-03-04 08:50:18] Production.ERROR: pbx CDR StartTime 2025-03-04 05:50:06 - End Time 2025-03-04 08:50:06 [2025-03-04 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604691', 'tblTempUsageDetail_20' ) start [2025-03-04 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604691', 'tblTempUsageDetail_20' ) end [2025-03-04 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604691', 'tblTempVendorCDR_20' ) start [2025-03-04 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604691', 'tblTempVendorCDR_20' ) end [2025-03-04 08:50:18] Production.INFO: ProcessCDR(1,14604691,1,1,2) [2025-03-04 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604691', 'tblTempUsageDetail_20' ) start [2025-03-04 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604691', 'tblTempUsageDetail_20' ) end [2025-03-04 08:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:50:23] Production.INFO: ==24204== Releasing lock... [2025-03-04 08:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:50:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-04 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:51:05 [end_date_ymd] => 2025-03-04 08:51:05 [RateCDR] => 1 ) [2025-03-04 08:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 05:51:05' and `end` < '2025-03-04 08:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 08:51:17] Production.INFO: count ==700 [2025-03-04 08:51:17] Production.ERROR: pbx CDR StartTime 2025-03-04 05:51:05 - End Time 2025-03-04 08:51:05 [2025-03-04 08:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604697', 'tblTempUsageDetail_20' ) start [2025-03-04 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604697', 'tblTempUsageDetail_20' ) end [2025-03-04 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604697', 'tblTempVendorCDR_20' ) start [2025-03-04 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604697', 'tblTempVendorCDR_20' ) end [2025-03-04 08:51:17] Production.INFO: ProcessCDR(1,14604697,1,1,2) [2025-03-04 08:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604697', 'tblTempUsageDetail_20' ) start [2025-03-04 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604697', 'tblTempUsageDetail_20' ) end [2025-03-04 08:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:51:22] Production.INFO: ==24289== Releasing lock... [2025-03-04 08:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:51:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-04 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:52:05 [end_date_ymd] => 2025-03-04 08:52:05 [RateCDR] => 1 ) [2025-03-04 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-04 05:52:05' and `end` < '2025-03-04 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-04 08:52:17] Production.INFO: count ==714 [2025-03-04 08:52:18] Production.ERROR: pbx CDR StartTime 2025-03-04 05:52:05 - End Time 2025-03-04 08:52:05 [2025-03-04 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604702', 'tblTempUsageDetail_20' ) start [2025-03-04 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604702', 'tblTempUsageDetail_20' ) end [2025-03-04 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604702', 'tblTempVendorCDR_20' ) start [2025-03-04 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604702', 'tblTempVendorCDR_20' ) end [2025-03-04 08:52:18] Production.INFO: ProcessCDR(1,14604702,1,1,2) [2025-03-04 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604702', 'tblTempUsageDetail_20' ) start [2025-03-04 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604702', 'tblTempUsageDetail_20' ) end [2025-03-04 08:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:52:21] Production.INFO: ==24376== Releasing lock... [2025-03-04 08:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:52:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-04 08:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:53:06 [end_date_ymd] => 2025-03-04 08:53:06 [RateCDR] => 1 ) [2025-03-04 08: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 05:53:06' and `end` < '2025-03-04 08: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-04 08:53:18] Production.INFO: count ==734 [2025-03-04 08:53:18] Production.ERROR: pbx CDR StartTime 2025-03-04 05:53:06 - End Time 2025-03-04 08:53:06 [2025-03-04 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604707', 'tblTempUsageDetail_20' ) start [2025-03-04 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604707', 'tblTempUsageDetail_20' ) end [2025-03-04 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604707', 'tblTempVendorCDR_20' ) start [2025-03-04 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604707', 'tblTempVendorCDR_20' ) end [2025-03-04 08:53:19] Production.INFO: ProcessCDR(1,14604707,1,1,2) [2025-03-04 08:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604707', 'tblTempUsageDetail_20' ) start [2025-03-04 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604707', 'tblTempUsageDetail_20' ) end [2025-03-04 08:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:53:22] Production.INFO: ==24463== Releasing lock... [2025-03-04 08:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:53:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-04 08:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:54:06 [end_date_ymd] => 2025-03-04 08:54:06 [RateCDR] => 1 ) [2025-03-04 08: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 05:54:06' and `end` < '2025-03-04 08: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-04 08:54:18] Production.INFO: count ==752 [2025-03-04 08:54:18] Production.ERROR: pbx CDR StartTime 2025-03-04 05:54:06 - End Time 2025-03-04 08:54:06 [2025-03-04 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604712', 'tblTempUsageDetail_20' ) start [2025-03-04 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604712', 'tblTempUsageDetail_20' ) end [2025-03-04 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604712', 'tblTempVendorCDR_20' ) start [2025-03-04 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604712', 'tblTempVendorCDR_20' ) end [2025-03-04 08:54:18] Production.INFO: ProcessCDR(1,14604712,1,1,2) [2025-03-04 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604712', 'tblTempUsageDetail_20' ) start [2025-03-04 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604712', 'tblTempUsageDetail_20' ) end [2025-03-04 08:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:54:23] Production.INFO: ==24553== Releasing lock... [2025-03-04 08:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:54:23] Production.INFO: 34 MB #Memory Used# [2025-03-04 08:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:55:06 [end_date_ymd] => 2025-03-04 08:55:06 [RateCDR] => 1 ) [2025-03-04 08: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 05:55:06' and `end` < '2025-03-04 08: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-04 08:55:18] Production.INFO: count ==764 [2025-03-04 08:55:18] Production.ERROR: pbx CDR StartTime 2025-03-04 05:55:06 - End Time 2025-03-04 08:55:06 [2025-03-04 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604717', 'tblTempUsageDetail_20' ) start [2025-03-04 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604717', 'tblTempUsageDetail_20' ) end [2025-03-04 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604717', 'tblTempVendorCDR_20' ) start [2025-03-04 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604717', 'tblTempVendorCDR_20' ) end [2025-03-04 08:55:19] Production.INFO: ProcessCDR(1,14604717,1,1,2) [2025-03-04 08:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604717', 'tblTempUsageDetail_20' ) start [2025-03-04 08:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604717', 'tblTempUsageDetail_20' ) end [2025-03-04 08:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:55:24] Production.INFO: ==24639== Releasing lock... [2025-03-04 08:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:55:24] Production.INFO: 34 MB #Memory Used# [2025-03-04 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:56:05 [end_date_ymd] => 2025-03-04 08:56:05 [RateCDR] => 1 ) [2025-03-04 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 05:56:05' and `end` < '2025-03-04 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 08:56:17] Production.INFO: count ==769 [2025-03-04 08:56:17] Production.ERROR: pbx CDR StartTime 2025-03-04 05:56:05 - End Time 2025-03-04 08:56:05 [2025-03-04 08:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604722', 'tblTempUsageDetail_20' ) start [2025-03-04 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604722', 'tblTempUsageDetail_20' ) end [2025-03-04 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604722', 'tblTempVendorCDR_20' ) start [2025-03-04 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604722', 'tblTempVendorCDR_20' ) end [2025-03-04 08:56:17] Production.INFO: ProcessCDR(1,14604722,1,1,2) [2025-03-04 08:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604722', 'tblTempUsageDetail_20' ) start [2025-03-04 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604722', 'tblTempUsageDetail_20' ) end [2025-03-04 08:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:56:21] Production.INFO: ==24728== Releasing lock... [2025-03-04 08:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:56:21] Production.INFO: 34 MB #Memory Used# [2025-03-04 08:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:57:06 [end_date_ymd] => 2025-03-04 08:57:06 [RateCDR] => 1 ) [2025-03-04 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-04 05:57:06' and `end` < '2025-03-04 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-04 08:57:18] Production.INFO: count ==782 [2025-03-04 08:57:18] Production.ERROR: pbx CDR StartTime 2025-03-04 05:57:06 - End Time 2025-03-04 08:57:06 [2025-03-04 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604727', 'tblTempUsageDetail_20' ) start [2025-03-04 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604727', 'tblTempUsageDetail_20' ) end [2025-03-04 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604727', 'tblTempVendorCDR_20' ) start [2025-03-04 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604727', 'tblTempVendorCDR_20' ) end [2025-03-04 08:57:18] Production.INFO: ProcessCDR(1,14604727,1,1,2) [2025-03-04 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604727', 'tblTempUsageDetail_20' ) start [2025-03-04 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604727', 'tblTempUsageDetail_20' ) end [2025-03-04 08:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:57:21] Production.INFO: ==24811== Releasing lock... [2025-03-04 08:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:57:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-04 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:58:05 [end_date_ymd] => 2025-03-04 08:58:05 [RateCDR] => 1 ) [2025-03-04 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 05:58:05' and `end` < '2025-03-04 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 08:58:18] Production.INFO: count ==818 [2025-03-04 08:58:18] Production.ERROR: pbx CDR StartTime 2025-03-04 05:58:05 - End Time 2025-03-04 08:58:05 [2025-03-04 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604732', 'tblTempUsageDetail_20' ) start [2025-03-04 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604732', 'tblTempUsageDetail_20' ) end [2025-03-04 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604732', 'tblTempVendorCDR_20' ) start [2025-03-04 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604732', 'tblTempVendorCDR_20' ) end [2025-03-04 08:58:18] Production.INFO: ProcessCDR(1,14604732,1,1,2) [2025-03-04 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604732', 'tblTempUsageDetail_20' ) start [2025-03-04 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604732', 'tblTempUsageDetail_20' ) end [2025-03-04 08:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:58:23] Production.INFO: ==24895== Releasing lock... [2025-03-04 08:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:58:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-04 08:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 05:59:06 [end_date_ymd] => 2025-03-04 08:59:06 [RateCDR] => 1 ) [2025-03-04 08: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 05:59:06' and `end` < '2025-03-04 08: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-04 08:59:18] Production.INFO: count ==827 [2025-03-04 08:59:18] Production.ERROR: pbx CDR StartTime 2025-03-04 05:59:06 - End Time 2025-03-04 08:59:06 [2025-03-04 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604737', 'tblTempUsageDetail_20' ) start [2025-03-04 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604737', 'tblTempUsageDetail_20' ) end [2025-03-04 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604737', 'tblTempVendorCDR_20' ) start [2025-03-04 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604737', 'tblTempVendorCDR_20' ) end [2025-03-04 08:59:18] Production.INFO: ProcessCDR(1,14604737,1,1,2) [2025-03-04 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 08:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604737', 'tblTempUsageDetail_20' ) start [2025-03-04 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604737', 'tblTempUsageDetail_20' ) end [2025-03-04 08:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 08:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 08:59:23] Production.INFO: ==24977== Releasing lock... [2025-03-04 08:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 08:59:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-04 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:00:06 [end_date_ymd] => 2025-03-04 09:00:06 [RateCDR] => 1 ) [2025-03-04 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 06:00:06' and `end` < '2025-03-04 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 09:00:18] Production.INFO: count ==852 [2025-03-04 09:00:18] Production.ERROR: pbx CDR StartTime 2025-03-04 06:00:06 - End Time 2025-03-04 09:00:06 [2025-03-04 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604742', 'tblTempUsageDetail_20' ) start [2025-03-04 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604742', 'tblTempUsageDetail_20' ) end [2025-03-04 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604742', 'tblTempVendorCDR_20' ) start [2025-03-04 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604742', 'tblTempVendorCDR_20' ) end [2025-03-04 09:00:18] Production.INFO: ProcessCDR(1,14604742,1,1,2) [2025-03-04 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604742', 'tblTempUsageDetail_20' ) start [2025-03-04 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604742', 'tblTempUsageDetail_20' ) end [2025-03-04 09:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:00:24] Production.INFO: ==25070== Releasing lock... [2025-03-04 09:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:00:24] Production.INFO: 34.25 MB #Memory Used# [2025-03-04 09:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:01:06 [end_date_ymd] => 2025-03-04 09:01:06 [RateCDR] => 1 ) [2025-03-04 09: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 06:01:06' and `end` < '2025-03-04 09: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-04 09:01:18] Production.INFO: count ==888 [2025-03-04 09:01:18] Production.ERROR: pbx CDR StartTime 2025-03-04 06:01:06 - End Time 2025-03-04 09:01:06 [2025-03-04 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604748', 'tblTempUsageDetail_20' ) start [2025-03-04 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604748', 'tblTempUsageDetail_20' ) end [2025-03-04 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604748', 'tblTempVendorCDR_20' ) start [2025-03-04 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604748', 'tblTempVendorCDR_20' ) end [2025-03-04 09:01:18] Production.INFO: ProcessCDR(1,14604748,1,1,2) [2025-03-04 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604748', 'tblTempUsageDetail_20' ) start [2025-03-04 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604748', 'tblTempUsageDetail_20' ) end [2025-03-04 09:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:01:23] Production.INFO: ==25174== Releasing lock... [2025-03-04 09:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:01:23] Production.INFO: 35 MB #Memory Used# [2025-03-04 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:02:05 [end_date_ymd] => 2025-03-04 09:02:05 [RateCDR] => 1 ) [2025-03-04 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 06:02:05' and `end` < '2025-03-04 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 09:02:17] Production.INFO: count ==930 [2025-03-04 09:02:18] Production.ERROR: pbx CDR StartTime 2025-03-04 06:02:05 - End Time 2025-03-04 09:02:05 [2025-03-04 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604753', 'tblTempUsageDetail_20' ) start [2025-03-04 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604753', 'tblTempUsageDetail_20' ) end [2025-03-04 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604753', 'tblTempVendorCDR_20' ) start [2025-03-04 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604753', 'tblTempVendorCDR_20' ) end [2025-03-04 09:02:18] Production.INFO: ProcessCDR(1,14604753,1,1,2) [2025-03-04 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604753', 'tblTempUsageDetail_20' ) start [2025-03-04 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604753', 'tblTempUsageDetail_20' ) end [2025-03-04 09:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:02:21] Production.INFO: ==25257== Releasing lock... [2025-03-04 09:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:02:21] Production.INFO: 35 MB #Memory Used# [2025-03-04 09:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:03:06 [end_date_ymd] => 2025-03-04 09:03:06 [RateCDR] => 1 ) [2025-03-04 09: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-04 06:03:06' and `end` < '2025-03-04 09: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-04 09:03:18] Production.INFO: count ==938 [2025-03-04 09:03:18] Production.ERROR: pbx CDR StartTime 2025-03-04 06:03:06 - End Time 2025-03-04 09:03:06 [2025-03-04 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604758', 'tblTempUsageDetail_20' ) start [2025-03-04 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604758', 'tblTempUsageDetail_20' ) end [2025-03-04 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604758', 'tblTempVendorCDR_20' ) start [2025-03-04 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604758', 'tblTempVendorCDR_20' ) end [2025-03-04 09:03:18] Production.INFO: ProcessCDR(1,14604758,1,1,2) [2025-03-04 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604758', 'tblTempUsageDetail_20' ) start [2025-03-04 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604758', 'tblTempUsageDetail_20' ) end [2025-03-04 09:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:03:22] Production.INFO: ==25341== Releasing lock... [2025-03-04 09:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:03:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-04 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:04:05 [end_date_ymd] => 2025-03-04 09:04:05 [RateCDR] => 1 ) [2025-03-04 09: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 06:04:05' and `end` < '2025-03-04 09: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-04 09:04:18] Production.INFO: count ==956 [2025-03-04 09:04:18] Production.ERROR: pbx CDR StartTime 2025-03-04 06:04:05 - End Time 2025-03-04 09:04:05 [2025-03-04 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604763', 'tblTempUsageDetail_20' ) start [2025-03-04 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604763', 'tblTempUsageDetail_20' ) end [2025-03-04 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604763', 'tblTempVendorCDR_20' ) start [2025-03-04 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604763', 'tblTempVendorCDR_20' ) end [2025-03-04 09:04:18] Production.INFO: ProcessCDR(1,14604763,1,1,2) [2025-03-04 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604763', 'tblTempUsageDetail_20' ) start [2025-03-04 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604763', 'tblTempUsageDetail_20' ) end [2025-03-04 09:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:04:22] Production.INFO: ==25424== Releasing lock... [2025-03-04 09:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:04:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-04 09:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:05:06 [end_date_ymd] => 2025-03-04 09:05:06 [RateCDR] => 1 ) [2025-03-04 09: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 06:05:06' and `end` < '2025-03-04 09: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-04 09:05:18] Production.INFO: count ==974 [2025-03-04 09:05:19] Production.ERROR: pbx CDR StartTime 2025-03-04 06:05:06 - End Time 2025-03-04 09:05:06 [2025-03-04 09:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604768', 'tblTempUsageDetail_20' ) start [2025-03-04 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604768', 'tblTempUsageDetail_20' ) end [2025-03-04 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604768', 'tblTempVendorCDR_20' ) start [2025-03-04 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604768', 'tblTempVendorCDR_20' ) end [2025-03-04 09:05:19] Production.INFO: ProcessCDR(1,14604768,1,1,2) [2025-03-04 09:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604768', 'tblTempUsageDetail_20' ) start [2025-03-04 09:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604768', 'tblTempUsageDetail_20' ) end [2025-03-04 09:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:05:24] Production.INFO: ==25548== Releasing lock... [2025-03-04 09:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:05:24] Production.INFO: 35 MB #Memory Used# [2025-03-04 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:06:05 [end_date_ymd] => 2025-03-04 09:06:05 [RateCDR] => 1 ) [2025-03-04 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-04 06:06:05' and `end` < '2025-03-04 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-04 09:06:17] Production.INFO: count ==992 [2025-03-04 09:06:18] Production.ERROR: pbx CDR StartTime 2025-03-04 06:06:05 - End Time 2025-03-04 09:06:05 [2025-03-04 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604773', 'tblTempUsageDetail_20' ) start [2025-03-04 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604773', 'tblTempUsageDetail_20' ) end [2025-03-04 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604773', 'tblTempVendorCDR_20' ) start [2025-03-04 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604773', 'tblTempVendorCDR_20' ) end [2025-03-04 09:06:18] Production.INFO: ProcessCDR(1,14604773,1,1,2) [2025-03-04 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604773', 'tblTempUsageDetail_20' ) start [2025-03-04 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604773', 'tblTempUsageDetail_20' ) end [2025-03-04 09:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:06:23] Production.INFO: ==25629== Releasing lock... [2025-03-04 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:06:23] Production.INFO: 35.75 MB #Memory Used# [2025-03-04 09:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:07:06 [end_date_ymd] => 2025-03-04 09:07:06 [RateCDR] => 1 ) [2025-03-04 09: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 06:07:06' and `end` < '2025-03-04 09: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-04 09:07:18] Production.INFO: count ==1014 [2025-03-04 09:07:19] Production.ERROR: pbx CDR StartTime 2025-03-04 06:07:06 - End Time 2025-03-04 09:07:06 [2025-03-04 09:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604778', 'tblTempUsageDetail_20' ) start [2025-03-04 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604778', 'tblTempUsageDetail_20' ) end [2025-03-04 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604778', 'tblTempVendorCDR_20' ) start [2025-03-04 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604778', 'tblTempVendorCDR_20' ) end [2025-03-04 09:07:19] Production.INFO: ProcessCDR(1,14604778,1,1,2) [2025-03-04 09:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604778', 'tblTempUsageDetail_20' ) start [2025-03-04 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604778', 'tblTempUsageDetail_20' ) end [2025-03-04 09:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:07:24] Production.INFO: ==25711== Releasing lock... [2025-03-04 09:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:07:24] Production.INFO: 36.25 MB #Memory Used# [2025-03-04 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:08:05 [end_date_ymd] => 2025-03-04 09:08:05 [RateCDR] => 1 ) [2025-03-04 09: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 06:08:05' and `end` < '2025-03-04 09: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-04 09:08:18] Production.INFO: count ==1031 [2025-03-04 09:08:18] Production.ERROR: pbx CDR StartTime 2025-03-04 06:08:05 - End Time 2025-03-04 09:08:05 [2025-03-04 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604783', 'tblTempUsageDetail_20' ) start [2025-03-04 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604783', 'tblTempUsageDetail_20' ) end [2025-03-04 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604783', 'tblTempVendorCDR_20' ) start [2025-03-04 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604783', 'tblTempVendorCDR_20' ) end [2025-03-04 09:08:18] Production.INFO: ProcessCDR(1,14604783,1,1,2) [2025-03-04 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604783', 'tblTempUsageDetail_20' ) start [2025-03-04 09:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604783', 'tblTempUsageDetail_20' ) end [2025-03-04 09:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:08:21] Production.INFO: ==25797== Releasing lock... [2025-03-04 09:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:08:21] Production.INFO: 36 MB #Memory Used# [2025-03-04 09:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:09:06 [end_date_ymd] => 2025-03-04 09:09:06 [RateCDR] => 1 ) [2025-03-04 09: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 06:09:06' and `end` < '2025-03-04 09: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-04 09:09:18] Production.INFO: count ==1047 [2025-03-04 09:09:18] Production.ERROR: pbx CDR StartTime 2025-03-04 06:09:06 - End Time 2025-03-04 09:09:06 [2025-03-04 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604788', 'tblTempUsageDetail_20' ) start [2025-03-04 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604788', 'tblTempUsageDetail_20' ) end [2025-03-04 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604788', 'tblTempVendorCDR_20' ) start [2025-03-04 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604788', 'tblTempVendorCDR_20' ) end [2025-03-04 09:09:18] Production.INFO: ProcessCDR(1,14604788,1,1,2) [2025-03-04 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604788', 'tblTempUsageDetail_20' ) start [2025-03-04 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604788', 'tblTempUsageDetail_20' ) end [2025-03-04 09:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:09:23] Production.INFO: ==25880== Releasing lock... [2025-03-04 09:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:09:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-04 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:10:06 [end_date_ymd] => 2025-03-04 09:10:06 [RateCDR] => 1 ) [2025-03-04 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-04 06:10:06' and `end` < '2025-03-04 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-04 09:10:18] Production.INFO: count ==1062 [2025-03-04 09:10:18] Production.ERROR: pbx CDR StartTime 2025-03-04 06:10:06 - End Time 2025-03-04 09:10:06 [2025-03-04 09:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604794', 'tblTempUsageDetail_20' ) start [2025-03-04 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604794', 'tblTempUsageDetail_20' ) end [2025-03-04 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604794', 'tblTempVendorCDR_20' ) start [2025-03-04 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604794', 'tblTempVendorCDR_20' ) end [2025-03-04 09:10:18] Production.INFO: ProcessCDR(1,14604794,1,1,2) [2025-03-04 09:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604794', 'tblTempUsageDetail_20' ) start [2025-03-04 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604794', 'tblTempUsageDetail_20' ) end [2025-03-04 09:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:10:23] Production.INFO: ==25966== Releasing lock... [2025-03-04 09:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:10:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-04 09:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:11:06 [end_date_ymd] => 2025-03-04 09:11:06 [RateCDR] => 1 ) [2025-03-04 09: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 06:11:06' and `end` < '2025-03-04 09: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-04 09:11:18] Production.INFO: count ==1118 [2025-03-04 09:11:18] Production.ERROR: pbx CDR StartTime 2025-03-04 06:11:06 - End Time 2025-03-04 09:11:06 [2025-03-04 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604799', 'tblTempUsageDetail_20' ) start [2025-03-04 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604799', 'tblTempUsageDetail_20' ) end [2025-03-04 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604799', 'tblTempVendorCDR_20' ) start [2025-03-04 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604799', 'tblTempVendorCDR_20' ) end [2025-03-04 09:11:18] Production.INFO: ProcessCDR(1,14604799,1,1,2) [2025-03-04 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604799', 'tblTempUsageDetail_20' ) start [2025-03-04 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604799', 'tblTempUsageDetail_20' ) end [2025-03-04 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:11:23] Production.INFO: ==26054== Releasing lock... [2025-03-04 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:11:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-04 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:12:06 [end_date_ymd] => 2025-03-04 09:12:06 [RateCDR] => 1 ) [2025-03-04 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-04 06:12:06' and `end` < '2025-03-04 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-04 09:12:18] Production.INFO: count ==1138 [2025-03-04 09:12:18] Production.ERROR: pbx CDR StartTime 2025-03-04 06:12:06 - End Time 2025-03-04 09:12:06 [2025-03-04 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604804', 'tblTempUsageDetail_20' ) start [2025-03-04 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604804', 'tblTempUsageDetail_20' ) end [2025-03-04 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604804', 'tblTempVendorCDR_20' ) start [2025-03-04 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604804', 'tblTempVendorCDR_20' ) end [2025-03-04 09:12:18] Production.INFO: ProcessCDR(1,14604804,1,1,2) [2025-03-04 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604804', 'tblTempUsageDetail_20' ) start [2025-03-04 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604804', 'tblTempUsageDetail_20' ) end [2025-03-04 09:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:12:24] Production.INFO: ==26135== Releasing lock... [2025-03-04 09:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:12:24] Production.INFO: 36.75 MB #Memory Used# [2025-03-04 09:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:13:06 [end_date_ymd] => 2025-03-04 09:13:06 [RateCDR] => 1 ) [2025-03-04 09: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 06:13:06' and `end` < '2025-03-04 09: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-04 09:13:18] Production.INFO: count ==1164 [2025-03-04 09:13:18] Production.ERROR: pbx CDR StartTime 2025-03-04 06:13:06 - End Time 2025-03-04 09:13:06 [2025-03-04 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604809', 'tblTempUsageDetail_20' ) start [2025-03-04 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604809', 'tblTempUsageDetail_20' ) end [2025-03-04 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604809', 'tblTempVendorCDR_20' ) start [2025-03-04 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604809', 'tblTempVendorCDR_20' ) end [2025-03-04 09:13:18] Production.INFO: ProcessCDR(1,14604809,1,1,2) [2025-03-04 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604809', 'tblTempUsageDetail_20' ) start [2025-03-04 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604809', 'tblTempUsageDetail_20' ) end [2025-03-04 09:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:13:23] Production.INFO: ==26215== Releasing lock... [2025-03-04 09:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:13:23] Production.INFO: 37 MB #Memory Used# [2025-03-04 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:14:05 [end_date_ymd] => 2025-03-04 09:14:05 [RateCDR] => 1 ) [2025-03-04 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-04 06:14:05' and `end` < '2025-03-04 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-04 09:14:17] Production.INFO: count ==1182 [2025-03-04 09:14:18] Production.ERROR: pbx CDR StartTime 2025-03-04 06:14:05 - End Time 2025-03-04 09:14:05 [2025-03-04 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604814', 'tblTempUsageDetail_20' ) start [2025-03-04 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604814', 'tblTempUsageDetail_20' ) end [2025-03-04 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604814', 'tblTempVendorCDR_20' ) start [2025-03-04 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604814', 'tblTempVendorCDR_20' ) end [2025-03-04 09:14:18] Production.INFO: ProcessCDR(1,14604814,1,1,2) [2025-03-04 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604814', 'tblTempUsageDetail_20' ) start [2025-03-04 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604814', 'tblTempUsageDetail_20' ) end [2025-03-04 09:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:14:23] Production.INFO: ==26317== Releasing lock... [2025-03-04 09:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:14:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-04 09:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:15:06 [end_date_ymd] => 2025-03-04 09:15:06 [RateCDR] => 1 ) [2025-03-04 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-04 06:15:06' and `end` < '2025-03-04 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-04 09:15:18] Production.INFO: count ==1202 [2025-03-04 09:15:19] Production.ERROR: pbx CDR StartTime 2025-03-04 06:15:06 - End Time 2025-03-04 09:15:06 [2025-03-04 09:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604819', 'tblTempUsageDetail_20' ) start [2025-03-04 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604819', 'tblTempUsageDetail_20' ) end [2025-03-04 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604819', 'tblTempVendorCDR_20' ) start [2025-03-04 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604819', 'tblTempVendorCDR_20' ) end [2025-03-04 09:15:19] Production.INFO: ProcessCDR(1,14604819,1,1,2) [2025-03-04 09:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604819', 'tblTempUsageDetail_20' ) start [2025-03-04 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604819', 'tblTempUsageDetail_20' ) end [2025-03-04 09:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:15:24] Production.INFO: ==26405== Releasing lock... [2025-03-04 09:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:15:24] Production.INFO: 37.5 MB #Memory Used# [2025-03-04 09:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:16:06 [end_date_ymd] => 2025-03-04 09:16:06 [RateCDR] => 1 ) [2025-03-04 09: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 06:16:06' and `end` < '2025-03-04 09: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-04 09:16:18] Production.INFO: count ==1213 [2025-03-04 09:16:19] Production.ERROR: pbx CDR StartTime 2025-03-04 06:16:06 - End Time 2025-03-04 09:16:06 [2025-03-04 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604824', 'tblTempUsageDetail_20' ) start [2025-03-04 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604824', 'tblTempUsageDetail_20' ) end [2025-03-04 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604824', 'tblTempVendorCDR_20' ) start [2025-03-04 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604824', 'tblTempVendorCDR_20' ) end [2025-03-04 09:16:19] Production.INFO: ProcessCDR(1,14604824,1,1,2) [2025-03-04 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604824', 'tblTempUsageDetail_20' ) start [2025-03-04 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604824', 'tblTempUsageDetail_20' ) end [2025-03-04 09:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:16:24] Production.INFO: ==26484== Releasing lock... [2025-03-04 09:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:16:24] Production.INFO: 37.5 MB #Memory Used# [2025-03-04 09:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:17:06 [end_date_ymd] => 2025-03-04 09:17:06 [RateCDR] => 1 ) [2025-03-04 09: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 06:17:06' and `end` < '2025-03-04 09: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-04 09:17:18] Production.INFO: count ==1216 [2025-03-04 09:17:18] Production.ERROR: pbx CDR StartTime 2025-03-04 06:17:06 - End Time 2025-03-04 09:17:06 [2025-03-04 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604829', 'tblTempUsageDetail_20' ) start [2025-03-04 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604829', 'tblTempUsageDetail_20' ) end [2025-03-04 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604829', 'tblTempVendorCDR_20' ) start [2025-03-04 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604829', 'tblTempVendorCDR_20' ) end [2025-03-04 09:17:18] Production.INFO: ProcessCDR(1,14604829,1,1,2) [2025-03-04 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604829', 'tblTempUsageDetail_20' ) start [2025-03-04 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604829', 'tblTempUsageDetail_20' ) end [2025-03-04 09:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:17:24] Production.INFO: ==26571== Releasing lock... [2025-03-04 09:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:17:24] Production.INFO: 37.5 MB #Memory Used# [2025-03-04 09:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:18:06 [end_date_ymd] => 2025-03-04 09:18:06 [RateCDR] => 1 ) [2025-03-04 09: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 06:18:06' and `end` < '2025-03-04 09: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-04 09:18:18] Production.INFO: count ==1219 [2025-03-04 09:18:19] Production.ERROR: pbx CDR StartTime 2025-03-04 06:18:06 - End Time 2025-03-04 09:18:06 [2025-03-04 09:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604834', 'tblTempUsageDetail_20' ) start [2025-03-04 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604834', 'tblTempUsageDetail_20' ) end [2025-03-04 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604834', 'tblTempVendorCDR_20' ) start [2025-03-04 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604834', 'tblTempVendorCDR_20' ) end [2025-03-04 09:18:19] Production.INFO: ProcessCDR(1,14604834,1,1,2) [2025-03-04 09:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604834', 'tblTempUsageDetail_20' ) start [2025-03-04 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604834', 'tblTempUsageDetail_20' ) end [2025-03-04 09:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:18:25] Production.INFO: ==26651== Releasing lock... [2025-03-04 09:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:18:25] Production.INFO: 37.25 MB #Memory Used# [2025-03-04 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:19:05 [end_date_ymd] => 2025-03-04 09:19:05 [RateCDR] => 1 ) [2025-03-04 09: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 06:19:05' and `end` < '2025-03-04 09: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-04 09:19:18] Production.INFO: count ==1247 [2025-03-04 09:19:18] Production.ERROR: pbx CDR StartTime 2025-03-04 06:19:05 - End Time 2025-03-04 09:19:05 [2025-03-04 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604839', 'tblTempUsageDetail_20' ) start [2025-03-04 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604839', 'tblTempUsageDetail_20' ) end [2025-03-04 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604839', 'tblTempVendorCDR_20' ) start [2025-03-04 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604839', 'tblTempVendorCDR_20' ) end [2025-03-04 09:19:18] Production.INFO: ProcessCDR(1,14604839,1,1,2) [2025-03-04 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604839', 'tblTempUsageDetail_20' ) start [2025-03-04 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604839', 'tblTempUsageDetail_20' ) end [2025-03-04 09:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:19:23] Production.INFO: ==26738== Releasing lock... [2025-03-04 09:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:19:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-04 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:20:06 [end_date_ymd] => 2025-03-04 09:20:06 [RateCDR] => 1 ) [2025-03-04 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-04 06:20:06' and `end` < '2025-03-04 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-04 09:20:18] Production.INFO: count ==1257 [2025-03-04 09:20:19] Production.ERROR: pbx CDR StartTime 2025-03-04 06:20:06 - End Time 2025-03-04 09:20:06 [2025-03-04 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604844', 'tblTempUsageDetail_20' ) start [2025-03-04 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604844', 'tblTempUsageDetail_20' ) end [2025-03-04 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604844', 'tblTempVendorCDR_20' ) start [2025-03-04 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604844', 'tblTempVendorCDR_20' ) end [2025-03-04 09:20:19] Production.INFO: ProcessCDR(1,14604844,1,1,2) [2025-03-04 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604844', 'tblTempUsageDetail_20' ) start [2025-03-04 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604844', 'tblTempUsageDetail_20' ) end [2025-03-04 09:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:20:25] Production.INFO: ==26864== Releasing lock... [2025-03-04 09:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:20:25] Production.INFO: 37.75 MB #Memory Used# [2025-03-04 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:21:05 [end_date_ymd] => 2025-03-04 09:21:05 [RateCDR] => 1 ) [2025-03-04 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-04 06:21:05' and `end` < '2025-03-04 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-04 09:21:17] Production.INFO: count ==1339 [2025-03-04 09:21:18] Production.ERROR: pbx CDR StartTime 2025-03-04 06:21:05 - End Time 2025-03-04 09:21:05 [2025-03-04 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604850', 'tblTempUsageDetail_20' ) start [2025-03-04 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604850', 'tblTempUsageDetail_20' ) end [2025-03-04 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604850', 'tblTempVendorCDR_20' ) start [2025-03-04 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604850', 'tblTempVendorCDR_20' ) end [2025-03-04 09:21:18] Production.INFO: ProcessCDR(1,14604850,1,1,2) [2025-03-04 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604850', 'tblTempUsageDetail_20' ) start [2025-03-04 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604850', 'tblTempUsageDetail_20' ) end [2025-03-04 09:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:21:24] Production.INFO: ==26946== Releasing lock... [2025-03-04 09:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:21:24] Production.INFO: 38 MB #Memory Used# [2025-03-04 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:22:05 [end_date_ymd] => 2025-03-04 09:22:05 [RateCDR] => 1 ) [2025-03-04 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-04 06:22:05' and `end` < '2025-03-04 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-04 09:22:18] Production.INFO: count ==1347 [2025-03-04 09:22:18] Production.ERROR: pbx CDR StartTime 2025-03-04 06:22:05 - End Time 2025-03-04 09:22:05 [2025-03-04 09:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604855', 'tblTempUsageDetail_20' ) start [2025-03-04 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604855', 'tblTempUsageDetail_20' ) end [2025-03-04 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604855', 'tblTempVendorCDR_20' ) start [2025-03-04 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604855', 'tblTempVendorCDR_20' ) end [2025-03-04 09:22:18] Production.INFO: ProcessCDR(1,14604855,1,1,2) [2025-03-04 09:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604855', 'tblTempUsageDetail_20' ) start [2025-03-04 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604855', 'tblTempUsageDetail_20' ) end [2025-03-04 09:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:22:23] Production.INFO: ==27031== Releasing lock... [2025-03-04 09:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:22:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-04 09:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:23:06 [end_date_ymd] => 2025-03-04 09:23:06 [RateCDR] => 1 ) [2025-03-04 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-04 06:23:06' and `end` < '2025-03-04 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-04 09:23:18] Production.INFO: count ==1354 [2025-03-04 09:23:19] Production.ERROR: pbx CDR StartTime 2025-03-04 06:23:06 - End Time 2025-03-04 09:23:06 [2025-03-04 09:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604860', 'tblTempUsageDetail_20' ) start [2025-03-04 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604860', 'tblTempUsageDetail_20' ) end [2025-03-04 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604860', 'tblTempVendorCDR_20' ) start [2025-03-04 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604860', 'tblTempVendorCDR_20' ) end [2025-03-04 09:23:19] Production.INFO: ProcessCDR(1,14604860,1,1,2) [2025-03-04 09:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604860', 'tblTempUsageDetail_20' ) start [2025-03-04 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604860', 'tblTempUsageDetail_20' ) end [2025-03-04 09:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:23:24] Production.INFO: ==27120== Releasing lock... [2025-03-04 09:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:23:24] Production.INFO: 38.25 MB #Memory Used# [2025-03-04 09:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:24:06 [end_date_ymd] => 2025-03-04 09:24:06 [RateCDR] => 1 ) [2025-03-04 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-04 06:24:06' and `end` < '2025-03-04 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-04 09:24:18] Production.INFO: count ==1363 [2025-03-04 09:24:19] Production.ERROR: pbx CDR StartTime 2025-03-04 06:24:06 - End Time 2025-03-04 09:24:06 [2025-03-04 09:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604865', 'tblTempUsageDetail_20' ) start [2025-03-04 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604865', 'tblTempUsageDetail_20' ) end [2025-03-04 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604865', 'tblTempVendorCDR_20' ) start [2025-03-04 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604865', 'tblTempVendorCDR_20' ) end [2025-03-04 09:24:19] Production.INFO: ProcessCDR(1,14604865,1,1,2) [2025-03-04 09:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604865', 'tblTempUsageDetail_20' ) start [2025-03-04 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604865', 'tblTempUsageDetail_20' ) end [2025-03-04 09:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:24:24] Production.INFO: ==27205== Releasing lock... [2025-03-04 09:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:24:24] Production.INFO: 38.25 MB #Memory Used# [2025-03-04 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:25:05 [end_date_ymd] => 2025-03-04 09:25:05 [RateCDR] => 1 ) [2025-03-04 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-04 06:25:05' and `end` < '2025-03-04 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-04 09:25:17] Production.INFO: count ==1377 [2025-03-04 09:25:18] Production.ERROR: pbx CDR StartTime 2025-03-04 06:25:05 - End Time 2025-03-04 09:25:05 [2025-03-04 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604870', 'tblTempUsageDetail_20' ) start [2025-03-04 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604870', 'tblTempUsageDetail_20' ) end [2025-03-04 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604870', 'tblTempVendorCDR_20' ) start [2025-03-04 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604870', 'tblTempVendorCDR_20' ) end [2025-03-04 09:25:18] Production.INFO: ProcessCDR(1,14604870,1,1,2) [2025-03-04 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604870', 'tblTempUsageDetail_20' ) start [2025-03-04 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604870', 'tblTempUsageDetail_20' ) end [2025-03-04 09:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:25:23] Production.INFO: ==27288== Releasing lock... [2025-03-04 09:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:25:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-04 09:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:26:06 [end_date_ymd] => 2025-03-04 09:26:06 [RateCDR] => 1 ) [2025-03-04 09: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-04 06:26:06' and `end` < '2025-03-04 09: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-04 09:26:18] Production.INFO: count ==1384 [2025-03-04 09:26:19] Production.ERROR: pbx CDR StartTime 2025-03-04 06:26:06 - End Time 2025-03-04 09:26:06 [2025-03-04 09:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604875', 'tblTempUsageDetail_20' ) start [2025-03-04 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604875', 'tblTempUsageDetail_20' ) end [2025-03-04 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604875', 'tblTempVendorCDR_20' ) start [2025-03-04 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604875', 'tblTempVendorCDR_20' ) end [2025-03-04 09:26:19] Production.INFO: ProcessCDR(1,14604875,1,1,2) [2025-03-04 09:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604875', 'tblTempUsageDetail_20' ) start [2025-03-04 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604875', 'tblTempUsageDetail_20' ) end [2025-03-04 09:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:26:24] Production.INFO: ==27375== Releasing lock... [2025-03-04 09:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:26:24] Production.INFO: 38.5 MB #Memory Used# [2025-03-04 09:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:27:06 [end_date_ymd] => 2025-03-04 09:27:06 [RateCDR] => 1 ) [2025-03-04 09: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 06:27:06' and `end` < '2025-03-04 09: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-04 09:27:18] Production.INFO: count ==1402 [2025-03-04 09:27:19] Production.ERROR: pbx CDR StartTime 2025-03-04 06:27:06 - End Time 2025-03-04 09:27:06 [2025-03-04 09:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604880', 'tblTempUsageDetail_20' ) start [2025-03-04 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604880', 'tblTempUsageDetail_20' ) end [2025-03-04 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604880', 'tblTempVendorCDR_20' ) start [2025-03-04 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604880', 'tblTempVendorCDR_20' ) end [2025-03-04 09:27:19] Production.INFO: ProcessCDR(1,14604880,1,1,2) [2025-03-04 09:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604880', 'tblTempUsageDetail_20' ) start [2025-03-04 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604880', 'tblTempUsageDetail_20' ) end [2025-03-04 09:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:27:24] Production.INFO: ==27459== Releasing lock... [2025-03-04 09:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:27:24] Production.INFO: 38.5 MB #Memory Used# [2025-03-04 09:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:28:06 [end_date_ymd] => 2025-03-04 09:28:06 [RateCDR] => 1 ) [2025-03-04 09: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-04 06:28:06' and `end` < '2025-03-04 09: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-04 09:28:18] Production.INFO: count ==1418 [2025-03-04 09:28:19] Production.ERROR: pbx CDR StartTime 2025-03-04 06:28:06 - End Time 2025-03-04 09:28:06 [2025-03-04 09:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604885', 'tblTempUsageDetail_20' ) start [2025-03-04 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604885', 'tblTempUsageDetail_20' ) end [2025-03-04 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604885', 'tblTempVendorCDR_20' ) start [2025-03-04 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604885', 'tblTempVendorCDR_20' ) end [2025-03-04 09:28:19] Production.INFO: ProcessCDR(1,14604885,1,1,2) [2025-03-04 09:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604885', 'tblTempUsageDetail_20' ) start [2025-03-04 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604885', 'tblTempUsageDetail_20' ) end [2025-03-04 09:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:28:24] Production.INFO: ==27544== Releasing lock... [2025-03-04 09:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:28:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-04 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:29:05 [end_date_ymd] => 2025-03-04 09:29:05 [RateCDR] => 1 ) [2025-03-04 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-04 06:29:05' and `end` < '2025-03-04 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-04 09:29:18] Production.INFO: count ==1423 [2025-03-04 09:29:18] Production.ERROR: pbx CDR StartTime 2025-03-04 06:29:05 - End Time 2025-03-04 09:29:05 [2025-03-04 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604890', 'tblTempUsageDetail_20' ) start [2025-03-04 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604890', 'tblTempUsageDetail_20' ) end [2025-03-04 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604890', 'tblTempVendorCDR_20' ) start [2025-03-04 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604890', 'tblTempVendorCDR_20' ) end [2025-03-04 09:29:18] Production.INFO: ProcessCDR(1,14604890,1,1,2) [2025-03-04 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604890', 'tblTempUsageDetail_20' ) start [2025-03-04 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604890', 'tblTempUsageDetail_20' ) end [2025-03-04 09:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:29:23] Production.INFO: ==27626== Releasing lock... [2025-03-04 09:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:29:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-04 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:30:06 [end_date_ymd] => 2025-03-04 09:30:06 [RateCDR] => 1 ) [2025-03-04 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-04 06:30:06' and `end` < '2025-03-04 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-04 09:30:19] Production.INFO: count ==1442 [2025-03-04 09:30:20] Production.ERROR: pbx CDR StartTime 2025-03-04 06:30:06 - End Time 2025-03-04 09:30:06 [2025-03-04 09:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604896', 'tblTempUsageDetail_20' ) start [2025-03-04 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604896', 'tblTempUsageDetail_20' ) end [2025-03-04 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604896', 'tblTempVendorCDR_20' ) start [2025-03-04 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604896', 'tblTempVendorCDR_20' ) end [2025-03-04 09:30:20] Production.INFO: ProcessCDR(1,14604896,1,1,2) [2025-03-04 09:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604896', 'tblTempUsageDetail_20' ) start [2025-03-04 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604896', 'tblTempUsageDetail_20' ) end [2025-03-04 09:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:30:25] Production.INFO: ==27711== Releasing lock... [2025-03-04 09:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:30:25] Production.INFO: 39 MB #Memory Used# [2025-03-04 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:31:05 [end_date_ymd] => 2025-03-04 09:31:05 [RateCDR] => 1 ) [2025-03-04 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-04 06:31:05' and `end` < '2025-03-04 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-04 09:31:17] Production.INFO: count ==1536 [2025-03-04 09:31:18] Production.ERROR: pbx CDR StartTime 2025-03-04 06:31:05 - End Time 2025-03-04 09:31:05 [2025-03-04 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604901', 'tblTempUsageDetail_20' ) start [2025-03-04 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604901', 'tblTempUsageDetail_20' ) end [2025-03-04 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604901', 'tblTempVendorCDR_20' ) start [2025-03-04 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604901', 'tblTempVendorCDR_20' ) end [2025-03-04 09:31:18] Production.INFO: ProcessCDR(1,14604901,1,1,2) [2025-03-04 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604901', 'tblTempUsageDetail_20' ) start [2025-03-04 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604901', 'tblTempUsageDetail_20' ) end [2025-03-04 09:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:31:23] Production.INFO: ==27798== Releasing lock... [2025-03-04 09:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:31:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-04 09:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:32:06 [end_date_ymd] => 2025-03-04 09:32:06 [RateCDR] => 1 ) [2025-03-04 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-04 06:32:06' and `end` < '2025-03-04 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-04 09:32:18] Production.INFO: count ==1552 [2025-03-04 09:32:19] Production.ERROR: pbx CDR StartTime 2025-03-04 06:32:06 - End Time 2025-03-04 09:32:06 [2025-03-04 09:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604906', 'tblTempUsageDetail_20' ) start [2025-03-04 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604906', 'tblTempUsageDetail_20' ) end [2025-03-04 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604906', 'tblTempVendorCDR_20' ) start [2025-03-04 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604906', 'tblTempVendorCDR_20' ) end [2025-03-04 09:32:19] Production.INFO: ProcessCDR(1,14604906,1,1,2) [2025-03-04 09:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604906', 'tblTempUsageDetail_20' ) start [2025-03-04 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604906', 'tblTempUsageDetail_20' ) end [2025-03-04 09:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:32:24] Production.INFO: ==27876== Releasing lock... [2025-03-04 09:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:32:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-04 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:33:05 [end_date_ymd] => 2025-03-04 09:33:05 [RateCDR] => 1 ) [2025-03-04 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-04 06:33:05' and `end` < '2025-03-04 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-04 09:33:18] Production.INFO: count ==1562 [2025-03-04 09:33:19] Production.ERROR: pbx CDR StartTime 2025-03-04 06:33:05 - End Time 2025-03-04 09:33:05 [2025-03-04 09:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604911', 'tblTempUsageDetail_20' ) start [2025-03-04 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604911', 'tblTempUsageDetail_20' ) end [2025-03-04 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604911', 'tblTempVendorCDR_20' ) start [2025-03-04 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604911', 'tblTempVendorCDR_20' ) end [2025-03-04 09:33:19] Production.INFO: ProcessCDR(1,14604911,1,1,2) [2025-03-04 09:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604911', 'tblTempUsageDetail_20' ) start [2025-03-04 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604911', 'tblTempUsageDetail_20' ) end [2025-03-04 09:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:33:24] Production.INFO: ==27958== Releasing lock... [2025-03-04 09:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:33:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-04 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:34:05 [end_date_ymd] => 2025-03-04 09:34:05 [RateCDR] => 1 ) [2025-03-04 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-04 06:34:05' and `end` < '2025-03-04 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-04 09:34:18] Production.INFO: count ==1600 [2025-03-04 09:34:18] Production.ERROR: pbx CDR StartTime 2025-03-04 06:34:05 - End Time 2025-03-04 09:34:05 [2025-03-04 09:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604916', 'tblTempUsageDetail_20' ) start [2025-03-04 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604916', 'tblTempUsageDetail_20' ) end [2025-03-04 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604916', 'tblTempVendorCDR_20' ) start [2025-03-04 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604916', 'tblTempVendorCDR_20' ) end [2025-03-04 09:34:18] Production.INFO: ProcessCDR(1,14604916,1,1,2) [2025-03-04 09:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604916', 'tblTempUsageDetail_20' ) start [2025-03-04 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604916', 'tblTempUsageDetail_20' ) end [2025-03-04 09:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:34:24] Production.INFO: ==28040== Releasing lock... [2025-03-04 09:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:34:24] Production.INFO: 40 MB #Memory Used# [2025-03-04 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:35:05 [end_date_ymd] => 2025-03-04 09:35:05 [RateCDR] => 1 ) [2025-03-04 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-04 06:35:05' and `end` < '2025-03-04 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-04 09:35:18] Production.INFO: count ==1636 [2025-03-04 09:35:18] Production.ERROR: pbx CDR StartTime 2025-03-04 06:35:05 - End Time 2025-03-04 09:35:05 [2025-03-04 09:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604921', 'tblTempUsageDetail_20' ) start [2025-03-04 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604921', 'tblTempUsageDetail_20' ) end [2025-03-04 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604921', 'tblTempVendorCDR_20' ) start [2025-03-04 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604921', 'tblTempVendorCDR_20' ) end [2025-03-04 09:35:18] Production.INFO: ProcessCDR(1,14604921,1,1,2) [2025-03-04 09:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604921', 'tblTempUsageDetail_20' ) start [2025-03-04 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604921', 'tblTempUsageDetail_20' ) end [2025-03-04 09:35:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:35:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:35:24] Production.INFO: ==28157== Releasing lock... [2025-03-04 09:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:35:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-04 09:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:36:06 [end_date_ymd] => 2025-03-04 09:36:06 [RateCDR] => 1 ) [2025-03-04 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-04 06:36:06' and `end` < '2025-03-04 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-04 09:36:18] Production.INFO: count ==1659 [2025-03-04 09:36:19] Production.ERROR: pbx CDR StartTime 2025-03-04 06:36:06 - End Time 2025-03-04 09:36:06 [2025-03-04 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604926', 'tblTempUsageDetail_20' ) start [2025-03-04 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604926', 'tblTempUsageDetail_20' ) end [2025-03-04 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604926', 'tblTempVendorCDR_20' ) start [2025-03-04 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604926', 'tblTempVendorCDR_20' ) end [2025-03-04 09:36:19] Production.INFO: ProcessCDR(1,14604926,1,1,2) [2025-03-04 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604926', 'tblTempUsageDetail_20' ) start [2025-03-04 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604926', 'tblTempUsageDetail_20' ) end [2025-03-04 09:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:36:24] Production.INFO: ==28235== Releasing lock... [2025-03-04 09:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:36:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-04 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:37:05 [end_date_ymd] => 2025-03-04 09:37:05 [RateCDR] => 1 ) [2025-03-04 09: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 06:37:05' and `end` < '2025-03-04 09: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-04 09:37:18] Production.INFO: count ==1680 [2025-03-04 09:37:18] Production.ERROR: pbx CDR StartTime 2025-03-04 06:37:05 - End Time 2025-03-04 09:37:05 [2025-03-04 09:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604931', 'tblTempUsageDetail_20' ) start [2025-03-04 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604931', 'tblTempUsageDetail_20' ) end [2025-03-04 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604931', 'tblTempVendorCDR_20' ) start [2025-03-04 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604931', 'tblTempVendorCDR_20' ) end [2025-03-04 09:37:18] Production.INFO: ProcessCDR(1,14604931,1,1,2) [2025-03-04 09:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604931', 'tblTempUsageDetail_20' ) start [2025-03-04 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604931', 'tblTempUsageDetail_20' ) end [2025-03-04 09:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:37:24] Production.INFO: ==28312== Releasing lock... [2025-03-04 09:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:37:24] Production.INFO: 41 MB #Memory Used# [2025-03-04 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:38:05 [end_date_ymd] => 2025-03-04 09:38:05 [RateCDR] => 1 ) [2025-03-04 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-04 06:38:05' and `end` < '2025-03-04 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-04 09:38:18] Production.INFO: count ==1703 [2025-03-04 09:38:19] Production.ERROR: pbx CDR StartTime 2025-03-04 06:38:05 - End Time 2025-03-04 09:38:05 [2025-03-04 09:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604936', 'tblTempUsageDetail_20' ) start [2025-03-04 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604936', 'tblTempUsageDetail_20' ) end [2025-03-04 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604936', 'tblTempVendorCDR_20' ) start [2025-03-04 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604936', 'tblTempVendorCDR_20' ) end [2025-03-04 09:38:19] Production.INFO: ProcessCDR(1,14604936,1,1,2) [2025-03-04 09:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604936', 'tblTempUsageDetail_20' ) start [2025-03-04 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604936', 'tblTempUsageDetail_20' ) end [2025-03-04 09:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:38:23] Production.INFO: ==28392== Releasing lock... [2025-03-04 09:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:38:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-04 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:39:05 [end_date_ymd] => 2025-03-04 09:39:05 [RateCDR] => 1 ) [2025-03-04 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-04 06:39:05' and `end` < '2025-03-04 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-04 09:39:18] Production.INFO: count ==1724 [2025-03-04 09:39:19] Production.ERROR: pbx CDR StartTime 2025-03-04 06:39:05 - End Time 2025-03-04 09:39:05 [2025-03-04 09:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604941', 'tblTempUsageDetail_20' ) start [2025-03-04 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604941', 'tblTempUsageDetail_20' ) end [2025-03-04 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604941', 'tblTempVendorCDR_20' ) start [2025-03-04 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604941', 'tblTempVendorCDR_20' ) end [2025-03-04 09:39:19] Production.INFO: ProcessCDR(1,14604941,1,1,2) [2025-03-04 09:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604941', 'tblTempUsageDetail_20' ) start [2025-03-04 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604941', 'tblTempUsageDetail_20' ) end [2025-03-04 09:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:39:24] Production.INFO: ==28476== Releasing lock... [2025-03-04 09:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:39:24] Production.INFO: 41 MB #Memory Used# [2025-03-04 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:40:06 [end_date_ymd] => 2025-03-04 09:40:06 [RateCDR] => 1 ) [2025-03-04 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-04 06:40:06' and `end` < '2025-03-04 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-04 09:40:18] Production.INFO: count ==1748 [2025-03-04 09:40:19] Production.ERROR: pbx CDR StartTime 2025-03-04 06:40:06 - End Time 2025-03-04 09:40:06 [2025-03-04 09:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604946', 'tblTempUsageDetail_20' ) start [2025-03-04 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604946', 'tblTempUsageDetail_20' ) end [2025-03-04 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604946', 'tblTempVendorCDR_20' ) start [2025-03-04 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604946', 'tblTempVendorCDR_20' ) end [2025-03-04 09:40:19] Production.INFO: ProcessCDR(1,14604946,1,1,2) [2025-03-04 09:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604946', 'tblTempUsageDetail_20' ) start [2025-03-04 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604946', 'tblTempUsageDetail_20' ) end [2025-03-04 09:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:40:24] Production.INFO: ==28558== Releasing lock... [2025-03-04 09:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:40:24] Production.INFO: 41.25 MB #Memory Used# [2025-03-04 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:41:05 [end_date_ymd] => 2025-03-04 09:41:05 [RateCDR] => 1 ) [2025-03-04 09:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 06:41:05' and `end` < '2025-03-04 09:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 09:41:18] Production.INFO: count ==1842 [2025-03-04 09:41:18] Production.ERROR: pbx CDR StartTime 2025-03-04 06:41:05 - End Time 2025-03-04 09:41:05 [2025-03-04 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604952', 'tblTempUsageDetail_20' ) start [2025-03-04 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604952', 'tblTempUsageDetail_20' ) end [2025-03-04 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604952', 'tblTempVendorCDR_20' ) start [2025-03-04 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604952', 'tblTempVendorCDR_20' ) end [2025-03-04 09:41:19] Production.INFO: ProcessCDR(1,14604952,1,1,2) [2025-03-04 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604952', 'tblTempUsageDetail_20' ) start [2025-03-04 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604952', 'tblTempUsageDetail_20' ) end [2025-03-04 09:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:41:24] Production.INFO: ==28636== Releasing lock... [2025-03-04 09:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:41:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-04 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:42:05 [end_date_ymd] => 2025-03-04 09:42:05 [RateCDR] => 1 ) [2025-03-04 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-04 06:42:05' and `end` < '2025-03-04 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-04 09:42:18] Production.INFO: count ==1862 [2025-03-04 09:42:18] Production.ERROR: pbx CDR StartTime 2025-03-04 06:42:05 - End Time 2025-03-04 09:42:05 [2025-03-04 09:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604957', 'tblTempUsageDetail_20' ) start [2025-03-04 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604957', 'tblTempUsageDetail_20' ) end [2025-03-04 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604957', 'tblTempVendorCDR_20' ) start [2025-03-04 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604957', 'tblTempVendorCDR_20' ) end [2025-03-04 09:42:18] Production.INFO: ProcessCDR(1,14604957,1,1,2) [2025-03-04 09:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604957', 'tblTempUsageDetail_20' ) start [2025-03-04 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604957', 'tblTempUsageDetail_20' ) end [2025-03-04 09:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:42:24] Production.INFO: ==28718== Releasing lock... [2025-03-04 09:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:42:24] Production.INFO: 42 MB #Memory Used# [2025-03-04 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:43:05 [end_date_ymd] => 2025-03-04 09:43:05 [RateCDR] => 1 ) [2025-03-04 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-04 06:43:05' and `end` < '2025-03-04 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-04 09:43:18] Production.INFO: count ==1874 [2025-03-04 09:43:18] Production.ERROR: pbx CDR StartTime 2025-03-04 06:43:05 - End Time 2025-03-04 09:43:05 [2025-03-04 09:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604962', 'tblTempUsageDetail_20' ) start [2025-03-04 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604962', 'tblTempUsageDetail_20' ) end [2025-03-04 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604962', 'tblTempVendorCDR_20' ) start [2025-03-04 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604962', 'tblTempVendorCDR_20' ) end [2025-03-04 09:43:18] Production.INFO: ProcessCDR(1,14604962,1,1,2) [2025-03-04 09:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604962', 'tblTempUsageDetail_20' ) start [2025-03-04 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604962', 'tblTempUsageDetail_20' ) end [2025-03-04 09:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:43:23] Production.INFO: ==28797== Releasing lock... [2025-03-04 09:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:43:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-04 09:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:44:06 [end_date_ymd] => 2025-03-04 09:44:06 [RateCDR] => 1 ) [2025-03-04 09: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 06:44:06' and `end` < '2025-03-04 09: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-04 09:44:18] Production.INFO: count ==1894 [2025-03-04 09:44:19] Production.ERROR: pbx CDR StartTime 2025-03-04 06:44:06 - End Time 2025-03-04 09:44:06 [2025-03-04 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604967', 'tblTempUsageDetail_20' ) start [2025-03-04 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604967', 'tblTempUsageDetail_20' ) end [2025-03-04 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604967', 'tblTempVendorCDR_20' ) start [2025-03-04 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604967', 'tblTempVendorCDR_20' ) end [2025-03-04 09:44:19] Production.INFO: ProcessCDR(1,14604967,1,1,2) [2025-03-04 09:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604967', 'tblTempUsageDetail_20' ) start [2025-03-04 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604967', 'tblTempUsageDetail_20' ) end [2025-03-04 09:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:44:24] Production.INFO: ==28878== Releasing lock... [2025-03-04 09:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:44:24] Production.INFO: 42.25 MB #Memory Used# [2025-03-04 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:45:05 [end_date_ymd] => 2025-03-04 09:45:05 [RateCDR] => 1 ) [2025-03-04 09: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 06:45:05' and `end` < '2025-03-04 09: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-04 09:45:17] Production.INFO: count ==1909 [2025-03-04 09:45:18] Production.ERROR: pbx CDR StartTime 2025-03-04 06:45:05 - End Time 2025-03-04 09:45:05 [2025-03-04 09:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604972', 'tblTempUsageDetail_20' ) start [2025-03-04 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604972', 'tblTempUsageDetail_20' ) end [2025-03-04 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604972', 'tblTempVendorCDR_20' ) start [2025-03-04 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604972', 'tblTempVendorCDR_20' ) end [2025-03-04 09:45:18] Production.INFO: ProcessCDR(1,14604972,1,1,2) [2025-03-04 09:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604972', 'tblTempUsageDetail_20' ) start [2025-03-04 09:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604972', 'tblTempUsageDetail_20' ) end [2025-03-04 09:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:45:23] Production.INFO: ==28957== Releasing lock... [2025-03-04 09:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:45:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-04 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:46:05 [end_date_ymd] => 2025-03-04 09:46:05 [RateCDR] => 1 ) [2025-03-04 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-04 06:46:05' and `end` < '2025-03-04 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-04 09:46:18] Production.INFO: count ==1938 [2025-03-04 09:46:18] Production.ERROR: pbx CDR StartTime 2025-03-04 06:46:05 - End Time 2025-03-04 09:46:05 [2025-03-04 09:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604977', 'tblTempUsageDetail_20' ) start [2025-03-04 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604977', 'tblTempUsageDetail_20' ) end [2025-03-04 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604977', 'tblTempVendorCDR_20' ) start [2025-03-04 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604977', 'tblTempVendorCDR_20' ) end [2025-03-04 09:46:18] Production.INFO: ProcessCDR(1,14604977,1,1,2) [2025-03-04 09:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604977', 'tblTempUsageDetail_20' ) start [2025-03-04 09:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604977', 'tblTempUsageDetail_20' ) end [2025-03-04 09:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:46:23] Production.INFO: ==29041== Releasing lock... [2025-03-04 09:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:46:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-04 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:47:05 [end_date_ymd] => 2025-03-04 09:47:05 [RateCDR] => 1 ) [2025-03-04 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-04 06:47:05' and `end` < '2025-03-04 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-04 09:47:17] Production.INFO: count ==1960 [2025-03-04 09:47:18] Production.ERROR: pbx CDR StartTime 2025-03-04 06:47:05 - End Time 2025-03-04 09:47:05 [2025-03-04 09:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604982', 'tblTempUsageDetail_20' ) start [2025-03-04 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604982', 'tblTempUsageDetail_20' ) end [2025-03-04 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604982', 'tblTempVendorCDR_20' ) start [2025-03-04 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604982', 'tblTempVendorCDR_20' ) end [2025-03-04 09:47:18] Production.INFO: ProcessCDR(1,14604982,1,1,2) [2025-03-04 09:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604982', 'tblTempUsageDetail_20' ) start [2025-03-04 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604982', 'tblTempUsageDetail_20' ) end [2025-03-04 09:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:47:23] Production.INFO: ==29119== Releasing lock... [2025-03-04 09:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:47:23] Production.INFO: 43 MB #Memory Used# [2025-03-04 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:48:05 [end_date_ymd] => 2025-03-04 09:48:05 [RateCDR] => 1 ) [2025-03-04 09:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 06:48:05' and `end` < '2025-03-04 09:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 09:48:18] Production.INFO: count ==1983 [2025-03-04 09:48:19] Production.ERROR: pbx CDR StartTime 2025-03-04 06:48:05 - End Time 2025-03-04 09:48:05 [2025-03-04 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604987', 'tblTempUsageDetail_20' ) start [2025-03-04 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604987', 'tblTempUsageDetail_20' ) end [2025-03-04 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604987', 'tblTempVendorCDR_20' ) start [2025-03-04 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604987', 'tblTempVendorCDR_20' ) end [2025-03-04 09:48:19] Production.INFO: ProcessCDR(1,14604987,1,1,2) [2025-03-04 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604987', 'tblTempUsageDetail_20' ) start [2025-03-04 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604987', 'tblTempUsageDetail_20' ) end [2025-03-04 09:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:48:24] Production.INFO: ==29197== Releasing lock... [2025-03-04 09:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:48:24] Production.INFO: 43.5 MB #Memory Used# [2025-03-04 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:49:05 [end_date_ymd] => 2025-03-04 09:49:05 [RateCDR] => 1 ) [2025-03-04 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-04 06:49:05' and `end` < '2025-03-04 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-04 09:49:18] Production.INFO: count ==2030 [2025-03-04 09:49:18] Production.ERROR: pbx CDR StartTime 2025-03-04 06:49:05 - End Time 2025-03-04 09:49:05 [2025-03-04 09:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604992', 'tblTempUsageDetail_20' ) start [2025-03-04 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604992', 'tblTempUsageDetail_20' ) end [2025-03-04 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604992', 'tblTempVendorCDR_20' ) start [2025-03-04 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604992', 'tblTempVendorCDR_20' ) end [2025-03-04 09:49:18] Production.INFO: ProcessCDR(1,14604992,1,1,2) [2025-03-04 09:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604992', 'tblTempUsageDetail_20' ) start [2025-03-04 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604992', 'tblTempUsageDetail_20' ) end [2025-03-04 09:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:49:24] Production.INFO: ==29289== Releasing lock... [2025-03-04 09:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:49:24] Production.INFO: 43.25 MB #Memory Used# [2025-03-04 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:50:06 [end_date_ymd] => 2025-03-04 09:50:06 [RateCDR] => 1 ) [2025-03-04 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-04 06:50:06' and `end` < '2025-03-04 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-04 09:50:19] Production.INFO: count ==2059 [2025-03-04 09:50:20] Production.ERROR: pbx CDR StartTime 2025-03-04 06:50:06 - End Time 2025-03-04 09:50:06 [2025-03-04 09:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604997', 'tblTempUsageDetail_20' ) start [2025-03-04 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14604997', 'tblTempUsageDetail_20' ) end [2025-03-04 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604997', 'tblTempVendorCDR_20' ) start [2025-03-04 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14604997', 'tblTempVendorCDR_20' ) end [2025-03-04 09:50:20] Production.INFO: ProcessCDR(1,14604997,1,1,2) [2025-03-04 09:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14604997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14604997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14604997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14604997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604997', 'tblTempUsageDetail_20' ) start [2025-03-04 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14604997', 'tblTempUsageDetail_20' ) end [2025-03-04 09:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:50:25] Production.INFO: ==29376== Releasing lock... [2025-03-04 09:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:50:25] Production.INFO: 44 MB #Memory Used# [2025-03-04 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:51:05 [end_date_ymd] => 2025-03-04 09:51:05 [RateCDR] => 1 ) [2025-03-04 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-04 06:51:05' and `end` < '2025-03-04 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-04 09:51:18] Production.INFO: count ==2186 [2025-03-04 09:51:19] Production.ERROR: pbx CDR StartTime 2025-03-04 06:51:05 - End Time 2025-03-04 09:51:05 [2025-03-04 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605003', 'tblTempUsageDetail_20' ) start [2025-03-04 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605003', 'tblTempUsageDetail_20' ) end [2025-03-04 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605003', 'tblTempVendorCDR_20' ) start [2025-03-04 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605003', 'tblTempVendorCDR_20' ) end [2025-03-04 09:51:19] Production.INFO: ProcessCDR(1,14605003,1,1,2) [2025-03-04 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605003', 'tblTempUsageDetail_20' ) start [2025-03-04 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605003', 'tblTempUsageDetail_20' ) end [2025-03-04 09:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:51:24] Production.INFO: ==29495== Releasing lock... [2025-03-04 09:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:51:24] Production.INFO: 44.5 MB #Memory Used# [2025-03-04 09:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:52:06 [end_date_ymd] => 2025-03-04 09:52:06 [RateCDR] => 1 ) [2025-03-04 09: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 06:52:06' and `end` < '2025-03-04 09: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-04 09:52:18] Production.INFO: count ==2201 [2025-03-04 09:52:19] Production.ERROR: pbx CDR StartTime 2025-03-04 06:52:06 - End Time 2025-03-04 09:52:06 [2025-03-04 09:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605008', 'tblTempUsageDetail_20' ) start [2025-03-04 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605008', 'tblTempUsageDetail_20' ) end [2025-03-04 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605008', 'tblTempVendorCDR_20' ) start [2025-03-04 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605008', 'tblTempVendorCDR_20' ) end [2025-03-04 09:52:19] Production.INFO: ProcessCDR(1,14605008,1,1,2) [2025-03-04 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605008', 'tblTempUsageDetail_20' ) start [2025-03-04 09:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605008', 'tblTempUsageDetail_20' ) end [2025-03-04 09:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:52:25] Production.INFO: ==29573== Releasing lock... [2025-03-04 09:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:52:25] Production.INFO: 44.5 MB #Memory Used# [2025-03-04 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:53:05 [end_date_ymd] => 2025-03-04 09:53:05 [RateCDR] => 1 ) [2025-03-04 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-04 06:53:05' and `end` < '2025-03-04 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-04 09:53:17] Production.INFO: count ==2222 [2025-03-04 09:53:18] Production.ERROR: pbx CDR StartTime 2025-03-04 06:53:05 - End Time 2025-03-04 09:53:05 [2025-03-04 09:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605013', 'tblTempUsageDetail_20' ) start [2025-03-04 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605013', 'tblTempUsageDetail_20' ) end [2025-03-04 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605013', 'tblTempVendorCDR_20' ) start [2025-03-04 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605013', 'tblTempVendorCDR_20' ) end [2025-03-04 09:53:19] Production.INFO: ProcessCDR(1,14605013,1,1,2) [2025-03-04 09:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605013', 'tblTempUsageDetail_20' ) start [2025-03-04 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605013', 'tblTempUsageDetail_20' ) end [2025-03-04 09:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:53:24] Production.INFO: ==29652== Releasing lock... [2025-03-04 09:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:53:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-04 09:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:54:06 [end_date_ymd] => 2025-03-04 09:54:06 [RateCDR] => 1 ) [2025-03-04 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-04 06:54:06' and `end` < '2025-03-04 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-04 09:54:19] Production.INFO: count ==2248 [2025-03-04 09:54:20] Production.ERROR: pbx CDR StartTime 2025-03-04 06:54:06 - End Time 2025-03-04 09:54:06 [2025-03-04 09:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605018', 'tblTempUsageDetail_20' ) start [2025-03-04 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605018', 'tblTempUsageDetail_20' ) end [2025-03-04 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605018', 'tblTempVendorCDR_20' ) start [2025-03-04 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605018', 'tblTempVendorCDR_20' ) end [2025-03-04 09:54:20] Production.INFO: ProcessCDR(1,14605018,1,1,2) [2025-03-04 09:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605018', 'tblTempUsageDetail_20' ) start [2025-03-04 09:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605018', 'tblTempUsageDetail_20' ) end [2025-03-04 09:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:54:26] Production.INFO: ==29734== Releasing lock... [2025-03-04 09:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:54:26] Production.INFO: 45.25 MB #Memory Used# [2025-03-04 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:55:05 [end_date_ymd] => 2025-03-04 09:55:05 [RateCDR] => 1 ) [2025-03-04 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-04 06:55:05' and `end` < '2025-03-04 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-04 09:55:18] Production.INFO: count ==2293 [2025-03-04 09:55:19] Production.ERROR: pbx CDR StartTime 2025-03-04 06:55:05 - End Time 2025-03-04 09:55:05 [2025-03-04 09:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605023', 'tblTempUsageDetail_20' ) start [2025-03-04 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605023', 'tblTempUsageDetail_20' ) end [2025-03-04 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605023', 'tblTempVendorCDR_20' ) start [2025-03-04 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605023', 'tblTempVendorCDR_20' ) end [2025-03-04 09:55:19] Production.INFO: ProcessCDR(1,14605023,1,1,2) [2025-03-04 09:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605023', 'tblTempUsageDetail_20' ) start [2025-03-04 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605023', 'tblTempUsageDetail_20' ) end [2025-03-04 09:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:55:25] Production.INFO: ==29814== Releasing lock... [2025-03-04 09:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:55:25] Production.INFO: 45.25 MB #Memory Used# [2025-03-04 09:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:56:06 [end_date_ymd] => 2025-03-04 09:56:06 [RateCDR] => 1 ) [2025-03-04 09: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 06:56:06' and `end` < '2025-03-04 09: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-04 09:56:18] Production.INFO: count ==2312 [2025-03-04 09:56:19] Production.ERROR: pbx CDR StartTime 2025-03-04 06:56:06 - End Time 2025-03-04 09:56:06 [2025-03-04 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605028', 'tblTempUsageDetail_20' ) start [2025-03-04 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605028', 'tblTempUsageDetail_20' ) end [2025-03-04 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605028', 'tblTempVendorCDR_20' ) start [2025-03-04 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605028', 'tblTempVendorCDR_20' ) end [2025-03-04 09:56:19] Production.INFO: ProcessCDR(1,14605028,1,1,2) [2025-03-04 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605028', 'tblTempUsageDetail_20' ) start [2025-03-04 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605028', 'tblTempUsageDetail_20' ) end [2025-03-04 09:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:56:24] Production.INFO: ==29901== Releasing lock... [2025-03-04 09:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:56:24] Production.INFO: 45.5 MB #Memory Used# [2025-03-04 09:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:57:04 [end_date_ymd] => 2025-03-04 09:57:04 [RateCDR] => 1 ) [2025-03-04 09: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-04 06:57:04' and `end` < '2025-03-04 09: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-04 09:57:17] Production.INFO: count ==2347 [2025-03-04 09:57:18] Production.ERROR: pbx CDR StartTime 2025-03-04 06:57:04 - End Time 2025-03-04 09:57:04 [2025-03-04 09:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605033', 'tblTempUsageDetail_20' ) start [2025-03-04 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605033', 'tblTempUsageDetail_20' ) end [2025-03-04 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605033', 'tblTempVendorCDR_20' ) start [2025-03-04 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605033', 'tblTempVendorCDR_20' ) end [2025-03-04 09:57:18] Production.INFO: ProcessCDR(1,14605033,1,1,2) [2025-03-04 09:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605033', 'tblTempUsageDetail_20' ) start [2025-03-04 09:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605033', 'tblTempUsageDetail_20' ) end [2025-03-04 09:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:57:23] Production.INFO: ==29983== Releasing lock... [2025-03-04 09:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:57:23] Production.INFO: 45.75 MB #Memory Used# [2025-03-04 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:58:05 [end_date_ymd] => 2025-03-04 09:58:05 [RateCDR] => 1 ) [2025-03-04 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-04 06:58:05' and `end` < '2025-03-04 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-04 09:58:18] Production.INFO: count ==2356 [2025-03-04 09:58:19] Production.ERROR: pbx CDR StartTime 2025-03-04 06:58:05 - End Time 2025-03-04 09:58:05 [2025-03-04 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605038', 'tblTempUsageDetail_20' ) start [2025-03-04 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605038', 'tblTempUsageDetail_20' ) end [2025-03-04 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605038', 'tblTempVendorCDR_20' ) start [2025-03-04 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605038', 'tblTempVendorCDR_20' ) end [2025-03-04 09:58:19] Production.INFO: ProcessCDR(1,14605038,1,1,2) [2025-03-04 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605038', 'tblTempUsageDetail_20' ) start [2025-03-04 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605038', 'tblTempUsageDetail_20' ) end [2025-03-04 09:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:58:24] Production.INFO: ==30074== Releasing lock... [2025-03-04 09:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:58:24] Production.INFO: 45.75 MB #Memory Used# [2025-03-04 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 06:59:05 [end_date_ymd] => 2025-03-04 09:59:05 [RateCDR] => 1 ) [2025-03-04 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-04 06:59:05' and `end` < '2025-03-04 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-04 09:59:18] Production.INFO: count ==2379 [2025-03-04 09:59:19] Production.ERROR: pbx CDR StartTime 2025-03-04 06:59:05 - End Time 2025-03-04 09:59:05 [2025-03-04 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605043', 'tblTempUsageDetail_20' ) start [2025-03-04 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605043', 'tblTempUsageDetail_20' ) end [2025-03-04 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605043', 'tblTempVendorCDR_20' ) start [2025-03-04 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605043', 'tblTempVendorCDR_20' ) end [2025-03-04 09:59:19] Production.INFO: ProcessCDR(1,14605043,1,1,2) [2025-03-04 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 09:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605043', 'tblTempUsageDetail_20' ) start [2025-03-04 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605043', 'tblTempUsageDetail_20' ) end [2025-03-04 09:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 09:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 09:59:24] Production.INFO: ==30158== Releasing lock... [2025-03-04 09:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 09:59:24] Production.INFO: 46 MB #Memory Used# [2025-03-04 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:00:06 [end_date_ymd] => 2025-03-04 10:00:06 [RateCDR] => 1 ) [2025-03-04 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-04 07:00:06' and `end` < '2025-03-04 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-04 10:00:19] Production.INFO: count ==2388 [2025-03-04 10:00:20] Production.ERROR: pbx CDR StartTime 2025-03-04 07:00:06 - End Time 2025-03-04 10:00:06 [2025-03-04 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605049', 'tblTempUsageDetail_20' ) start [2025-03-04 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605049', 'tblTempUsageDetail_20' ) end [2025-03-04 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605049', 'tblTempVendorCDR_20' ) start [2025-03-04 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605049', 'tblTempVendorCDR_20' ) end [2025-03-04 10:00:20] Production.INFO: ProcessCDR(1,14605049,1,1,2) [2025-03-04 10:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605049', 'tblTempUsageDetail_20' ) start [2025-03-04 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605049', 'tblTempUsageDetail_20' ) end [2025-03-04 10:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:00:25] Production.INFO: ==30246== Releasing lock... [2025-03-04 10:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:00:25] Production.INFO: 46 MB #Memory Used# [2025-03-04 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:01:05 [end_date_ymd] => 2025-03-04 10:01:05 [RateCDR] => 1 ) [2025-03-04 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-04 07:01:05' and `end` < '2025-03-04 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-04 10:01:18] Production.INFO: count ==2485 [2025-03-04 10:01:19] Production.ERROR: pbx CDR StartTime 2025-03-04 07:01:05 - End Time 2025-03-04 10:01:05 [2025-03-04 10:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605054', 'tblTempUsageDetail_20' ) start [2025-03-04 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605054', 'tblTempUsageDetail_20' ) end [2025-03-04 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605054', 'tblTempVendorCDR_20' ) start [2025-03-04 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605054', 'tblTempVendorCDR_20' ) end [2025-03-04 10:01:19] Production.INFO: ProcessCDR(1,14605054,1,1,2) [2025-03-04 10:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605054', 'tblTempUsageDetail_20' ) start [2025-03-04 10:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605054', 'tblTempUsageDetail_20' ) end [2025-03-04 10:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:01:23] Production.INFO: ==30344== Releasing lock... [2025-03-04 10:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:01:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-04 10:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:02:06 [end_date_ymd] => 2025-03-04 10:02:06 [RateCDR] => 1 ) [2025-03-04 10: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-04 07:02:06' and `end` < '2025-03-04 10: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-04 10:02:18] Production.INFO: count ==2506 [2025-03-04 10:02:19] Production.ERROR: pbx CDR StartTime 2025-03-04 07:02:06 - End Time 2025-03-04 10:02:06 [2025-03-04 10:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605059', 'tblTempUsageDetail_20' ) start [2025-03-04 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605059', 'tblTempUsageDetail_20' ) end [2025-03-04 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605059', 'tblTempVendorCDR_20' ) start [2025-03-04 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605059', 'tblTempVendorCDR_20' ) end [2025-03-04 10:02:20] Production.INFO: ProcessCDR(1,14605059,1,1,2) [2025-03-04 10:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605059', 'tblTempUsageDetail_20' ) start [2025-03-04 10:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605059', 'tblTempUsageDetail_20' ) end [2025-03-04 10:02:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:02:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:02:25] Production.INFO: ==30424== Releasing lock... [2025-03-04 10:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:02:25] Production.INFO: 46.75 MB #Memory Used# [2025-03-04 10:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:03:06 [end_date_ymd] => 2025-03-04 10:03:06 [RateCDR] => 1 ) [2025-03-04 10: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-04 07:03:06' and `end` < '2025-03-04 10: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-04 10:03:19] Production.INFO: count ==2511 [2025-03-04 10:03:20] Production.ERROR: pbx CDR StartTime 2025-03-04 07:03:06 - End Time 2025-03-04 10:03:06 [2025-03-04 10:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605064', 'tblTempUsageDetail_20' ) start [2025-03-04 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605064', 'tblTempUsageDetail_20' ) end [2025-03-04 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605064', 'tblTempVendorCDR_20' ) start [2025-03-04 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605064', 'tblTempVendorCDR_20' ) end [2025-03-04 10:03:20] Production.INFO: ProcessCDR(1,14605064,1,1,2) [2025-03-04 10:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605064', 'tblTempUsageDetail_20' ) start [2025-03-04 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605064', 'tblTempUsageDetail_20' ) end [2025-03-04 10:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:03:25] Production.INFO: ==30505== Releasing lock... [2025-03-04 10:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:03:25] Production.INFO: 46.75 MB #Memory Used# [2025-03-04 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:04:06 [end_date_ymd] => 2025-03-04 10:04:06 [RateCDR] => 1 ) [2025-03-04 10: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 07:04:06' and `end` < '2025-03-04 10: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-04 10:04:18] Production.INFO: count ==2540 [2025-03-04 10:04:19] Production.ERROR: pbx CDR StartTime 2025-03-04 07:04:06 - End Time 2025-03-04 10:04:06 [2025-03-04 10:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605069', 'tblTempUsageDetail_20' ) start [2025-03-04 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605069', 'tblTempUsageDetail_20' ) end [2025-03-04 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605069', 'tblTempVendorCDR_20' ) start [2025-03-04 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605069', 'tblTempVendorCDR_20' ) end [2025-03-04 10:04:19] Production.INFO: ProcessCDR(1,14605069,1,1,2) [2025-03-04 10:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605069', 'tblTempUsageDetail_20' ) start [2025-03-04 10:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605069', 'tblTempUsageDetail_20' ) end [2025-03-04 10:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:04:25] Production.INFO: ==30588== Releasing lock... [2025-03-04 10:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:04:25] Production.INFO: 47.25 MB #Memory Used# [2025-03-04 10:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:05:06 [end_date_ymd] => 2025-03-04 10:05:06 [RateCDR] => 1 ) [2025-03-04 10: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 07:05:06' and `end` < '2025-03-04 10: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-04 10:05:19] Production.INFO: count ==2546 [2025-03-04 10:05:20] Production.ERROR: pbx CDR StartTime 2025-03-04 07:05:06 - End Time 2025-03-04 10:05:06 [2025-03-04 10:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605074', 'tblTempUsageDetail_20' ) start [2025-03-04 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605074', 'tblTempUsageDetail_20' ) end [2025-03-04 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605074', 'tblTempVendorCDR_20' ) start [2025-03-04 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605074', 'tblTempVendorCDR_20' ) end [2025-03-04 10:05:20] Production.INFO: ProcessCDR(1,14605074,1,1,2) [2025-03-04 10:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605074', 'tblTempUsageDetail_20' ) start [2025-03-04 10:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605074', 'tblTempUsageDetail_20' ) end [2025-03-04 10:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:05:26] Production.INFO: ==30669== Releasing lock... [2025-03-04 10:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:05:26] Production.INFO: 47.25 MB #Memory Used# [2025-03-04 10:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:06:06 [end_date_ymd] => 2025-03-04 10:06:06 [RateCDR] => 1 ) [2025-03-04 10: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 07:06:06' and `end` < '2025-03-04 10: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-04 10:06:19] Production.INFO: count ==2558 [2025-03-04 10:06:20] Production.ERROR: pbx CDR StartTime 2025-03-04 07:06:06 - End Time 2025-03-04 10:06:06 [2025-03-04 10:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605079', 'tblTempUsageDetail_20' ) start [2025-03-04 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605079', 'tblTempUsageDetail_20' ) end [2025-03-04 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605079', 'tblTempVendorCDR_20' ) start [2025-03-04 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605079', 'tblTempVendorCDR_20' ) end [2025-03-04 10:06:20] Production.INFO: ProcessCDR(1,14605079,1,1,2) [2025-03-04 10:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605079', 'tblTempUsageDetail_20' ) start [2025-03-04 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605079', 'tblTempUsageDetail_20' ) end [2025-03-04 10:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:06:25] Production.INFO: ==30789== Releasing lock... [2025-03-04 10:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:06:25] Production.INFO: 47.25 MB #Memory Used# [2025-03-04 10:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:07:06 [end_date_ymd] => 2025-03-04 10:07:06 [RateCDR] => 1 ) [2025-03-04 10: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 07:07:06' and `end` < '2025-03-04 10: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-04 10:07:18] Production.INFO: count ==2580 [2025-03-04 10:07:20] Production.ERROR: pbx CDR StartTime 2025-03-04 07:07:06 - End Time 2025-03-04 10:07:06 [2025-03-04 10:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605084', 'tblTempUsageDetail_20' ) start [2025-03-04 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605084', 'tblTempUsageDetail_20' ) end [2025-03-04 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605084', 'tblTempVendorCDR_20' ) start [2025-03-04 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605084', 'tblTempVendorCDR_20' ) end [2025-03-04 10:07:20] Production.INFO: ProcessCDR(1,14605084,1,1,2) [2025-03-04 10:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605084', 'tblTempUsageDetail_20' ) start [2025-03-04 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605084', 'tblTempUsageDetail_20' ) end [2025-03-04 10:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:07:25] Production.INFO: ==30873== Releasing lock... [2025-03-04 10:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:07:25] Production.INFO: 47.25 MB #Memory Used# [2025-03-04 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:08:05 [end_date_ymd] => 2025-03-04 10:08:05 [RateCDR] => 1 ) [2025-03-04 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-04 07:08:05' and `end` < '2025-03-04 10:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 10:08:18] Production.INFO: count ==2583 [2025-03-04 10:08:19] Production.ERROR: pbx CDR StartTime 2025-03-04 07:08:05 - End Time 2025-03-04 10:08:05 [2025-03-04 10:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605089', 'tblTempUsageDetail_20' ) start [2025-03-04 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605089', 'tblTempUsageDetail_20' ) end [2025-03-04 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605089', 'tblTempVendorCDR_20' ) start [2025-03-04 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605089', 'tblTempVendorCDR_20' ) end [2025-03-04 10:08:19] Production.INFO: ProcessCDR(1,14605089,1,1,2) [2025-03-04 10:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605089', 'tblTempUsageDetail_20' ) start [2025-03-04 10:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605089', 'tblTempUsageDetail_20' ) end [2025-03-04 10:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:08:24] Production.INFO: ==30956== Releasing lock... [2025-03-04 10:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:08:24] Production.INFO: 47.5 MB #Memory Used# [2025-03-04 10:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:09:06 [end_date_ymd] => 2025-03-04 10:09:06 [RateCDR] => 1 ) [2025-03-04 10: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 07:09:06' and `end` < '2025-03-04 10: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-04 10:09:19] Production.INFO: count ==2601 [2025-03-04 10:09:20] Production.ERROR: pbx CDR StartTime 2025-03-04 07:09:06 - End Time 2025-03-04 10:09:06 [2025-03-04 10:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605094', 'tblTempUsageDetail_20' ) start [2025-03-04 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605094', 'tblTempUsageDetail_20' ) end [2025-03-04 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605094', 'tblTempVendorCDR_20' ) start [2025-03-04 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605094', 'tblTempVendorCDR_20' ) end [2025-03-04 10:09:20] Production.INFO: ProcessCDR(1,14605094,1,1,2) [2025-03-04 10:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605094', 'tblTempUsageDetail_20' ) start [2025-03-04 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605094', 'tblTempUsageDetail_20' ) end [2025-03-04 10:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:09:25] Production.INFO: ==31035== Releasing lock... [2025-03-04 10:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:09:25] Production.INFO: 47.5 MB #Memory Used# [2025-03-04 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:10:06 [end_date_ymd] => 2025-03-04 10:10:06 [RateCDR] => 1 ) [2025-03-04 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-04 07:10:06' and `end` < '2025-03-04 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-04 10:10:19] Production.INFO: count ==2610 [2025-03-04 10:10:20] Production.ERROR: pbx CDR StartTime 2025-03-04 07:10:06 - End Time 2025-03-04 10:10:06 [2025-03-04 10:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605100', 'tblTempUsageDetail_20' ) start [2025-03-04 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605100', 'tblTempUsageDetail_20' ) end [2025-03-04 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605100', 'tblTempVendorCDR_20' ) start [2025-03-04 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605100', 'tblTempVendorCDR_20' ) end [2025-03-04 10:10:20] Production.INFO: ProcessCDR(1,14605100,1,1,2) [2025-03-04 10:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605100', 'tblTempUsageDetail_20' ) start [2025-03-04 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605100', 'tblTempUsageDetail_20' ) end [2025-03-04 10:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:10:26] Production.INFO: ==31119== Releasing lock... [2025-03-04 10:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:10:26] Production.INFO: 47.75 MB #Memory Used# [2025-03-04 10:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:11:06 [end_date_ymd] => 2025-03-04 10:11:06 [RateCDR] => 1 ) [2025-03-04 10: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 07:11:06' and `end` < '2025-03-04 10: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-04 10:11:18] Production.INFO: count ==2699 [2025-03-04 10:11:19] Production.ERROR: pbx CDR StartTime 2025-03-04 07:11:06 - End Time 2025-03-04 10:11:06 [2025-03-04 10:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605105', 'tblTempUsageDetail_20' ) start [2025-03-04 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605105', 'tblTempUsageDetail_20' ) end [2025-03-04 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605105', 'tblTempVendorCDR_20' ) start [2025-03-04 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605105', 'tblTempVendorCDR_20' ) end [2025-03-04 10:11:20] Production.INFO: ProcessCDR(1,14605105,1,1,2) [2025-03-04 10:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605105', 'tblTempUsageDetail_20' ) start [2025-03-04 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605105', 'tblTempUsageDetail_20' ) end [2025-03-04 10:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:11:23] Production.INFO: ==31200== Releasing lock... [2025-03-04 10:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:11:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-04 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:12:05 [end_date_ymd] => 2025-03-04 10:12:05 [RateCDR] => 1 ) [2025-03-04 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-04 07:12:05' and `end` < '2025-03-04 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-04 10:12:18] Production.INFO: count ==2718 [2025-03-04 10:12:19] Production.ERROR: pbx CDR StartTime 2025-03-04 07:12:05 - End Time 2025-03-04 10:12:05 [2025-03-04 10:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605110', 'tblTempUsageDetail_20' ) start [2025-03-04 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605110', 'tblTempUsageDetail_20' ) end [2025-03-04 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605110', 'tblTempVendorCDR_20' ) start [2025-03-04 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605110', 'tblTempVendorCDR_20' ) end [2025-03-04 10:12:19] Production.INFO: ProcessCDR(1,14605110,1,1,2) [2025-03-04 10:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605110', 'tblTempUsageDetail_20' ) start [2025-03-04 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605110', 'tblTempUsageDetail_20' ) end [2025-03-04 10:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:12:25] Production.INFO: ==31279== Releasing lock... [2025-03-04 10:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:12:25] Production.INFO: 48.75 MB #Memory Used# [2025-03-04 10:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:13:06 [end_date_ymd] => 2025-03-04 10:13:06 [RateCDR] => 1 ) [2025-03-04 10: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 07:13:06' and `end` < '2025-03-04 10: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-04 10:13:19] Production.INFO: count ==2728 [2025-03-04 10:13:20] Production.ERROR: pbx CDR StartTime 2025-03-04 07:13:06 - End Time 2025-03-04 10:13:06 [2025-03-04 10:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605115', 'tblTempUsageDetail_20' ) start [2025-03-04 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605115', 'tblTempUsageDetail_20' ) end [2025-03-04 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605115', 'tblTempVendorCDR_20' ) start [2025-03-04 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605115', 'tblTempVendorCDR_20' ) end [2025-03-04 10:13:20] Production.INFO: ProcessCDR(1,14605115,1,1,2) [2025-03-04 10:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605115', 'tblTempUsageDetail_20' ) start [2025-03-04 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605115', 'tblTempUsageDetail_20' ) end [2025-03-04 10:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:13:25] Production.INFO: ==31361== Releasing lock... [2025-03-04 10:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:13:25] Production.INFO: 48.5 MB #Memory Used# [2025-03-04 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:14:06 [end_date_ymd] => 2025-03-04 10:14:06 [RateCDR] => 1 ) [2025-03-04 10: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 07:14:06' and `end` < '2025-03-04 10: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-04 10:14:18] Production.INFO: count ==2737 [2025-03-04 10:14:19] Production.ERROR: pbx CDR StartTime 2025-03-04 07:14:06 - End Time 2025-03-04 10:14:06 [2025-03-04 10:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605120', 'tblTempUsageDetail_20' ) start [2025-03-04 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605120', 'tblTempUsageDetail_20' ) end [2025-03-04 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605120', 'tblTempVendorCDR_20' ) start [2025-03-04 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605120', 'tblTempVendorCDR_20' ) end [2025-03-04 10:14:19] Production.INFO: ProcessCDR(1,14605120,1,1,2) [2025-03-04 10:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605120', 'tblTempUsageDetail_20' ) start [2025-03-04 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605120', 'tblTempUsageDetail_20' ) end [2025-03-04 10:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:14:25] Production.INFO: ==31442== Releasing lock... [2025-03-04 10:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:14:25] Production.INFO: 48.5 MB #Memory Used# [2025-03-04 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:15:05 [end_date_ymd] => 2025-03-04 10:15:05 [RateCDR] => 1 ) [2025-03-04 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-04 07:15:05' and `end` < '2025-03-04 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-04 10:15:18] Production.INFO: count ==2755 [2025-03-04 10:15:19] Production.ERROR: pbx CDR StartTime 2025-03-04 07:15:05 - End Time 2025-03-04 10:15:05 [2025-03-04 10:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605125', 'tblTempUsageDetail_20' ) start [2025-03-04 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605125', 'tblTempUsageDetail_20' ) end [2025-03-04 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605125', 'tblTempVendorCDR_20' ) start [2025-03-04 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605125', 'tblTempVendorCDR_20' ) end [2025-03-04 10:15:19] Production.INFO: ProcessCDR(1,14605125,1,1,2) [2025-03-04 10:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605125', 'tblTempUsageDetail_20' ) start [2025-03-04 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605125', 'tblTempUsageDetail_20' ) end [2025-03-04 10:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:15:25] Production.INFO: ==31525== Releasing lock... [2025-03-04 10:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:15:25] Production.INFO: 48.75 MB #Memory Used# [2025-03-04 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:16:05 [end_date_ymd] => 2025-03-04 10:16:05 [RateCDR] => 1 ) [2025-03-04 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-04 07:16:05' and `end` < '2025-03-04 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-04 10:16:18] Production.INFO: count ==2781 [2025-03-04 10:16:19] Production.ERROR: pbx CDR StartTime 2025-03-04 07:16:05 - End Time 2025-03-04 10:16:05 [2025-03-04 10:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605130', 'tblTempUsageDetail_20' ) start [2025-03-04 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605130', 'tblTempUsageDetail_20' ) end [2025-03-04 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605130', 'tblTempVendorCDR_20' ) start [2025-03-04 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605130', 'tblTempVendorCDR_20' ) end [2025-03-04 10:16:20] Production.INFO: ProcessCDR(1,14605130,1,1,2) [2025-03-04 10:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605130', 'tblTempUsageDetail_20' ) start [2025-03-04 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605130', 'tblTempUsageDetail_20' ) end [2025-03-04 10:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:16:25] Production.INFO: ==31605== Releasing lock... [2025-03-04 10:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:16:25] Production.INFO: 49 MB #Memory Used# [2025-03-04 10:17:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:17:07 [end_date_ymd] => 2025-03-04 10:17:07 [RateCDR] => 1 ) [2025-03-04 10:17: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 07:17:07' and `end` < '2025-03-04 10:17: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-04 10:17:19] Production.INFO: count ==2805 [2025-03-04 10:17:21] Production.ERROR: pbx CDR StartTime 2025-03-04 07:17:07 - End Time 2025-03-04 10:17:07 [2025-03-04 10:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605135', 'tblTempUsageDetail_20' ) start [2025-03-04 10:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605135', 'tblTempUsageDetail_20' ) end [2025-03-04 10:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605135', 'tblTempVendorCDR_20' ) start [2025-03-04 10:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605135', 'tblTempVendorCDR_20' ) end [2025-03-04 10:17:21] Production.INFO: ProcessCDR(1,14605135,1,1,2) [2025-03-04 10:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605135', 'tblTempUsageDetail_20' ) start [2025-03-04 10:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605135', 'tblTempUsageDetail_20' ) end [2025-03-04 10:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:17:26] Production.INFO: ==31691== Releasing lock... [2025-03-04 10:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:17:26] Production.INFO: 49 MB #Memory Used# [2025-03-04 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:18:05 [end_date_ymd] => 2025-03-04 10:18:05 [RateCDR] => 1 ) [2025-03-04 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-04 07:18:05' and `end` < '2025-03-04 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-04 10:18:18] Production.INFO: count ==2824 [2025-03-04 10:18:19] Production.ERROR: pbx CDR StartTime 2025-03-04 07:18:05 - End Time 2025-03-04 10:18:05 [2025-03-04 10:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605140', 'tblTempUsageDetail_20' ) start [2025-03-04 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605140', 'tblTempUsageDetail_20' ) end [2025-03-04 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605140', 'tblTempVendorCDR_20' ) start [2025-03-04 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605140', 'tblTempVendorCDR_20' ) end [2025-03-04 10:18:19] Production.INFO: ProcessCDR(1,14605140,1,1,2) [2025-03-04 10:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605140', 'tblTempUsageDetail_20' ) start [2025-03-04 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605140', 'tblTempUsageDetail_20' ) end [2025-03-04 10:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:18:25] Production.INFO: ==31771== Releasing lock... [2025-03-04 10:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:18:25] Production.INFO: 49 MB #Memory Used# [2025-03-04 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:19:05 [end_date_ymd] => 2025-03-04 10:19:05 [RateCDR] => 1 ) [2025-03-04 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-04 07:19:05' and `end` < '2025-03-04 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-04 10:19:18] Production.INFO: count ==2832 [2025-03-04 10:19:19] Production.ERROR: pbx CDR StartTime 2025-03-04 07:19:05 - End Time 2025-03-04 10:19:05 [2025-03-04 10:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605145', 'tblTempUsageDetail_20' ) start [2025-03-04 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605145', 'tblTempUsageDetail_20' ) end [2025-03-04 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605145', 'tblTempVendorCDR_20' ) start [2025-03-04 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605145', 'tblTempVendorCDR_20' ) end [2025-03-04 10:19:19] Production.INFO: ProcessCDR(1,14605145,1,1,2) [2025-03-04 10:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605145', 'tblTempUsageDetail_20' ) start [2025-03-04 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605145', 'tblTempUsageDetail_20' ) end [2025-03-04 10:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:19:24] Production.INFO: ==31851== Releasing lock... [2025-03-04 10:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:19:24] Production.INFO: 49 MB #Memory Used# [2025-03-04 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:20:06 [end_date_ymd] => 2025-03-04 10:20:06 [RateCDR] => 1 ) [2025-03-04 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-04 07:20:06' and `end` < '2025-03-04 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-04 10:20:19] Production.INFO: count ==2847 [2025-03-04 10:20:21] Production.ERROR: pbx CDR StartTime 2025-03-04 07:20:06 - End Time 2025-03-04 10:20:06 [2025-03-04 10:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605150', 'tblTempUsageDetail_20' ) start [2025-03-04 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605150', 'tblTempUsageDetail_20' ) end [2025-03-04 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605150', 'tblTempVendorCDR_20' ) start [2025-03-04 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605150', 'tblTempVendorCDR_20' ) end [2025-03-04 10:20:21] Production.INFO: ProcessCDR(1,14605150,1,1,2) [2025-03-04 10:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605150', 'tblTempUsageDetail_20' ) start [2025-03-04 10:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605150', 'tblTempUsageDetail_20' ) end [2025-03-04 10:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:20:26] Production.INFO: ==31935== Releasing lock... [2025-03-04 10:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:20:26] Production.INFO: 49.75 MB #Memory Used# [2025-03-04 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:21:05 [end_date_ymd] => 2025-03-04 10:21:05 [RateCDR] => 1 ) [2025-03-04 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-04 07:21:05' and `end` < '2025-03-04 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-04 10:21:18] Production.INFO: count ==2942 [2025-03-04 10:21:19] Production.ERROR: pbx CDR StartTime 2025-03-04 07:21:05 - End Time 2025-03-04 10:21:05 [2025-03-04 10:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605156', 'tblTempUsageDetail_20' ) start [2025-03-04 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605156', 'tblTempUsageDetail_20' ) end [2025-03-04 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605156', 'tblTempVendorCDR_20' ) start [2025-03-04 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605156', 'tblTempVendorCDR_20' ) end [2025-03-04 10:21:19] Production.INFO: ProcessCDR(1,14605156,1,1,2) [2025-03-04 10:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605156', 'tblTempUsageDetail_20' ) start [2025-03-04 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605156', 'tblTempUsageDetail_20' ) end [2025-03-04 10:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:21:25] Production.INFO: ==32021== Releasing lock... [2025-03-04 10:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:21:25] Production.INFO: 50.5 MB #Memory Used# [2025-03-04 10:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:22:06 [end_date_ymd] => 2025-03-04 10:22:06 [RateCDR] => 1 ) [2025-03-04 10: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 07:22:06' and `end` < '2025-03-04 10: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-04 10:22:18] Production.INFO: count ==2958 [2025-03-04 10:22:19] Production.ERROR: pbx CDR StartTime 2025-03-04 07:22:06 - End Time 2025-03-04 10:22:06 [2025-03-04 10:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605161', 'tblTempUsageDetail_20' ) start [2025-03-04 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605161', 'tblTempUsageDetail_20' ) end [2025-03-04 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605161', 'tblTempVendorCDR_20' ) start [2025-03-04 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605161', 'tblTempVendorCDR_20' ) end [2025-03-04 10:22:20] Production.INFO: ProcessCDR(1,14605161,1,1,2) [2025-03-04 10:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605161', 'tblTempUsageDetail_20' ) start [2025-03-04 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605161', 'tblTempUsageDetail_20' ) end [2025-03-04 10:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:22:25] Production.INFO: ==32146== Releasing lock... [2025-03-04 10:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:22:25] Production.INFO: 50.5 MB #Memory Used# [2025-03-04 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:23:05 [end_date_ymd] => 2025-03-04 10:23:05 [RateCDR] => 1 ) [2025-03-04 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-04 07:23:05' and `end` < '2025-03-04 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-04 10:23:18] Production.INFO: count ==2966 [2025-03-04 10:23:19] Production.ERROR: pbx CDR StartTime 2025-03-04 07:23:05 - End Time 2025-03-04 10:23:05 [2025-03-04 10:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605166', 'tblTempUsageDetail_20' ) start [2025-03-04 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605166', 'tblTempUsageDetail_20' ) end [2025-03-04 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605166', 'tblTempVendorCDR_20' ) start [2025-03-04 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605166', 'tblTempVendorCDR_20' ) end [2025-03-04 10:23:19] Production.INFO: ProcessCDR(1,14605166,1,1,2) [2025-03-04 10:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605166', 'tblTempUsageDetail_20' ) start [2025-03-04 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605166', 'tblTempUsageDetail_20' ) end [2025-03-04 10:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:23:25] Production.INFO: ==32236== Releasing lock... [2025-03-04 10:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:23:25] Production.INFO: 50.25 MB #Memory Used# [2025-03-04 10:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:24:06 [end_date_ymd] => 2025-03-04 10:24:06 [RateCDR] => 1 ) [2025-03-04 10: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 07:24:06' and `end` < '2025-03-04 10: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-04 10:24:19] Production.INFO: count ==2979 [2025-03-04 10:24:20] Production.ERROR: pbx CDR StartTime 2025-03-04 07:24:06 - End Time 2025-03-04 10:24:06 [2025-03-04 10:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605171', 'tblTempUsageDetail_20' ) start [2025-03-04 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605171', 'tblTempUsageDetail_20' ) end [2025-03-04 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605171', 'tblTempVendorCDR_20' ) start [2025-03-04 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605171', 'tblTempVendorCDR_20' ) end [2025-03-04 10:24:20] Production.INFO: ProcessCDR(1,14605171,1,1,2) [2025-03-04 10:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605171', 'tblTempUsageDetail_20' ) start [2025-03-04 10:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605171', 'tblTempUsageDetail_20' ) end [2025-03-04 10:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:24:25] Production.INFO: ==32319== Releasing lock... [2025-03-04 10:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:24:25] Production.INFO: 50.75 MB #Memory Used# [2025-03-04 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:25:06 [end_date_ymd] => 2025-03-04 10:25:06 [RateCDR] => 1 ) [2025-03-04 10: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-04 07:25:06' and `end` < '2025-03-04 10: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-04 10:25:18] Production.INFO: count ==2996 [2025-03-04 10:25:20] Production.ERROR: pbx CDR StartTime 2025-03-04 07:25:06 - End Time 2025-03-04 10:25:06 [2025-03-04 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605176', 'tblTempUsageDetail_20' ) start [2025-03-04 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605176', 'tblTempUsageDetail_20' ) end [2025-03-04 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605176', 'tblTempVendorCDR_20' ) start [2025-03-04 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605176', 'tblTempVendorCDR_20' ) end [2025-03-04 10:25:20] Production.INFO: ProcessCDR(1,14605176,1,1,2) [2025-03-04 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605176', 'tblTempUsageDetail_20' ) start [2025-03-04 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605176', 'tblTempUsageDetail_20' ) end [2025-03-04 10:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:25:25] Production.INFO: ==32400== Releasing lock... [2025-03-04 10:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:25:25] Production.INFO: 50.75 MB #Memory Used# [2025-03-04 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:26:05 [end_date_ymd] => 2025-03-04 10:26:05 [RateCDR] => 1 ) [2025-03-04 10:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 07:26:05' and `end` < '2025-03-04 10:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 10:26:18] Production.INFO: count ==3012 [2025-03-04 10:26:19] Production.ERROR: pbx CDR StartTime 2025-03-04 07:26:05 - End Time 2025-03-04 10:26:05 [2025-03-04 10:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605181', 'tblTempUsageDetail_20' ) start [2025-03-04 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605181', 'tblTempUsageDetail_20' ) end [2025-03-04 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605181', 'tblTempVendorCDR_20' ) start [2025-03-04 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605181', 'tblTempVendorCDR_20' ) end [2025-03-04 10:26:19] Production.INFO: ProcessCDR(1,14605181,1,1,2) [2025-03-04 10:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605181', 'tblTempUsageDetail_20' ) start [2025-03-04 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605181', 'tblTempUsageDetail_20' ) end [2025-03-04 10:26:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:26:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:26:25] Production.INFO: ==32483== Releasing lock... [2025-03-04 10:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:26:25] Production.INFO: 51.25 MB #Memory Used# [2025-03-04 10:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:27:06 [end_date_ymd] => 2025-03-04 10:27:06 [RateCDR] => 1 ) [2025-03-04 10: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 07:27:06' and `end` < '2025-03-04 10: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-04 10:27:18] Production.INFO: count ==3021 [2025-03-04 10:27:20] Production.ERROR: pbx CDR StartTime 2025-03-04 07:27:06 - End Time 2025-03-04 10:27:06 [2025-03-04 10:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605186', 'tblTempUsageDetail_20' ) start [2025-03-04 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605186', 'tblTempUsageDetail_20' ) end [2025-03-04 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605186', 'tblTempVendorCDR_20' ) start [2025-03-04 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605186', 'tblTempVendorCDR_20' ) end [2025-03-04 10:27:20] Production.INFO: ProcessCDR(1,14605186,1,1,2) [2025-03-04 10:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605186', 'tblTempUsageDetail_20' ) start [2025-03-04 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605186', 'tblTempUsageDetail_20' ) end [2025-03-04 10:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:27:25] Production.INFO: ==32563== Releasing lock... [2025-03-04 10:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:27:25] Production.INFO: 51 MB #Memory Used# [2025-03-04 10:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:28:06 [end_date_ymd] => 2025-03-04 10:28:06 [RateCDR] => 1 ) [2025-03-04 10: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-04 07:28:06' and `end` < '2025-03-04 10: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-04 10:28:19] Production.INFO: count ==3047 [2025-03-04 10:28:20] Production.ERROR: pbx CDR StartTime 2025-03-04 07:28:06 - End Time 2025-03-04 10:28:06 [2025-03-04 10:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605191', 'tblTempUsageDetail_20' ) start [2025-03-04 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605191', 'tblTempUsageDetail_20' ) end [2025-03-04 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605191', 'tblTempVendorCDR_20' ) start [2025-03-04 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605191', 'tblTempVendorCDR_20' ) end [2025-03-04 10:28:20] Production.INFO: ProcessCDR(1,14605191,1,1,2) [2025-03-04 10:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605191', 'tblTempUsageDetail_20' ) start [2025-03-04 10:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605191', 'tblTempUsageDetail_20' ) end [2025-03-04 10:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:28:26] Production.INFO: ==32644== Releasing lock... [2025-03-04 10:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:28:26] Production.INFO: 51 MB #Memory Used# [2025-03-04 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:29:05 [end_date_ymd] => 2025-03-04 10:29:05 [RateCDR] => 1 ) [2025-03-04 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-04 07:29:05' and `end` < '2025-03-04 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-04 10:29:18] Production.INFO: count ==3061 [2025-03-04 10:29:19] Production.ERROR: pbx CDR StartTime 2025-03-04 07:29:05 - End Time 2025-03-04 10:29:05 [2025-03-04 10:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605196', 'tblTempUsageDetail_20' ) start [2025-03-04 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605196', 'tblTempUsageDetail_20' ) end [2025-03-04 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605196', 'tblTempVendorCDR_20' ) start [2025-03-04 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605196', 'tblTempVendorCDR_20' ) end [2025-03-04 10:29:19] Production.INFO: ProcessCDR(1,14605196,1,1,2) [2025-03-04 10:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605196', 'tblTempUsageDetail_20' ) start [2025-03-04 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605196', 'tblTempUsageDetail_20' ) end [2025-03-04 10:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:29:25] Production.INFO: ==32725== Releasing lock... [2025-03-04 10:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:29:25] Production.INFO: 51.5 MB #Memory Used# [2025-03-04 10:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:30:07 [end_date_ymd] => 2025-03-04 10:30:07 [RateCDR] => 1 ) [2025-03-04 10: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-04 07:30:07' and `end` < '2025-03-04 10: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-04 10:30:19] Production.INFO: count ==3068 [2025-03-04 10:30:21] Production.ERROR: pbx CDR StartTime 2025-03-04 07:30:07 - End Time 2025-03-04 10:30:07 [2025-03-04 10:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605201', 'tblTempUsageDetail_20' ) start [2025-03-04 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605201', 'tblTempUsageDetail_20' ) end [2025-03-04 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605201', 'tblTempVendorCDR_20' ) start [2025-03-04 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605201', 'tblTempVendorCDR_20' ) end [2025-03-04 10:30:21] Production.INFO: ProcessCDR(1,14605201,1,1,2) [2025-03-04 10:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605201', 'tblTempUsageDetail_20' ) start [2025-03-04 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605201', 'tblTempUsageDetail_20' ) end [2025-03-04 10:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:30:26] Production.INFO: ==367== Releasing lock... [2025-03-04 10:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:30:26] Production.INFO: 51.75 MB #Memory Used# [2025-03-04 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:31:05 [end_date_ymd] => 2025-03-04 10:31:05 [RateCDR] => 1 ) [2025-03-04 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-04 07:31:05' and `end` < '2025-03-04 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-04 10:31:18] Production.INFO: count ==3157 [2025-03-04 10:31:19] Production.ERROR: pbx CDR StartTime 2025-03-04 07:31:05 - End Time 2025-03-04 10:31:05 [2025-03-04 10:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605207', 'tblTempUsageDetail_20' ) start [2025-03-04 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605207', 'tblTempUsageDetail_20' ) end [2025-03-04 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605207', 'tblTempVendorCDR_20' ) start [2025-03-04 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605207', 'tblTempVendorCDR_20' ) end [2025-03-04 10:31:20] Production.INFO: ProcessCDR(1,14605207,1,1,2) [2025-03-04 10:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605207', 'tblTempUsageDetail_20' ) start [2025-03-04 10:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605207', 'tblTempUsageDetail_20' ) end [2025-03-04 10:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:31:26] Production.INFO: ==451== Releasing lock... [2025-03-04 10:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:31:26] Production.INFO: 51.75 MB #Memory Used# [2025-03-04 10:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:32:06 [end_date_ymd] => 2025-03-04 10:32:06 [RateCDR] => 1 ) [2025-03-04 10: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 07:32:06' and `end` < '2025-03-04 10: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-04 10:32:19] Production.INFO: count ==3174 [2025-03-04 10:32:21] Production.ERROR: pbx CDR StartTime 2025-03-04 07:32:06 - End Time 2025-03-04 10:32:06 [2025-03-04 10:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605212', 'tblTempUsageDetail_20' ) start [2025-03-04 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605212', 'tblTempUsageDetail_20' ) end [2025-03-04 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605212', 'tblTempVendorCDR_20' ) start [2025-03-04 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605212', 'tblTempVendorCDR_20' ) end [2025-03-04 10:32:21] Production.INFO: ProcessCDR(1,14605212,1,1,2) [2025-03-04 10:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605212', 'tblTempUsageDetail_20' ) start [2025-03-04 10:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605212', 'tblTempUsageDetail_20' ) end [2025-03-04 10:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:32:26] Production.INFO: ==532== Releasing lock... [2025-03-04 10:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:32:26] Production.INFO: 52 MB #Memory Used# [2025-03-04 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:33:05 [end_date_ymd] => 2025-03-04 10:33:05 [RateCDR] => 1 ) [2025-03-04 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-04 07:33:05' and `end` < '2025-03-04 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-04 10:33:18] Production.INFO: count ==3185 [2025-03-04 10:33:20] Production.ERROR: pbx CDR StartTime 2025-03-04 07:33:05 - End Time 2025-03-04 10:33:05 [2025-03-04 10:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605217', 'tblTempUsageDetail_20' ) start [2025-03-04 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605217', 'tblTempUsageDetail_20' ) end [2025-03-04 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605217', 'tblTempVendorCDR_20' ) start [2025-03-04 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605217', 'tblTempVendorCDR_20' ) end [2025-03-04 10:33:20] Production.INFO: ProcessCDR(1,14605217,1,1,2) [2025-03-04 10:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605217', 'tblTempUsageDetail_20' ) start [2025-03-04 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605217', 'tblTempUsageDetail_20' ) end [2025-03-04 10:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:33:25] Production.INFO: ==620== Releasing lock... [2025-03-04 10:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:33:25] Production.INFO: 53 MB #Memory Used# [2025-03-04 10:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:34:06 [end_date_ymd] => 2025-03-04 10:34:06 [RateCDR] => 1 ) [2025-03-04 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-04 07:34:06' and `end` < '2025-03-04 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-04 10:34:19] Production.INFO: count ==3205 [2025-03-04 10:34:20] Production.ERROR: pbx CDR StartTime 2025-03-04 07:34:06 - End Time 2025-03-04 10:34:06 [2025-03-04 10:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605222', 'tblTempUsageDetail_20' ) start [2025-03-04 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605222', 'tblTempUsageDetail_20' ) end [2025-03-04 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605222', 'tblTempVendorCDR_20' ) start [2025-03-04 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605222', 'tblTempVendorCDR_20' ) end [2025-03-04 10:34:20] Production.INFO: ProcessCDR(1,14605222,1,1,2) [2025-03-04 10:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605222', 'tblTempUsageDetail_20' ) start [2025-03-04 10:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605222', 'tblTempUsageDetail_20' ) end [2025-03-04 10:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:34:26] Production.INFO: ==724== Releasing lock... [2025-03-04 10:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:34:26] Production.INFO: 52 MB #Memory Used# [2025-03-04 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:35:05 [end_date_ymd] => 2025-03-04 10:35:05 [RateCDR] => 1 ) [2025-03-04 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-04 07:35:05' and `end` < '2025-03-04 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-04 10:35:18] Production.INFO: count ==3215 [2025-03-04 10:35:20] Production.ERROR: pbx CDR StartTime 2025-03-04 07:35:05 - End Time 2025-03-04 10:35:05 [2025-03-04 10:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605227', 'tblTempUsageDetail_20' ) start [2025-03-04 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605227', 'tblTempUsageDetail_20' ) end [2025-03-04 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605227', 'tblTempVendorCDR_20' ) start [2025-03-04 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605227', 'tblTempVendorCDR_20' ) end [2025-03-04 10:35:20] Production.INFO: ProcessCDR(1,14605227,1,1,2) [2025-03-04 10:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605227', 'tblTempUsageDetail_20' ) start [2025-03-04 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605227', 'tblTempUsageDetail_20' ) end [2025-03-04 10:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:35:25] Production.INFO: ==806== Releasing lock... [2025-03-04 10:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:35:25] Production.INFO: 52.25 MB #Memory Used# [2025-03-04 10:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:36:06 [end_date_ymd] => 2025-03-04 10:36:06 [RateCDR] => 1 ) [2025-03-04 10: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 07:36:06' and `end` < '2025-03-04 10: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-04 10:36:19] Production.INFO: count ==3235 [2025-03-04 10:36:20] Production.ERROR: pbx CDR StartTime 2025-03-04 07:36:06 - End Time 2025-03-04 10:36:06 [2025-03-04 10:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605232', 'tblTempUsageDetail_20' ) start [2025-03-04 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605232', 'tblTempUsageDetail_20' ) end [2025-03-04 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605232', 'tblTempVendorCDR_20' ) start [2025-03-04 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605232', 'tblTempVendorCDR_20' ) end [2025-03-04 10:36:20] Production.INFO: ProcessCDR(1,14605232,1,1,2) [2025-03-04 10:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605232', 'tblTempUsageDetail_20' ) start [2025-03-04 10:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605232', 'tblTempUsageDetail_20' ) end [2025-03-04 10:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:36:26] Production.INFO: ==883== Releasing lock... [2025-03-04 10:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:36:26] Production.INFO: 53.25 MB #Memory Used# [2025-03-04 10:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:37:06 [end_date_ymd] => 2025-03-04 10:37:06 [RateCDR] => 1 ) [2025-03-04 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-04 07:37:06' and `end` < '2025-03-04 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-04 10:37:19] Production.INFO: count ==3254 [2025-03-04 10:37:20] Production.ERROR: pbx CDR StartTime 2025-03-04 07:37:06 - End Time 2025-03-04 10:37:06 [2025-03-04 10:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605237', 'tblTempUsageDetail_20' ) start [2025-03-04 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605237', 'tblTempUsageDetail_20' ) end [2025-03-04 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605237', 'tblTempVendorCDR_20' ) start [2025-03-04 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605237', 'tblTempVendorCDR_20' ) end [2025-03-04 10:37:20] Production.INFO: ProcessCDR(1,14605237,1,1,2) [2025-03-04 10:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605237', 'tblTempUsageDetail_20' ) start [2025-03-04 10:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605237', 'tblTempUsageDetail_20' ) end [2025-03-04 10:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:37:26] Production.INFO: ==1008== Releasing lock... [2025-03-04 10:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:37:26] Production.INFO: 53.75 MB #Memory Used# [2025-03-04 10:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:38:06 [end_date_ymd] => 2025-03-04 10:38:06 [RateCDR] => 1 ) [2025-03-04 10: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 07:38:06' and `end` < '2025-03-04 10: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-04 10:38:18] Production.INFO: count ==3269 [2025-03-04 10:38:20] Production.ERROR: pbx CDR StartTime 2025-03-04 07:38:06 - End Time 2025-03-04 10:38:06 [2025-03-04 10:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605242', 'tblTempUsageDetail_20' ) start [2025-03-04 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605242', 'tblTempUsageDetail_20' ) end [2025-03-04 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605242', 'tblTempVendorCDR_20' ) start [2025-03-04 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605242', 'tblTempVendorCDR_20' ) end [2025-03-04 10:38:20] Production.INFO: ProcessCDR(1,14605242,1,1,2) [2025-03-04 10:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605242', 'tblTempUsageDetail_20' ) start [2025-03-04 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605242', 'tblTempUsageDetail_20' ) end [2025-03-04 10:38:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:38:26] Production.INFO: ==1088== Releasing lock... [2025-03-04 10:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:38:26] Production.INFO: 53 MB #Memory Used# [2025-03-04 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:39:05 [end_date_ymd] => 2025-03-04 10:39:05 [RateCDR] => 1 ) [2025-03-04 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-04 07:39:05' and `end` < '2025-03-04 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-04 10:39:18] Production.INFO: count ==3285 [2025-03-04 10:39:20] Production.ERROR: pbx CDR StartTime 2025-03-04 07:39:05 - End Time 2025-03-04 10:39:05 [2025-03-04 10:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605247', 'tblTempUsageDetail_20' ) start [2025-03-04 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605247', 'tblTempUsageDetail_20' ) end [2025-03-04 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605247', 'tblTempVendorCDR_20' ) start [2025-03-04 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605247', 'tblTempVendorCDR_20' ) end [2025-03-04 10:39:20] Production.INFO: ProcessCDR(1,14605247,1,1,2) [2025-03-04 10:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605247', 'tblTempUsageDetail_20' ) start [2025-03-04 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605247', 'tblTempUsageDetail_20' ) end [2025-03-04 10:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:39:25] Production.INFO: ==1172== Releasing lock... [2025-03-04 10:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:39:25] Production.INFO: 52.75 MB #Memory Used# [2025-03-04 10:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:40:07 [end_date_ymd] => 2025-03-04 10:40:07 [RateCDR] => 1 ) [2025-03-04 10: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 07:40:07' and `end` < '2025-03-04 10: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-04 10:40:20] Production.INFO: count ==3305 [2025-03-04 10:40:21] Production.ERROR: pbx CDR StartTime 2025-03-04 07:40:07 - End Time 2025-03-04 10:40:07 [2025-03-04 10:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605253', 'tblTempUsageDetail_20' ) start [2025-03-04 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605253', 'tblTempUsageDetail_20' ) end [2025-03-04 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605253', 'tblTempVendorCDR_20' ) start [2025-03-04 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605253', 'tblTempVendorCDR_20' ) end [2025-03-04 10:40:21] Production.INFO: ProcessCDR(1,14605253,1,1,2) [2025-03-04 10:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605253', 'tblTempUsageDetail_20' ) start [2025-03-04 10:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605253', 'tblTempUsageDetail_20' ) end [2025-03-04 10:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:40:27] Production.INFO: ==1263== Releasing lock... [2025-03-04 10:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:40:27] Production.INFO: 53 MB #Memory Used# [2025-03-04 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:41:05 [end_date_ymd] => 2025-03-04 10:41:05 [RateCDR] => 1 ) [2025-03-04 10:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 07:41:05' and `end` < '2025-03-04 10:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 10:41:18] Production.INFO: count ==3417 [2025-03-04 10:41:20] Production.ERROR: pbx CDR StartTime 2025-03-04 07:41:05 - End Time 2025-03-04 10:41:05 [2025-03-04 10:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605258', 'tblTempUsageDetail_20' ) start [2025-03-04 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605258', 'tblTempUsageDetail_20' ) end [2025-03-04 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605258', 'tblTempVendorCDR_20' ) start [2025-03-04 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605258', 'tblTempVendorCDR_20' ) end [2025-03-04 10:41:20] Production.INFO: ProcessCDR(1,14605258,1,1,2) [2025-03-04 10:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605258', 'tblTempUsageDetail_20' ) start [2025-03-04 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605258', 'tblTempUsageDetail_20' ) end [2025-03-04 10:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:41:25] Production.INFO: ==1350== Releasing lock... [2025-03-04 10:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:41:25] Production.INFO: 54 MB #Memory Used# [2025-03-04 10:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:42:06 [end_date_ymd] => 2025-03-04 10:42:06 [RateCDR] => 1 ) [2025-03-04 10: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 07:42:06' and `end` < '2025-03-04 10: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-04 10:42:18] Production.INFO: count ==3449 [2025-03-04 10:42:20] Production.ERROR: pbx CDR StartTime 2025-03-04 07:42:06 - End Time 2025-03-04 10:42:06 [2025-03-04 10:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605263', 'tblTempUsageDetail_20' ) start [2025-03-04 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605263', 'tblTempUsageDetail_20' ) end [2025-03-04 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605263', 'tblTempVendorCDR_20' ) start [2025-03-04 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605263', 'tblTempVendorCDR_20' ) end [2025-03-04 10:42:20] Production.INFO: ProcessCDR(1,14605263,1,1,2) [2025-03-04 10:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605263', 'tblTempUsageDetail_20' ) start [2025-03-04 10:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605263', 'tblTempUsageDetail_20' ) end [2025-03-04 10:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:42:26] Production.INFO: ==1430== Releasing lock... [2025-03-04 10:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:42:26] Production.INFO: 54.75 MB #Memory Used# [2025-03-04 10:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:43:06 [end_date_ymd] => 2025-03-04 10:43:06 [RateCDR] => 1 ) [2025-03-04 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-04 07:43:06' and `end` < '2025-03-04 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-04 10:43:18] Production.INFO: count ==3462 [2025-03-04 10:43:20] Production.ERROR: pbx CDR StartTime 2025-03-04 07:43:06 - End Time 2025-03-04 10:43:06 [2025-03-04 10:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605268', 'tblTempUsageDetail_20' ) start [2025-03-04 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605268', 'tblTempUsageDetail_20' ) end [2025-03-04 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605268', 'tblTempVendorCDR_20' ) start [2025-03-04 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605268', 'tblTempVendorCDR_20' ) end [2025-03-04 10:43:20] Production.INFO: ProcessCDR(1,14605268,1,1,2) [2025-03-04 10:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605268', 'tblTempUsageDetail_20' ) start [2025-03-04 10:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605268', 'tblTempUsageDetail_20' ) end [2025-03-04 10:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:43:26] Production.INFO: ==1542== Releasing lock... [2025-03-04 10:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:43:26] Production.INFO: 53.75 MB #Memory Used# [2025-03-04 10:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:44:06 [end_date_ymd] => 2025-03-04 10:44:06 [RateCDR] => 1 ) [2025-03-04 10: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 07:44:06' and `end` < '2025-03-04 10: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-04 10:44:18] Production.INFO: count ==3465 [2025-03-04 10:44:20] Production.ERROR: pbx CDR StartTime 2025-03-04 07:44:06 - End Time 2025-03-04 10:44:06 [2025-03-04 10:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605273', 'tblTempUsageDetail_20' ) start [2025-03-04 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605273', 'tblTempUsageDetail_20' ) end [2025-03-04 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605273', 'tblTempVendorCDR_20' ) start [2025-03-04 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605273', 'tblTempVendorCDR_20' ) end [2025-03-04 10:44:20] Production.INFO: ProcessCDR(1,14605273,1,1,2) [2025-03-04 10:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605273', 'tblTempUsageDetail_20' ) start [2025-03-04 10:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605273', 'tblTempUsageDetail_20' ) end [2025-03-04 10:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:44:25] Production.INFO: ==1628== Releasing lock... [2025-03-04 10:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:44:25] Production.INFO: 54 MB #Memory Used# [2025-03-04 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:45:05 [end_date_ymd] => 2025-03-04 10:45:05 [RateCDR] => 1 ) [2025-03-04 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-04 07:45:05' and `end` < '2025-03-04 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-04 10:45:18] Production.INFO: count ==3471 [2025-03-04 10:45:20] Production.ERROR: pbx CDR StartTime 2025-03-04 07:45:05 - End Time 2025-03-04 10:45:05 [2025-03-04 10:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605278', 'tblTempUsageDetail_20' ) start [2025-03-04 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605278', 'tblTempUsageDetail_20' ) end [2025-03-04 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605278', 'tblTempVendorCDR_20' ) start [2025-03-04 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605278', 'tblTempVendorCDR_20' ) end [2025-03-04 10:45:20] Production.INFO: ProcessCDR(1,14605278,1,1,2) [2025-03-04 10:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605278', 'tblTempUsageDetail_20' ) start [2025-03-04 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605278', 'tblTempUsageDetail_20' ) end [2025-03-04 10:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:45:25] Production.INFO: ==1711== Releasing lock... [2025-03-04 10:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:45:25] Production.INFO: 54.5 MB #Memory Used# [2025-03-04 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:46:05 [end_date_ymd] => 2025-03-04 10:46:05 [RateCDR] => 1 ) [2025-03-04 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 07:46:05' and `end` < '2025-03-04 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 10:46:18] Production.INFO: count ==3503 [2025-03-04 10:46:20] Production.ERROR: pbx CDR StartTime 2025-03-04 07:46:05 - End Time 2025-03-04 10:46:05 [2025-03-04 10:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605283', 'tblTempUsageDetail_20' ) start [2025-03-04 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605283', 'tblTempUsageDetail_20' ) end [2025-03-04 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605283', 'tblTempVendorCDR_20' ) start [2025-03-04 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605283', 'tblTempVendorCDR_20' ) end [2025-03-04 10:46:20] Production.INFO: ProcessCDR(1,14605283,1,1,2) [2025-03-04 10:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605283', 'tblTempUsageDetail_20' ) start [2025-03-04 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605283', 'tblTempUsageDetail_20' ) end [2025-03-04 10:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:46:25] Production.INFO: ==1791== Releasing lock... [2025-03-04 10:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:46:25] Production.INFO: 54.75 MB #Memory Used# [2025-03-04 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:47:05 [end_date_ymd] => 2025-03-04 10:47:05 [RateCDR] => 1 ) [2025-03-04 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-04 07:47:05' and `end` < '2025-03-04 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-04 10:47:19] Production.INFO: count ==3524 [2025-03-04 10:47:20] Production.ERROR: pbx CDR StartTime 2025-03-04 07:47:05 - End Time 2025-03-04 10:47:05 [2025-03-04 10:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605288', 'tblTempUsageDetail_20' ) start [2025-03-04 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605288', 'tblTempUsageDetail_20' ) end [2025-03-04 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605288', 'tblTempVendorCDR_20' ) start [2025-03-04 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605288', 'tblTempVendorCDR_20' ) end [2025-03-04 10:47:20] Production.INFO: ProcessCDR(1,14605288,1,1,2) [2025-03-04 10:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605288', 'tblTempUsageDetail_20' ) start [2025-03-04 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605288', 'tblTempUsageDetail_20' ) end [2025-03-04 10:47:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:47:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:47:25] Production.INFO: ==1871== Releasing lock... [2025-03-04 10:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:47:25] Production.INFO: 54.5 MB #Memory Used# [2025-03-04 10:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:48:06 [end_date_ymd] => 2025-03-04 10:48:06 [RateCDR] => 1 ) [2025-03-04 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-04 07:48:06' and `end` < '2025-03-04 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-04 10:48:19] Production.INFO: count ==3532 [2025-03-04 10:48:20] Production.ERROR: pbx CDR StartTime 2025-03-04 07:48:06 - End Time 2025-03-04 10:48:06 [2025-03-04 10:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605293', 'tblTempUsageDetail_20' ) start [2025-03-04 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605293', 'tblTempUsageDetail_20' ) end [2025-03-04 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605293', 'tblTempVendorCDR_20' ) start [2025-03-04 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605293', 'tblTempVendorCDR_20' ) end [2025-03-04 10:48:20] Production.INFO: ProcessCDR(1,14605293,1,1,2) [2025-03-04 10:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605293', 'tblTempUsageDetail_20' ) start [2025-03-04 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605293', 'tblTempUsageDetail_20' ) end [2025-03-04 10:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:48:24] Production.INFO: ==1951== Releasing lock... [2025-03-04 10:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:48:24] Production.INFO: 54.5 MB #Memory Used# [2025-03-04 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:49:05 [end_date_ymd] => 2025-03-04 10:49:05 [RateCDR] => 1 ) [2025-03-04 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-04 07:49:05' and `end` < '2025-03-04 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-04 10:49:18] Production.INFO: count ==3545 [2025-03-04 10:49:19] Production.ERROR: pbx CDR StartTime 2025-03-04 07:49:05 - End Time 2025-03-04 10:49:05 [2025-03-04 10:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605298', 'tblTempUsageDetail_20' ) start [2025-03-04 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605298', 'tblTempUsageDetail_20' ) end [2025-03-04 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605298', 'tblTempVendorCDR_20' ) start [2025-03-04 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605298', 'tblTempVendorCDR_20' ) end [2025-03-04 10:49:19] Production.INFO: ProcessCDR(1,14605298,1,1,2) [2025-03-04 10:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605298', 'tblTempUsageDetail_20' ) start [2025-03-04 10:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605298', 'tblTempUsageDetail_20' ) end [2025-03-04 10:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:49:24] Production.INFO: ==2037== Releasing lock... [2025-03-04 10:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:49:24] Production.INFO: 55 MB #Memory Used# [2025-03-04 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:50:06 [end_date_ymd] => 2025-03-04 10:50:06 [RateCDR] => 1 ) [2025-03-04 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-04 07:50:06' and `end` < '2025-03-04 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-04 10:50:19] Production.INFO: count ==3561 [2025-03-04 10:50:21] Production.ERROR: pbx CDR StartTime 2025-03-04 07:50:06 - End Time 2025-03-04 10:50:06 [2025-03-04 10:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605304', 'tblTempUsageDetail_20' ) start [2025-03-04 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605304', 'tblTempUsageDetail_20' ) end [2025-03-04 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605304', 'tblTempVendorCDR_20' ) start [2025-03-04 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605304', 'tblTempVendorCDR_20' ) end [2025-03-04 10:50:21] Production.INFO: ProcessCDR(1,14605304,1,1,2) [2025-03-04 10:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605304', 'tblTempUsageDetail_20' ) start [2025-03-04 10:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605304', 'tblTempUsageDetail_20' ) end [2025-03-04 10:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:50:26] Production.INFO: ==2120== Releasing lock... [2025-03-04 10:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:50:26] Production.INFO: 54.75 MB #Memory Used# [2025-03-04 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:51:05 [end_date_ymd] => 2025-03-04 10:51:05 [RateCDR] => 1 ) [2025-03-04 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-04 07:51:05' and `end` < '2025-03-04 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-04 10:51:18] Production.INFO: count ==3667 [2025-03-04 10:51:19] Production.ERROR: pbx CDR StartTime 2025-03-04 07:51:05 - End Time 2025-03-04 10:51:05 [2025-03-04 10:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605309', 'tblTempUsageDetail_20' ) start [2025-03-04 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605309', 'tblTempUsageDetail_20' ) end [2025-03-04 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605309', 'tblTempVendorCDR_20' ) start [2025-03-04 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605309', 'tblTempVendorCDR_20' ) end [2025-03-04 10:51:20] Production.INFO: ProcessCDR(1,14605309,1,1,2) [2025-03-04 10:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605309', 'tblTempUsageDetail_20' ) start [2025-03-04 10:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605309', 'tblTempUsageDetail_20' ) end [2025-03-04 10:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:51:24] Production.INFO: ==2204== Releasing lock... [2025-03-04 10:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:51:24] Production.INFO: 55.25 MB #Memory Used# [2025-03-04 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:52:05 [end_date_ymd] => 2025-03-04 10:52:05 [RateCDR] => 1 ) [2025-03-04 10: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 07:52:05' and `end` < '2025-03-04 10: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-04 10:52:18] Production.INFO: count ==3701 [2025-03-04 10:52:20] Production.ERROR: pbx CDR StartTime 2025-03-04 07:52:05 - End Time 2025-03-04 10:52:05 [2025-03-04 10:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605314', 'tblTempUsageDetail_20' ) start [2025-03-04 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605314', 'tblTempUsageDetail_20' ) end [2025-03-04 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605314', 'tblTempVendorCDR_20' ) start [2025-03-04 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605314', 'tblTempVendorCDR_20' ) end [2025-03-04 10:52:20] Production.INFO: ProcessCDR(1,14605314,1,1,2) [2025-03-04 10:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605314', 'tblTempUsageDetail_20' ) start [2025-03-04 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605314', 'tblTempUsageDetail_20' ) end [2025-03-04 10:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:52:25] Production.INFO: ==2284== Releasing lock... [2025-03-04 10:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:52:25] Production.INFO: 56 MB #Memory Used# [2025-03-04 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:53:05 [end_date_ymd] => 2025-03-04 10:53:05 [RateCDR] => 1 ) [2025-03-04 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-04 07:53:05' and `end` < '2025-03-04 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-04 10:53:18] Production.INFO: count ==3730 [2025-03-04 10:53:19] Production.ERROR: pbx CDR StartTime 2025-03-04 07:53:05 - End Time 2025-03-04 10:53:05 [2025-03-04 10:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605319', 'tblTempUsageDetail_20' ) start [2025-03-04 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605319', 'tblTempUsageDetail_20' ) end [2025-03-04 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605319', 'tblTempVendorCDR_20' ) start [2025-03-04 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605319', 'tblTempVendorCDR_20' ) end [2025-03-04 10:53:19] Production.INFO: ProcessCDR(1,14605319,1,1,2) [2025-03-04 10:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605319', 'tblTempUsageDetail_20' ) start [2025-03-04 10:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605319', 'tblTempUsageDetail_20' ) end [2025-03-04 10:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:53:24] Production.INFO: ==2402== Releasing lock... [2025-03-04 10:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:53:24] Production.INFO: 55.75 MB #Memory Used# [2025-03-04 10:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:54:06 [end_date_ymd] => 2025-03-04 10:54:06 [RateCDR] => 1 ) [2025-03-04 10: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 07:54:06' and `end` < '2025-03-04 10: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-04 10:54:19] Production.INFO: count ==3739 [2025-03-04 10:54:20] Production.ERROR: pbx CDR StartTime 2025-03-04 07:54:06 - End Time 2025-03-04 10:54:06 [2025-03-04 10:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605324', 'tblTempUsageDetail_20' ) start [2025-03-04 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605324', 'tblTempUsageDetail_20' ) end [2025-03-04 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605324', 'tblTempVendorCDR_20' ) start [2025-03-04 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605324', 'tblTempVendorCDR_20' ) end [2025-03-04 10:54:20] Production.INFO: ProcessCDR(1,14605324,1,1,2) [2025-03-04 10:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605324', 'tblTempUsageDetail_20' ) start [2025-03-04 10:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605324', 'tblTempUsageDetail_20' ) end [2025-03-04 10:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:54:25] Production.INFO: ==2483== Releasing lock... [2025-03-04 10:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:54:25] Production.INFO: 56.75 MB #Memory Used# [2025-03-04 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:55:05 [end_date_ymd] => 2025-03-04 10:55:05 [RateCDR] => 1 ) [2025-03-04 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-04 07:55:05' and `end` < '2025-03-04 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-04 10:55:18] Production.INFO: count ==3749 [2025-03-04 10:55:20] Production.ERROR: pbx CDR StartTime 2025-03-04 07:55:05 - End Time 2025-03-04 10:55:05 [2025-03-04 10:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605329', 'tblTempUsageDetail_20' ) start [2025-03-04 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605329', 'tblTempUsageDetail_20' ) end [2025-03-04 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605329', 'tblTempVendorCDR_20' ) start [2025-03-04 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605329', 'tblTempVendorCDR_20' ) end [2025-03-04 10:55:20] Production.INFO: ProcessCDR(1,14605329,1,1,2) [2025-03-04 10:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605329', 'tblTempUsageDetail_20' ) start [2025-03-04 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605329', 'tblTempUsageDetail_20' ) end [2025-03-04 10:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:55:25] Production.INFO: ==2562== Releasing lock... [2025-03-04 10:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:55:25] Production.INFO: 56.5 MB #Memory Used# [2025-03-04 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:56:05 [end_date_ymd] => 2025-03-04 10:56:05 [RateCDR] => 1 ) [2025-03-04 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-04 07:56:05' and `end` < '2025-03-04 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-04 10:56:18] Production.INFO: count ==3784 [2025-03-04 10:56:20] Production.ERROR: pbx CDR StartTime 2025-03-04 07:56:05 - End Time 2025-03-04 10:56:05 [2025-03-04 10:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605334', 'tblTempUsageDetail_20' ) start [2025-03-04 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605334', 'tblTempUsageDetail_20' ) end [2025-03-04 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605334', 'tblTempVendorCDR_20' ) start [2025-03-04 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605334', 'tblTempVendorCDR_20' ) end [2025-03-04 10:56:20] Production.INFO: ProcessCDR(1,14605334,1,1,2) [2025-03-04 10:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605334', 'tblTempUsageDetail_20' ) start [2025-03-04 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605334', 'tblTempUsageDetail_20' ) end [2025-03-04 10:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:56:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:56:25] Production.INFO: ==2652== Releasing lock... [2025-03-04 10:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:56:25] Production.INFO: 56.5 MB #Memory Used# [2025-03-04 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:57:05 [end_date_ymd] => 2025-03-04 10:57:05 [RateCDR] => 1 ) [2025-03-04 10:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 07:57:05' and `end` < '2025-03-04 10:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 10:57:18] Production.INFO: count ==3788 [2025-03-04 10:57:20] Production.ERROR: pbx CDR StartTime 2025-03-04 07:57:05 - End Time 2025-03-04 10:57:05 [2025-03-04 10:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605339', 'tblTempUsageDetail_20' ) start [2025-03-04 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605339', 'tblTempUsageDetail_20' ) end [2025-03-04 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605339', 'tblTempVendorCDR_20' ) start [2025-03-04 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605339', 'tblTempVendorCDR_20' ) end [2025-03-04 10:57:20] Production.INFO: ProcessCDR(1,14605339,1,1,2) [2025-03-04 10:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605339', 'tblTempUsageDetail_20' ) start [2025-03-04 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605339', 'tblTempUsageDetail_20' ) end [2025-03-04 10:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:57:25] Production.INFO: ==2734== Releasing lock... [2025-03-04 10:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:57:25] Production.INFO: 56.5 MB #Memory Used# [2025-03-04 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:58:05 [end_date_ymd] => 2025-03-04 10:58:05 [RateCDR] => 1 ) [2025-03-04 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-04 07:58:05' and `end` < '2025-03-04 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-04 10:58:18] Production.INFO: count ==3800 [2025-03-04 10:58:19] Production.ERROR: pbx CDR StartTime 2025-03-04 07:58:05 - End Time 2025-03-04 10:58:05 [2025-03-04 10:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605344', 'tblTempUsageDetail_20' ) start [2025-03-04 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605344', 'tblTempUsageDetail_20' ) end [2025-03-04 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605344', 'tblTempVendorCDR_20' ) start [2025-03-04 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605344', 'tblTempVendorCDR_20' ) end [2025-03-04 10:58:20] Production.INFO: ProcessCDR(1,14605344,1,1,2) [2025-03-04 10:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605344', 'tblTempUsageDetail_20' ) start [2025-03-04 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605344', 'tblTempUsageDetail_20' ) end [2025-03-04 10:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:58:25] Production.INFO: ==2821== Releasing lock... [2025-03-04 10:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:58:25] Production.INFO: 56.5 MB #Memory Used# [2025-03-04 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 07:59:05 [end_date_ymd] => 2025-03-04 10:59:05 [RateCDR] => 1 ) [2025-03-04 10: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 07:59:05' and `end` < '2025-03-04 10: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-04 10:59:18] Production.INFO: count ==3832 [2025-03-04 10:59:20] Production.ERROR: pbx CDR StartTime 2025-03-04 07:59:05 - End Time 2025-03-04 10:59:05 [2025-03-04 10:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605349', 'tblTempUsageDetail_20' ) start [2025-03-04 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605349', 'tblTempUsageDetail_20' ) end [2025-03-04 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605349', 'tblTempVendorCDR_20' ) start [2025-03-04 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605349', 'tblTempVendorCDR_20' ) end [2025-03-04 10:59:20] Production.INFO: ProcessCDR(1,14605349,1,1,2) [2025-03-04 10:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 10:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605349', 'tblTempUsageDetail_20' ) start [2025-03-04 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605349', 'tblTempUsageDetail_20' ) end [2025-03-04 10:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 10:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 10:59:25] Production.INFO: ==2918== Releasing lock... [2025-03-04 10:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 10:59:25] Production.INFO: 56.75 MB #Memory Used# [2025-03-04 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:00:06 [end_date_ymd] => 2025-03-04 11:00:06 [RateCDR] => 1 ) [2025-03-04 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-04 08:00:06' and `end` < '2025-03-04 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-04 11:00:19] Production.INFO: count ==3852 [2025-03-04 11:00:21] Production.ERROR: pbx CDR StartTime 2025-03-04 08:00:06 - End Time 2025-03-04 11:00:06 [2025-03-04 11:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605355', 'tblTempUsageDetail_20' ) start [2025-03-04 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605355', 'tblTempUsageDetail_20' ) end [2025-03-04 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605355', 'tblTempVendorCDR_20' ) start [2025-03-04 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605355', 'tblTempVendorCDR_20' ) end [2025-03-04 11:00:21] Production.INFO: ProcessCDR(1,14605355,1,1,2) [2025-03-04 11:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605355', 'tblTempUsageDetail_20' ) start [2025-03-04 11:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605355', 'tblTempUsageDetail_20' ) end [2025-03-04 11:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:00:27] Production.INFO: ==3008== Releasing lock... [2025-03-04 11:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:00:27] Production.INFO: 56.75 MB #Memory Used# [2025-03-04 11:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:01:04 [end_date_ymd] => 2025-03-04 11:01:04 [RateCDR] => 1 ) [2025-03-04 11: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 08:01:04' and `end` < '2025-03-04 11: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-04 11:01:17] Production.INFO: count ==3928 [2025-03-04 11:01:19] Production.ERROR: pbx CDR StartTime 2025-03-04 08:01:04 - End Time 2025-03-04 11:01:04 [2025-03-04 11:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605360', 'tblTempUsageDetail_20' ) start [2025-03-04 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605360', 'tblTempUsageDetail_20' ) end [2025-03-04 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605360', 'tblTempVendorCDR_20' ) start [2025-03-04 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605360', 'tblTempVendorCDR_20' ) end [2025-03-04 11:01:19] Production.INFO: ProcessCDR(1,14605360,1,1,2) [2025-03-04 11:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605360', 'tblTempUsageDetail_20' ) start [2025-03-04 11:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605360', 'tblTempUsageDetail_20' ) end [2025-03-04 11:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:01:24] Production.INFO: ==3108== Releasing lock... [2025-03-04 11:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:01:24] Production.INFO: 57.25 MB #Memory Used# [2025-03-04 11:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:02:06 [end_date_ymd] => 2025-03-04 11:02:06 [RateCDR] => 1 ) [2025-03-04 11: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-04 08:02:06' and `end` < '2025-03-04 11: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-04 11:02:19] Production.INFO: count ==3950 [2025-03-04 11:02:21] Production.ERROR: pbx CDR StartTime 2025-03-04 08:02:06 - End Time 2025-03-04 11:02:06 [2025-03-04 11:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605365', 'tblTempUsageDetail_20' ) start [2025-03-04 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605365', 'tblTempUsageDetail_20' ) end [2025-03-04 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605365', 'tblTempVendorCDR_20' ) start [2025-03-04 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605365', 'tblTempVendorCDR_20' ) end [2025-03-04 11:02:21] Production.INFO: ProcessCDR(1,14605365,1,1,2) [2025-03-04 11:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605365', 'tblTempUsageDetail_20' ) start [2025-03-04 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605365', 'tblTempUsageDetail_20' ) end [2025-03-04 11:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:02:26] Production.INFO: ==3266== Releasing lock... [2025-03-04 11:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:02:26] Production.INFO: 57.5 MB #Memory Used# [2025-03-04 11:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:03:06 [end_date_ymd] => 2025-03-04 11:03:06 [RateCDR] => 1 ) [2025-03-04 11: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-04 08:03:06' and `end` < '2025-03-04 11: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-04 11:03:18] Production.INFO: count ==3938 [2025-03-04 11:03:20] Production.ERROR: pbx CDR StartTime 2025-03-04 08:03:06 - End Time 2025-03-04 11:03:06 [2025-03-04 11:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605370', 'tblTempUsageDetail_20' ) start [2025-03-04 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605370', 'tblTempUsageDetail_20' ) end [2025-03-04 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605370', 'tblTempVendorCDR_20' ) start [2025-03-04 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605370', 'tblTempVendorCDR_20' ) end [2025-03-04 11:03:20] Production.INFO: ProcessCDR(1,14605370,1,1,2) [2025-03-04 11:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605370', 'tblTempUsageDetail_20' ) start [2025-03-04 11:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605370', 'tblTempUsageDetail_20' ) end [2025-03-04 11:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:03:25] Production.INFO: ==3346== Releasing lock... [2025-03-04 11:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:03:25] Production.INFO: 57.5 MB #Memory Used# [2025-03-04 11:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:04:06 [end_date_ymd] => 2025-03-04 11:04:06 [RateCDR] => 1 ) [2025-03-04 11: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 08:04:06' and `end` < '2025-03-04 11: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-04 11:04:19] Production.INFO: count ==3951 [2025-03-04 11:04:21] Production.ERROR: pbx CDR StartTime 2025-03-04 08:04:06 - End Time 2025-03-04 11:04:06 [2025-03-04 11:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605375', 'tblTempUsageDetail_20' ) start [2025-03-04 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605375', 'tblTempUsageDetail_20' ) end [2025-03-04 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605375', 'tblTempVendorCDR_20' ) start [2025-03-04 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605375', 'tblTempVendorCDR_20' ) end [2025-03-04 11:04:21] Production.INFO: ProcessCDR(1,14605375,1,1,2) [2025-03-04 11:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605375', 'tblTempUsageDetail_20' ) start [2025-03-04 11:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605375', 'tblTempUsageDetail_20' ) end [2025-03-04 11:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:04:25] Production.INFO: ==3426== Releasing lock... [2025-03-04 11:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:04:25] Production.INFO: 57.5 MB #Memory Used# [2025-03-04 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:05:05 [end_date_ymd] => 2025-03-04 11:05:05 [RateCDR] => 1 ) [2025-03-04 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-04 08:05:05' and `end` < '2025-03-04 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-04 11:05:19] Production.INFO: count ==3969 [2025-03-04 11:05:21] Production.ERROR: pbx CDR StartTime 2025-03-04 08:05:05 - End Time 2025-03-04 11:05:05 [2025-03-04 11:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605380', 'tblTempUsageDetail_20' ) start [2025-03-04 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605380', 'tblTempUsageDetail_20' ) end [2025-03-04 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605380', 'tblTempVendorCDR_20' ) start [2025-03-04 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605380', 'tblTempVendorCDR_20' ) end [2025-03-04 11:05:21] Production.INFO: ProcessCDR(1,14605380,1,1,2) [2025-03-04 11:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605380', 'tblTempUsageDetail_20' ) start [2025-03-04 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605380', 'tblTempUsageDetail_20' ) end [2025-03-04 11:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:05:26] Production.INFO: ==3582== Releasing lock... [2025-03-04 11:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:05:26] Production.INFO: 57.75 MB #Memory Used# [2025-03-04 11:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:06:06 [end_date_ymd] => 2025-03-04 11:06:06 [RateCDR] => 1 ) [2025-03-04 11: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 08:06:06' and `end` < '2025-03-04 11: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-04 11:06:20] Production.INFO: count ==3983 [2025-03-04 11:06:21] Production.ERROR: pbx CDR StartTime 2025-03-04 08:06:06 - End Time 2025-03-04 11:06:06 [2025-03-04 11:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605385', 'tblTempUsageDetail_20' ) start [2025-03-04 11:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605385', 'tblTempUsageDetail_20' ) end [2025-03-04 11:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605385', 'tblTempVendorCDR_20' ) start [2025-03-04 11:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605385', 'tblTempVendorCDR_20' ) end [2025-03-04 11:06:22] Production.INFO: ProcessCDR(1,14605385,1,1,2) [2025-03-04 11:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605385', 'tblTempUsageDetail_20' ) start [2025-03-04 11:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605385', 'tblTempUsageDetail_20' ) end [2025-03-04 11:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:06:27] Production.INFO: ==3665== Releasing lock... [2025-03-04 11:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:06:27] Production.INFO: 57.75 MB #Memory Used# [2025-03-04 11:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:07:06 [end_date_ymd] => 2025-03-04 11:07:06 [RateCDR] => 1 ) [2025-03-04 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-04 08:07:06' and `end` < '2025-03-04 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-04 11:07:20] Production.INFO: count ==3999 [2025-03-04 11:07:22] Production.ERROR: pbx CDR StartTime 2025-03-04 08:07:06 - End Time 2025-03-04 11:07:06 [2025-03-04 11:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605390', 'tblTempUsageDetail_20' ) start [2025-03-04 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605390', 'tblTempUsageDetail_20' ) end [2025-03-04 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605390', 'tblTempVendorCDR_20' ) start [2025-03-04 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605390', 'tblTempVendorCDR_20' ) end [2025-03-04 11:07:22] Production.INFO: ProcessCDR(1,14605390,1,1,2) [2025-03-04 11:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605390', 'tblTempUsageDetail_20' ) start [2025-03-04 11:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605390', 'tblTempUsageDetail_20' ) end [2025-03-04 11:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:07:27] Production.INFO: ==3749== Releasing lock... [2025-03-04 11:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:07:27] Production.INFO: 57.75 MB #Memory Used# [2025-03-04 11:08:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:08:07 [end_date_ymd] => 2025-03-04 11:08:07 [RateCDR] => 1 ) [2025-03-04 11:08: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 08:08:07' and `end` < '2025-03-04 11:08: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-04 11:08:20] Production.INFO: count ==4043 [2025-03-04 11:08:22] Production.ERROR: pbx CDR StartTime 2025-03-04 08:08:07 - End Time 2025-03-04 11:08:07 [2025-03-04 11:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605395', 'tblTempUsageDetail_20' ) start [2025-03-04 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605395', 'tblTempUsageDetail_20' ) end [2025-03-04 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605395', 'tblTempVendorCDR_20' ) start [2025-03-04 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605395', 'tblTempVendorCDR_20' ) end [2025-03-04 11:08:22] Production.INFO: ProcessCDR(1,14605395,1,1,2) [2025-03-04 11:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605395', 'tblTempUsageDetail_20' ) start [2025-03-04 11:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605395', 'tblTempUsageDetail_20' ) end [2025-03-04 11:08:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:08:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:08:28] Production.INFO: ==3909== Releasing lock... [2025-03-04 11:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:08:28] Production.INFO: 58.25 MB #Memory Used# [2025-03-04 11:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:09:06 [end_date_ymd] => 2025-03-04 11:09:06 [RateCDR] => 1 ) [2025-03-04 11: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 08:09:06' and `end` < '2025-03-04 11: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-04 11:09:19] Production.INFO: count ==4047 [2025-03-04 11:09:20] Production.ERROR: pbx CDR StartTime 2025-03-04 08:09:06 - End Time 2025-03-04 11:09:06 [2025-03-04 11:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605400', 'tblTempUsageDetail_20' ) start [2025-03-04 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605400', 'tblTempUsageDetail_20' ) end [2025-03-04 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605400', 'tblTempVendorCDR_20' ) start [2025-03-04 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605400', 'tblTempVendorCDR_20' ) end [2025-03-04 11:09:21] Production.INFO: ProcessCDR(1,14605400,1,1,2) [2025-03-04 11:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605400', 'tblTempUsageDetail_20' ) start [2025-03-04 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605400', 'tblTempUsageDetail_20' ) end [2025-03-04 11:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:09:26] Production.INFO: ==4030== Releasing lock... [2025-03-04 11:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:09:26] Production.INFO: 58.25 MB #Memory Used# [2025-03-04 11:10:08] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:10:08 [end_date_ymd] => 2025-03-04 11:10:08 [RateCDR] => 1 ) [2025-03-04 11:10:08] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and 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 08:10:08' and `end` < '2025-03-04 11:10:08' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 11:10:20] Production.INFO: count ==4087 [2025-03-04 11:10:22] Production.ERROR: pbx CDR StartTime 2025-03-04 08:10:08 - End Time 2025-03-04 11:10:08 [2025-03-04 11:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605406', 'tblTempUsageDetail_20' ) start [2025-03-04 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605406', 'tblTempUsageDetail_20' ) end [2025-03-04 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605406', 'tblTempVendorCDR_20' ) start [2025-03-04 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605406', 'tblTempVendorCDR_20' ) end [2025-03-04 11:10:22] Production.INFO: ProcessCDR(1,14605406,1,1,2) [2025-03-04 11:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605406', 'tblTempUsageDetail_20' ) start [2025-03-04 11:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605406', 'tblTempUsageDetail_20' ) end [2025-03-04 11:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:10:28] Production.INFO: ==4116== Releasing lock... [2025-03-04 11:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:10:28] Production.INFO: 58.5 MB #Memory Used# [2025-03-04 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:11:05 [end_date_ymd] => 2025-03-04 11:11:05 [RateCDR] => 1 ) [2025-03-04 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-04 08:11:05' and `end` < '2025-03-04 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-04 11:11:18] Production.INFO: count ==4121 [2025-03-04 11:11:20] Production.ERROR: pbx CDR StartTime 2025-03-04 08:11:05 - End Time 2025-03-04 11:11:05 [2025-03-04 11:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605411', 'tblTempUsageDetail_20' ) start [2025-03-04 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605411', 'tblTempUsageDetail_20' ) end [2025-03-04 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605411', 'tblTempVendorCDR_20' ) start [2025-03-04 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605411', 'tblTempVendorCDR_20' ) end [2025-03-04 11:11:20] Production.INFO: ProcessCDR(1,14605411,1,1,2) [2025-03-04 11:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605411', 'tblTempUsageDetail_20' ) start [2025-03-04 11:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605411', 'tblTempUsageDetail_20' ) end [2025-03-04 11:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:11:25] Production.INFO: ==4201== Releasing lock... [2025-03-04 11:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:11:25] Production.INFO: 58.75 MB #Memory Used# [2025-03-04 11:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:12:06 [end_date_ymd] => 2025-03-04 11:12:06 [RateCDR] => 1 ) [2025-03-04 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-04 08:12:06' and `end` < '2025-03-04 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-04 11:12:19] Production.INFO: count ==4134 [2025-03-04 11:12:21] Production.ERROR: pbx CDR StartTime 2025-03-04 08:12:06 - End Time 2025-03-04 11:12:06 [2025-03-04 11:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605416', 'tblTempUsageDetail_20' ) start [2025-03-04 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605416', 'tblTempUsageDetail_20' ) end [2025-03-04 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605416', 'tblTempVendorCDR_20' ) start [2025-03-04 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605416', 'tblTempVendorCDR_20' ) end [2025-03-04 11:12:21] Production.INFO: ProcessCDR(1,14605416,1,1,2) [2025-03-04 11:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605416', 'tblTempUsageDetail_20' ) start [2025-03-04 11:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605416', 'tblTempUsageDetail_20' ) end [2025-03-04 11:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:12:27] Production.INFO: ==4366== Releasing lock... [2025-03-04 11:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:12:27] Production.INFO: 59 MB #Memory Used# [2025-03-04 11:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:13:06 [end_date_ymd] => 2025-03-04 11:13:06 [RateCDR] => 1 ) [2025-03-04 11: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 08:13:06' and `end` < '2025-03-04 11: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-04 11:13:19] Production.INFO: count ==4142 [2025-03-04 11:13:21] Production.ERROR: pbx CDR StartTime 2025-03-04 08:13:06 - End Time 2025-03-04 11:13:06 [2025-03-04 11:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605421', 'tblTempUsageDetail_20' ) start [2025-03-04 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605421', 'tblTempUsageDetail_20' ) end [2025-03-04 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605421', 'tblTempVendorCDR_20' ) start [2025-03-04 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605421', 'tblTempVendorCDR_20' ) end [2025-03-04 11:13:21] Production.INFO: ProcessCDR(1,14605421,1,1,2) [2025-03-04 11:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605421', 'tblTempUsageDetail_20' ) start [2025-03-04 11:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605421', 'tblTempUsageDetail_20' ) end [2025-03-04 11:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:13:27] Production.INFO: ==4452== Releasing lock... [2025-03-04 11:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:13:27] Production.INFO: 59 MB #Memory Used# [2025-03-04 11:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:14:04 [end_date_ymd] => 2025-03-04 11:14:04 [RateCDR] => 1 ) [2025-03-04 11:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 08:14:04' and `end` < '2025-03-04 11:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 11:14:18] Production.INFO: count ==4148 [2025-03-04 11:14:19] Production.ERROR: pbx CDR StartTime 2025-03-04 08:14:04 - End Time 2025-03-04 11:14:04 [2025-03-04 11:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605426', 'tblTempUsageDetail_20' ) start [2025-03-04 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605426', 'tblTempUsageDetail_20' ) end [2025-03-04 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605426', 'tblTempVendorCDR_20' ) start [2025-03-04 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605426', 'tblTempVendorCDR_20' ) end [2025-03-04 11:14:20] Production.INFO: ProcessCDR(1,14605426,1,1,2) [2025-03-04 11:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605426', 'tblTempUsageDetail_20' ) start [2025-03-04 11:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605426', 'tblTempUsageDetail_20' ) end [2025-03-04 11:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:14:24] Production.INFO: ==4532== Releasing lock... [2025-03-04 11:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:14:24] Production.INFO: 59 MB #Memory Used# [2025-03-04 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:15:05 [end_date_ymd] => 2025-03-04 11:15:05 [RateCDR] => 1 ) [2025-03-04 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-04 08:15:05' and `end` < '2025-03-04 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-04 11:15:18] Production.INFO: count ==4179 [2025-03-04 11:15:20] Production.ERROR: pbx CDR StartTime 2025-03-04 08:15:05 - End Time 2025-03-04 11:15:05 [2025-03-04 11:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605431', 'tblTempUsageDetail_20' ) start [2025-03-04 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605431', 'tblTempUsageDetail_20' ) end [2025-03-04 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605431', 'tblTempVendorCDR_20' ) start [2025-03-04 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605431', 'tblTempVendorCDR_20' ) end [2025-03-04 11:15:20] Production.INFO: ProcessCDR(1,14605431,1,1,2) [2025-03-04 11:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605431', 'tblTempUsageDetail_20' ) start [2025-03-04 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605431', 'tblTempUsageDetail_20' ) end [2025-03-04 11:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:15:25] Production.INFO: ==4698== Releasing lock... [2025-03-04 11:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:15:25] Production.INFO: 59.25 MB #Memory Used# [2025-03-04 11:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:16:06 [end_date_ymd] => 2025-03-04 11:16:06 [RateCDR] => 1 ) [2025-03-04 11: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 08:16:06' and `end` < '2025-03-04 11: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-04 11:16:19] Production.INFO: count ==4200 [2025-03-04 11:16:20] Production.ERROR: pbx CDR StartTime 2025-03-04 08:16:06 - End Time 2025-03-04 11:16:06 [2025-03-04 11:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605436', 'tblTempUsageDetail_20' ) start [2025-03-04 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605436', 'tblTempUsageDetail_20' ) end [2025-03-04 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605436', 'tblTempVendorCDR_20' ) start [2025-03-04 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605436', 'tblTempVendorCDR_20' ) end [2025-03-04 11:16:20] Production.INFO: ProcessCDR(1,14605436,1,1,2) [2025-03-04 11:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605436', 'tblTempUsageDetail_20' ) start [2025-03-04 11:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605436', 'tblTempUsageDetail_20' ) end [2025-03-04 11:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:16:25] Production.INFO: ==4780== Releasing lock... [2025-03-04 11:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:16:25] Production.INFO: 59.5 MB #Memory Used# [2025-03-04 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:17:05 [end_date_ymd] => 2025-03-04 11:17:05 [RateCDR] => 1 ) [2025-03-04 11:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 08:17:05' and `end` < '2025-03-04 11:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 11:17:18] Production.INFO: count ==4220 [2025-03-04 11:17:20] Production.ERROR: pbx CDR StartTime 2025-03-04 08:17:05 - End Time 2025-03-04 11:17:05 [2025-03-04 11:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605441', 'tblTempUsageDetail_20' ) start [2025-03-04 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605441', 'tblTempUsageDetail_20' ) end [2025-03-04 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605441', 'tblTempVendorCDR_20' ) start [2025-03-04 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605441', 'tblTempVendorCDR_20' ) end [2025-03-04 11:17:20] Production.INFO: ProcessCDR(1,14605441,1,1,2) [2025-03-04 11:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605441', 'tblTempUsageDetail_20' ) start [2025-03-04 11:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605441', 'tblTempUsageDetail_20' ) end [2025-03-04 11:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:17:25] Production.INFO: ==4858== Releasing lock... [2025-03-04 11:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:17:25] Production.INFO: 59.5 MB #Memory Used# [2025-03-04 11:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:18:06 [end_date_ymd] => 2025-03-04 11:18:06 [RateCDR] => 1 ) [2025-03-04 11: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 08:18:06' and `end` < '2025-03-04 11: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-04 11:18:20] Production.INFO: count ==4244 [2025-03-04 11:18:21] Production.ERROR: pbx CDR StartTime 2025-03-04 08:18:06 - End Time 2025-03-04 11:18:06 [2025-03-04 11:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605446', 'tblTempUsageDetail_20' ) start [2025-03-04 11:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605446', 'tblTempUsageDetail_20' ) end [2025-03-04 11:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605446', 'tblTempVendorCDR_20' ) start [2025-03-04 11:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605446', 'tblTempVendorCDR_20' ) end [2025-03-04 11:18:22] Production.INFO: ProcessCDR(1,14605446,1,1,2) [2025-03-04 11:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605446', 'tblTempUsageDetail_20' ) start [2025-03-04 11:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605446', 'tblTempUsageDetail_20' ) end [2025-03-04 11:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:18:27] Production.INFO: ==4938== Releasing lock... [2025-03-04 11:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:18:27] Production.INFO: 59.75 MB #Memory Used# [2025-03-04 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:19:05 [end_date_ymd] => 2025-03-04 11:19:05 [RateCDR] => 1 ) [2025-03-04 11: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 08:19:05' and `end` < '2025-03-04 11: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-04 11:19:18] Production.INFO: count ==4251 [2025-03-04 11:19:20] Production.ERROR: pbx CDR StartTime 2025-03-04 08:19:05 - End Time 2025-03-04 11:19:05 [2025-03-04 11:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605451', 'tblTempUsageDetail_20' ) start [2025-03-04 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605451', 'tblTempUsageDetail_20' ) end [2025-03-04 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605451', 'tblTempVendorCDR_20' ) start [2025-03-04 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605451', 'tblTempVendorCDR_20' ) end [2025-03-04 11:19:21] Production.INFO: ProcessCDR(1,14605451,1,1,2) [2025-03-04 11:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605451', 'tblTempUsageDetail_20' ) start [2025-03-04 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605451', 'tblTempUsageDetail_20' ) end [2025-03-04 11:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:19:25] Production.INFO: ==5015== Releasing lock... [2025-03-04 11:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:19:25] Production.INFO: 59.75 MB #Memory Used# [2025-03-04 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:20:06 [end_date_ymd] => 2025-03-04 11:20:06 [RateCDR] => 1 ) [2025-03-04 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-04 08:20:06' and `end` < '2025-03-04 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-04 11:20:20] Production.INFO: count ==4315 [2025-03-04 11:20:22] Production.ERROR: pbx CDR StartTime 2025-03-04 08:20:06 - End Time 2025-03-04 11:20:06 [2025-03-04 11:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605457', 'tblTempUsageDetail_20' ) start [2025-03-04 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605457', 'tblTempUsageDetail_20' ) end [2025-03-04 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605457', 'tblTempVendorCDR_20' ) start [2025-03-04 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605457', 'tblTempVendorCDR_20' ) end [2025-03-04 11:20:22] Production.INFO: ProcessCDR(1,14605457,1,1,2) [2025-03-04 11:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605457', 'tblTempUsageDetail_20' ) start [2025-03-04 11:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605457', 'tblTempUsageDetail_20' ) end [2025-03-04 11:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:20:27] Production.INFO: ==5096== Releasing lock... [2025-03-04 11:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:20:27] Production.INFO: 60.25 MB #Memory Used# [2025-03-04 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:21:05 [end_date_ymd] => 2025-03-04 11:21:05 [RateCDR] => 1 ) [2025-03-04 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-04 08:21:05' and `end` < '2025-03-04 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-04 11:21:19] Production.INFO: count ==4426 [2025-03-04 11:21:21] Production.ERROR: pbx CDR StartTime 2025-03-04 08:21:05 - End Time 2025-03-04 11:21:05 [2025-03-04 11:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605462', 'tblTempUsageDetail_20' ) start [2025-03-04 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605462', 'tblTempUsageDetail_20' ) end [2025-03-04 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605462', 'tblTempVendorCDR_20' ) start [2025-03-04 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605462', 'tblTempVendorCDR_20' ) end [2025-03-04 11:21:21] Production.INFO: ProcessCDR(1,14605462,1,1,2) [2025-03-04 11:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605462', 'tblTempUsageDetail_20' ) start [2025-03-04 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605462', 'tblTempUsageDetail_20' ) end [2025-03-04 11:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:21:25] Production.INFO: ==5192== Releasing lock... [2025-03-04 11:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:21:25] Production.INFO: 61 MB #Memory Used# [2025-03-04 11:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:22:06 [end_date_ymd] => 2025-03-04 11:22:06 [RateCDR] => 1 ) [2025-03-04 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-04 08:22:06' and `end` < '2025-03-04 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-04 11:22:19] Production.INFO: count ==4535 [2025-03-04 11:22:21] Production.ERROR: pbx CDR StartTime 2025-03-04 08:22:06 - End Time 2025-03-04 11:22:06 [2025-03-04 11:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605467', 'tblTempUsageDetail_20' ) start [2025-03-04 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605467', 'tblTempUsageDetail_20' ) end [2025-03-04 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605467', 'tblTempVendorCDR_20' ) start [2025-03-04 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605467', 'tblTempVendorCDR_20' ) end [2025-03-04 11:22:21] Production.INFO: ProcessCDR(1,14605467,1,1,2) [2025-03-04 11:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605467', 'tblTempUsageDetail_20' ) start [2025-03-04 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605467', 'tblTempUsageDetail_20' ) end [2025-03-04 11:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:22:26] Production.INFO: ==5291== Releasing lock... [2025-03-04 11:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:22:26] Production.INFO: 62 MB #Memory Used# [2025-03-04 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:23:05 [end_date_ymd] => 2025-03-04 11:23:05 [RateCDR] => 1 ) [2025-03-04 11:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 08:23:05' and `end` < '2025-03-04 11:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 11:23:18] Production.INFO: count ==4568 [2025-03-04 11:23:20] Production.ERROR: pbx CDR StartTime 2025-03-04 08:23:05 - End Time 2025-03-04 11:23:05 [2025-03-04 11:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605472', 'tblTempUsageDetail_20' ) start [2025-03-04 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605472', 'tblTempUsageDetail_20' ) end [2025-03-04 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605472', 'tblTempVendorCDR_20' ) start [2025-03-04 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605472', 'tblTempVendorCDR_20' ) end [2025-03-04 11:23:20] Production.INFO: ProcessCDR(1,14605472,1,1,2) [2025-03-04 11:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605472', 'tblTempUsageDetail_20' ) start [2025-03-04 11:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605472', 'tblTempUsageDetail_20' ) end [2025-03-04 11:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:23:25] Production.INFO: ==5385== Releasing lock... [2025-03-04 11:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:23:25] Production.INFO: 62.25 MB #Memory Used# [2025-03-04 11:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:24:06 [end_date_ymd] => 2025-03-04 11:24:06 [RateCDR] => 1 ) [2025-03-04 11: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 08:24:06' and `end` < '2025-03-04 11: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-04 11:24:20] Production.INFO: count ==4634 [2025-03-04 11:24:21] Production.ERROR: pbx CDR StartTime 2025-03-04 08:24:06 - End Time 2025-03-04 11:24:06 [2025-03-04 11:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605477', 'tblTempUsageDetail_20' ) start [2025-03-04 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605477', 'tblTempUsageDetail_20' ) end [2025-03-04 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605477', 'tblTempVendorCDR_20' ) start [2025-03-04 11:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605477', 'tblTempVendorCDR_20' ) end [2025-03-04 11:24:22] Production.INFO: ProcessCDR(1,14605477,1,1,2) [2025-03-04 11:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605477', 'tblTempUsageDetail_20' ) start [2025-03-04 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605477', 'tblTempUsageDetail_20' ) end [2025-03-04 11:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:24:27] Production.INFO: ==5530== Releasing lock... [2025-03-04 11:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:24:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-04 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:25:05 [end_date_ymd] => 2025-03-04 11:25:05 [RateCDR] => 1 ) [2025-03-04 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 08:25:05' and `end` < '2025-03-04 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 11:25:18] Production.INFO: count ==4645 [2025-03-04 11:25:20] Production.ERROR: pbx CDR StartTime 2025-03-04 08:25:05 - End Time 2025-03-04 11:25:05 [2025-03-04 11:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605482', 'tblTempUsageDetail_20' ) start [2025-03-04 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605482', 'tblTempUsageDetail_20' ) end [2025-03-04 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605482', 'tblTempVendorCDR_20' ) start [2025-03-04 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605482', 'tblTempVendorCDR_20' ) end [2025-03-04 11:25:20] Production.INFO: ProcessCDR(1,14605482,1,1,2) [2025-03-04 11:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605482', 'tblTempUsageDetail_20' ) start [2025-03-04 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605482', 'tblTempUsageDetail_20' ) end [2025-03-04 11:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:25:25] Production.INFO: ==5627== Releasing lock... [2025-03-04 11:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:25:25] Production.INFO: 62.75 MB #Memory Used# [2025-03-04 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:26:05 [end_date_ymd] => 2025-03-04 11:26:05 [RateCDR] => 1 ) [2025-03-04 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-04 08:26:05' and `end` < '2025-03-04 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-04 11:26:19] Production.INFO: count ==4677 [2025-03-04 11:26:21] Production.ERROR: pbx CDR StartTime 2025-03-04 08:26:05 - End Time 2025-03-04 11:26:05 [2025-03-04 11:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605487', 'tblTempUsageDetail_20' ) start [2025-03-04 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605487', 'tblTempUsageDetail_20' ) end [2025-03-04 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605487', 'tblTempVendorCDR_20' ) start [2025-03-04 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605487', 'tblTempVendorCDR_20' ) end [2025-03-04 11:26:21] Production.INFO: ProcessCDR(1,14605487,1,1,2) [2025-03-04 11:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605487', 'tblTempUsageDetail_20' ) start [2025-03-04 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605487', 'tblTempUsageDetail_20' ) end [2025-03-04 11:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:26:26] Production.INFO: ==5728== Releasing lock... [2025-03-04 11:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:26:26] Production.INFO: 63 MB #Memory Used# [2025-03-04 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:27:05 [end_date_ymd] => 2025-03-04 11:27:05 [RateCDR] => 1 ) [2025-03-04 11: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 08:27:05' and `end` < '2025-03-04 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-04 11:27:18] Production.INFO: count ==4713 [2025-03-04 11:27:20] Production.ERROR: pbx CDR StartTime 2025-03-04 08:27:05 - End Time 2025-03-04 11:27:05 [2025-03-04 11:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605492', 'tblTempUsageDetail_20' ) start [2025-03-04 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605492', 'tblTempUsageDetail_20' ) end [2025-03-04 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605492', 'tblTempVendorCDR_20' ) start [2025-03-04 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605492', 'tblTempVendorCDR_20' ) end [2025-03-04 11:27:20] Production.INFO: ProcessCDR(1,14605492,1,1,2) [2025-03-04 11:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605492', 'tblTempUsageDetail_20' ) start [2025-03-04 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605492', 'tblTempUsageDetail_20' ) end [2025-03-04 11:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:27:25] Production.INFO: ==5823== Releasing lock... [2025-03-04 11:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:27:25] Production.INFO: 63.25 MB #Memory Used# [2025-03-04 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:28:05 [end_date_ymd] => 2025-03-04 11:28:05 [RateCDR] => 1 ) [2025-03-04 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-04 08:28:05' and `end` < '2025-03-04 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-04 11:28:18] Production.INFO: count ==4723 [2025-03-04 11:28:20] Production.ERROR: pbx CDR StartTime 2025-03-04 08:28:05 - End Time 2025-03-04 11:28:05 [2025-03-04 11:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605497', 'tblTempUsageDetail_20' ) start [2025-03-04 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605497', 'tblTempUsageDetail_20' ) end [2025-03-04 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605497', 'tblTempVendorCDR_20' ) start [2025-03-04 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605497', 'tblTempVendorCDR_20' ) end [2025-03-04 11:28:21] Production.INFO: ProcessCDR(1,14605497,1,1,2) [2025-03-04 11:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605497', 'tblTempUsageDetail_20' ) start [2025-03-04 11:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605497', 'tblTempUsageDetail_20' ) end [2025-03-04 11:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:28:26] Production.INFO: ==5926== Releasing lock... [2025-03-04 11:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:28:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-04 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:29:05 [end_date_ymd] => 2025-03-04 11:29:05 [RateCDR] => 1 ) [2025-03-04 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-04 08:29:05' and `end` < '2025-03-04 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-04 11:29:19] Production.INFO: count ==4745 [2025-03-04 11:29:21] Production.ERROR: pbx CDR StartTime 2025-03-04 08:29:05 - End Time 2025-03-04 11:29:05 [2025-03-04 11:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605502', 'tblTempUsageDetail_20' ) start [2025-03-04 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605502', 'tblTempUsageDetail_20' ) end [2025-03-04 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605502', 'tblTempVendorCDR_20' ) start [2025-03-04 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605502', 'tblTempVendorCDR_20' ) end [2025-03-04 11:29:21] Production.INFO: ProcessCDR(1,14605502,1,1,2) [2025-03-04 11:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605502', 'tblTempUsageDetail_20' ) start [2025-03-04 11:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605502', 'tblTempUsageDetail_20' ) end [2025-03-04 11:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:29:26] Production.INFO: ==6024== Releasing lock... [2025-03-04 11:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:29:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-04 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:30:06 [end_date_ymd] => 2025-03-04 11:30:06 [RateCDR] => 1 ) [2025-03-04 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-04 08:30:06' and `end` < '2025-03-04 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-04 11:30:19] Production.INFO: count ==4766 [2025-03-04 11:30:22] Production.ERROR: pbx CDR StartTime 2025-03-04 08:30:06 - End Time 2025-03-04 11:30:06 [2025-03-04 11:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605508', 'tblTempUsageDetail_20' ) start [2025-03-04 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605508', 'tblTempUsageDetail_20' ) end [2025-03-04 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605508', 'tblTempVendorCDR_20' ) start [2025-03-04 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605508', 'tblTempVendorCDR_20' ) end [2025-03-04 11:30:22] Production.INFO: ProcessCDR(1,14605508,1,1,2) [2025-03-04 11:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605508', 'tblTempUsageDetail_20' ) start [2025-03-04 11:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605508', 'tblTempUsageDetail_20' ) end [2025-03-04 11:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:30:27] Production.INFO: ==6127== Releasing lock... [2025-03-04 11:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:30:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-04 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:31:05 [end_date_ymd] => 2025-03-04 11:31:05 [RateCDR] => 1 ) [2025-03-04 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-04 08:31:05' and `end` < '2025-03-04 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-04 11:31:18] Production.INFO: count ==4877 [2025-03-04 11:31:21] Production.ERROR: pbx CDR StartTime 2025-03-04 08:31:05 - End Time 2025-03-04 11:31:05 [2025-03-04 11:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605513', 'tblTempUsageDetail_20' ) start [2025-03-04 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605513', 'tblTempUsageDetail_20' ) end [2025-03-04 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605513', 'tblTempVendorCDR_20' ) start [2025-03-04 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605513', 'tblTempVendorCDR_20' ) end [2025-03-04 11:31:21] Production.INFO: ProcessCDR(1,14605513,1,1,2) [2025-03-04 11:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605513', 'tblTempUsageDetail_20' ) start [2025-03-04 11:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605513', 'tblTempUsageDetail_20' ) end [2025-03-04 11:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:31:27] Production.INFO: ==6226== Releasing lock... [2025-03-04 11:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:31:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-04 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:32:05 [end_date_ymd] => 2025-03-04 11:32:05 [RateCDR] => 1 ) [2025-03-04 11:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 08:32:05' and `end` < '2025-03-04 11:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 11:32:19] Production.INFO: count ==4884 [2025-03-04 11:32:21] Production.ERROR: pbx CDR StartTime 2025-03-04 08:32:05 - End Time 2025-03-04 11:32:05 [2025-03-04 11:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605518', 'tblTempUsageDetail_20' ) start [2025-03-04 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605518', 'tblTempUsageDetail_20' ) end [2025-03-04 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605518', 'tblTempVendorCDR_20' ) start [2025-03-04 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605518', 'tblTempVendorCDR_20' ) end [2025-03-04 11:32:21] Production.INFO: ProcessCDR(1,14605518,1,1,2) [2025-03-04 11:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605518', 'tblTempUsageDetail_20' ) start [2025-03-04 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605518', 'tblTempUsageDetail_20' ) end [2025-03-04 11:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:32:26] Production.INFO: ==6324== Releasing lock... [2025-03-04 11:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:32:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-04 11:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:33:06 [end_date_ymd] => 2025-03-04 11:33:06 [RateCDR] => 1 ) [2025-03-04 11: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 08:33:06' and `end` < '2025-03-04 11: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-04 11:33:19] Production.INFO: count ==4883 [2025-03-04 11:33:22] Production.ERROR: pbx CDR StartTime 2025-03-04 08:33:06 - End Time 2025-03-04 11:33:06 [2025-03-04 11:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605523', 'tblTempUsageDetail_20' ) start [2025-03-04 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605523', 'tblTempUsageDetail_20' ) end [2025-03-04 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605523', 'tblTempVendorCDR_20' ) start [2025-03-04 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605523', 'tblTempVendorCDR_20' ) end [2025-03-04 11:33:22] Production.INFO: ProcessCDR(1,14605523,1,1,2) [2025-03-04 11:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605523', 'tblTempUsageDetail_20' ) start [2025-03-04 11:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605523', 'tblTempUsageDetail_20' ) end [2025-03-04 11:33:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:33:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:33:28] Production.INFO: ==6421== Releasing lock... [2025-03-04 11:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:33:28] Production.INFO: 64.5 MB #Memory Used# [2025-03-04 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:34:05 [end_date_ymd] => 2025-03-04 11:34:05 [RateCDR] => 1 ) [2025-03-04 11: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 08:34:05' and `end` < '2025-03-04 11: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-04 11:34:19] Production.INFO: count ==4894 [2025-03-04 11:34:21] Production.ERROR: pbx CDR StartTime 2025-03-04 08:34:05 - End Time 2025-03-04 11:34:05 [2025-03-04 11:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605528', 'tblTempUsageDetail_20' ) start [2025-03-04 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605528', 'tblTempUsageDetail_20' ) end [2025-03-04 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605528', 'tblTempVendorCDR_20' ) start [2025-03-04 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605528', 'tblTempVendorCDR_20' ) end [2025-03-04 11:34:21] Production.INFO: ProcessCDR(1,14605528,1,1,2) [2025-03-04 11:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605528', 'tblTempUsageDetail_20' ) start [2025-03-04 11:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605528', 'tblTempUsageDetail_20' ) end [2025-03-04 11:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:34:27] Production.INFO: ==6521== Releasing lock... [2025-03-04 11:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:34:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-04 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:35:05 [end_date_ymd] => 2025-03-04 11:35:05 [RateCDR] => 1 ) [2025-03-04 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-04 08:35:05' and `end` < '2025-03-04 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-04 11:35:18] Production.INFO: count ==4927 [2025-03-04 11:35:21] Production.ERROR: pbx CDR StartTime 2025-03-04 08:35:05 - End Time 2025-03-04 11:35:05 [2025-03-04 11:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605533', 'tblTempUsageDetail_20' ) start [2025-03-04 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605533', 'tblTempUsageDetail_20' ) end [2025-03-04 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605533', 'tblTempVendorCDR_20' ) start [2025-03-04 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605533', 'tblTempVendorCDR_20' ) end [2025-03-04 11:35:21] Production.INFO: ProcessCDR(1,14605533,1,1,2) [2025-03-04 11:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605533', 'tblTempUsageDetail_20' ) start [2025-03-04 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605533', 'tblTempUsageDetail_20' ) end [2025-03-04 11:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:35:26] Production.INFO: ==6621== Releasing lock... [2025-03-04 11:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:35:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-04 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:36:05 [end_date_ymd] => 2025-03-04 11:36:05 [RateCDR] => 1 ) [2025-03-04 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 08:36:05' and `end` < '2025-03-04 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 11:36:18] Production.INFO: count ==4939 [2025-03-04 11:36:21] Production.ERROR: pbx CDR StartTime 2025-03-04 08:36:05 - End Time 2025-03-04 11:36:05 [2025-03-04 11:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605538', 'tblTempUsageDetail_20' ) start [2025-03-04 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605538', 'tblTempUsageDetail_20' ) end [2025-03-04 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605538', 'tblTempVendorCDR_20' ) start [2025-03-04 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605538', 'tblTempVendorCDR_20' ) end [2025-03-04 11:36:21] Production.INFO: ProcessCDR(1,14605538,1,1,2) [2025-03-04 11:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605538', 'tblTempUsageDetail_20' ) start [2025-03-04 11:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605538', 'tblTempUsageDetail_20' ) end [2025-03-04 11:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:36:25] Production.INFO: ==6718== Releasing lock... [2025-03-04 11:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:36:25] Production.INFO: 65 MB #Memory Used# [2025-03-04 11:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:37:06 [end_date_ymd] => 2025-03-04 11:37:06 [RateCDR] => 1 ) [2025-03-04 11: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-04 08:37:06' and `end` < '2025-03-04 11: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-04 11:37:19] Production.INFO: count ==4950 [2025-03-04 11:37:21] Production.ERROR: pbx CDR StartTime 2025-03-04 08:37:06 - End Time 2025-03-04 11:37:06 [2025-03-04 11:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605543', 'tblTempUsageDetail_20' ) start [2025-03-04 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605543', 'tblTempUsageDetail_20' ) end [2025-03-04 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605543', 'tblTempVendorCDR_20' ) start [2025-03-04 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605543', 'tblTempVendorCDR_20' ) end [2025-03-04 11:37:21] Production.INFO: ProcessCDR(1,14605543,1,1,2) [2025-03-04 11:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605543', 'tblTempUsageDetail_20' ) start [2025-03-04 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605543', 'tblTempUsageDetail_20' ) end [2025-03-04 11:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:37:26] Production.INFO: ==6817== Releasing lock... [2025-03-04 11:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:37:26] Production.INFO: 65 MB #Memory Used# [2025-03-04 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:38:05 [end_date_ymd] => 2025-03-04 11:38:05 [RateCDR] => 1 ) [2025-03-04 11: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 08:38:05' and `end` < '2025-03-04 11: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-04 11:38:18] Production.INFO: count ==4961 [2025-03-04 11:38:21] Production.ERROR: pbx CDR StartTime 2025-03-04 08:38:05 - End Time 2025-03-04 11:38:05 [2025-03-04 11:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605548', 'tblTempUsageDetail_20' ) start [2025-03-04 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605548', 'tblTempUsageDetail_20' ) end [2025-03-04 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605548', 'tblTempVendorCDR_20' ) start [2025-03-04 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605548', 'tblTempVendorCDR_20' ) end [2025-03-04 11:38:21] Production.INFO: ProcessCDR(1,14605548,1,1,2) [2025-03-04 11:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605548', 'tblTempUsageDetail_20' ) start [2025-03-04 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605548', 'tblTempUsageDetail_20' ) end [2025-03-04 11:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:38:26] Production.INFO: ==6913== Releasing lock... [2025-03-04 11:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:38:26] Production.INFO: 65 MB #Memory Used# [2025-03-04 11:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:39:06 [end_date_ymd] => 2025-03-04 11:39:06 [RateCDR] => 1 ) [2025-03-04 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-04 08:39:06' and `end` < '2025-03-04 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-04 11:39:19] Production.INFO: count ==4963 [2025-03-04 11:39:21] Production.ERROR: pbx CDR StartTime 2025-03-04 08:39:06 - End Time 2025-03-04 11:39:06 [2025-03-04 11:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605553', 'tblTempUsageDetail_20' ) start [2025-03-04 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605553', 'tblTempUsageDetail_20' ) end [2025-03-04 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605553', 'tblTempVendorCDR_20' ) start [2025-03-04 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605553', 'tblTempVendorCDR_20' ) end [2025-03-04 11:39:21] Production.INFO: ProcessCDR(1,14605553,1,1,2) [2025-03-04 11:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605553', 'tblTempUsageDetail_20' ) start [2025-03-04 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605553', 'tblTempUsageDetail_20' ) end [2025-03-04 11:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:39:26] Production.INFO: ==7051== Releasing lock... [2025-03-04 11:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:39:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-04 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:40:06 [end_date_ymd] => 2025-03-04 11:40:06 [RateCDR] => 1 ) [2025-03-04 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-04 08:40:06' and `end` < '2025-03-04 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-04 11:40:19] Production.INFO: count ==4955 [2025-03-04 11:40:22] Production.ERROR: pbx CDR StartTime 2025-03-04 08:40:06 - End Time 2025-03-04 11:40:06 [2025-03-04 11:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605559', 'tblTempUsageDetail_20' ) start [2025-03-04 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605559', 'tblTempUsageDetail_20' ) end [2025-03-04 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605559', 'tblTempVendorCDR_20' ) start [2025-03-04 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605559', 'tblTempVendorCDR_20' ) end [2025-03-04 11:40:22] Production.INFO: ProcessCDR(1,14605559,1,1,2) [2025-03-04 11:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605559', 'tblTempUsageDetail_20' ) start [2025-03-04 11:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605559', 'tblTempUsageDetail_20' ) end [2025-03-04 11:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:40:27] Production.INFO: ==7153== Releasing lock... [2025-03-04 11:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:40:27] Production.INFO: 65 MB #Memory Used# [2025-03-04 11:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:41:06 [end_date_ymd] => 2025-03-04 11:41:06 [RateCDR] => 1 ) [2025-03-04 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-04 08:41:06' and `end` < '2025-03-04 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-04 11:41:19] Production.INFO: count ==5032 [2025-03-04 11:41:21] Production.ERROR: pbx CDR StartTime 2025-03-04 08:41:06 - End Time 2025-03-04 11:41:06 [2025-03-04 11:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605564', 'tblTempUsageDetail_20' ) start [2025-03-04 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605564', 'tblTempUsageDetail_20' ) end [2025-03-04 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605564', 'tblTempVendorCDR_20' ) start [2025-03-04 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605564', 'tblTempVendorCDR_20' ) end [2025-03-04 11:41:21] Production.INFO: ProcessCDR(1,14605564,1,1,2) [2025-03-04 11:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605564', 'tblTempUsageDetail_20' ) start [2025-03-04 11:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605564', 'tblTempUsageDetail_20' ) end [2025-03-04 11:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:41:26] Production.INFO: ==7256== Releasing lock... [2025-03-04 11:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:41:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-04 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:42:05 [end_date_ymd] => 2025-03-04 11:42:05 [RateCDR] => 1 ) [2025-03-04 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-04 08:42:05' and `end` < '2025-03-04 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-04 11:42:18] Production.INFO: count ==5087 [2025-03-04 11:42:21] Production.ERROR: pbx CDR StartTime 2025-03-04 08:42:05 - End Time 2025-03-04 11:42:05 [2025-03-04 11:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605569', 'tblTempUsageDetail_20' ) start [2025-03-04 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605569', 'tblTempUsageDetail_20' ) end [2025-03-04 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605569', 'tblTempVendorCDR_20' ) start [2025-03-04 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605569', 'tblTempVendorCDR_20' ) end [2025-03-04 11:42:21] Production.INFO: ProcessCDR(1,14605569,1,1,2) [2025-03-04 11:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605569', 'tblTempUsageDetail_20' ) start [2025-03-04 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605569', 'tblTempUsageDetail_20' ) end [2025-03-04 11:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:42:26] Production.INFO: ==7352== Releasing lock... [2025-03-04 11:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:42:26] Production.INFO: 66 MB #Memory Used# [2025-03-04 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:43:05 [end_date_ymd] => 2025-03-04 11:43:05 [RateCDR] => 1 ) [2025-03-04 11: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 08:43:05' and `end` < '2025-03-04 11: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-04 11:43:18] Production.INFO: count ==5104 [2025-03-04 11:43:20] Production.ERROR: pbx CDR StartTime 2025-03-04 08:43:05 - End Time 2025-03-04 11:43:05 [2025-03-04 11:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605574', 'tblTempUsageDetail_20' ) start [2025-03-04 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605574', 'tblTempUsageDetail_20' ) end [2025-03-04 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605574', 'tblTempVendorCDR_20' ) start [2025-03-04 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605574', 'tblTempVendorCDR_20' ) end [2025-03-04 11:43:21] Production.INFO: ProcessCDR(1,14605574,1,1,2) [2025-03-04 11:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605574', 'tblTempUsageDetail_20' ) start [2025-03-04 11:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605574', 'tblTempUsageDetail_20' ) end [2025-03-04 11:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:43:25] Production.INFO: ==7447== Releasing lock... [2025-03-04 11:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:43:25] Production.INFO: 66.25 MB #Memory Used# [2025-03-04 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:44:05 [end_date_ymd] => 2025-03-04 11:44:05 [RateCDR] => 1 ) [2025-03-04 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-04 08:44:05' and `end` < '2025-03-04 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-04 11:44:18] Production.INFO: count ==5112 [2025-03-04 11:44:20] Production.ERROR: pbx CDR StartTime 2025-03-04 08:44:05 - End Time 2025-03-04 11:44:05 [2025-03-04 11:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605579', 'tblTempUsageDetail_20' ) start [2025-03-04 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605579', 'tblTempUsageDetail_20' ) end [2025-03-04 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605579', 'tblTempVendorCDR_20' ) start [2025-03-04 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605579', 'tblTempVendorCDR_20' ) end [2025-03-04 11:44:21] Production.INFO: ProcessCDR(1,14605579,1,1,2) [2025-03-04 11:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605579', 'tblTempUsageDetail_20' ) start [2025-03-04 11:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605579', 'tblTempUsageDetail_20' ) end [2025-03-04 11:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:44:26] Production.INFO: ==7527== Releasing lock... [2025-03-04 11:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:44:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-04 11:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:45:06 [end_date_ymd] => 2025-03-04 11:45:06 [RateCDR] => 1 ) [2025-03-04 11: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 08:45:06' and `end` < '2025-03-04 11: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-04 11:45:20] Production.INFO: count ==5113 [2025-03-04 11:45:22] Production.ERROR: pbx CDR StartTime 2025-03-04 08:45:06 - End Time 2025-03-04 11:45:06 [2025-03-04 11:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605584', 'tblTempUsageDetail_20' ) start [2025-03-04 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605584', 'tblTempUsageDetail_20' ) end [2025-03-04 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605584', 'tblTempVendorCDR_20' ) start [2025-03-04 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605584', 'tblTempVendorCDR_20' ) end [2025-03-04 11:45:22] Production.INFO: ProcessCDR(1,14605584,1,1,2) [2025-03-04 11:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605584', 'tblTempUsageDetail_20' ) start [2025-03-04 11:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605584', 'tblTempUsageDetail_20' ) end [2025-03-04 11:45:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:45:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:45:28] Production.INFO: ==7883== Releasing lock... [2025-03-04 11:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:45:28] Production.INFO: 66.25 MB #Memory Used# [2025-03-04 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:46:05 [end_date_ymd] => 2025-03-04 11:46:05 [RateCDR] => 1 ) [2025-03-04 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-04 08:46:05' and `end` < '2025-03-04 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-04 11:46:19] Production.INFO: count ==5110 [2025-03-04 11:46:21] Production.ERROR: pbx CDR StartTime 2025-03-04 08:46:05 - End Time 2025-03-04 11:46:05 [2025-03-04 11:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605589', 'tblTempUsageDetail_20' ) start [2025-03-04 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605589', 'tblTempUsageDetail_20' ) end [2025-03-04 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605589', 'tblTempVendorCDR_20' ) start [2025-03-04 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605589', 'tblTempVendorCDR_20' ) end [2025-03-04 11:46:21] Production.INFO: ProcessCDR(1,14605589,1,1,2) [2025-03-04 11:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605589', 'tblTempUsageDetail_20' ) start [2025-03-04 11:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605589', 'tblTempUsageDetail_20' ) end [2025-03-04 11:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:46:27] Production.INFO: ==8146== Releasing lock... [2025-03-04 11:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:46:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-04 11:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:47:06 [end_date_ymd] => 2025-03-04 11:47:06 [RateCDR] => 1 ) [2025-03-04 11: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-04 08:47:06' and `end` < '2025-03-04 11: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-04 11:47:19] Production.INFO: count ==5117 [2025-03-04 11:47:22] Production.ERROR: pbx CDR StartTime 2025-03-04 08:47:06 - End Time 2025-03-04 11:47:06 [2025-03-04 11:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605594', 'tblTempUsageDetail_20' ) start [2025-03-04 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605594', 'tblTempUsageDetail_20' ) end [2025-03-04 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605594', 'tblTempVendorCDR_20' ) start [2025-03-04 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605594', 'tblTempVendorCDR_20' ) end [2025-03-04 11:47:22] Production.INFO: ProcessCDR(1,14605594,1,1,2) [2025-03-04 11:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605594', 'tblTempUsageDetail_20' ) start [2025-03-04 11:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605594', 'tblTempUsageDetail_20' ) end [2025-03-04 11:47:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:47:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:47:28] Production.INFO: ==8217== Releasing lock... [2025-03-04 11:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:47:28] Production.INFO: 66.25 MB #Memory Used# [2025-03-04 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:48:05 [end_date_ymd] => 2025-03-04 11:48:05 [RateCDR] => 1 ) [2025-03-04 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-04 08:48:05' and `end` < '2025-03-04 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-04 11:48:18] Production.INFO: count ==5123 [2025-03-04 11:48:21] Production.ERROR: pbx CDR StartTime 2025-03-04 08:48:05 - End Time 2025-03-04 11:48:05 [2025-03-04 11:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605599', 'tblTempUsageDetail_20' ) start [2025-03-04 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605599', 'tblTempUsageDetail_20' ) end [2025-03-04 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605599', 'tblTempVendorCDR_20' ) start [2025-03-04 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605599', 'tblTempVendorCDR_20' ) end [2025-03-04 11:48:21] Production.INFO: ProcessCDR(1,14605599,1,1,2) [2025-03-04 11:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605599', 'tblTempUsageDetail_20' ) start [2025-03-04 11:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605599', 'tblTempUsageDetail_20' ) end [2025-03-04 11:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:48:27] Production.INFO: ==8289== Releasing lock... [2025-03-04 11:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:48:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-04 11:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:49:06 [end_date_ymd] => 2025-03-04 11:49:06 [RateCDR] => 1 ) [2025-03-04 11: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-04 08:49:06' and `end` < '2025-03-04 11: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-04 11:49:19] Production.INFO: count ==5150 [2025-03-04 11:49:21] Production.ERROR: pbx CDR StartTime 2025-03-04 08:49:06 - End Time 2025-03-04 11:49:06 [2025-03-04 11:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605604', 'tblTempUsageDetail_20' ) start [2025-03-04 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605604', 'tblTempUsageDetail_20' ) end [2025-03-04 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605604', 'tblTempVendorCDR_20' ) start [2025-03-04 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605604', 'tblTempVendorCDR_20' ) end [2025-03-04 11:49:21] Production.INFO: ProcessCDR(1,14605604,1,1,2) [2025-03-04 11:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605604', 'tblTempUsageDetail_20' ) start [2025-03-04 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605604', 'tblTempUsageDetail_20' ) end [2025-03-04 11:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:49:26] Production.INFO: ==8364== Releasing lock... [2025-03-04 11:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:49:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-04 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:50:06 [end_date_ymd] => 2025-03-04 11:50:06 [RateCDR] => 1 ) [2025-03-04 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-04 08:50:06' and `end` < '2025-03-04 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-04 11:50:19] Production.INFO: count ==5148 [2025-03-04 11:50:21] Production.ERROR: pbx CDR StartTime 2025-03-04 08:50:06 - End Time 2025-03-04 11:50:06 [2025-03-04 11:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605610', 'tblTempUsageDetail_20' ) start [2025-03-04 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605610', 'tblTempUsageDetail_20' ) end [2025-03-04 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605610', 'tblTempVendorCDR_20' ) start [2025-03-04 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605610', 'tblTempVendorCDR_20' ) end [2025-03-04 11:50:21] Production.INFO: ProcessCDR(1,14605610,1,1,2) [2025-03-04 11:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605610', 'tblTempUsageDetail_20' ) start [2025-03-04 11:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605610', 'tblTempUsageDetail_20' ) end [2025-03-04 11:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:50:25] Production.INFO: ==8437== Releasing lock... [2025-03-04 11:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:50:25] Production.INFO: 66.5 MB #Memory Used# [2025-03-04 11:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:51:06 [end_date_ymd] => 2025-03-04 11:51:06 [RateCDR] => 1 ) [2025-03-04 11: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-04 08:51:06' and `end` < '2025-03-04 11: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-04 11:51:19] Production.INFO: count ==5204 [2025-03-04 11:51:21] Production.ERROR: pbx CDR StartTime 2025-03-04 08:51:06 - End Time 2025-03-04 11:51:06 [2025-03-04 11:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605615', 'tblTempUsageDetail_20' ) start [2025-03-04 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605615', 'tblTempUsageDetail_20' ) end [2025-03-04 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605615', 'tblTempVendorCDR_20' ) start [2025-03-04 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605615', 'tblTempVendorCDR_20' ) end [2025-03-04 11:51:21] Production.INFO: ProcessCDR(1,14605615,1,1,2) [2025-03-04 11:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605615', 'tblTempUsageDetail_20' ) start [2025-03-04 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605615', 'tblTempUsageDetail_20' ) end [2025-03-04 11:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:51:26] Production.INFO: ==8512== Releasing lock... [2025-03-04 11:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:51:26] Production.INFO: 67 MB #Memory Used# [2025-03-04 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:52:05 [end_date_ymd] => 2025-03-04 11:52:05 [RateCDR] => 1 ) [2025-03-04 11:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 08:52:05' and `end` < '2025-03-04 11:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 11:52:19] Production.INFO: count ==5201 [2025-03-04 11:52:21] Production.ERROR: pbx CDR StartTime 2025-03-04 08:52:05 - End Time 2025-03-04 11:52:05 [2025-03-04 11:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605620', 'tblTempUsageDetail_20' ) start [2025-03-04 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605620', 'tblTempUsageDetail_20' ) end [2025-03-04 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605620', 'tblTempVendorCDR_20' ) start [2025-03-04 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605620', 'tblTempVendorCDR_20' ) end [2025-03-04 11:52:21] Production.INFO: ProcessCDR(1,14605620,1,1,2) [2025-03-04 11:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605620', 'tblTempUsageDetail_20' ) start [2025-03-04 11:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605620', 'tblTempUsageDetail_20' ) end [2025-03-04 11:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:52:26] Production.INFO: ==8584== Releasing lock... [2025-03-04 11:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:52:26] Production.INFO: 67 MB #Memory Used# [2025-03-04 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:53:05 [end_date_ymd] => 2025-03-04 11:53:05 [RateCDR] => 1 ) [2025-03-04 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-04 08:53:05' and `end` < '2025-03-04 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-04 11:53:18] Production.INFO: count ==5206 [2025-03-04 11:53:20] Production.ERROR: pbx CDR StartTime 2025-03-04 08:53:05 - End Time 2025-03-04 11:53:05 [2025-03-04 11:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605625', 'tblTempUsageDetail_20' ) start [2025-03-04 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605625', 'tblTempUsageDetail_20' ) end [2025-03-04 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605625', 'tblTempVendorCDR_20' ) start [2025-03-04 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605625', 'tblTempVendorCDR_20' ) end [2025-03-04 11:53:21] Production.INFO: ProcessCDR(1,14605625,1,1,2) [2025-03-04 11:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605625', 'tblTempUsageDetail_20' ) start [2025-03-04 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605625', 'tblTempUsageDetail_20' ) end [2025-03-04 11:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:53:26] Production.INFO: ==8658== Releasing lock... [2025-03-04 11:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:53:26] Production.INFO: 67 MB #Memory Used# [2025-03-04 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:54:05 [end_date_ymd] => 2025-03-04 11:54:05 [RateCDR] => 1 ) [2025-03-04 11:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 08:54:05' and `end` < '2025-03-04 11:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 11:54:18] Production.INFO: count ==5188 [2025-03-04 11:54:20] Production.ERROR: pbx CDR StartTime 2025-03-04 08:54:05 - End Time 2025-03-04 11:54:05 [2025-03-04 11:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605630', 'tblTempUsageDetail_20' ) start [2025-03-04 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605630', 'tblTempUsageDetail_20' ) end [2025-03-04 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605630', 'tblTempVendorCDR_20' ) start [2025-03-04 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605630', 'tblTempVendorCDR_20' ) end [2025-03-04 11:54:20] Production.INFO: ProcessCDR(1,14605630,1,1,2) [2025-03-04 11:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605630', 'tblTempUsageDetail_20' ) start [2025-03-04 11:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605630', 'tblTempUsageDetail_20' ) end [2025-03-04 11:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:54:25] Production.INFO: ==8733== Releasing lock... [2025-03-04 11:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:54:25] Production.INFO: 66.75 MB #Memory Used# [2025-03-04 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:55:05 [end_date_ymd] => 2025-03-04 11:55:05 [RateCDR] => 1 ) [2025-03-04 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-04 08:55:05' and `end` < '2025-03-04 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-04 11:55:18] Production.INFO: count ==5206 [2025-03-04 11:55:21] Production.ERROR: pbx CDR StartTime 2025-03-04 08:55:05 - End Time 2025-03-04 11:55:05 [2025-03-04 11:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605635', 'tblTempUsageDetail_20' ) start [2025-03-04 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605635', 'tblTempUsageDetail_20' ) end [2025-03-04 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605635', 'tblTempVendorCDR_20' ) start [2025-03-04 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605635', 'tblTempVendorCDR_20' ) end [2025-03-04 11:55:21] Production.INFO: ProcessCDR(1,14605635,1,1,2) [2025-03-04 11:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605635', 'tblTempUsageDetail_20' ) start [2025-03-04 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605635', 'tblTempUsageDetail_20' ) end [2025-03-04 11:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:55:26] Production.INFO: ==8846== Releasing lock... [2025-03-04 11:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:55:26] Production.INFO: 67 MB #Memory Used# [2025-03-04 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:56:05 [end_date_ymd] => 2025-03-04 11:56:05 [RateCDR] => 1 ) [2025-03-04 11: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 08:56:05' and `end` < '2025-03-04 11: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-04 11:56:19] Production.INFO: count ==5216 [2025-03-04 11:56:21] Production.ERROR: pbx CDR StartTime 2025-03-04 08:56:05 - End Time 2025-03-04 11:56:05 [2025-03-04 11:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605640', 'tblTempUsageDetail_20' ) start [2025-03-04 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605640', 'tblTempUsageDetail_20' ) end [2025-03-04 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605640', 'tblTempVendorCDR_20' ) start [2025-03-04 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605640', 'tblTempVendorCDR_20' ) end [2025-03-04 11:56:21] Production.INFO: ProcessCDR(1,14605640,1,1,2) [2025-03-04 11:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605640', 'tblTempUsageDetail_20' ) start [2025-03-04 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605640', 'tblTempUsageDetail_20' ) end [2025-03-04 11:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:56:26] Production.INFO: ==8922== Releasing lock... [2025-03-04 11:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:56:26] Production.INFO: 67 MB #Memory Used# [2025-03-04 11:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:57:06 [end_date_ymd] => 2025-03-04 11:57:06 [RateCDR] => 1 ) [2025-03-04 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-04 08:57:06' and `end` < '2025-03-04 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-04 11:57:19] Production.INFO: count ==5211 [2025-03-04 11:57:21] Production.ERROR: pbx CDR StartTime 2025-03-04 08:57:06 - End Time 2025-03-04 11:57:06 [2025-03-04 11:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605645', 'tblTempUsageDetail_20' ) start [2025-03-04 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605645', 'tblTempUsageDetail_20' ) end [2025-03-04 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605645', 'tblTempVendorCDR_20' ) start [2025-03-04 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605645', 'tblTempVendorCDR_20' ) end [2025-03-04 11:57:21] Production.INFO: ProcessCDR(1,14605645,1,1,2) [2025-03-04 11:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605645', 'tblTempUsageDetail_20' ) start [2025-03-04 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605645', 'tblTempUsageDetail_20' ) end [2025-03-04 11:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:57:26] Production.INFO: ==8998== Releasing lock... [2025-03-04 11:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:57:26] Production.INFO: 67 MB #Memory Used# [2025-03-04 11:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:58:06 [end_date_ymd] => 2025-03-04 11:58:06 [RateCDR] => 1 ) [2025-03-04 11: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 08:58:06' and `end` < '2025-03-04 11: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-04 11:58:19] Production.INFO: count ==5202 [2025-03-04 11:58:22] Production.ERROR: pbx CDR StartTime 2025-03-04 08:58:06 - End Time 2025-03-04 11:58:06 [2025-03-04 11:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605650', 'tblTempUsageDetail_20' ) start [2025-03-04 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605650', 'tblTempUsageDetail_20' ) end [2025-03-04 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605650', 'tblTempVendorCDR_20' ) start [2025-03-04 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605650', 'tblTempVendorCDR_20' ) end [2025-03-04 11:58:22] Production.INFO: ProcessCDR(1,14605650,1,1,2) [2025-03-04 11:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605650', 'tblTempUsageDetail_20' ) start [2025-03-04 11:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605650', 'tblTempUsageDetail_20' ) end [2025-03-04 11:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:58:27] Production.INFO: ==9071== Releasing lock... [2025-03-04 11:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:58:27] Production.INFO: 67 MB #Memory Used# [2025-03-04 11:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 08:59:06 [end_date_ymd] => 2025-03-04 11:59:06 [RateCDR] => 1 ) [2025-03-04 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-04 08:59:06' and `end` < '2025-03-04 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-04 11:59:19] Production.INFO: count ==5217 [2025-03-04 11:59:21] Production.ERROR: pbx CDR StartTime 2025-03-04 08:59:06 - End Time 2025-03-04 11:59:06 [2025-03-04 11:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605655', 'tblTempUsageDetail_20' ) start [2025-03-04 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605655', 'tblTempUsageDetail_20' ) end [2025-03-04 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605655', 'tblTempVendorCDR_20' ) start [2025-03-04 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605655', 'tblTempVendorCDR_20' ) end [2025-03-04 11:59:21] Production.INFO: ProcessCDR(1,14605655,1,1,2) [2025-03-04 11:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 11:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605655', 'tblTempUsageDetail_20' ) start [2025-03-04 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605655', 'tblTempUsageDetail_20' ) end [2025-03-04 11:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 11:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 11:59:26] Production.INFO: ==9145== Releasing lock... [2025-03-04 11:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 11:59:26] Production.INFO: 67 MB #Memory Used# [2025-03-04 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:00:06 [end_date_ymd] => 2025-03-04 12:00:06 [RateCDR] => 1 ) [2025-03-04 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-04 09:00:06' and `end` < '2025-03-04 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-04 12:00:19] Production.INFO: count ==5229 [2025-03-04 12:00:22] Production.ERROR: pbx CDR StartTime 2025-03-04 09:00:06 - End Time 2025-03-04 12:00:06 [2025-03-04 12:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605661', 'tblTempUsageDetail_20' ) start [2025-03-04 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605661', 'tblTempUsageDetail_20' ) end [2025-03-04 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605661', 'tblTempVendorCDR_20' ) start [2025-03-04 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605661', 'tblTempVendorCDR_20' ) end [2025-03-04 12:00:22] Production.INFO: ProcessCDR(1,14605661,1,1,2) [2025-03-04 12:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605661', 'tblTempUsageDetail_20' ) start [2025-03-04 12:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605661', 'tblTempUsageDetail_20' ) end [2025-03-04 12:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:00:27] Production.INFO: ==9221== Releasing lock... [2025-03-04 12:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:00:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-04 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:01:05 [end_date_ymd] => 2025-03-04 12:01:05 [RateCDR] => 1 ) [2025-03-04 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-04 09:01:05' and `end` < '2025-03-04 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-04 12:01:18] Production.INFO: count ==5339 [2025-03-04 12:01:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:01:05 - End Time 2025-03-04 12:01:05 [2025-03-04 12:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605666', 'tblTempUsageDetail_20' ) start [2025-03-04 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605666', 'tblTempUsageDetail_20' ) end [2025-03-04 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605666', 'tblTempVendorCDR_20' ) start [2025-03-04 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605666', 'tblTempVendorCDR_20' ) end [2025-03-04 12:01:21] Production.INFO: ProcessCDR(1,14605666,1,1,2) [2025-03-04 12:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605666', 'tblTempUsageDetail_20' ) start [2025-03-04 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605666', 'tblTempUsageDetail_20' ) end [2025-03-04 12:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:01:26] Production.INFO: ==9309== Releasing lock... [2025-03-04 12:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:01:26] Production.INFO: 68 MB #Memory Used# [2025-03-04 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:02:06 [end_date_ymd] => 2025-03-04 12:02:06 [RateCDR] => 1 ) [2025-03-04 12: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-04 09:02:06' and `end` < '2025-03-04 12: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-04 12:02:19] Production.INFO: count ==5343 [2025-03-04 12:02:22] Production.ERROR: pbx CDR StartTime 2025-03-04 09:02:06 - End Time 2025-03-04 12:02:06 [2025-03-04 12:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605671', 'tblTempUsageDetail_20' ) start [2025-03-04 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605671', 'tblTempUsageDetail_20' ) end [2025-03-04 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605671', 'tblTempVendorCDR_20' ) start [2025-03-04 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605671', 'tblTempVendorCDR_20' ) end [2025-03-04 12:02:22] Production.INFO: ProcessCDR(1,14605671,1,1,2) [2025-03-04 12:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605671', 'tblTempUsageDetail_20' ) start [2025-03-04 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605671', 'tblTempUsageDetail_20' ) end [2025-03-04 12:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:02:27] Production.INFO: ==9381== Releasing lock... [2025-03-04 12:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:02:27] Production.INFO: 68 MB #Memory Used# [2025-03-04 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:03:05 [end_date_ymd] => 2025-03-04 12:03:05 [RateCDR] => 1 ) [2025-03-04 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-04 09:03:05' and `end` < '2025-03-04 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-04 12:03:18] Production.INFO: count ==5359 [2025-03-04 12:03:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:03:05 - End Time 2025-03-04 12:03:05 [2025-03-04 12:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605676', 'tblTempUsageDetail_20' ) start [2025-03-04 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605676', 'tblTempUsageDetail_20' ) end [2025-03-04 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605676', 'tblTempVendorCDR_20' ) start [2025-03-04 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605676', 'tblTempVendorCDR_20' ) end [2025-03-04 12:03:21] Production.INFO: ProcessCDR(1,14605676,1,1,2) [2025-03-04 12:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605676', 'tblTempUsageDetail_20' ) start [2025-03-04 12:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605676', 'tblTempUsageDetail_20' ) end [2025-03-04 12:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:03:27] Production.INFO: ==9452== Releasing lock... [2025-03-04 12:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:03:27] Production.INFO: 68 MB #Memory Used# [2025-03-04 12:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:04:06 [end_date_ymd] => 2025-03-04 12:04:06 [RateCDR] => 1 ) [2025-03-04 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-04 09:04:06' and `end` < '2025-03-04 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-04 12:04:19] Production.INFO: count ==5378 [2025-03-04 12:04:22] Production.ERROR: pbx CDR StartTime 2025-03-04 09:04:06 - End Time 2025-03-04 12:04:06 [2025-03-04 12:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605681', 'tblTempUsageDetail_20' ) start [2025-03-04 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605681', 'tblTempUsageDetail_20' ) end [2025-03-04 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605681', 'tblTempVendorCDR_20' ) start [2025-03-04 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605681', 'tblTempVendorCDR_20' ) end [2025-03-04 12:04:22] Production.INFO: ProcessCDR(1,14605681,1,1,2) [2025-03-04 12:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605681', 'tblTempUsageDetail_20' ) start [2025-03-04 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605681', 'tblTempUsageDetail_20' ) end [2025-03-04 12:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:04:27] Production.INFO: ==9537== Releasing lock... [2025-03-04 12:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:04:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-04 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:05:05 [end_date_ymd] => 2025-03-04 12:05:05 [RateCDR] => 1 ) [2025-03-04 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-04 09:05:05' and `end` < '2025-03-04 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-04 12:05:19] Production.INFO: count ==5392 [2025-03-04 12:05:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:05:05 - End Time 2025-03-04 12:05:05 [2025-03-04 12:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605686', 'tblTempUsageDetail_20' ) start [2025-03-04 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605686', 'tblTempUsageDetail_20' ) end [2025-03-04 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605686', 'tblTempVendorCDR_20' ) start [2025-03-04 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605686', 'tblTempVendorCDR_20' ) end [2025-03-04 12:05:21] Production.INFO: ProcessCDR(1,14605686,1,1,2) [2025-03-04 12:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605686', 'tblTempUsageDetail_20' ) start [2025-03-04 12:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605686', 'tblTempUsageDetail_20' ) end [2025-03-04 12:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:05:27] Production.INFO: ==9643== Releasing lock... [2025-03-04 12:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:05:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-04 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:06:05 [end_date_ymd] => 2025-03-04 12:06:05 [RateCDR] => 1 ) [2025-03-04 12:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 09:06:05' and `end` < '2025-03-04 12:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 12:06:19] Production.INFO: count ==5389 [2025-03-04 12:06:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:06:05 - End Time 2025-03-04 12:06:05 [2025-03-04 12:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605691', 'tblTempUsageDetail_20' ) start [2025-03-04 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605691', 'tblTempUsageDetail_20' ) end [2025-03-04 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605691', 'tblTempVendorCDR_20' ) start [2025-03-04 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605691', 'tblTempVendorCDR_20' ) end [2025-03-04 12:06:21] Production.INFO: ProcessCDR(1,14605691,1,1,2) [2025-03-04 12:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605691', 'tblTempUsageDetail_20' ) start [2025-03-04 12:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605691', 'tblTempUsageDetail_20' ) end [2025-03-04 12:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:06:26] Production.INFO: ==9753== Releasing lock... [2025-03-04 12:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:06:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-04 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:07:05 [end_date_ymd] => 2025-03-04 12:07:05 [RateCDR] => 1 ) [2025-03-04 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-04 09:07:05' and `end` < '2025-03-04 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-04 12:07:18] Production.INFO: count ==5377 [2025-03-04 12:07:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:07:05 - End Time 2025-03-04 12:07:05 [2025-03-04 12:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605696', 'tblTempUsageDetail_20' ) start [2025-03-04 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605696', 'tblTempUsageDetail_20' ) end [2025-03-04 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605696', 'tblTempVendorCDR_20' ) start [2025-03-04 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605696', 'tblTempVendorCDR_20' ) end [2025-03-04 12:07:21] Production.INFO: ProcessCDR(1,14605696,1,1,2) [2025-03-04 12:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605696', 'tblTempUsageDetail_20' ) start [2025-03-04 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605696', 'tblTempUsageDetail_20' ) end [2025-03-04 12:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:07:26] Production.INFO: ==9826== Releasing lock... [2025-03-04 12:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:07:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-04 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:08:06 [end_date_ymd] => 2025-03-04 12:08:06 [RateCDR] => 1 ) [2025-03-04 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-04 09:08:06' and `end` < '2025-03-04 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-04 12:08:19] Production.INFO: count ==5354 [2025-03-04 12:08:22] Production.ERROR: pbx CDR StartTime 2025-03-04 09:08:06 - End Time 2025-03-04 12:08:06 [2025-03-04 12:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605701', 'tblTempUsageDetail_20' ) start [2025-03-04 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605701', 'tblTempUsageDetail_20' ) end [2025-03-04 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605701', 'tblTempVendorCDR_20' ) start [2025-03-04 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605701', 'tblTempVendorCDR_20' ) end [2025-03-04 12:08:22] Production.INFO: ProcessCDR(1,14605701,1,1,2) [2025-03-04 12:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605701', 'tblTempUsageDetail_20' ) start [2025-03-04 12:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605701', 'tblTempUsageDetail_20' ) end [2025-03-04 12:08:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:08:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:08:28] Production.INFO: ==9901== Releasing lock... [2025-03-04 12:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:08:28] Production.INFO: 68 MB #Memory Used# [2025-03-04 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:09:05 [end_date_ymd] => 2025-03-04 12:09:05 [RateCDR] => 1 ) [2025-03-04 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-04 09:09:05' and `end` < '2025-03-04 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-04 12:09:18] Production.INFO: count ==5377 [2025-03-04 12:09:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:09:05 - End Time 2025-03-04 12:09:05 [2025-03-04 12:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605706', 'tblTempUsageDetail_20' ) start [2025-03-04 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605706', 'tblTempUsageDetail_20' ) end [2025-03-04 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605706', 'tblTempVendorCDR_20' ) start [2025-03-04 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605706', 'tblTempVendorCDR_20' ) end [2025-03-04 12:09:21] Production.INFO: ProcessCDR(1,14605706,1,1,2) [2025-03-04 12:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605706', 'tblTempUsageDetail_20' ) start [2025-03-04 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605706', 'tblTempUsageDetail_20' ) end [2025-03-04 12:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:09:26] Production.INFO: ==9973== Releasing lock... [2025-03-04 12:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:09:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-04 12:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:10:07 [end_date_ymd] => 2025-03-04 12:10:07 [RateCDR] => 1 ) [2025-03-04 12: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-04 09:10:07' and `end` < '2025-03-04 12: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-04 12:10:20] Production.INFO: count ==5380 [2025-03-04 12:10:22] Production.ERROR: pbx CDR StartTime 2025-03-04 09:10:07 - End Time 2025-03-04 12:10:07 [2025-03-04 12:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605711', 'tblTempUsageDetail_20' ) start [2025-03-04 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605711', 'tblTempUsageDetail_20' ) end [2025-03-04 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605711', 'tblTempVendorCDR_20' ) start [2025-03-04 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605711', 'tblTempVendorCDR_20' ) end [2025-03-04 12:10:22] Production.INFO: ProcessCDR(1,14605711,1,1,2) [2025-03-04 12:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605711', 'tblTempUsageDetail_20' ) start [2025-03-04 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605711', 'tblTempUsageDetail_20' ) end [2025-03-04 12:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:10:27] Production.INFO: ==10088== Releasing lock... [2025-03-04 12:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:10:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-04 12:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:11:06 [end_date_ymd] => 2025-03-04 12:11:06 [RateCDR] => 1 ) [2025-03-04 12: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 09:11:06' and `end` < '2025-03-04 12: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-04 12:11:19] Production.INFO: count ==5433 [2025-03-04 12:11:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:11:06 - End Time 2025-03-04 12:11:06 [2025-03-04 12:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605717', 'tblTempUsageDetail_20' ) start [2025-03-04 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605717', 'tblTempUsageDetail_20' ) end [2025-03-04 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605717', 'tblTempVendorCDR_20' ) start [2025-03-04 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605717', 'tblTempVendorCDR_20' ) end [2025-03-04 12:11:21] Production.INFO: ProcessCDR(1,14605717,1,1,2) [2025-03-04 12:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605717', 'tblTempUsageDetail_20' ) start [2025-03-04 12:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605717', 'tblTempUsageDetail_20' ) end [2025-03-04 12:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:11:26] Production.INFO: ==10162== Releasing lock... [2025-03-04 12:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:11:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-04 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:12:05 [end_date_ymd] => 2025-03-04 12:12:05 [RateCDR] => 1 ) [2025-03-04 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-04 09:12:05' and `end` < '2025-03-04 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-04 12:12:18] Production.INFO: count ==5423 [2025-03-04 12:12:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:12:05 - End Time 2025-03-04 12:12:05 [2025-03-04 12:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605722', 'tblTempUsageDetail_20' ) start [2025-03-04 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605722', 'tblTempUsageDetail_20' ) end [2025-03-04 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605722', 'tblTempVendorCDR_20' ) start [2025-03-04 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605722', 'tblTempVendorCDR_20' ) end [2025-03-04 12:12:21] Production.INFO: ProcessCDR(1,14605722,1,1,2) [2025-03-04 12:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605722', 'tblTempUsageDetail_20' ) start [2025-03-04 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605722', 'tblTempUsageDetail_20' ) end [2025-03-04 12:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:12:26] Production.INFO: ==10238== Releasing lock... [2025-03-04 12:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:12:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-04 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:13:05 [end_date_ymd] => 2025-03-04 12:13:05 [RateCDR] => 1 ) [2025-03-04 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-04 09:13:05' and `end` < '2025-03-04 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-04 12:13:19] Production.INFO: count ==5433 [2025-03-04 12:13:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:13:05 - End Time 2025-03-04 12:13:05 [2025-03-04 12:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605727', 'tblTempUsageDetail_20' ) start [2025-03-04 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605727', 'tblTempUsageDetail_20' ) end [2025-03-04 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605727', 'tblTempVendorCDR_20' ) start [2025-03-04 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605727', 'tblTempVendorCDR_20' ) end [2025-03-04 12:13:21] Production.INFO: ProcessCDR(1,14605727,1,1,2) [2025-03-04 12:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605727', 'tblTempUsageDetail_20' ) start [2025-03-04 12:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605727', 'tblTempUsageDetail_20' ) end [2025-03-04 12:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:13:27] Production.INFO: ==10311== Releasing lock... [2025-03-04 12:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:13:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-04 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:14:05 [end_date_ymd] => 2025-03-04 12:14:05 [RateCDR] => 1 ) [2025-03-04 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-04 09:14:05' and `end` < '2025-03-04 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-04 12:14:19] Production.INFO: count ==5411 [2025-03-04 12:14:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:14:05 - End Time 2025-03-04 12:14:05 [2025-03-04 12:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605732', 'tblTempUsageDetail_20' ) start [2025-03-04 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605732', 'tblTempUsageDetail_20' ) end [2025-03-04 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605732', 'tblTempVendorCDR_20' ) start [2025-03-04 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605732', 'tblTempVendorCDR_20' ) end [2025-03-04 12:14:21] Production.INFO: ProcessCDR(1,14605732,1,1,2) [2025-03-04 12:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605732', 'tblTempUsageDetail_20' ) start [2025-03-04 12:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605732', 'tblTempUsageDetail_20' ) end [2025-03-04 12:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:14:26] Production.INFO: ==10389== Releasing lock... [2025-03-04 12:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:14:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-04 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:15:05 [end_date_ymd] => 2025-03-04 12:15:05 [RateCDR] => 1 ) [2025-03-04 12: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 09:15:05' and `end` < '2025-03-04 12: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-04 12:15:18] Production.INFO: count ==5400 [2025-03-04 12:15:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:15:05 - End Time 2025-03-04 12:15:05 [2025-03-04 12:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605737', 'tblTempUsageDetail_20' ) start [2025-03-04 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605737', 'tblTempUsageDetail_20' ) end [2025-03-04 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605737', 'tblTempVendorCDR_20' ) start [2025-03-04 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605737', 'tblTempVendorCDR_20' ) end [2025-03-04 12:15:21] Production.INFO: ProcessCDR(1,14605737,1,1,2) [2025-03-04 12:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605737', 'tblTempUsageDetail_20' ) start [2025-03-04 12:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605737', 'tblTempUsageDetail_20' ) end [2025-03-04 12:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:15:26] Production.INFO: ==10459== Releasing lock... [2025-03-04 12:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:15:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-04 12:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:16:06 [end_date_ymd] => 2025-03-04 12:16:06 [RateCDR] => 1 ) [2025-03-04 12: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 09:16:06' and `end` < '2025-03-04 12: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-04 12:16:19] Production.INFO: count ==5392 [2025-03-04 12:16:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:16:06 - End Time 2025-03-04 12:16:06 [2025-03-04 12:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605742', 'tblTempUsageDetail_20' ) start [2025-03-04 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605742', 'tblTempUsageDetail_20' ) end [2025-03-04 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605742', 'tblTempVendorCDR_20' ) start [2025-03-04 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605742', 'tblTempVendorCDR_20' ) end [2025-03-04 12:16:21] Production.INFO: ProcessCDR(1,14605742,1,1,2) [2025-03-04 12:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605742', 'tblTempUsageDetail_20' ) start [2025-03-04 12:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605742', 'tblTempUsageDetail_20' ) end [2025-03-04 12:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:16:27] Production.INFO: ==10532== Releasing lock... [2025-03-04 12:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:16:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-04 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:17:05 [end_date_ymd] => 2025-03-04 12:17:05 [RateCDR] => 1 ) [2025-03-04 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-04 09:17:05' and `end` < '2025-03-04 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-04 12:17:19] Production.INFO: count ==5404 [2025-03-04 12:17:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:17:05 - End Time 2025-03-04 12:17:05 [2025-03-04 12:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605747', 'tblTempUsageDetail_20' ) start [2025-03-04 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605747', 'tblTempUsageDetail_20' ) end [2025-03-04 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605747', 'tblTempVendorCDR_20' ) start [2025-03-04 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605747', 'tblTempVendorCDR_20' ) end [2025-03-04 12:17:21] Production.INFO: ProcessCDR(1,14605747,1,1,2) [2025-03-04 12:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605747', 'tblTempUsageDetail_20' ) start [2025-03-04 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605747', 'tblTempUsageDetail_20' ) end [2025-03-04 12:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:17:26] Production.INFO: ==10605== Releasing lock... [2025-03-04 12:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:17:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-04 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:18:05 [end_date_ymd] => 2025-03-04 12:18:05 [RateCDR] => 1 ) [2025-03-04 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-04 09:18:05' and `end` < '2025-03-04 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-04 12:18:19] Production.INFO: count ==5406 [2025-03-04 12:18:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:18:05 - End Time 2025-03-04 12:18:05 [2025-03-04 12:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605752', 'tblTempUsageDetail_20' ) start [2025-03-04 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605752', 'tblTempUsageDetail_20' ) end [2025-03-04 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605752', 'tblTempVendorCDR_20' ) start [2025-03-04 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605752', 'tblTempVendorCDR_20' ) end [2025-03-04 12:18:21] Production.INFO: ProcessCDR(1,14605752,1,1,2) [2025-03-04 12:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605752', 'tblTempUsageDetail_20' ) start [2025-03-04 12:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605752', 'tblTempUsageDetail_20' ) end [2025-03-04 12:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:18:26] Production.INFO: ==10689== Releasing lock... [2025-03-04 12:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:18:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-04 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:19:05 [end_date_ymd] => 2025-03-04 12:19:05 [RateCDR] => 1 ) [2025-03-04 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-04 09:19:05' and `end` < '2025-03-04 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-04 12:19:18] Production.INFO: count ==5417 [2025-03-04 12:19:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:19:05 - End Time 2025-03-04 12:19:05 [2025-03-04 12:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605757', 'tblTempUsageDetail_20' ) start [2025-03-04 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605757', 'tblTempUsageDetail_20' ) end [2025-03-04 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605757', 'tblTempVendorCDR_20' ) start [2025-03-04 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605757', 'tblTempVendorCDR_20' ) end [2025-03-04 12:19:21] Production.INFO: ProcessCDR(1,14605757,1,1,2) [2025-03-04 12:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605757', 'tblTempUsageDetail_20' ) start [2025-03-04 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605757', 'tblTempUsageDetail_20' ) end [2025-03-04 12:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:19:26] Production.INFO: ==10761== Releasing lock... [2025-03-04 12:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:19:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-04 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:20:06 [end_date_ymd] => 2025-03-04 12:20:06 [RateCDR] => 1 ) [2025-03-04 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-04 09:20:06' and `end` < '2025-03-04 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-04 12:20:19] Production.INFO: count ==5402 [2025-03-04 12:20:22] Production.ERROR: pbx CDR StartTime 2025-03-04 09:20:06 - End Time 2025-03-04 12:20:06 [2025-03-04 12:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605763', 'tblTempUsageDetail_20' ) start [2025-03-04 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605763', 'tblTempUsageDetail_20' ) end [2025-03-04 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605763', 'tblTempVendorCDR_20' ) start [2025-03-04 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605763', 'tblTempVendorCDR_20' ) end [2025-03-04 12:20:22] Production.INFO: ProcessCDR(1,14605763,1,1,2) [2025-03-04 12:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605763', 'tblTempUsageDetail_20' ) start [2025-03-04 12:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605763', 'tblTempUsageDetail_20' ) end [2025-03-04 12:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:20:26] Production.INFO: ==10835== Releasing lock... [2025-03-04 12:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:20:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-04 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:21:05 [end_date_ymd] => 2025-03-04 12:21:05 [RateCDR] => 1 ) [2025-03-04 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-04 09:21:05' and `end` < '2025-03-04 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-04 12:21:18] Production.INFO: count ==5424 [2025-03-04 12:21:20] Production.ERROR: pbx CDR StartTime 2025-03-04 09:21:05 - End Time 2025-03-04 12:21:05 [2025-03-04 12:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605768', 'tblTempUsageDetail_20' ) start [2025-03-04 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605768', 'tblTempUsageDetail_20' ) end [2025-03-04 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605768', 'tblTempVendorCDR_20' ) start [2025-03-04 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605768', 'tblTempVendorCDR_20' ) end [2025-03-04 12:21:20] Production.INFO: ProcessCDR(1,14605768,1,1,2) [2025-03-04 12:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605768', 'tblTempUsageDetail_20' ) start [2025-03-04 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605768', 'tblTempUsageDetail_20' ) end [2025-03-04 12:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:21:26] Production.INFO: ==10911== Releasing lock... [2025-03-04 12:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:21:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-04 12:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:22:06 [end_date_ymd] => 2025-03-04 12:22:06 [RateCDR] => 1 ) [2025-03-04 12: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 09:22:06' and `end` < '2025-03-04 12: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-04 12:22:19] Production.INFO: count ==5433 [2025-03-04 12:22:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:22:06 - End Time 2025-03-04 12:22:06 [2025-03-04 12:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605773', 'tblTempUsageDetail_20' ) start [2025-03-04 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605773', 'tblTempUsageDetail_20' ) end [2025-03-04 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605773', 'tblTempVendorCDR_20' ) start [2025-03-04 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605773', 'tblTempVendorCDR_20' ) end [2025-03-04 12:22:22] Production.INFO: ProcessCDR(1,14605773,1,1,2) [2025-03-04 12:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605773', 'tblTempUsageDetail_20' ) start [2025-03-04 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605773', 'tblTempUsageDetail_20' ) end [2025-03-04 12:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:22:27] Production.INFO: ==10985== Releasing lock... [2025-03-04 12:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:22:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-04 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:23:05 [end_date_ymd] => 2025-03-04 12:23:05 [RateCDR] => 1 ) [2025-03-04 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-04 09:23:05' and `end` < '2025-03-04 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-04 12:23:18] Production.INFO: count ==5438 [2025-03-04 12:23:20] Production.ERROR: pbx CDR StartTime 2025-03-04 09:23:05 - End Time 2025-03-04 12:23:05 [2025-03-04 12:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605778', 'tblTempUsageDetail_20' ) start [2025-03-04 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605778', 'tblTempUsageDetail_20' ) end [2025-03-04 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605778', 'tblTempVendorCDR_20' ) start [2025-03-04 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605778', 'tblTempVendorCDR_20' ) end [2025-03-04 12:23:20] Production.INFO: ProcessCDR(1,14605778,1,1,2) [2025-03-04 12:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605778', 'tblTempUsageDetail_20' ) start [2025-03-04 12:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605778', 'tblTempUsageDetail_20' ) end [2025-03-04 12:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:23:25] Production.INFO: ==11056== Releasing lock... [2025-03-04 12:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:23:25] Production.INFO: 68.75 MB #Memory Used# [2025-03-04 12:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:24:06 [end_date_ymd] => 2025-03-04 12:24:06 [RateCDR] => 1 ) [2025-03-04 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-04 09:24:06' and `end` < '2025-03-04 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-04 12:24:19] Production.INFO: count ==5452 [2025-03-04 12:24:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:24:06 - End Time 2025-03-04 12:24:06 [2025-03-04 12:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605783', 'tblTempUsageDetail_20' ) start [2025-03-04 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605783', 'tblTempUsageDetail_20' ) end [2025-03-04 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605783', 'tblTempVendorCDR_20' ) start [2025-03-04 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605783', 'tblTempVendorCDR_20' ) end [2025-03-04 12:24:21] Production.INFO: ProcessCDR(1,14605783,1,1,2) [2025-03-04 12:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605783', 'tblTempUsageDetail_20' ) start [2025-03-04 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605783', 'tblTempUsageDetail_20' ) end [2025-03-04 12:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:24:27] Production.INFO: ==11126== Releasing lock... [2025-03-04 12:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:24:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-04 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:25:05 [end_date_ymd] => 2025-03-04 12:25:05 [RateCDR] => 1 ) [2025-03-04 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 09:25:05' and `end` < '2025-03-04 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 12:25:18] Production.INFO: count ==5441 [2025-03-04 12:25:20] Production.ERROR: pbx CDR StartTime 2025-03-04 09:25:05 - End Time 2025-03-04 12:25:05 [2025-03-04 12:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605788', 'tblTempUsageDetail_20' ) start [2025-03-04 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605788', 'tblTempUsageDetail_20' ) end [2025-03-04 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605788', 'tblTempVendorCDR_20' ) start [2025-03-04 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605788', 'tblTempVendorCDR_20' ) end [2025-03-04 12:25:21] Production.INFO: ProcessCDR(1,14605788,1,1,2) [2025-03-04 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605788', 'tblTempUsageDetail_20' ) start [2025-03-04 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605788', 'tblTempUsageDetail_20' ) end [2025-03-04 12:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:25:26] Production.INFO: ==11198== Releasing lock... [2025-03-04 12:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:25:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-04 12:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:26:06 [end_date_ymd] => 2025-03-04 12:26:06 [RateCDR] => 1 ) [2025-03-04 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-04 09:26:06' and `end` < '2025-03-04 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-04 12:26:19] Production.INFO: count ==5457 [2025-03-04 12:26:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:26:06 - End Time 2025-03-04 12:26:06 [2025-03-04 12:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605793', 'tblTempUsageDetail_20' ) start [2025-03-04 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605793', 'tblTempUsageDetail_20' ) end [2025-03-04 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605793', 'tblTempVendorCDR_20' ) start [2025-03-04 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605793', 'tblTempVendorCDR_20' ) end [2025-03-04 12:26:21] Production.INFO: ProcessCDR(1,14605793,1,1,2) [2025-03-04 12:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605793', 'tblTempUsageDetail_20' ) start [2025-03-04 12:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605793', 'tblTempUsageDetail_20' ) end [2025-03-04 12:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:26:26] Production.INFO: ==11316== Releasing lock... [2025-03-04 12:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:26:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-04 12:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:27:06 [end_date_ymd] => 2025-03-04 12:27:06 [RateCDR] => 1 ) [2025-03-04 12: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 09:27:06' and `end` < '2025-03-04 12: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-04 12:27:19] Production.INFO: count ==5456 [2025-03-04 12:27:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:27:06 - End Time 2025-03-04 12:27:06 [2025-03-04 12:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605798', 'tblTempUsageDetail_20' ) start [2025-03-04 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605798', 'tblTempUsageDetail_20' ) end [2025-03-04 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605798', 'tblTempVendorCDR_20' ) start [2025-03-04 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605798', 'tblTempVendorCDR_20' ) end [2025-03-04 12:27:21] Production.INFO: ProcessCDR(1,14605798,1,1,2) [2025-03-04 12:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605798', 'tblTempUsageDetail_20' ) start [2025-03-04 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605798', 'tblTempUsageDetail_20' ) end [2025-03-04 12:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:27:26] Production.INFO: ==11389== Releasing lock... [2025-03-04 12:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:27:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-04 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:28:05 [end_date_ymd] => 2025-03-04 12:28:05 [RateCDR] => 1 ) [2025-03-04 12: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 09:28:05' and `end` < '2025-03-04 12: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-04 12:28:18] Production.INFO: count ==5453 [2025-03-04 12:28:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:28:05 - End Time 2025-03-04 12:28:05 [2025-03-04 12:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605803', 'tblTempUsageDetail_20' ) start [2025-03-04 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605803', 'tblTempUsageDetail_20' ) end [2025-03-04 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605803', 'tblTempVendorCDR_20' ) start [2025-03-04 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605803', 'tblTempVendorCDR_20' ) end [2025-03-04 12:28:21] Production.INFO: ProcessCDR(1,14605803,1,1,2) [2025-03-04 12:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605803', 'tblTempUsageDetail_20' ) start [2025-03-04 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605803', 'tblTempUsageDetail_20' ) end [2025-03-04 12:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:28:26] Production.INFO: ==11460== Releasing lock... [2025-03-04 12:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:28:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-04 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:29:05 [end_date_ymd] => 2025-03-04 12:29:05 [RateCDR] => 1 ) [2025-03-04 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-04 09:29:05' and `end` < '2025-03-04 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-04 12:29:18] Production.INFO: count ==5455 [2025-03-04 12:29:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:29:05 - End Time 2025-03-04 12:29:05 [2025-03-04 12:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605808', 'tblTempUsageDetail_20' ) start [2025-03-04 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605808', 'tblTempUsageDetail_20' ) end [2025-03-04 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605808', 'tblTempVendorCDR_20' ) start [2025-03-04 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605808', 'tblTempVendorCDR_20' ) end [2025-03-04 12:29:21] Production.INFO: ProcessCDR(1,14605808,1,1,2) [2025-03-04 12:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605808', 'tblTempUsageDetail_20' ) start [2025-03-04 12:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605808', 'tblTempUsageDetail_20' ) end [2025-03-04 12:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:29:26] Production.INFO: ==11532== Releasing lock... [2025-03-04 12:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:29:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-04 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:30:06 [end_date_ymd] => 2025-03-04 12:30:06 [RateCDR] => 1 ) [2025-03-04 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-04 09:30:06' and `end` < '2025-03-04 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-04 12:30:19] Production.INFO: count ==5462 [2025-03-04 12:30:22] Production.ERROR: pbx CDR StartTime 2025-03-04 09:30:06 - End Time 2025-03-04 12:30:06 [2025-03-04 12:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605814', 'tblTempUsageDetail_20' ) start [2025-03-04 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605814', 'tblTempUsageDetail_20' ) end [2025-03-04 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605814', 'tblTempVendorCDR_20' ) start [2025-03-04 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605814', 'tblTempVendorCDR_20' ) end [2025-03-04 12:30:22] Production.INFO: ProcessCDR(1,14605814,1,1,2) [2025-03-04 12:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605814', 'tblTempUsageDetail_20' ) start [2025-03-04 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605814', 'tblTempUsageDetail_20' ) end [2025-03-04 12:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:30:27] Production.INFO: ==11606== Releasing lock... [2025-03-04 12:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:30:27] Production.INFO: 69 MB #Memory Used# [2025-03-04 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:31:05 [end_date_ymd] => 2025-03-04 12:31:05 [RateCDR] => 1 ) [2025-03-04 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-04 09:31:05' and `end` < '2025-03-04 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-04 12:31:19] Production.INFO: count ==5431 [2025-03-04 12:31:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:31:05 - End Time 2025-03-04 12:31:05 [2025-03-04 12:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605819', 'tblTempUsageDetail_20' ) start [2025-03-04 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605819', 'tblTempUsageDetail_20' ) end [2025-03-04 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605819', 'tblTempVendorCDR_20' ) start [2025-03-04 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605819', 'tblTempVendorCDR_20' ) end [2025-03-04 12:31:22] Production.INFO: ProcessCDR(1,14605819,1,1,2) [2025-03-04 12:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605819', 'tblTempUsageDetail_20' ) start [2025-03-04 12:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605819', 'tblTempUsageDetail_20' ) end [2025-03-04 12:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:31:27] Production.INFO: ==11683== Releasing lock... [2025-03-04 12:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:31:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-04 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:32:05 [end_date_ymd] => 2025-03-04 12:32:05 [RateCDR] => 1 ) [2025-03-04 12:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 09:32:05' and `end` < '2025-03-04 12:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 12:32:18] Production.INFO: count ==5437 [2025-03-04 12:32:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:32:05 - End Time 2025-03-04 12:32:05 [2025-03-04 12:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605824', 'tblTempUsageDetail_20' ) start [2025-03-04 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605824', 'tblTempUsageDetail_20' ) end [2025-03-04 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605824', 'tblTempVendorCDR_20' ) start [2025-03-04 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605824', 'tblTempVendorCDR_20' ) end [2025-03-04 12:32:21] Production.INFO: ProcessCDR(1,14605824,1,1,2) [2025-03-04 12:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605824', 'tblTempUsageDetail_20' ) start [2025-03-04 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605824', 'tblTempUsageDetail_20' ) end [2025-03-04 12:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:32:26] Production.INFO: ==11756== Releasing lock... [2025-03-04 12:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:32:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-04 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:33:05 [end_date_ymd] => 2025-03-04 12:33:05 [RateCDR] => 1 ) [2025-03-04 12: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 09:33:05' and `end` < '2025-03-04 12: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-04 12:33:18] Production.INFO: count ==5419 [2025-03-04 12:33:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:33:05 - End Time 2025-03-04 12:33:05 [2025-03-04 12:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605829', 'tblTempUsageDetail_20' ) start [2025-03-04 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605829', 'tblTempUsageDetail_20' ) end [2025-03-04 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605829', 'tblTempVendorCDR_20' ) start [2025-03-04 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605829', 'tblTempVendorCDR_20' ) end [2025-03-04 12:33:21] Production.INFO: ProcessCDR(1,14605829,1,1,2) [2025-03-04 12:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605829', 'tblTempUsageDetail_20' ) start [2025-03-04 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605829', 'tblTempUsageDetail_20' ) end [2025-03-04 12:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:33:26] Production.INFO: ==11834== Releasing lock... [2025-03-04 12:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:33:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-04 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:34:05 [end_date_ymd] => 2025-03-04 12:34:05 [RateCDR] => 1 ) [2025-03-04 12: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 09:34:05' and `end` < '2025-03-04 12: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-04 12:34:19] Production.INFO: count ==5391 [2025-03-04 12:34:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:34:05 - End Time 2025-03-04 12:34:05 [2025-03-04 12:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605834', 'tblTempUsageDetail_20' ) start [2025-03-04 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605834', 'tblTempUsageDetail_20' ) end [2025-03-04 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605834', 'tblTempVendorCDR_20' ) start [2025-03-04 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605834', 'tblTempVendorCDR_20' ) end [2025-03-04 12:34:21] Production.INFO: ProcessCDR(1,14605834,1,1,2) [2025-03-04 12:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605834', 'tblTempUsageDetail_20' ) start [2025-03-04 12:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605834', 'tblTempUsageDetail_20' ) end [2025-03-04 12:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:34:27] Production.INFO: ==11908== Releasing lock... [2025-03-04 12:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:34:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-04 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:35:05 [end_date_ymd] => 2025-03-04 12:35:05 [RateCDR] => 1 ) [2025-03-04 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-04 09:35:05' and `end` < '2025-03-04 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-04 12:35:19] Production.INFO: count ==5379 [2025-03-04 12:35:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:35:05 - End Time 2025-03-04 12:35:05 [2025-03-04 12:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605839', 'tblTempUsageDetail_20' ) start [2025-03-04 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605839', 'tblTempUsageDetail_20' ) end [2025-03-04 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605839', 'tblTempVendorCDR_20' ) start [2025-03-04 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605839', 'tblTempVendorCDR_20' ) end [2025-03-04 12:35:21] Production.INFO: ProcessCDR(1,14605839,1,1,2) [2025-03-04 12:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605839', 'tblTempUsageDetail_20' ) start [2025-03-04 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605839', 'tblTempUsageDetail_20' ) end [2025-03-04 12:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:35:26] Production.INFO: ==11981== Releasing lock... [2025-03-04 12:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:35:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-04 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:36:05 [end_date_ymd] => 2025-03-04 12:36:05 [RateCDR] => 1 ) [2025-03-04 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-04 09:36:05' and `end` < '2025-03-04 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-04 12:36:18] Production.INFO: count ==5386 [2025-03-04 12:36:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:36:05 - End Time 2025-03-04 12:36:05 [2025-03-04 12:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605844', 'tblTempUsageDetail_20' ) start [2025-03-04 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605844', 'tblTempUsageDetail_20' ) end [2025-03-04 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605844', 'tblTempVendorCDR_20' ) start [2025-03-04 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605844', 'tblTempVendorCDR_20' ) end [2025-03-04 12:36:21] Production.INFO: ProcessCDR(1,14605844,1,1,2) [2025-03-04 12:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605844', 'tblTempUsageDetail_20' ) start [2025-03-04 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605844', 'tblTempUsageDetail_20' ) end [2025-03-04 12:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:36:26] Production.INFO: ==12051== Releasing lock... [2025-03-04 12:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:36:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-04 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:37:05 [end_date_ymd] => 2025-03-04 12:37:05 [RateCDR] => 1 ) [2025-03-04 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-04 09:37:05' and `end` < '2025-03-04 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-04 12:37:19] Production.INFO: count ==5381 [2025-03-04 12:37:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:37:05 - End Time 2025-03-04 12:37:05 [2025-03-04 12:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605849', 'tblTempUsageDetail_20' ) start [2025-03-04 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605849', 'tblTempUsageDetail_20' ) end [2025-03-04 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605849', 'tblTempVendorCDR_20' ) start [2025-03-04 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605849', 'tblTempVendorCDR_20' ) end [2025-03-04 12:37:21] Production.INFO: ProcessCDR(1,14605849,1,1,2) [2025-03-04 12:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605849', 'tblTempUsageDetail_20' ) start [2025-03-04 12:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605849', 'tblTempUsageDetail_20' ) end [2025-03-04 12:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:37:26] Production.INFO: ==12126== Releasing lock... [2025-03-04 12:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:37:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-04 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:38:05 [end_date_ymd] => 2025-03-04 12:38:05 [RateCDR] => 1 ) [2025-03-04 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-04 09:38:05' and `end` < '2025-03-04 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-04 12:38:19] Production.INFO: count ==5405 [2025-03-04 12:38:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:38:05 - End Time 2025-03-04 12:38:05 [2025-03-04 12:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605854', 'tblTempUsageDetail_20' ) start [2025-03-04 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605854', 'tblTempUsageDetail_20' ) end [2025-03-04 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605854', 'tblTempVendorCDR_20' ) start [2025-03-04 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605854', 'tblTempVendorCDR_20' ) end [2025-03-04 12:38:21] Production.INFO: ProcessCDR(1,14605854,1,1,2) [2025-03-04 12:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605854', 'tblTempUsageDetail_20' ) start [2025-03-04 12:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605854', 'tblTempUsageDetail_20' ) end [2025-03-04 12:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:38:26] Production.INFO: ==12197== Releasing lock... [2025-03-04 12:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:38:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-04 12:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:39:06 [end_date_ymd] => 2025-03-04 12:39:06 [RateCDR] => 1 ) [2025-03-04 12: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 09:39:06' and `end` < '2025-03-04 12: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-04 12:39:19] Production.INFO: count ==5407 [2025-03-04 12:39:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:39:06 - End Time 2025-03-04 12:39:06 [2025-03-04 12:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605859', 'tblTempUsageDetail_20' ) start [2025-03-04 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605859', 'tblTempUsageDetail_20' ) end [2025-03-04 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605859', 'tblTempVendorCDR_20' ) start [2025-03-04 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605859', 'tblTempVendorCDR_20' ) end [2025-03-04 12:39:21] Production.INFO: ProcessCDR(1,14605859,1,1,2) [2025-03-04 12:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605859', 'tblTempUsageDetail_20' ) start [2025-03-04 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605859', 'tblTempUsageDetail_20' ) end [2025-03-04 12:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:39:27] Production.INFO: ==12272== Releasing lock... [2025-03-04 12:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:39:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-04 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:40:06 [end_date_ymd] => 2025-03-04 12:40:06 [RateCDR] => 1 ) [2025-03-04 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-04 09:40:06' and `end` < '2025-03-04 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-04 12:40:19] Production.INFO: count ==5405 [2025-03-04 12:40:22] Production.ERROR: pbx CDR StartTime 2025-03-04 09:40:06 - End Time 2025-03-04 12:40:06 [2025-03-04 12:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605865', 'tblTempUsageDetail_20' ) start [2025-03-04 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605865', 'tblTempUsageDetail_20' ) end [2025-03-04 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605865', 'tblTempVendorCDR_20' ) start [2025-03-04 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605865', 'tblTempVendorCDR_20' ) end [2025-03-04 12:40:22] Production.INFO: ProcessCDR(1,14605865,1,1,2) [2025-03-04 12:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605865', 'tblTempUsageDetail_20' ) start [2025-03-04 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605865', 'tblTempUsageDetail_20' ) end [2025-03-04 12:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:40:27] Production.INFO: ==12345== Releasing lock... [2025-03-04 12:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:40:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-04 12:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:41:06 [end_date_ymd] => 2025-03-04 12:41:06 [RateCDR] => 1 ) [2025-03-04 12: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 09:41:06' and `end` < '2025-03-04 12: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-04 12:41:19] Production.INFO: count ==5396 [2025-03-04 12:41:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:41:06 - End Time 2025-03-04 12:41:06 [2025-03-04 12:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605870', 'tblTempUsageDetail_20' ) start [2025-03-04 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605870', 'tblTempUsageDetail_20' ) end [2025-03-04 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605870', 'tblTempVendorCDR_20' ) start [2025-03-04 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605870', 'tblTempVendorCDR_20' ) end [2025-03-04 12:41:22] Production.INFO: ProcessCDR(1,14605870,1,1,2) [2025-03-04 12:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605870', 'tblTempUsageDetail_20' ) start [2025-03-04 12:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605870', 'tblTempUsageDetail_20' ) end [2025-03-04 12:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:41:27] Production.INFO: ==12460== Releasing lock... [2025-03-04 12:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:41:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-04 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:42:05 [end_date_ymd] => 2025-03-04 12:42:05 [RateCDR] => 1 ) [2025-03-04 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-04 09:42:05' and `end` < '2025-03-04 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-04 12:42:18] Production.INFO: count ==5399 [2025-03-04 12:42:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:42:05 - End Time 2025-03-04 12:42:05 [2025-03-04 12:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605875', 'tblTempUsageDetail_20' ) start [2025-03-04 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605875', 'tblTempUsageDetail_20' ) end [2025-03-04 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605875', 'tblTempVendorCDR_20' ) start [2025-03-04 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605875', 'tblTempVendorCDR_20' ) end [2025-03-04 12:42:21] Production.INFO: ProcessCDR(1,14605875,1,1,2) [2025-03-04 12:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605875', 'tblTempUsageDetail_20' ) start [2025-03-04 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605875', 'tblTempUsageDetail_20' ) end [2025-03-04 12:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:42:26] Production.INFO: ==12533== Releasing lock... [2025-03-04 12:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:42:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-04 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:43:05 [end_date_ymd] => 2025-03-04 12:43:05 [RateCDR] => 1 ) [2025-03-04 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-04 09:43:05' and `end` < '2025-03-04 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-04 12:43:18] Production.INFO: count ==5399 [2025-03-04 12:43:20] Production.ERROR: pbx CDR StartTime 2025-03-04 09:43:05 - End Time 2025-03-04 12:43:05 [2025-03-04 12:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605880', 'tblTempUsageDetail_20' ) start [2025-03-04 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605880', 'tblTempUsageDetail_20' ) end [2025-03-04 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605880', 'tblTempVendorCDR_20' ) start [2025-03-04 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605880', 'tblTempVendorCDR_20' ) end [2025-03-04 12:43:21] Production.INFO: ProcessCDR(1,14605880,1,1,2) [2025-03-04 12:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605880', 'tblTempUsageDetail_20' ) start [2025-03-04 12:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605880', 'tblTempUsageDetail_20' ) end [2025-03-04 12:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:43:25] Production.INFO: ==12604== Releasing lock... [2025-03-04 12:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:43:25] Production.INFO: 68.5 MB #Memory Used# [2025-03-04 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:44:05 [end_date_ymd] => 2025-03-04 12:44:05 [RateCDR] => 1 ) [2025-03-04 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-04 09:44:05' and `end` < '2025-03-04 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-04 12:44:18] Production.INFO: count ==5376 [2025-03-04 12:44:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:44:05 - End Time 2025-03-04 12:44:05 [2025-03-04 12:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605885', 'tblTempUsageDetail_20' ) start [2025-03-04 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605885', 'tblTempUsageDetail_20' ) end [2025-03-04 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605885', 'tblTempVendorCDR_20' ) start [2025-03-04 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605885', 'tblTempVendorCDR_20' ) end [2025-03-04 12:44:21] Production.INFO: ProcessCDR(1,14605885,1,1,2) [2025-03-04 12:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605885', 'tblTempUsageDetail_20' ) start [2025-03-04 12:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605885', 'tblTempUsageDetail_20' ) end [2025-03-04 12:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:44:26] Production.INFO: ==12674== Releasing lock... [2025-03-04 12:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:44:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-04 12:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:45:06 [end_date_ymd] => 2025-03-04 12:45:06 [RateCDR] => 1 ) [2025-03-04 12: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 09:45:06' and `end` < '2025-03-04 12: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-04 12:45:19] Production.INFO: count ==5379 [2025-03-04 12:45:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:45:06 - End Time 2025-03-04 12:45:06 [2025-03-04 12:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605890', 'tblTempUsageDetail_20' ) start [2025-03-04 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605890', 'tblTempUsageDetail_20' ) end [2025-03-04 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605890', 'tblTempVendorCDR_20' ) start [2025-03-04 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605890', 'tblTempVendorCDR_20' ) end [2025-03-04 12:45:21] Production.INFO: ProcessCDR(1,14605890,1,1,2) [2025-03-04 12:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605890', 'tblTempUsageDetail_20' ) start [2025-03-04 12:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605890', 'tblTempUsageDetail_20' ) end [2025-03-04 12:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:45:27] Production.INFO: ==12745== Releasing lock... [2025-03-04 12:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:45:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-04 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:46:05 [end_date_ymd] => 2025-03-04 12:46:05 [RateCDR] => 1 ) [2025-03-04 12:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 09:46:05' and `end` < '2025-03-04 12:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 12:46:18] Production.INFO: count ==5375 [2025-03-04 12:46:20] Production.ERROR: pbx CDR StartTime 2025-03-04 09:46:05 - End Time 2025-03-04 12:46:05 [2025-03-04 12:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605895', 'tblTempUsageDetail_20' ) start [2025-03-04 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605895', 'tblTempUsageDetail_20' ) end [2025-03-04 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605895', 'tblTempVendorCDR_20' ) start [2025-03-04 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605895', 'tblTempVendorCDR_20' ) end [2025-03-04 12:46:21] Production.INFO: ProcessCDR(1,14605895,1,1,2) [2025-03-04 12:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605895', 'tblTempUsageDetail_20' ) start [2025-03-04 12:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605895', 'tblTempUsageDetail_20' ) end [2025-03-04 12:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:46:26] Production.INFO: ==12814== Releasing lock... [2025-03-04 12:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:46:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-04 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:47:05 [end_date_ymd] => 2025-03-04 12:47:05 [RateCDR] => 1 ) [2025-03-04 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-04 09:47:05' and `end` < '2025-03-04 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-04 12:47:18] Production.INFO: count ==5366 [2025-03-04 12:47:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:47:05 - End Time 2025-03-04 12:47:05 [2025-03-04 12:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605900', 'tblTempUsageDetail_20' ) start [2025-03-04 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605900', 'tblTempUsageDetail_20' ) end [2025-03-04 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605900', 'tblTempVendorCDR_20' ) start [2025-03-04 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605900', 'tblTempVendorCDR_20' ) end [2025-03-04 12:47:21] Production.INFO: ProcessCDR(1,14605900,1,1,2) [2025-03-04 12:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605900', 'tblTempUsageDetail_20' ) start [2025-03-04 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605900', 'tblTempUsageDetail_20' ) end [2025-03-04 12:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:47:27] Production.INFO: ==12884== Releasing lock... [2025-03-04 12:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:47:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-04 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:48:05 [end_date_ymd] => 2025-03-04 12:48:05 [RateCDR] => 1 ) [2025-03-04 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 09:48:05' and `end` < '2025-03-04 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 12:48:18] Production.INFO: count ==5377 [2025-03-04 12:48:20] Production.ERROR: pbx CDR StartTime 2025-03-04 09:48:05 - End Time 2025-03-04 12:48:05 [2025-03-04 12:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605905', 'tblTempUsageDetail_20' ) start [2025-03-04 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605905', 'tblTempUsageDetail_20' ) end [2025-03-04 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605905', 'tblTempVendorCDR_20' ) start [2025-03-04 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605905', 'tblTempVendorCDR_20' ) end [2025-03-04 12:48:21] Production.INFO: ProcessCDR(1,14605905,1,1,2) [2025-03-04 12:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605905', 'tblTempUsageDetail_20' ) start [2025-03-04 12:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605905', 'tblTempUsageDetail_20' ) end [2025-03-04 12:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:48:26] Production.INFO: ==12958== Releasing lock... [2025-03-04 12:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:48:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-04 12:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:49:06 [end_date_ymd] => 2025-03-04 12:49:06 [RateCDR] => 1 ) [2025-03-04 12: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-04 09:49:06' and `end` < '2025-03-04 12: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-04 12:49:19] Production.INFO: count ==5342 [2025-03-04 12:49:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:49:06 - End Time 2025-03-04 12:49:06 [2025-03-04 12:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605910', 'tblTempUsageDetail_20' ) start [2025-03-04 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605910', 'tblTempUsageDetail_20' ) end [2025-03-04 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605910', 'tblTempVendorCDR_20' ) start [2025-03-04 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605910', 'tblTempVendorCDR_20' ) end [2025-03-04 12:49:21] Production.INFO: ProcessCDR(1,14605910,1,1,2) [2025-03-04 12:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605910', 'tblTempUsageDetail_20' ) start [2025-03-04 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605910', 'tblTempUsageDetail_20' ) end [2025-03-04 12:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:49:26] Production.INFO: ==13032== Releasing lock... [2025-03-04 12:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:49:26] Production.INFO: 68 MB #Memory Used# [2025-03-04 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:50:06 [end_date_ymd] => 2025-03-04 12:50:06 [RateCDR] => 1 ) [2025-03-04 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-04 09:50:06' and `end` < '2025-03-04 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-04 12:50:19] Production.INFO: count ==5325 [2025-03-04 12:50:22] Production.ERROR: pbx CDR StartTime 2025-03-04 09:50:06 - End Time 2025-03-04 12:50:06 [2025-03-04 12:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605915', 'tblTempUsageDetail_20' ) start [2025-03-04 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605915', 'tblTempUsageDetail_20' ) end [2025-03-04 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605915', 'tblTempVendorCDR_20' ) start [2025-03-04 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605915', 'tblTempVendorCDR_20' ) end [2025-03-04 12:50:22] Production.INFO: ProcessCDR(1,14605915,1,1,2) [2025-03-04 12:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605915', 'tblTempUsageDetail_20' ) start [2025-03-04 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605915', 'tblTempUsageDetail_20' ) end [2025-03-04 12:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:50:27] Production.INFO: ==13105== Releasing lock... [2025-03-04 12:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:50:27] Production.INFO: 68 MB #Memory Used# [2025-03-04 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:51:05 [end_date_ymd] => 2025-03-04 12:51:05 [RateCDR] => 1 ) [2025-03-04 12:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 09:51:05' and `end` < '2025-03-04 12:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 12:51:18] Production.INFO: count ==5266 [2025-03-04 12:51:20] Production.ERROR: pbx CDR StartTime 2025-03-04 09:51:05 - End Time 2025-03-04 12:51:05 [2025-03-04 12:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605921', 'tblTempUsageDetail_20' ) start [2025-03-04 12:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605921', 'tblTempUsageDetail_20' ) end [2025-03-04 12:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605921', 'tblTempVendorCDR_20' ) start [2025-03-04 12:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605921', 'tblTempVendorCDR_20' ) end [2025-03-04 12:51:20] Production.INFO: ProcessCDR(1,14605921,1,1,2) [2025-03-04 12:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605921', 'tblTempUsageDetail_20' ) start [2025-03-04 12:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605921', 'tblTempUsageDetail_20' ) end [2025-03-04 12:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:51:25] Production.INFO: ==13178== Releasing lock... [2025-03-04 12:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:51:25] Production.INFO: 67.5 MB #Memory Used# [2025-03-04 12:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:52:06 [end_date_ymd] => 2025-03-04 12:52:06 [RateCDR] => 1 ) [2025-03-04 12: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 09:52:06' and `end` < '2025-03-04 12: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-04 12:52:19] Production.INFO: count ==5239 [2025-03-04 12:52:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:52:06 - End Time 2025-03-04 12:52:06 [2025-03-04 12:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605926', 'tblTempUsageDetail_20' ) start [2025-03-04 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605926', 'tblTempUsageDetail_20' ) end [2025-03-04 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605926', 'tblTempVendorCDR_20' ) start [2025-03-04 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605926', 'tblTempVendorCDR_20' ) end [2025-03-04 12:52:21] Production.INFO: ProcessCDR(1,14605926,1,1,2) [2025-03-04 12:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605926', 'tblTempUsageDetail_20' ) start [2025-03-04 12:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605926', 'tblTempUsageDetail_20' ) end [2025-03-04 12:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:52:26] Production.INFO: ==13255== Releasing lock... [2025-03-04 12:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:52:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-04 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:53:05 [end_date_ymd] => 2025-03-04 12:53:05 [RateCDR] => 1 ) [2025-03-04 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-04 09:53:05' and `end` < '2025-03-04 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-04 12:53:19] Production.INFO: count ==5234 [2025-03-04 12:53:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:53:05 - End Time 2025-03-04 12:53:05 [2025-03-04 12:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605931', 'tblTempUsageDetail_20' ) start [2025-03-04 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605931', 'tblTempUsageDetail_20' ) end [2025-03-04 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605931', 'tblTempVendorCDR_20' ) start [2025-03-04 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605931', 'tblTempVendorCDR_20' ) end [2025-03-04 12:53:21] Production.INFO: ProcessCDR(1,14605931,1,1,2) [2025-03-04 12:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605931', 'tblTempUsageDetail_20' ) start [2025-03-04 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605931', 'tblTempUsageDetail_20' ) end [2025-03-04 12:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:53:26] Production.INFO: ==13327== Releasing lock... [2025-03-04 12:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:53:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-04 12:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:54:06 [end_date_ymd] => 2025-03-04 12:54:06 [RateCDR] => 1 ) [2025-03-04 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-04 09:54:06' and `end` < '2025-03-04 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-04 12:54:21] Production.INFO: count ==5247 [2025-03-04 12:54:23] Production.ERROR: pbx CDR StartTime 2025-03-04 09:54:06 - End Time 2025-03-04 12:54:06 [2025-03-04 12:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605936', 'tblTempUsageDetail_20' ) start [2025-03-04 12:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605936', 'tblTempUsageDetail_20' ) end [2025-03-04 12:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605936', 'tblTempVendorCDR_20' ) start [2025-03-04 12:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605936', 'tblTempVendorCDR_20' ) end [2025-03-04 12:54:23] Production.INFO: ProcessCDR(1,14605936,1,1,2) [2025-03-04 12:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605936', 'tblTempUsageDetail_20' ) start [2025-03-04 12:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605936', 'tblTempUsageDetail_20' ) end [2025-03-04 12:54:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:54:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:54:28] Production.INFO: ==13396== Releasing lock... [2025-03-04 12:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:54:28] Production.INFO: 67.25 MB #Memory Used# [2025-03-04 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:55:05 [end_date_ymd] => 2025-03-04 12:55:05 [RateCDR] => 1 ) [2025-03-04 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-04 09:55:05' and `end` < '2025-03-04 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-04 12:55:19] Production.INFO: count ==5226 [2025-03-04 12:55:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:55:05 - End Time 2025-03-04 12:55:05 [2025-03-04 12:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605941', 'tblTempUsageDetail_20' ) start [2025-03-04 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605941', 'tblTempUsageDetail_20' ) end [2025-03-04 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605941', 'tblTempVendorCDR_20' ) start [2025-03-04 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605941', 'tblTempVendorCDR_20' ) end [2025-03-04 12:55:21] Production.INFO: ProcessCDR(1,14605941,1,1,2) [2025-03-04 12:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605941', 'tblTempUsageDetail_20' ) start [2025-03-04 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605941', 'tblTempUsageDetail_20' ) end [2025-03-04 12:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:55:27] Production.INFO: ==13466== Releasing lock... [2025-03-04 12:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:55:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-04 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:56:05 [end_date_ymd] => 2025-03-04 12:56:05 [RateCDR] => 1 ) [2025-03-04 12:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 09:56:05' and `end` < '2025-03-04 12:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 12:56:19] Production.INFO: count ==5253 [2025-03-04 12:56:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:56:05 - End Time 2025-03-04 12:56:05 [2025-03-04 12:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605946', 'tblTempUsageDetail_20' ) start [2025-03-04 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605946', 'tblTempUsageDetail_20' ) end [2025-03-04 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605946', 'tblTempVendorCDR_20' ) start [2025-03-04 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605946', 'tblTempVendorCDR_20' ) end [2025-03-04 12:56:21] Production.INFO: ProcessCDR(1,14605946,1,1,2) [2025-03-04 12:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605946', 'tblTempUsageDetail_20' ) start [2025-03-04 12:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605946', 'tblTempUsageDetail_20' ) end [2025-03-04 12:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:56:26] Production.INFO: ==13538== Releasing lock... [2025-03-04 12:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:56:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-04 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:57:05 [end_date_ymd] => 2025-03-04 12:57:05 [RateCDR] => 1 ) [2025-03-04 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-04 09:57:05' and `end` < '2025-03-04 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-04 12:57:18] Production.INFO: count ==5298 [2025-03-04 12:57:20] Production.ERROR: pbx CDR StartTime 2025-03-04 09:57:05 - End Time 2025-03-04 12:57:05 [2025-03-04 12:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605951', 'tblTempUsageDetail_20' ) start [2025-03-04 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605951', 'tblTempUsageDetail_20' ) end [2025-03-04 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605951', 'tblTempVendorCDR_20' ) start [2025-03-04 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605951', 'tblTempVendorCDR_20' ) end [2025-03-04 12:57:21] Production.INFO: ProcessCDR(1,14605951,1,1,2) [2025-03-04 12:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605951', 'tblTempUsageDetail_20' ) start [2025-03-04 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605951', 'tblTempUsageDetail_20' ) end [2025-03-04 12:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:57:26] Production.INFO: ==13647== Releasing lock... [2025-03-04 12:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:57:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-04 12:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:58:06 [end_date_ymd] => 2025-03-04 12:58:06 [RateCDR] => 1 ) [2025-03-04 12: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 09:58:06' and `end` < '2025-03-04 12: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-04 12:58:19] Production.INFO: count ==5334 [2025-03-04 12:58:22] Production.ERROR: pbx CDR StartTime 2025-03-04 09:58:06 - End Time 2025-03-04 12:58:06 [2025-03-04 12:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605956', 'tblTempUsageDetail_20' ) start [2025-03-04 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605956', 'tblTempUsageDetail_20' ) end [2025-03-04 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605956', 'tblTempVendorCDR_20' ) start [2025-03-04 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605956', 'tblTempVendorCDR_20' ) end [2025-03-04 12:58:22] Production.INFO: ProcessCDR(1,14605956,1,1,2) [2025-03-04 12:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605956', 'tblTempUsageDetail_20' ) start [2025-03-04 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605956', 'tblTempUsageDetail_20' ) end [2025-03-04 12:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:58:27] Production.INFO: ==13717== Releasing lock... [2025-03-04 12:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:58:27] Production.INFO: 68 MB #Memory Used# [2025-03-04 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 09:59:05 [end_date_ymd] => 2025-03-04 12:59:05 [RateCDR] => 1 ) [2025-03-04 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-04 09:59:05' and `end` < '2025-03-04 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-04 12:59:18] Production.INFO: count ==5335 [2025-03-04 12:59:21] Production.ERROR: pbx CDR StartTime 2025-03-04 09:59:05 - End Time 2025-03-04 12:59:05 [2025-03-04 12:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605961', 'tblTempUsageDetail_20' ) start [2025-03-04 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605961', 'tblTempUsageDetail_20' ) end [2025-03-04 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605961', 'tblTempVendorCDR_20' ) start [2025-03-04 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605961', 'tblTempVendorCDR_20' ) end [2025-03-04 12:59:21] Production.INFO: ProcessCDR(1,14605961,1,1,2) [2025-03-04 12:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 12:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605961', 'tblTempUsageDetail_20' ) start [2025-03-04 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605961', 'tblTempUsageDetail_20' ) end [2025-03-04 12:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 12:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 12:59:26] Production.INFO: ==13787== Releasing lock... [2025-03-04 12:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 12:59:26] Production.INFO: 68 MB #Memory Used# [2025-03-04 13:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:00:07 [end_date_ymd] => 2025-03-04 13:00:07 [RateCDR] => 1 ) [2025-03-04 13: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-04 10:00:07' and `end` < '2025-03-04 13: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-04 13:00:20] Production.INFO: count ==5355 [2025-03-04 13:00:23] Production.ERROR: pbx CDR StartTime 2025-03-04 10:00:07 - End Time 2025-03-04 13:00:07 [2025-03-04 13:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605967', 'tblTempUsageDetail_20' ) start [2025-03-04 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605967', 'tblTempUsageDetail_20' ) end [2025-03-04 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605967', 'tblTempVendorCDR_20' ) start [2025-03-04 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605967', 'tblTempVendorCDR_20' ) end [2025-03-04 13:00:23] Production.INFO: ProcessCDR(1,14605967,1,1,2) [2025-03-04 13:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605967', 'tblTempUsageDetail_20' ) start [2025-03-04 13:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605967', 'tblTempUsageDetail_20' ) end [2025-03-04 13:00:29] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:00:29] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:00:29] Production.INFO: ==13860== Releasing lock... [2025-03-04 13:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:00:29] Production.INFO: 68 MB #Memory Used# [2025-03-04 13:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:01:06 [end_date_ymd] => 2025-03-04 13:01:06 [RateCDR] => 1 ) [2025-03-04 13: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 10:01:06' and `end` < '2025-03-04 13: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-04 13:01:20] Production.INFO: count ==5348 [2025-03-04 13:01:23] Production.ERROR: pbx CDR StartTime 2025-03-04 10:01:06 - End Time 2025-03-04 13:01:06 [2025-03-04 13:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605972', 'tblTempUsageDetail_20' ) start [2025-03-04 13:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605972', 'tblTempUsageDetail_20' ) end [2025-03-04 13:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605972', 'tblTempVendorCDR_20' ) start [2025-03-04 13:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605972', 'tblTempVendorCDR_20' ) end [2025-03-04 13:01:23] Production.INFO: ProcessCDR(1,14605972,1,1,2) [2025-03-04 13:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605972', 'tblTempUsageDetail_20' ) start [2025-03-04 13:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605972', 'tblTempUsageDetail_20' ) end [2025-03-04 13:01:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:01:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:01:28] Production.INFO: ==13948== Releasing lock... [2025-03-04 13:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:01:28] Production.INFO: 68 MB #Memory Used# [2025-03-04 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:02:06 [end_date_ymd] => 2025-03-04 13:02:06 [RateCDR] => 1 ) [2025-03-04 13: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-04 10:02:06' and `end` < '2025-03-04 13: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-04 13:02:20] Production.INFO: count ==5343 [2025-03-04 13:02:23] Production.ERROR: pbx CDR StartTime 2025-03-04 10:02:06 - End Time 2025-03-04 13:02:06 [2025-03-04 13:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605977', 'tblTempUsageDetail_20' ) start [2025-03-04 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605977', 'tblTempUsageDetail_20' ) end [2025-03-04 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605977', 'tblTempVendorCDR_20' ) start [2025-03-04 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605977', 'tblTempVendorCDR_20' ) end [2025-03-04 13:02:23] Production.INFO: ProcessCDR(1,14605977,1,1,2) [2025-03-04 13:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605977', 'tblTempUsageDetail_20' ) start [2025-03-04 13:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605977', 'tblTempUsageDetail_20' ) end [2025-03-04 13:02:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:02:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:02:28] Production.INFO: ==14019== Releasing lock... [2025-03-04 13:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:02:28] Production.INFO: 68 MB #Memory Used# [2025-03-04 13:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:03:06 [end_date_ymd] => 2025-03-04 13:03:06 [RateCDR] => 1 ) [2025-03-04 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-04 10:03:06' and `end` < '2025-03-04 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-04 13:03:19] Production.INFO: count ==5365 [2025-03-04 13:03:22] Production.ERROR: pbx CDR StartTime 2025-03-04 10:03:06 - End Time 2025-03-04 13:03:06 [2025-03-04 13:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605982', 'tblTempUsageDetail_20' ) start [2025-03-04 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605982', 'tblTempUsageDetail_20' ) end [2025-03-04 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605982', 'tblTempVendorCDR_20' ) start [2025-03-04 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605982', 'tblTempVendorCDR_20' ) end [2025-03-04 13:03:22] Production.INFO: ProcessCDR(1,14605982,1,1,2) [2025-03-04 13:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605982', 'tblTempUsageDetail_20' ) start [2025-03-04 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605982', 'tblTempUsageDetail_20' ) end [2025-03-04 13:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:03:27] Production.INFO: ==14090== Releasing lock... [2025-03-04 13:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:03:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-04 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:04:06 [end_date_ymd] => 2025-03-04 13:04:06 [RateCDR] => 1 ) [2025-03-04 13: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 10:04:06' and `end` < '2025-03-04 13: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-04 13:04:19] Production.INFO: count ==5368 [2025-03-04 13:04:22] Production.ERROR: pbx CDR StartTime 2025-03-04 10:04:06 - End Time 2025-03-04 13:04:06 [2025-03-04 13:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605987', 'tblTempUsageDetail_20' ) start [2025-03-04 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605987', 'tblTempUsageDetail_20' ) end [2025-03-04 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605987', 'tblTempVendorCDR_20' ) start [2025-03-04 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605987', 'tblTempVendorCDR_20' ) end [2025-03-04 13:04:22] Production.INFO: ProcessCDR(1,14605987,1,1,2) [2025-03-04 13:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605987', 'tblTempUsageDetail_20' ) start [2025-03-04 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605987', 'tblTempUsageDetail_20' ) end [2025-03-04 13:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:04:27] Production.INFO: ==14161== Releasing lock... [2025-03-04 13:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:04:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-04 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:05:05 [end_date_ymd] => 2025-03-04 13:05:05 [RateCDR] => 1 ) [2025-03-04 13:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 10:05:05' and `end` < '2025-03-04 13:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 13:05:18] Production.INFO: count ==5375 [2025-03-04 13:05:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:05:05 - End Time 2025-03-04 13:05:05 [2025-03-04 13:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605992', 'tblTempUsageDetail_20' ) start [2025-03-04 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605992', 'tblTempUsageDetail_20' ) end [2025-03-04 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605992', 'tblTempVendorCDR_20' ) start [2025-03-04 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605992', 'tblTempVendorCDR_20' ) end [2025-03-04 13:05:21] Production.INFO: ProcessCDR(1,14605992,1,1,2) [2025-03-04 13:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605992', 'tblTempUsageDetail_20' ) start [2025-03-04 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605992', 'tblTempUsageDetail_20' ) end [2025-03-04 13:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:05:26] Production.INFO: ==14232== Releasing lock... [2025-03-04 13:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:05:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-04 13:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:06:06 [end_date_ymd] => 2025-03-04 13:06:06 [RateCDR] => 1 ) [2025-03-04 13: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 10:06:06' and `end` < '2025-03-04 13: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-04 13:06:19] Production.INFO: count ==5370 [2025-03-04 13:06:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:06:06 - End Time 2025-03-04 13:06:06 [2025-03-04 13:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605997', 'tblTempUsageDetail_20' ) start [2025-03-04 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14605997', 'tblTempUsageDetail_20' ) end [2025-03-04 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605997', 'tblTempVendorCDR_20' ) start [2025-03-04 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14605997', 'tblTempVendorCDR_20' ) end [2025-03-04 13:06:22] Production.INFO: ProcessCDR(1,14605997,1,1,2) [2025-03-04 13:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14605997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14605997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14605997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14605997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605997', 'tblTempUsageDetail_20' ) start [2025-03-04 13:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14605997', 'tblTempUsageDetail_20' ) end [2025-03-04 13:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:06:27] Production.INFO: ==14304== Releasing lock... [2025-03-04 13:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:06:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-04 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:07:05 [end_date_ymd] => 2025-03-04 13:07:05 [RateCDR] => 1 ) [2025-03-04 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-04 10:07:05' and `end` < '2025-03-04 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-04 13:07:18] Production.INFO: count ==5369 [2025-03-04 13:07:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:07:05 - End Time 2025-03-04 13:07:05 [2025-03-04 13:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606002', 'tblTempUsageDetail_20' ) start [2025-03-04 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606002', 'tblTempUsageDetail_20' ) end [2025-03-04 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606002', 'tblTempVendorCDR_20' ) start [2025-03-04 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606002', 'tblTempVendorCDR_20' ) end [2025-03-04 13:07:21] Production.INFO: ProcessCDR(1,14606002,1,1,2) [2025-03-04 13:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606002', 'tblTempUsageDetail_20' ) start [2025-03-04 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606002', 'tblTempUsageDetail_20' ) end [2025-03-04 13:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:07:26] Production.INFO: ==14381== Releasing lock... [2025-03-04 13:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:07:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-04 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:08:05 [end_date_ymd] => 2025-03-04 13:08:05 [RateCDR] => 1 ) [2025-03-04 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-04 10:08:05' and `end` < '2025-03-04 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-04 13:08:19] Production.INFO: count ==5375 [2025-03-04 13:08:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:08:05 - End Time 2025-03-04 13:08:05 [2025-03-04 13:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606007', 'tblTempUsageDetail_20' ) start [2025-03-04 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606007', 'tblTempUsageDetail_20' ) end [2025-03-04 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606007', 'tblTempVendorCDR_20' ) start [2025-03-04 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606007', 'tblTempVendorCDR_20' ) end [2025-03-04 13:08:22] Production.INFO: ProcessCDR(1,14606007,1,1,2) [2025-03-04 13:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606007', 'tblTempUsageDetail_20' ) start [2025-03-04 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606007', 'tblTempUsageDetail_20' ) end [2025-03-04 13:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:08:27] Production.INFO: ==14451== Releasing lock... [2025-03-04 13:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:08:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-04 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:09:05 [end_date_ymd] => 2025-03-04 13:09:05 [RateCDR] => 1 ) [2025-03-04 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-04 10:09:05' and `end` < '2025-03-04 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-04 13:09:19] Production.INFO: count ==5379 [2025-03-04 13:09:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:09:05 - End Time 2025-03-04 13:09:05 [2025-03-04 13:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606012', 'tblTempUsageDetail_20' ) start [2025-03-04 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606012', 'tblTempUsageDetail_20' ) end [2025-03-04 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606012', 'tblTempVendorCDR_20' ) start [2025-03-04 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606012', 'tblTempVendorCDR_20' ) end [2025-03-04 13:09:21] Production.INFO: ProcessCDR(1,14606012,1,1,2) [2025-03-04 13:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606012', 'tblTempUsageDetail_20' ) start [2025-03-04 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606012', 'tblTempUsageDetail_20' ) end [2025-03-04 13:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:09:26] Production.INFO: ==14521== Releasing lock... [2025-03-04 13:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:09:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-04 13:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:10:07 [end_date_ymd] => 2025-03-04 13:10:07 [RateCDR] => 1 ) [2025-03-04 13: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-04 10:10:07' and `end` < '2025-03-04 13: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-04 13:10:20] Production.INFO: count ==5377 [2025-03-04 13:10:23] Production.ERROR: pbx CDR StartTime 2025-03-04 10:10:07 - End Time 2025-03-04 13:10:07 [2025-03-04 13:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606018', 'tblTempUsageDetail_20' ) start [2025-03-04 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606018', 'tblTempUsageDetail_20' ) end [2025-03-04 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606018', 'tblTempVendorCDR_20' ) start [2025-03-04 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606018', 'tblTempVendorCDR_20' ) end [2025-03-04 13:10:23] Production.INFO: ProcessCDR(1,14606018,1,1,2) [2025-03-04 13:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606018', 'tblTempUsageDetail_20' ) start [2025-03-04 13:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606018', 'tblTempUsageDetail_20' ) end [2025-03-04 13:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:10:28] Production.INFO: ==14597== Releasing lock... [2025-03-04 13:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:10:28] Production.INFO: 68.25 MB #Memory Used# [2025-03-04 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:11:05 [end_date_ymd] => 2025-03-04 13:11:05 [RateCDR] => 1 ) [2025-03-04 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-04 10:11:05' and `end` < '2025-03-04 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-04 13:11:18] Production.INFO: count ==5378 [2025-03-04 13:11:20] Production.ERROR: pbx CDR StartTime 2025-03-04 10:11:05 - End Time 2025-03-04 13:11:05 [2025-03-04 13:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606023', 'tblTempUsageDetail_20' ) start [2025-03-04 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606023', 'tblTempUsageDetail_20' ) end [2025-03-04 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606023', 'tblTempVendorCDR_20' ) start [2025-03-04 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606023', 'tblTempVendorCDR_20' ) end [2025-03-04 13:11:21] Production.INFO: ProcessCDR(1,14606023,1,1,2) [2025-03-04 13:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606023', 'tblTempUsageDetail_20' ) start [2025-03-04 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606023', 'tblTempUsageDetail_20' ) end [2025-03-04 13:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:11:26] Production.INFO: ==14671== Releasing lock... [2025-03-04 13:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:11:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-04 13:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:12:05 [end_date_ymd] => 2025-03-04 13:12:05 [RateCDR] => 1 ) [2025-03-04 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-04 10:12:05' and `end` < '2025-03-04 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 13:12:19] Production.INFO: count ==5383 [2025-03-04 13:12:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:12:05 - End Time 2025-03-04 13:12:05 [2025-03-04 13:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606028', 'tblTempUsageDetail_20' ) start [2025-03-04 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606028', 'tblTempUsageDetail_20' ) end [2025-03-04 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606028', 'tblTempVendorCDR_20' ) start [2025-03-04 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606028', 'tblTempVendorCDR_20' ) end [2025-03-04 13:12:21] Production.INFO: ProcessCDR(1,14606028,1,1,2) [2025-03-04 13:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606028', 'tblTempUsageDetail_20' ) start [2025-03-04 13:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606028', 'tblTempUsageDetail_20' ) end [2025-03-04 13:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:12:27] Production.INFO: ==14787== Releasing lock... [2025-03-04 13:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:12:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-04 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:13:05 [end_date_ymd] => 2025-03-04 13:13:05 [RateCDR] => 1 ) [2025-03-04 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-04 10:13:05' and `end` < '2025-03-04 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-04 13:13:19] Production.INFO: count ==5370 [2025-03-04 13:13:22] Production.ERROR: pbx CDR StartTime 2025-03-04 10:13:05 - End Time 2025-03-04 13:13:05 [2025-03-04 13:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606033', 'tblTempUsageDetail_20' ) start [2025-03-04 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606033', 'tblTempUsageDetail_20' ) end [2025-03-04 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606033', 'tblTempVendorCDR_20' ) start [2025-03-04 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606033', 'tblTempVendorCDR_20' ) end [2025-03-04 13:13:22] Production.INFO: ProcessCDR(1,14606033,1,1,2) [2025-03-04 13:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606033', 'tblTempUsageDetail_20' ) start [2025-03-04 13:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606033', 'tblTempUsageDetail_20' ) end [2025-03-04 13:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:13:27] Production.INFO: ==14857== Releasing lock... [2025-03-04 13:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:13:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-04 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:14:05 [end_date_ymd] => 2025-03-04 13:14:05 [RateCDR] => 1 ) [2025-03-04 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-04 10:14:05' and `end` < '2025-03-04 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-04 13:14:19] Production.INFO: count ==5374 [2025-03-04 13:14:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:14:05 - End Time 2025-03-04 13:14:05 [2025-03-04 13:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606038', 'tblTempUsageDetail_20' ) start [2025-03-04 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606038', 'tblTempUsageDetail_20' ) end [2025-03-04 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606038', 'tblTempVendorCDR_20' ) start [2025-03-04 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606038', 'tblTempVendorCDR_20' ) end [2025-03-04 13:14:21] Production.INFO: ProcessCDR(1,14606038,1,1,2) [2025-03-04 13:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606038', 'tblTempUsageDetail_20' ) start [2025-03-04 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606038', 'tblTempUsageDetail_20' ) end [2025-03-04 13:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:14:26] Production.INFO: ==14928== Releasing lock... [2025-03-04 13:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:14:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-04 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:15:05 [end_date_ymd] => 2025-03-04 13:15:05 [RateCDR] => 1 ) [2025-03-04 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-04 10:15:05' and `end` < '2025-03-04 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-04 13:15:18] Production.INFO: count ==5388 [2025-03-04 13:15:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:15:05 - End Time 2025-03-04 13:15:05 [2025-03-04 13:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606043', 'tblTempUsageDetail_20' ) start [2025-03-04 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606043', 'tblTempUsageDetail_20' ) end [2025-03-04 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606043', 'tblTempVendorCDR_20' ) start [2025-03-04 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606043', 'tblTempVendorCDR_20' ) end [2025-03-04 13:15:21] Production.INFO: ProcessCDR(1,14606043,1,1,2) [2025-03-04 13:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606043', 'tblTempUsageDetail_20' ) start [2025-03-04 13:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606043', 'tblTempUsageDetail_20' ) end [2025-03-04 13:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:15:27] Production.INFO: ==14998== Releasing lock... [2025-03-04 13:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:15:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-04 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:16:06 [end_date_ymd] => 2025-03-04 13:16:06 [RateCDR] => 1 ) [2025-03-04 13: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 10:16:06' and `end` < '2025-03-04 13: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-04 13:16:19] Production.INFO: count ==5394 [2025-03-04 13:16:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:16:06 - End Time 2025-03-04 13:16:06 [2025-03-04 13:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606048', 'tblTempUsageDetail_20' ) start [2025-03-04 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606048', 'tblTempUsageDetail_20' ) end [2025-03-04 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606048', 'tblTempVendorCDR_20' ) start [2025-03-04 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606048', 'tblTempVendorCDR_20' ) end [2025-03-04 13:16:22] Production.INFO: ProcessCDR(1,14606048,1,1,2) [2025-03-04 13:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606048', 'tblTempUsageDetail_20' ) start [2025-03-04 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606048', 'tblTempUsageDetail_20' ) end [2025-03-04 13:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:16:27] Production.INFO: ==15069== Releasing lock... [2025-03-04 13:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:16:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-04 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:17:05 [end_date_ymd] => 2025-03-04 13:17:05 [RateCDR] => 1 ) [2025-03-04 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-04 10:17:05' and `end` < '2025-03-04 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-04 13:17:19] Production.INFO: count ==5400 [2025-03-04 13:17:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:17:05 - End Time 2025-03-04 13:17:05 [2025-03-04 13:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606053', 'tblTempUsageDetail_20' ) start [2025-03-04 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606053', 'tblTempUsageDetail_20' ) end [2025-03-04 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606053', 'tblTempVendorCDR_20' ) start [2025-03-04 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606053', 'tblTempVendorCDR_20' ) end [2025-03-04 13:17:22] Production.INFO: ProcessCDR(1,14606053,1,1,2) [2025-03-04 13:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606053', 'tblTempUsageDetail_20' ) start [2025-03-04 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606053', 'tblTempUsageDetail_20' ) end [2025-03-04 13:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:17:27] Production.INFO: ==15139== Releasing lock... [2025-03-04 13:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:17:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-04 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:18:05 [end_date_ymd] => 2025-03-04 13:18:05 [RateCDR] => 1 ) [2025-03-04 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-04 10:18:05' and `end` < '2025-03-04 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-04 13:18:19] Production.INFO: count ==5406 [2025-03-04 13:18:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:18:05 - End Time 2025-03-04 13:18:05 [2025-03-04 13:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606058', 'tblTempUsageDetail_20' ) start [2025-03-04 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606058', 'tblTempUsageDetail_20' ) end [2025-03-04 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606058', 'tblTempVendorCDR_20' ) start [2025-03-04 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606058', 'tblTempVendorCDR_20' ) end [2025-03-04 13:18:21] Production.INFO: ProcessCDR(1,14606058,1,1,2) [2025-03-04 13:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606058', 'tblTempUsageDetail_20' ) start [2025-03-04 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606058', 'tblTempUsageDetail_20' ) end [2025-03-04 13:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:18:27] Production.INFO: ==15210== Releasing lock... [2025-03-04 13:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:18:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-04 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:19:05 [end_date_ymd] => 2025-03-04 13:19:05 [RateCDR] => 1 ) [2025-03-04 13:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 10:19:05' and `end` < '2025-03-04 13:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 13:19:18] Production.INFO: count ==5419 [2025-03-04 13:19:20] Production.ERROR: pbx CDR StartTime 2025-03-04 10:19:05 - End Time 2025-03-04 13:19:05 [2025-03-04 13:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606063', 'tblTempUsageDetail_20' ) start [2025-03-04 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606063', 'tblTempUsageDetail_20' ) end [2025-03-04 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606063', 'tblTempVendorCDR_20' ) start [2025-03-04 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606063', 'tblTempVendorCDR_20' ) end [2025-03-04 13:19:21] Production.INFO: ProcessCDR(1,14606063,1,1,2) [2025-03-04 13:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606063', 'tblTempUsageDetail_20' ) start [2025-03-04 13:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606063', 'tblTempUsageDetail_20' ) end [2025-03-04 13:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:19:26] Production.INFO: ==15282== Releasing lock... [2025-03-04 13:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:19:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-04 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:20:06 [end_date_ymd] => 2025-03-04 13:20:06 [RateCDR] => 1 ) [2025-03-04 13:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 10:20:06' and `end` < '2025-03-04 13:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 13:20:20] Production.INFO: count ==5437 [2025-03-04 13:20:22] Production.ERROR: pbx CDR StartTime 2025-03-04 10:20:06 - End Time 2025-03-04 13:20:06 [2025-03-04 13:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606069', 'tblTempUsageDetail_20' ) start [2025-03-04 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606069', 'tblTempUsageDetail_20' ) end [2025-03-04 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606069', 'tblTempVendorCDR_20' ) start [2025-03-04 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606069', 'tblTempVendorCDR_20' ) end [2025-03-04 13:20:22] Production.INFO: ProcessCDR(1,14606069,1,1,2) [2025-03-04 13:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606069', 'tblTempUsageDetail_20' ) start [2025-03-04 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606069', 'tblTempUsageDetail_20' ) end [2025-03-04 13:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:20:27] Production.INFO: ==15355== Releasing lock... [2025-03-04 13:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:20:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-04 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:21:05 [end_date_ymd] => 2025-03-04 13:21:05 [RateCDR] => 1 ) [2025-03-04 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-04 10:21:05' and `end` < '2025-03-04 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-04 13:21:18] Production.INFO: count ==5439 [2025-03-04 13:21:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:21:05 - End Time 2025-03-04 13:21:05 [2025-03-04 13:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606074', 'tblTempUsageDetail_20' ) start [2025-03-04 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606074', 'tblTempUsageDetail_20' ) end [2025-03-04 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606074', 'tblTempVendorCDR_20' ) start [2025-03-04 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606074', 'tblTempVendorCDR_20' ) end [2025-03-04 13:21:21] Production.INFO: ProcessCDR(1,14606074,1,1,2) [2025-03-04 13:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606074', 'tblTempUsageDetail_20' ) start [2025-03-04 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606074', 'tblTempUsageDetail_20' ) end [2025-03-04 13:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:21:26] Production.INFO: ==15429== Releasing lock... [2025-03-04 13:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:21:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-04 13:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:22:06 [end_date_ymd] => 2025-03-04 13:22:06 [RateCDR] => 1 ) [2025-03-04 13: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 10:22:06' and `end` < '2025-03-04 13: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-04 13:22:19] Production.INFO: count ==5443 [2025-03-04 13:22:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:22:06 - End Time 2025-03-04 13:22:06 [2025-03-04 13:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606079', 'tblTempUsageDetail_20' ) start [2025-03-04 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606079', 'tblTempUsageDetail_20' ) end [2025-03-04 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606079', 'tblTempVendorCDR_20' ) start [2025-03-04 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606079', 'tblTempVendorCDR_20' ) end [2025-03-04 13:22:21] Production.INFO: ProcessCDR(1,14606079,1,1,2) [2025-03-04 13:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606079', 'tblTempUsageDetail_20' ) start [2025-03-04 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606079', 'tblTempUsageDetail_20' ) end [2025-03-04 13:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:22:27] Production.INFO: ==15504== Releasing lock... [2025-03-04 13:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:22:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-04 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:23:05 [end_date_ymd] => 2025-03-04 13:23:05 [RateCDR] => 1 ) [2025-03-04 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-04 10:23:05' and `end` < '2025-03-04 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-04 13:23:18] Production.INFO: count ==5443 [2025-03-04 13:23:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:23:05 - End Time 2025-03-04 13:23:05 [2025-03-04 13:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606084', 'tblTempUsageDetail_20' ) start [2025-03-04 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606084', 'tblTempUsageDetail_20' ) end [2025-03-04 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606084', 'tblTempVendorCDR_20' ) start [2025-03-04 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606084', 'tblTempVendorCDR_20' ) end [2025-03-04 13:23:21] Production.INFO: ProcessCDR(1,14606084,1,1,2) [2025-03-04 13:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606084', 'tblTempUsageDetail_20' ) start [2025-03-04 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606084', 'tblTempUsageDetail_20' ) end [2025-03-04 13:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:23:26] Production.INFO: ==15575== Releasing lock... [2025-03-04 13:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:23:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-04 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:24:05 [end_date_ymd] => 2025-03-04 13:24:05 [RateCDR] => 1 ) [2025-03-04 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-04 10:24:05' and `end` < '2025-03-04 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-04 13:24:18] Production.INFO: count ==5438 [2025-03-04 13:24:20] Production.ERROR: pbx CDR StartTime 2025-03-04 10:24:05 - End Time 2025-03-04 13:24:05 [2025-03-04 13:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606089', 'tblTempUsageDetail_20' ) start [2025-03-04 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606089', 'tblTempUsageDetail_20' ) end [2025-03-04 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606089', 'tblTempVendorCDR_20' ) start [2025-03-04 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606089', 'tblTempVendorCDR_20' ) end [2025-03-04 13:24:21] Production.INFO: ProcessCDR(1,14606089,1,1,2) [2025-03-04 13:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606089', 'tblTempUsageDetail_20' ) start [2025-03-04 13:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606089', 'tblTempUsageDetail_20' ) end [2025-03-04 13:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:24:26] Production.INFO: ==15645== Releasing lock... [2025-03-04 13:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:24:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-04 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:25:05 [end_date_ymd] => 2025-03-04 13:25:05 [RateCDR] => 1 ) [2025-03-04 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 10:25:05' and `end` < '2025-03-04 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 13:25:18] Production.INFO: count ==5429 [2025-03-04 13:25:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:25:05 - End Time 2025-03-04 13:25:05 [2025-03-04 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606094', 'tblTempUsageDetail_20' ) start [2025-03-04 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606094', 'tblTempUsageDetail_20' ) end [2025-03-04 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606094', 'tblTempVendorCDR_20' ) start [2025-03-04 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606094', 'tblTempVendorCDR_20' ) end [2025-03-04 13:25:21] Production.INFO: ProcessCDR(1,14606094,1,1,2) [2025-03-04 13:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606094', 'tblTempUsageDetail_20' ) start [2025-03-04 13:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606094', 'tblTempUsageDetail_20' ) end [2025-03-04 13:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:25:26] Production.INFO: ==15717== Releasing lock... [2025-03-04 13:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:25:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-04 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:26:05 [end_date_ymd] => 2025-03-04 13:26:05 [RateCDR] => 1 ) [2025-03-04 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-04 10:26:05' and `end` < '2025-03-04 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-04 13:26:18] Production.INFO: count ==5427 [2025-03-04 13:26:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:26:05 - End Time 2025-03-04 13:26:05 [2025-03-04 13:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606099', 'tblTempUsageDetail_20' ) start [2025-03-04 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606099', 'tblTempUsageDetail_20' ) end [2025-03-04 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606099', 'tblTempVendorCDR_20' ) start [2025-03-04 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606099', 'tblTempVendorCDR_20' ) end [2025-03-04 13:26:21] Production.INFO: ProcessCDR(1,14606099,1,1,2) [2025-03-04 13:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606099', 'tblTempUsageDetail_20' ) start [2025-03-04 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606099', 'tblTempUsageDetail_20' ) end [2025-03-04 13:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:26:26] Production.INFO: ==15789== Releasing lock... [2025-03-04 13:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:26:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-04 13:27:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:27:07 [end_date_ymd] => 2025-03-04 13:27:07 [RateCDR] => 1 ) [2025-03-04 13:27: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 10:27:07' and `end` < '2025-03-04 13:27: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-04 13:27:20] Production.INFO: count ==5428 [2025-03-04 13:27:23] Production.ERROR: pbx CDR StartTime 2025-03-04 10:27:07 - End Time 2025-03-04 13:27:07 [2025-03-04 13:27:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606104', 'tblTempUsageDetail_20' ) start [2025-03-04 13:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606104', 'tblTempUsageDetail_20' ) end [2025-03-04 13:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606104', 'tblTempVendorCDR_20' ) start [2025-03-04 13:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606104', 'tblTempVendorCDR_20' ) end [2025-03-04 13:27:23] Production.INFO: ProcessCDR(1,14606104,1,1,2) [2025-03-04 13:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606104', 'tblTempUsageDetail_20' ) start [2025-03-04 13:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606104', 'tblTempUsageDetail_20' ) end [2025-03-04 13:27:29] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:27:29] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:27:29] Production.INFO: ==15901== Releasing lock... [2025-03-04 13:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:27:29] Production.INFO: 68.75 MB #Memory Used# [2025-03-04 13:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:28:06 [end_date_ymd] => 2025-03-04 13:28:06 [RateCDR] => 1 ) [2025-03-04 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-04 10:28:06' and `end` < '2025-03-04 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-04 13:28:19] Production.INFO: count ==5426 [2025-03-04 13:28:22] Production.ERROR: pbx CDR StartTime 2025-03-04 10:28:06 - End Time 2025-03-04 13:28:06 [2025-03-04 13:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606109', 'tblTempUsageDetail_20' ) start [2025-03-04 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606109', 'tblTempUsageDetail_20' ) end [2025-03-04 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606109', 'tblTempVendorCDR_20' ) start [2025-03-04 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606109', 'tblTempVendorCDR_20' ) end [2025-03-04 13:28:22] Production.INFO: ProcessCDR(1,14606109,1,1,2) [2025-03-04 13:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606109', 'tblTempUsageDetail_20' ) start [2025-03-04 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606109', 'tblTempUsageDetail_20' ) end [2025-03-04 13:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:28:27] Production.INFO: ==15972== Releasing lock... [2025-03-04 13:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:28:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-04 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:29:05 [end_date_ymd] => 2025-03-04 13:29:05 [RateCDR] => 1 ) [2025-03-04 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-04 10:29:05' and `end` < '2025-03-04 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-04 13:29:19] Production.INFO: count ==5462 [2025-03-04 13:29:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:29:05 - End Time 2025-03-04 13:29:05 [2025-03-04 13:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606114', 'tblTempUsageDetail_20' ) start [2025-03-04 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606114', 'tblTempUsageDetail_20' ) end [2025-03-04 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606114', 'tblTempVendorCDR_20' ) start [2025-03-04 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606114', 'tblTempVendorCDR_20' ) end [2025-03-04 13:29:22] Production.INFO: ProcessCDR(1,14606114,1,1,2) [2025-03-04 13:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606114', 'tblTempUsageDetail_20' ) start [2025-03-04 13:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606114', 'tblTempUsageDetail_20' ) end [2025-03-04 13:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:29:27] Production.INFO: ==16042== Releasing lock... [2025-03-04 13:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:29:27] Production.INFO: 69 MB #Memory Used# [2025-03-04 13:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:30:07 [end_date_ymd] => 2025-03-04 13:30:07 [RateCDR] => 1 ) [2025-03-04 13: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-04 10:30:07' and `end` < '2025-03-04 13: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-04 13:30:20] Production.INFO: count ==5507 [2025-03-04 13:30:23] Production.ERROR: pbx CDR StartTime 2025-03-04 10:30:07 - End Time 2025-03-04 13:30:07 [2025-03-04 13:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606120', 'tblTempUsageDetail_20' ) start [2025-03-04 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606120', 'tblTempUsageDetail_20' ) end [2025-03-04 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606120', 'tblTempVendorCDR_20' ) start [2025-03-04 13:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606120', 'tblTempVendorCDR_20' ) end [2025-03-04 13:30:23] Production.INFO: ProcessCDR(1,14606120,1,1,2) [2025-03-04 13:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606120', 'tblTempUsageDetail_20' ) start [2025-03-04 13:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606120', 'tblTempUsageDetail_20' ) end [2025-03-04 13:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:30:28] Production.INFO: ==16116== Releasing lock... [2025-03-04 13:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:30:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-04 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:31:05 [end_date_ymd] => 2025-03-04 13:31:05 [RateCDR] => 1 ) [2025-03-04 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-04 10:31:05' and `end` < '2025-03-04 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-04 13:31:18] Production.INFO: count ==5507 [2025-03-04 13:31:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:31:05 - End Time 2025-03-04 13:31:05 [2025-03-04 13:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606125', 'tblTempUsageDetail_20' ) start [2025-03-04 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606125', 'tblTempUsageDetail_20' ) end [2025-03-04 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606125', 'tblTempVendorCDR_20' ) start [2025-03-04 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606125', 'tblTempVendorCDR_20' ) end [2025-03-04 13:31:22] Production.INFO: ProcessCDR(1,14606125,1,1,2) [2025-03-04 13:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606125', 'tblTempUsageDetail_20' ) start [2025-03-04 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606125', 'tblTempUsageDetail_20' ) end [2025-03-04 13:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:31:27] Production.INFO: ==16194== Releasing lock... [2025-03-04 13:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:31:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-04 13:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:32:06 [end_date_ymd] => 2025-03-04 13:32:06 [RateCDR] => 1 ) [2025-03-04 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-04 10:32:06' and `end` < '2025-03-04 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-04 13:32:19] Production.INFO: count ==5526 [2025-03-04 13:32:22] Production.ERROR: pbx CDR StartTime 2025-03-04 10:32:06 - End Time 2025-03-04 13:32:06 [2025-03-04 13:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606130', 'tblTempUsageDetail_20' ) start [2025-03-04 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606130', 'tblTempUsageDetail_20' ) end [2025-03-04 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606130', 'tblTempVendorCDR_20' ) start [2025-03-04 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606130', 'tblTempVendorCDR_20' ) end [2025-03-04 13:32:22] Production.INFO: ProcessCDR(1,14606130,1,1,2) [2025-03-04 13:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606130', 'tblTempUsageDetail_20' ) start [2025-03-04 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606130', 'tblTempUsageDetail_20' ) end [2025-03-04 13:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:32:27] Production.INFO: ==16265== Releasing lock... [2025-03-04 13:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:32:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-04 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:33:05 [end_date_ymd] => 2025-03-04 13:33:05 [RateCDR] => 1 ) [2025-03-04 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-04 10:33:05' and `end` < '2025-03-04 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-04 13:33:18] Production.INFO: count ==5518 [2025-03-04 13:33:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:33:05 - End Time 2025-03-04 13:33:05 [2025-03-04 13:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606135', 'tblTempUsageDetail_20' ) start [2025-03-04 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606135', 'tblTempUsageDetail_20' ) end [2025-03-04 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606135', 'tblTempVendorCDR_20' ) start [2025-03-04 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606135', 'tblTempVendorCDR_20' ) end [2025-03-04 13:33:21] Production.INFO: ProcessCDR(1,14606135,1,1,2) [2025-03-04 13:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606135', 'tblTempUsageDetail_20' ) start [2025-03-04 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606135', 'tblTempUsageDetail_20' ) end [2025-03-04 13:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:33:27] Production.INFO: ==16336== Releasing lock... [2025-03-04 13:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:33:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-04 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:34:05 [end_date_ymd] => 2025-03-04 13:34:05 [RateCDR] => 1 ) [2025-03-04 13:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 10:34:05' and `end` < '2025-03-04 13:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 13:34:18] Production.INFO: count ==5525 [2025-03-04 13:34:20] Production.ERROR: pbx CDR StartTime 2025-03-04 10:34:05 - End Time 2025-03-04 13:34:05 [2025-03-04 13:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606140', 'tblTempUsageDetail_20' ) start [2025-03-04 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606140', 'tblTempUsageDetail_20' ) end [2025-03-04 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606140', 'tblTempVendorCDR_20' ) start [2025-03-04 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606140', 'tblTempVendorCDR_20' ) end [2025-03-04 13:34:21] Production.INFO: ProcessCDR(1,14606140,1,1,2) [2025-03-04 13:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606140', 'tblTempUsageDetail_20' ) start [2025-03-04 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606140', 'tblTempUsageDetail_20' ) end [2025-03-04 13:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:34:26] Production.INFO: ==16412== Releasing lock... [2025-03-04 13:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:34:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-04 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:35:05 [end_date_ymd] => 2025-03-04 13:35:05 [RateCDR] => 1 ) [2025-03-04 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-04 10:35:05' and `end` < '2025-03-04 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-04 13:35:19] Production.INFO: count ==5519 [2025-03-04 13:35:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:35:05 - End Time 2025-03-04 13:35:05 [2025-03-04 13:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606145', 'tblTempUsageDetail_20' ) start [2025-03-04 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606145', 'tblTempUsageDetail_20' ) end [2025-03-04 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606145', 'tblTempVendorCDR_20' ) start [2025-03-04 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606145', 'tblTempVendorCDR_20' ) end [2025-03-04 13:35:22] Production.INFO: ProcessCDR(1,14606145,1,1,2) [2025-03-04 13:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606145', 'tblTempUsageDetail_20' ) start [2025-03-04 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606145', 'tblTempUsageDetail_20' ) end [2025-03-04 13:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:35:27] Production.INFO: ==16481== Releasing lock... [2025-03-04 13:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:35:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-04 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:36:05 [end_date_ymd] => 2025-03-04 13:36:05 [RateCDR] => 1 ) [2025-03-04 13:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 10:36:05' and `end` < '2025-03-04 13:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 13:36:19] Production.INFO: count ==5501 [2025-03-04 13:36:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:36:05 - End Time 2025-03-04 13:36:05 [2025-03-04 13:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606150', 'tblTempUsageDetail_20' ) start [2025-03-04 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606150', 'tblTempUsageDetail_20' ) end [2025-03-04 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606150', 'tblTempVendorCDR_20' ) start [2025-03-04 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606150', 'tblTempVendorCDR_20' ) end [2025-03-04 13:36:21] Production.INFO: ProcessCDR(1,14606150,1,1,2) [2025-03-04 13:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606150', 'tblTempUsageDetail_20' ) start [2025-03-04 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606150', 'tblTempUsageDetail_20' ) end [2025-03-04 13:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:36:26] Production.INFO: ==16565== Releasing lock... [2025-03-04 13:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:36:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-04 13:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:37:06 [end_date_ymd] => 2025-03-04 13:37:06 [RateCDR] => 1 ) [2025-03-04 13: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-04 10:37:06' and `end` < '2025-03-04 13: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-04 13:37:19] Production.INFO: count ==5506 [2025-03-04 13:37:22] Production.ERROR: pbx CDR StartTime 2025-03-04 10:37:06 - End Time 2025-03-04 13:37:06 [2025-03-04 13:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606155', 'tblTempUsageDetail_20' ) start [2025-03-04 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606155', 'tblTempUsageDetail_20' ) end [2025-03-04 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606155', 'tblTempVendorCDR_20' ) start [2025-03-04 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606155', 'tblTempVendorCDR_20' ) end [2025-03-04 13:37:22] Production.INFO: ProcessCDR(1,14606155,1,1,2) [2025-03-04 13:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606155', 'tblTempUsageDetail_20' ) start [2025-03-04 13:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606155', 'tblTempUsageDetail_20' ) end [2025-03-04 13:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:37:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:37:27] Production.INFO: ==16637== Releasing lock... [2025-03-04 13:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:37:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-04 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:38:05 [end_date_ymd] => 2025-03-04 13:38:05 [RateCDR] => 1 ) [2025-03-04 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-04 10:38:05' and `end` < '2025-03-04 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-04 13:38:18] Production.INFO: count ==5477 [2025-03-04 13:38:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:38:05 - End Time 2025-03-04 13:38:05 [2025-03-04 13:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606160', 'tblTempUsageDetail_20' ) start [2025-03-04 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606160', 'tblTempUsageDetail_20' ) end [2025-03-04 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606160', 'tblTempVendorCDR_20' ) start [2025-03-04 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606160', 'tblTempVendorCDR_20' ) end [2025-03-04 13:38:21] Production.INFO: ProcessCDR(1,14606160,1,1,2) [2025-03-04 13:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606160', 'tblTempUsageDetail_20' ) start [2025-03-04 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606160', 'tblTempUsageDetail_20' ) end [2025-03-04 13:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:38:26] Production.INFO: ==16710== Releasing lock... [2025-03-04 13:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:38:26] Production.INFO: 69 MB #Memory Used# [2025-03-04 13:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:39:06 [end_date_ymd] => 2025-03-04 13:39:06 [RateCDR] => 1 ) [2025-03-04 13: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 10:39:06' and `end` < '2025-03-04 13: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-04 13:39:19] Production.INFO: count ==5458 [2025-03-04 13:39:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:39:06 - End Time 2025-03-04 13:39:06 [2025-03-04 13:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606165', 'tblTempUsageDetail_20' ) start [2025-03-04 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606165', 'tblTempUsageDetail_20' ) end [2025-03-04 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606165', 'tblTempVendorCDR_20' ) start [2025-03-04 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606165', 'tblTempVendorCDR_20' ) end [2025-03-04 13:39:21] Production.INFO: ProcessCDR(1,14606165,1,1,2) [2025-03-04 13:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606165', 'tblTempUsageDetail_20' ) start [2025-03-04 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606165', 'tblTempUsageDetail_20' ) end [2025-03-04 13:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:39:26] Production.INFO: ==16780== Releasing lock... [2025-03-04 13:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:39:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-04 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:40:06 [end_date_ymd] => 2025-03-04 13:40:06 [RateCDR] => 1 ) [2025-03-04 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-04 10:40:06' and `end` < '2025-03-04 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-04 13:40:19] Production.INFO: count ==5465 [2025-03-04 13:40:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:40:06 - End Time 2025-03-04 13:40:06 [2025-03-04 13:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606171', 'tblTempUsageDetail_20' ) start [2025-03-04 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606171', 'tblTempUsageDetail_20' ) end [2025-03-04 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606171', 'tblTempVendorCDR_20' ) start [2025-03-04 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606171', 'tblTempVendorCDR_20' ) end [2025-03-04 13:40:22] Production.INFO: ProcessCDR(1,14606171,1,1,2) [2025-03-04 13:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606171', 'tblTempUsageDetail_20' ) start [2025-03-04 13:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606171', 'tblTempUsageDetail_20' ) end [2025-03-04 13:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:40:25] Production.INFO: ==16853== Releasing lock... [2025-03-04 13:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:40:25] Production.INFO: 69 MB #Memory Used# [2025-03-04 13:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:41:06 [end_date_ymd] => 2025-03-04 13:41:06 [RateCDR] => 1 ) [2025-03-04 13: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 10:41:06' and `end` < '2025-03-04 13: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-04 13:41:19] Production.INFO: count ==5457 [2025-03-04 13:41:22] Production.ERROR: pbx CDR StartTime 2025-03-04 10:41:06 - End Time 2025-03-04 13:41:06 [2025-03-04 13:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606176', 'tblTempUsageDetail_20' ) start [2025-03-04 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606176', 'tblTempUsageDetail_20' ) end [2025-03-04 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606176', 'tblTempVendorCDR_20' ) start [2025-03-04 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606176', 'tblTempVendorCDR_20' ) end [2025-03-04 13:41:22] Production.INFO: ProcessCDR(1,14606176,1,1,2) [2025-03-04 13:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606176', 'tblTempUsageDetail_20' ) start [2025-03-04 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606176', 'tblTempUsageDetail_20' ) end [2025-03-04 13:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:41:27] Production.INFO: ==16926== Releasing lock... [2025-03-04 13:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:41:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-04 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:42:05 [end_date_ymd] => 2025-03-04 13:42:05 [RateCDR] => 1 ) [2025-03-04 13:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 10:42:05' and `end` < '2025-03-04 13:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 13:42:18] Production.INFO: count ==5440 [2025-03-04 13:42:20] Production.ERROR: pbx CDR StartTime 2025-03-04 10:42:05 - End Time 2025-03-04 13:42:05 [2025-03-04 13:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606181', 'tblTempUsageDetail_20' ) start [2025-03-04 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606181', 'tblTempUsageDetail_20' ) end [2025-03-04 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606181', 'tblTempVendorCDR_20' ) start [2025-03-04 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606181', 'tblTempVendorCDR_20' ) end [2025-03-04 13:42:21] Production.INFO: ProcessCDR(1,14606181,1,1,2) [2025-03-04 13:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606181', 'tblTempUsageDetail_20' ) start [2025-03-04 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606181', 'tblTempUsageDetail_20' ) end [2025-03-04 13:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:42:26] Production.INFO: ==16997== Releasing lock... [2025-03-04 13:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:42:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-04 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:43:05 [end_date_ymd] => 2025-03-04 13:43:05 [RateCDR] => 1 ) [2025-03-04 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-04 10:43:05' and `end` < '2025-03-04 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-04 13:43:19] Production.INFO: count ==5441 [2025-03-04 13:43:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:43:05 - End Time 2025-03-04 13:43:05 [2025-03-04 13:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606186', 'tblTempUsageDetail_20' ) start [2025-03-04 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606186', 'tblTempUsageDetail_20' ) end [2025-03-04 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606186', 'tblTempVendorCDR_20' ) start [2025-03-04 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606186', 'tblTempVendorCDR_20' ) end [2025-03-04 13:43:21] Production.INFO: ProcessCDR(1,14606186,1,1,2) [2025-03-04 13:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606186', 'tblTempUsageDetail_20' ) start [2025-03-04 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606186', 'tblTempUsageDetail_20' ) end [2025-03-04 13:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:43:27] Production.INFO: ==17108== Releasing lock... [2025-03-04 13:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:43:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-04 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:44:05 [end_date_ymd] => 2025-03-04 13:44:05 [RateCDR] => 1 ) [2025-03-04 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-04 10:44:05' and `end` < '2025-03-04 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-04 13:44:19] Production.INFO: count ==5461 [2025-03-04 13:44:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:44:05 - End Time 2025-03-04 13:44:05 [2025-03-04 13:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606191', 'tblTempUsageDetail_20' ) start [2025-03-04 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606191', 'tblTempUsageDetail_20' ) end [2025-03-04 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606191', 'tblTempVendorCDR_20' ) start [2025-03-04 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606191', 'tblTempVendorCDR_20' ) end [2025-03-04 13:44:21] Production.INFO: ProcessCDR(1,14606191,1,1,2) [2025-03-04 13:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606191', 'tblTempUsageDetail_20' ) start [2025-03-04 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606191', 'tblTempUsageDetail_20' ) end [2025-03-04 13:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:44:27] Production.INFO: ==17177== Releasing lock... [2025-03-04 13:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:44:27] Production.INFO: 69 MB #Memory Used# [2025-03-04 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:45:05 [end_date_ymd] => 2025-03-04 13:45:05 [RateCDR] => 1 ) [2025-03-04 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-04 10:45:05' and `end` < '2025-03-04 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-04 13:45:19] Production.INFO: count ==5492 [2025-03-04 13:45:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:45:05 - End Time 2025-03-04 13:45:05 [2025-03-04 13:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606196', 'tblTempUsageDetail_20' ) start [2025-03-04 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606196', 'tblTempUsageDetail_20' ) end [2025-03-04 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606196', 'tblTempVendorCDR_20' ) start [2025-03-04 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606196', 'tblTempVendorCDR_20' ) end [2025-03-04 13:45:21] Production.INFO: ProcessCDR(1,14606196,1,1,2) [2025-03-04 13:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606196', 'tblTempUsageDetail_20' ) start [2025-03-04 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606196', 'tblTempUsageDetail_20' ) end [2025-03-04 13:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:45:27] Production.INFO: ==17249== Releasing lock... [2025-03-04 13:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:45:27] Production.INFO: 69 MB #Memory Used# [2025-03-04 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:46:05 [end_date_ymd] => 2025-03-04 13:46:05 [RateCDR] => 1 ) [2025-03-04 13:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 10:46:05' and `end` < '2025-03-04 13:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 13:46:18] Production.INFO: count ==5487 [2025-03-04 13:46:20] Production.ERROR: pbx CDR StartTime 2025-03-04 10:46:05 - End Time 2025-03-04 13:46:05 [2025-03-04 13:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606201', 'tblTempUsageDetail_20' ) start [2025-03-04 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606201', 'tblTempUsageDetail_20' ) end [2025-03-04 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606201', 'tblTempVendorCDR_20' ) start [2025-03-04 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606201', 'tblTempVendorCDR_20' ) end [2025-03-04 13:46:21] Production.INFO: ProcessCDR(1,14606201,1,1,2) [2025-03-04 13:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606201', 'tblTempUsageDetail_20' ) start [2025-03-04 13:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606201', 'tblTempUsageDetail_20' ) end [2025-03-04 13:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:46:25] Production.INFO: ==17320== Releasing lock... [2025-03-04 13:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:46:25] Production.INFO: 69 MB #Memory Used# [2025-03-04 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:47:05 [end_date_ymd] => 2025-03-04 13:47:05 [RateCDR] => 1 ) [2025-03-04 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-04 10:47:05' and `end` < '2025-03-04 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-04 13:47:18] Production.INFO: count ==5491 [2025-03-04 13:47:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:47:05 - End Time 2025-03-04 13:47:05 [2025-03-04 13:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606206', 'tblTempUsageDetail_20' ) start [2025-03-04 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606206', 'tblTempUsageDetail_20' ) end [2025-03-04 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606206', 'tblTempVendorCDR_20' ) start [2025-03-04 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606206', 'tblTempVendorCDR_20' ) end [2025-03-04 13:47:21] Production.INFO: ProcessCDR(1,14606206,1,1,2) [2025-03-04 13:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606206', 'tblTempUsageDetail_20' ) start [2025-03-04 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606206', 'tblTempUsageDetail_20' ) end [2025-03-04 13:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:47:26] Production.INFO: ==17389== Releasing lock... [2025-03-04 13:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:47:26] Production.INFO: 69 MB #Memory Used# [2025-03-04 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:48:05 [end_date_ymd] => 2025-03-04 13:48:05 [RateCDR] => 1 ) [2025-03-04 13:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 10:48:05' and `end` < '2025-03-04 13:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 13:48:18] Production.INFO: count ==5495 [2025-03-04 13:48:20] Production.ERROR: pbx CDR StartTime 2025-03-04 10:48:05 - End Time 2025-03-04 13:48:05 [2025-03-04 13:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606211', 'tblTempUsageDetail_20' ) start [2025-03-04 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606211', 'tblTempUsageDetail_20' ) end [2025-03-04 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606211', 'tblTempVendorCDR_20' ) start [2025-03-04 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606211', 'tblTempVendorCDR_20' ) end [2025-03-04 13:48:21] Production.INFO: ProcessCDR(1,14606211,1,1,2) [2025-03-04 13:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606211', 'tblTempUsageDetail_20' ) start [2025-03-04 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606211', 'tblTempUsageDetail_20' ) end [2025-03-04 13:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:48:26] Production.INFO: ==17460== Releasing lock... [2025-03-04 13:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:48:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-04 13:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:49:06 [end_date_ymd] => 2025-03-04 13:49:06 [RateCDR] => 1 ) [2025-03-04 13: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-04 10:49:06' and `end` < '2025-03-04 13: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-04 13:49:19] Production.INFO: count ==5515 [2025-03-04 13:49:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:49:06 - End Time 2025-03-04 13:49:06 [2025-03-04 13:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606216', 'tblTempUsageDetail_20' ) start [2025-03-04 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606216', 'tblTempUsageDetail_20' ) end [2025-03-04 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606216', 'tblTempVendorCDR_20' ) start [2025-03-04 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606216', 'tblTempVendorCDR_20' ) end [2025-03-04 13:49:21] Production.INFO: ProcessCDR(1,14606216,1,1,2) [2025-03-04 13:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606216', 'tblTempUsageDetail_20' ) start [2025-03-04 13:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606216', 'tblTempUsageDetail_20' ) end [2025-03-04 13:49:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:49:27] Production.INFO: ==17530== Releasing lock... [2025-03-04 13:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:49:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-04 13:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:50:05 [end_date_ymd] => 2025-03-04 13:50:05 [RateCDR] => 1 ) [2025-03-04 13:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 10:50:05' and `end` < '2025-03-04 13:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 13:50:19] Production.INFO: count ==5510 [2025-03-04 13:50:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:50:05 - End Time 2025-03-04 13:50:05 [2025-03-04 13:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606222', 'tblTempUsageDetail_20' ) start [2025-03-04 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606222', 'tblTempUsageDetail_20' ) end [2025-03-04 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606222', 'tblTempVendorCDR_20' ) start [2025-03-04 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606222', 'tblTempVendorCDR_20' ) end [2025-03-04 13:50:21] Production.INFO: ProcessCDR(1,14606222,1,1,2) [2025-03-04 13:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606222', 'tblTempUsageDetail_20' ) start [2025-03-04 13:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606222', 'tblTempUsageDetail_20' ) end [2025-03-04 13:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:50:26] Production.INFO: ==17608== Releasing lock... [2025-03-04 13:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:50:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-04 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:51:05 [end_date_ymd] => 2025-03-04 13:51:05 [RateCDR] => 1 ) [2025-03-04 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-04 10:51:05' and `end` < '2025-03-04 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-04 13:51:18] Production.INFO: count ==5508 [2025-03-04 13:51:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:51:05 - End Time 2025-03-04 13:51:05 [2025-03-04 13:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606227', 'tblTempUsageDetail_20' ) start [2025-03-04 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606227', 'tblTempUsageDetail_20' ) end [2025-03-04 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606227', 'tblTempVendorCDR_20' ) start [2025-03-04 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606227', 'tblTempVendorCDR_20' ) end [2025-03-04 13:51:21] Production.INFO: ProcessCDR(1,14606227,1,1,2) [2025-03-04 13:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606227', 'tblTempUsageDetail_20' ) start [2025-03-04 13:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606227', 'tblTempUsageDetail_20' ) end [2025-03-04 13:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:51:26] Production.INFO: ==17686== Releasing lock... [2025-03-04 13:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:51:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-04 13:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:52:06 [end_date_ymd] => 2025-03-04 13:52:06 [RateCDR] => 1 ) [2025-03-04 13: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 10:52:06' and `end` < '2025-03-04 13: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-04 13:52:19] Production.INFO: count ==5535 [2025-03-04 13:52:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:52:06 - End Time 2025-03-04 13:52:06 [2025-03-04 13:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606232', 'tblTempUsageDetail_20' ) start [2025-03-04 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606232', 'tblTempUsageDetail_20' ) end [2025-03-04 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606232', 'tblTempVendorCDR_20' ) start [2025-03-04 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606232', 'tblTempVendorCDR_20' ) end [2025-03-04 13:52:22] Production.INFO: ProcessCDR(1,14606232,1,1,2) [2025-03-04 13:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606232', 'tblTempUsageDetail_20' ) start [2025-03-04 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606232', 'tblTempUsageDetail_20' ) end [2025-03-04 13:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:52:27] Production.INFO: ==17757== Releasing lock... [2025-03-04 13:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:52:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-04 13:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:53:06 [end_date_ymd] => 2025-03-04 13:53:06 [RateCDR] => 1 ) [2025-03-04 13: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 10:53:06' and `end` < '2025-03-04 13: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-04 13:53:19] Production.INFO: count ==5551 [2025-03-04 13:53:22] Production.ERROR: pbx CDR StartTime 2025-03-04 10:53:06 - End Time 2025-03-04 13:53:06 [2025-03-04 13:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606237', 'tblTempUsageDetail_20' ) start [2025-03-04 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606237', 'tblTempUsageDetail_20' ) end [2025-03-04 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606237', 'tblTempVendorCDR_20' ) start [2025-03-04 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606237', 'tblTempVendorCDR_20' ) end [2025-03-04 13:53:22] Production.INFO: ProcessCDR(1,14606237,1,1,2) [2025-03-04 13:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606237', 'tblTempUsageDetail_20' ) start [2025-03-04 13:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606237', 'tblTempUsageDetail_20' ) end [2025-03-04 13:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:53:27] Production.INFO: ==17830== Releasing lock... [2025-03-04 13:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:53:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-04 13:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:54:06 [end_date_ymd] => 2025-03-04 13:54:06 [RateCDR] => 1 ) [2025-03-04 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-04 10:54:06' and `end` < '2025-03-04 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-04 13:54:19] Production.INFO: count ==5555 [2025-03-04 13:54:22] Production.ERROR: pbx CDR StartTime 2025-03-04 10:54:06 - End Time 2025-03-04 13:54:06 [2025-03-04 13:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606242', 'tblTempUsageDetail_20' ) start [2025-03-04 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606242', 'tblTempUsageDetail_20' ) end [2025-03-04 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606242', 'tblTempVendorCDR_20' ) start [2025-03-04 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606242', 'tblTempVendorCDR_20' ) end [2025-03-04 13:54:22] Production.INFO: ProcessCDR(1,14606242,1,1,2) [2025-03-04 13:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606242', 'tblTempUsageDetail_20' ) start [2025-03-04 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606242', 'tblTempUsageDetail_20' ) end [2025-03-04 13:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:54:27] Production.INFO: ==17902== Releasing lock... [2025-03-04 13:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:54:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-04 13:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:55:05 [end_date_ymd] => 2025-03-04 13:55:05 [RateCDR] => 1 ) [2025-03-04 13: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 10:55:05' and `end` < '2025-03-04 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-04 13:55:19] Production.INFO: count ==5550 [2025-03-04 13:55:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:55:05 - End Time 2025-03-04 13:55:05 [2025-03-04 13:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606247', 'tblTempUsageDetail_20' ) start [2025-03-04 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606247', 'tblTempUsageDetail_20' ) end [2025-03-04 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606247', 'tblTempVendorCDR_20' ) start [2025-03-04 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606247', 'tblTempVendorCDR_20' ) end [2025-03-04 13:55:22] Production.INFO: ProcessCDR(1,14606247,1,1,2) [2025-03-04 13:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606247', 'tblTempUsageDetail_20' ) start [2025-03-04 13:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606247', 'tblTempUsageDetail_20' ) end [2025-03-04 13:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:55:26] Production.INFO: ==17972== Releasing lock... [2025-03-04 13:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:55:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-04 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:56:05 [end_date_ymd] => 2025-03-04 13:56:05 [RateCDR] => 1 ) [2025-03-04 13:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 10:56:05' and `end` < '2025-03-04 13:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 13:56:18] Production.INFO: count ==5529 [2025-03-04 13:56:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:56:05 - End Time 2025-03-04 13:56:05 [2025-03-04 13:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606252', 'tblTempUsageDetail_20' ) start [2025-03-04 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606252', 'tblTempUsageDetail_20' ) end [2025-03-04 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606252', 'tblTempVendorCDR_20' ) start [2025-03-04 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606252', 'tblTempVendorCDR_20' ) end [2025-03-04 13:56:21] Production.INFO: ProcessCDR(1,14606252,1,1,2) [2025-03-04 13:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606252', 'tblTempUsageDetail_20' ) start [2025-03-04 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606252', 'tblTempUsageDetail_20' ) end [2025-03-04 13:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:56:26] Production.INFO: ==18056== Releasing lock... [2025-03-04 13:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:56:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-04 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:57:05 [end_date_ymd] => 2025-03-04 13:57:05 [RateCDR] => 1 ) [2025-03-04 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-04 10:57:05' and `end` < '2025-03-04 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-04 13:57:18] Production.INFO: count ==5529 [2025-03-04 13:57:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:57:05 - End Time 2025-03-04 13:57:05 [2025-03-04 13:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606257', 'tblTempUsageDetail_20' ) start [2025-03-04 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606257', 'tblTempUsageDetail_20' ) end [2025-03-04 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606257', 'tblTempVendorCDR_20' ) start [2025-03-04 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606257', 'tblTempVendorCDR_20' ) end [2025-03-04 13:57:21] Production.INFO: ProcessCDR(1,14606257,1,1,2) [2025-03-04 13:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606257', 'tblTempUsageDetail_20' ) start [2025-03-04 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606257', 'tblTempUsageDetail_20' ) end [2025-03-04 13:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:57:26] Production.INFO: ==18125== Releasing lock... [2025-03-04 13:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:57:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-04 13:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:58:06 [end_date_ymd] => 2025-03-04 13:58:06 [RateCDR] => 1 ) [2025-03-04 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-04 10:58:06' and `end` < '2025-03-04 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-04 13:58:19] Production.INFO: count ==5535 [2025-03-04 13:58:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:58:06 - End Time 2025-03-04 13:58:06 [2025-03-04 13:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606262', 'tblTempUsageDetail_20' ) start [2025-03-04 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606262', 'tblTempUsageDetail_20' ) end [2025-03-04 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606262', 'tblTempVendorCDR_20' ) start [2025-03-04 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606262', 'tblTempVendorCDR_20' ) end [2025-03-04 13:58:21] Production.INFO: ProcessCDR(1,14606262,1,1,2) [2025-03-04 13:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606262', 'tblTempUsageDetail_20' ) start [2025-03-04 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606262', 'tblTempUsageDetail_20' ) end [2025-03-04 13:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:58:26] Production.INFO: ==18237== Releasing lock... [2025-03-04 13:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:58:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-04 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 10:59:05 [end_date_ymd] => 2025-03-04 13:59:05 [RateCDR] => 1 ) [2025-03-04 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-04 10:59:05' and `end` < '2025-03-04 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-04 13:59:18] Production.INFO: count ==5520 [2025-03-04 13:59:21] Production.ERROR: pbx CDR StartTime 2025-03-04 10:59:05 - End Time 2025-03-04 13:59:05 [2025-03-04 13:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606267', 'tblTempUsageDetail_20' ) start [2025-03-04 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606267', 'tblTempUsageDetail_20' ) end [2025-03-04 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606267', 'tblTempVendorCDR_20' ) start [2025-03-04 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606267', 'tblTempVendorCDR_20' ) end [2025-03-04 13:59:21] Production.INFO: ProcessCDR(1,14606267,1,1,2) [2025-03-04 13:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 13:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 13:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606267', 'tblTempUsageDetail_20' ) start [2025-03-04 13:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606267', 'tblTempUsageDetail_20' ) end [2025-03-04 13:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 13:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 13:59:26] Production.INFO: ==18309== Releasing lock... [2025-03-04 13:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 13:59:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-04 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:00:06 [end_date_ymd] => 2025-03-04 14:00:06 [RateCDR] => 1 ) [2025-03-04 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-04 11:00:06' and `end` < '2025-03-04 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-04 14:00:19] Production.INFO: count ==5518 [2025-03-04 14:00:22] Production.ERROR: pbx CDR StartTime 2025-03-04 11:00:06 - End Time 2025-03-04 14:00:06 [2025-03-04 14:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606273', 'tblTempUsageDetail_20' ) start [2025-03-04 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606273', 'tblTempUsageDetail_20' ) end [2025-03-04 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606273', 'tblTempVendorCDR_20' ) start [2025-03-04 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606273', 'tblTempVendorCDR_20' ) end [2025-03-04 14:00:22] Production.INFO: ProcessCDR(1,14606273,1,1,2) [2025-03-04 14:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606273', 'tblTempUsageDetail_20' ) start [2025-03-04 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606273', 'tblTempUsageDetail_20' ) end [2025-03-04 14:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:00:28] Production.INFO: ==18381== Releasing lock... [2025-03-04 14:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:00:28] Production.INFO: 69.25 MB #Memory Used# [2025-03-04 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:01:05 [end_date_ymd] => 2025-03-04 14:01:05 [RateCDR] => 1 ) [2025-03-04 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-04 11:01:05' and `end` < '2025-03-04 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-04 14:01:18] Production.INFO: count ==5551 [2025-03-04 14:01:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:01:05 - End Time 2025-03-04 14:01:05 [2025-03-04 14:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606278', 'tblTempUsageDetail_20' ) start [2025-03-04 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606278', 'tblTempUsageDetail_20' ) end [2025-03-04 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606278', 'tblTempVendorCDR_20' ) start [2025-03-04 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606278', 'tblTempVendorCDR_20' ) end [2025-03-04 14:01:21] Production.INFO: ProcessCDR(1,14606278,1,1,2) [2025-03-04 14:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606278', 'tblTempUsageDetail_20' ) start [2025-03-04 14:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606278', 'tblTempUsageDetail_20' ) end [2025-03-04 14:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:01:26] Production.INFO: ==18466== Releasing lock... [2025-03-04 14:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:01:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-04 14:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:02:06 [end_date_ymd] => 2025-03-04 14:02:06 [RateCDR] => 1 ) [2025-03-04 14: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-04 11:02:06' and `end` < '2025-03-04 14: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-04 14:02:19] Production.INFO: count ==5542 [2025-03-04 14:02:22] Production.ERROR: pbx CDR StartTime 2025-03-04 11:02:06 - End Time 2025-03-04 14:02:06 [2025-03-04 14:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606283', 'tblTempUsageDetail_20' ) start [2025-03-04 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606283', 'tblTempUsageDetail_20' ) end [2025-03-04 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606283', 'tblTempVendorCDR_20' ) start [2025-03-04 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606283', 'tblTempVendorCDR_20' ) end [2025-03-04 14:02:22] Production.INFO: ProcessCDR(1,14606283,1,1,2) [2025-03-04 14:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606283', 'tblTempUsageDetail_20' ) start [2025-03-04 14:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606283', 'tblTempUsageDetail_20' ) end [2025-03-04 14:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:02:26] Production.INFO: ==18538== Releasing lock... [2025-03-04 14:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:02:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-04 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:03:05 [end_date_ymd] => 2025-03-04 14:03:05 [RateCDR] => 1 ) [2025-03-04 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-04 11:03:05' and `end` < '2025-03-04 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-04 14:03:18] Production.INFO: count ==5550 [2025-03-04 14:03:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:03:05 - End Time 2025-03-04 14:03:05 [2025-03-04 14:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606288', 'tblTempUsageDetail_20' ) start [2025-03-04 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606288', 'tblTempUsageDetail_20' ) end [2025-03-04 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606288', 'tblTempVendorCDR_20' ) start [2025-03-04 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606288', 'tblTempVendorCDR_20' ) end [2025-03-04 14:03:21] Production.INFO: ProcessCDR(1,14606288,1,1,2) [2025-03-04 14:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606288', 'tblTempUsageDetail_20' ) start [2025-03-04 14:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606288', 'tblTempUsageDetail_20' ) end [2025-03-04 14:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:03:27] Production.INFO: ==18608== Releasing lock... [2025-03-04 14:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:03:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-04 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:04:06 [end_date_ymd] => 2025-03-04 14:04:06 [RateCDR] => 1 ) [2025-03-04 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-04 11:04:06' and `end` < '2025-03-04 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-04 14:04:19] Production.INFO: count ==5542 [2025-03-04 14:04:22] Production.ERROR: pbx CDR StartTime 2025-03-04 11:04:06 - End Time 2025-03-04 14:04:06 [2025-03-04 14:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606293', 'tblTempUsageDetail_20' ) start [2025-03-04 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606293', 'tblTempUsageDetail_20' ) end [2025-03-04 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606293', 'tblTempVendorCDR_20' ) start [2025-03-04 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606293', 'tblTempVendorCDR_20' ) end [2025-03-04 14:04:22] Production.INFO: ProcessCDR(1,14606293,1,1,2) [2025-03-04 14:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606293', 'tblTempUsageDetail_20' ) start [2025-03-04 14:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606293', 'tblTempUsageDetail_20' ) end [2025-03-04 14:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:04:27] Production.INFO: ==18682== Releasing lock... [2025-03-04 14:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:04:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-04 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:05:05 [end_date_ymd] => 2025-03-04 14:05:05 [RateCDR] => 1 ) [2025-03-04 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-04 11:05:05' and `end` < '2025-03-04 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-04 14:05:19] Production.INFO: count ==5543 [2025-03-04 14:05:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:05:05 - End Time 2025-03-04 14:05:05 [2025-03-04 14:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606298', 'tblTempUsageDetail_20' ) start [2025-03-04 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606298', 'tblTempUsageDetail_20' ) end [2025-03-04 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606298', 'tblTempVendorCDR_20' ) start [2025-03-04 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606298', 'tblTempVendorCDR_20' ) end [2025-03-04 14:05:22] Production.INFO: ProcessCDR(1,14606298,1,1,2) [2025-03-04 14:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606298', 'tblTempUsageDetail_20' ) start [2025-03-04 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606298', 'tblTempUsageDetail_20' ) end [2025-03-04 14:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:05:27] Production.INFO: ==18756== Releasing lock... [2025-03-04 14:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:05:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-04 14:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:06:06 [end_date_ymd] => 2025-03-04 14:06:06 [RateCDR] => 1 ) [2025-03-04 14: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 11:06:06' and `end` < '2025-03-04 14: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-04 14:06:19] Production.INFO: count ==5531 [2025-03-04 14:06:22] Production.ERROR: pbx CDR StartTime 2025-03-04 11:06:06 - End Time 2025-03-04 14:06:06 [2025-03-04 14:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606303', 'tblTempUsageDetail_20' ) start [2025-03-04 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606303', 'tblTempUsageDetail_20' ) end [2025-03-04 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606303', 'tblTempVendorCDR_20' ) start [2025-03-04 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606303', 'tblTempVendorCDR_20' ) end [2025-03-04 14:06:22] Production.INFO: ProcessCDR(1,14606303,1,1,2) [2025-03-04 14:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606303', 'tblTempUsageDetail_20' ) start [2025-03-04 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606303', 'tblTempUsageDetail_20' ) end [2025-03-04 14:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:06:27] Production.INFO: ==18828== Releasing lock... [2025-03-04 14:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:06:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-04 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:07:05 [end_date_ymd] => 2025-03-04 14:07:05 [RateCDR] => 1 ) [2025-03-04 14:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 11:07:05' and `end` < '2025-03-04 14:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 14:07:19] Production.INFO: count ==5498 [2025-03-04 14:07:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:07:05 - End Time 2025-03-04 14:07:05 [2025-03-04 14:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606308', 'tblTempUsageDetail_20' ) start [2025-03-04 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606308', 'tblTempUsageDetail_20' ) end [2025-03-04 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606308', 'tblTempVendorCDR_20' ) start [2025-03-04 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606308', 'tblTempVendorCDR_20' ) end [2025-03-04 14:07:21] Production.INFO: ProcessCDR(1,14606308,1,1,2) [2025-03-04 14:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606308', 'tblTempUsageDetail_20' ) start [2025-03-04 14:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606308', 'tblTempUsageDetail_20' ) end [2025-03-04 14:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:07:27] Production.INFO: ==18898== Releasing lock... [2025-03-04 14:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:07:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-04 14:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:08:06 [end_date_ymd] => 2025-03-04 14:08:06 [RateCDR] => 1 ) [2025-03-04 14: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-04 11:08:06' and `end` < '2025-03-04 14: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-04 14:08:19] Production.INFO: count ==5464 [2025-03-04 14:08:22] Production.ERROR: pbx CDR StartTime 2025-03-04 11:08:06 - End Time 2025-03-04 14:08:06 [2025-03-04 14:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606313', 'tblTempUsageDetail_20' ) start [2025-03-04 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606313', 'tblTempUsageDetail_20' ) end [2025-03-04 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606313', 'tblTempVendorCDR_20' ) start [2025-03-04 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606313', 'tblTempVendorCDR_20' ) end [2025-03-04 14:08:22] Production.INFO: ProcessCDR(1,14606313,1,1,2) [2025-03-04 14:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606313', 'tblTempUsageDetail_20' ) start [2025-03-04 14:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606313', 'tblTempUsageDetail_20' ) end [2025-03-04 14:08:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:08:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:08:28] Production.INFO: ==18972== Releasing lock... [2025-03-04 14:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:08:28] Production.INFO: 69 MB #Memory Used# [2025-03-04 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:09:05 [end_date_ymd] => 2025-03-04 14:09:05 [RateCDR] => 1 ) [2025-03-04 14: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 11:09:05' and `end` < '2025-03-04 14: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-04 14:09:18] Production.INFO: count ==5447 [2025-03-04 14:09:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:09:05 - End Time 2025-03-04 14:09:05 [2025-03-04 14:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606318', 'tblTempUsageDetail_20' ) start [2025-03-04 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606318', 'tblTempUsageDetail_20' ) end [2025-03-04 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606318', 'tblTempVendorCDR_20' ) start [2025-03-04 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606318', 'tblTempVendorCDR_20' ) end [2025-03-04 14:09:21] Production.INFO: ProcessCDR(1,14606318,1,1,2) [2025-03-04 14:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606318', 'tblTempUsageDetail_20' ) start [2025-03-04 14:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606318', 'tblTempUsageDetail_20' ) end [2025-03-04 14:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:09:27] Production.INFO: ==19040== Releasing lock... [2025-03-04 14:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:09:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-04 14:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:10:07 [end_date_ymd] => 2025-03-04 14:10:07 [RateCDR] => 1 ) [2025-03-04 14: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-04 11:10:07' and `end` < '2025-03-04 14: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-04 14:10:20] Production.INFO: count ==5443 [2025-03-04 14:10:23] Production.ERROR: pbx CDR StartTime 2025-03-04 11:10:07 - End Time 2025-03-04 14:10:07 [2025-03-04 14:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606324', 'tblTempUsageDetail_20' ) start [2025-03-04 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606324', 'tblTempUsageDetail_20' ) end [2025-03-04 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606324', 'tblTempVendorCDR_20' ) start [2025-03-04 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606324', 'tblTempVendorCDR_20' ) end [2025-03-04 14:10:23] Production.INFO: ProcessCDR(1,14606324,1,1,2) [2025-03-04 14:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606324', 'tblTempUsageDetail_20' ) start [2025-03-04 14:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606324', 'tblTempUsageDetail_20' ) end [2025-03-04 14:10:29] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:10:29] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:10:29] Production.INFO: ==19126== Releasing lock... [2025-03-04 14:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:10:29] Production.INFO: 68.75 MB #Memory Used# [2025-03-04 14:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:11:06 [end_date_ymd] => 2025-03-04 14:11:06 [RateCDR] => 1 ) [2025-03-04 14: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 11:11:06' and `end` < '2025-03-04 14: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-04 14:11:19] Production.INFO: count ==5439 [2025-03-04 14:11:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:11:06 - End Time 2025-03-04 14:11:06 [2025-03-04 14:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606329', 'tblTempUsageDetail_20' ) start [2025-03-04 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606329', 'tblTempUsageDetail_20' ) end [2025-03-04 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606329', 'tblTempVendorCDR_20' ) start [2025-03-04 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606329', 'tblTempVendorCDR_20' ) end [2025-03-04 14:11:22] Production.INFO: ProcessCDR(1,14606329,1,1,2) [2025-03-04 14:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606329', 'tblTempUsageDetail_20' ) start [2025-03-04 14:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606329', 'tblTempUsageDetail_20' ) end [2025-03-04 14:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:11:27] Production.INFO: ==19201== Releasing lock... [2025-03-04 14:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:11:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-04 14:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:12:06 [end_date_ymd] => 2025-03-04 14:12:06 [RateCDR] => 1 ) [2025-03-04 14: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-04 11:12:06' and `end` < '2025-03-04 14: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-04 14:12:19] Production.INFO: count ==5431 [2025-03-04 14:12:22] Production.ERROR: pbx CDR StartTime 2025-03-04 11:12:06 - End Time 2025-03-04 14:12:06 [2025-03-04 14:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606334', 'tblTempUsageDetail_20' ) start [2025-03-04 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606334', 'tblTempUsageDetail_20' ) end [2025-03-04 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606334', 'tblTempVendorCDR_20' ) start [2025-03-04 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606334', 'tblTempVendorCDR_20' ) end [2025-03-04 14:12:22] Production.INFO: ProcessCDR(1,14606334,1,1,2) [2025-03-04 14:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606334', 'tblTempUsageDetail_20' ) start [2025-03-04 14:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606334', 'tblTempUsageDetail_20' ) end [2025-03-04 14:12:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:12:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:12:28] Production.INFO: ==19274== Releasing lock... [2025-03-04 14:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:12:28] Production.INFO: 68.75 MB #Memory Used# [2025-03-04 14:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:13:06 [end_date_ymd] => 2025-03-04 14:13:06 [RateCDR] => 1 ) [2025-03-04 14: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 11:13:06' and `end` < '2025-03-04 14: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-04 14:13:19] Production.INFO: count ==5422 [2025-03-04 14:13:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:13:06 - End Time 2025-03-04 14:13:06 [2025-03-04 14:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606339', 'tblTempUsageDetail_20' ) start [2025-03-04 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606339', 'tblTempUsageDetail_20' ) end [2025-03-04 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606339', 'tblTempVendorCDR_20' ) start [2025-03-04 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606339', 'tblTempVendorCDR_20' ) end [2025-03-04 14:13:21] Production.INFO: ProcessCDR(1,14606339,1,1,2) [2025-03-04 14:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606339', 'tblTempUsageDetail_20' ) start [2025-03-04 14:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606339', 'tblTempUsageDetail_20' ) end [2025-03-04 14:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:13:27] Production.INFO: ==19345== Releasing lock... [2025-03-04 14:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:13:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-04 14:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:14:06 [end_date_ymd] => 2025-03-04 14:14:06 [RateCDR] => 1 ) [2025-03-04 14: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 11:14:06' and `end` < '2025-03-04 14: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-04 14:14:20] Production.INFO: count ==5446 [2025-03-04 14:14:22] Production.ERROR: pbx CDR StartTime 2025-03-04 11:14:06 - End Time 2025-03-04 14:14:06 [2025-03-04 14:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606344', 'tblTempUsageDetail_20' ) start [2025-03-04 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606344', 'tblTempUsageDetail_20' ) end [2025-03-04 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606344', 'tblTempVendorCDR_20' ) start [2025-03-04 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606344', 'tblTempVendorCDR_20' ) end [2025-03-04 14:14:22] Production.INFO: ProcessCDR(1,14606344,1,1,2) [2025-03-04 14:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606344', 'tblTempUsageDetail_20' ) start [2025-03-04 14:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606344', 'tblTempUsageDetail_20' ) end [2025-03-04 14:14:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:14:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:14:28] Production.INFO: ==19455== Releasing lock... [2025-03-04 14:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:14:28] Production.INFO: 68.75 MB #Memory Used# [2025-03-04 14:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:15:06 [end_date_ymd] => 2025-03-04 14:15:06 [RateCDR] => 1 ) [2025-03-04 14: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 11:15:06' and `end` < '2025-03-04 14: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-04 14:15:19] Production.INFO: count ==5402 [2025-03-04 14:15:22] Production.ERROR: pbx CDR StartTime 2025-03-04 11:15:06 - End Time 2025-03-04 14:15:06 [2025-03-04 14:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606349', 'tblTempUsageDetail_20' ) start [2025-03-04 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606349', 'tblTempUsageDetail_20' ) end [2025-03-04 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606349', 'tblTempVendorCDR_20' ) start [2025-03-04 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606349', 'tblTempVendorCDR_20' ) end [2025-03-04 14:15:22] Production.INFO: ProcessCDR(1,14606349,1,1,2) [2025-03-04 14:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606349', 'tblTempUsageDetail_20' ) start [2025-03-04 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606349', 'tblTempUsageDetail_20' ) end [2025-03-04 14:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:15:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:15:28] Production.INFO: ==19533== Releasing lock... [2025-03-04 14:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:15:28] Production.INFO: 68.5 MB #Memory Used# [2025-03-04 14:16:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:16:07 [end_date_ymd] => 2025-03-04 14:16:07 [RateCDR] => 1 ) [2025-03-04 14:16: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 11:16:07' and `end` < '2025-03-04 14:16: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-04 14:16:20] Production.INFO: count ==5370 [2025-03-04 14:16:22] Production.ERROR: pbx CDR StartTime 2025-03-04 11:16:07 - End Time 2025-03-04 14:16:07 [2025-03-04 14:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606354', 'tblTempUsageDetail_20' ) start [2025-03-04 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606354', 'tblTempUsageDetail_20' ) end [2025-03-04 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606354', 'tblTempVendorCDR_20' ) start [2025-03-04 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606354', 'tblTempVendorCDR_20' ) end [2025-03-04 14:16:22] Production.INFO: ProcessCDR(1,14606354,1,1,2) [2025-03-04 14:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606354', 'tblTempUsageDetail_20' ) start [2025-03-04 14:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606354', 'tblTempUsageDetail_20' ) end [2025-03-04 14:16:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:16:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:16:28] Production.INFO: ==19607== Releasing lock... [2025-03-04 14:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:16:28] Production.INFO: 68.25 MB #Memory Used# [2025-03-04 14:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:17:06 [end_date_ymd] => 2025-03-04 14:17:06 [RateCDR] => 1 ) [2025-03-04 14: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 11:17:06' and `end` < '2025-03-04 14: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-04 14:17:19] Production.INFO: count ==5336 [2025-03-04 14:17:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:17:06 - End Time 2025-03-04 14:17:06 [2025-03-04 14:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606359', 'tblTempUsageDetail_20' ) start [2025-03-04 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606359', 'tblTempUsageDetail_20' ) end [2025-03-04 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606359', 'tblTempVendorCDR_20' ) start [2025-03-04 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606359', 'tblTempVendorCDR_20' ) end [2025-03-04 14:17:21] Production.INFO: ProcessCDR(1,14606359,1,1,2) [2025-03-04 14:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606359', 'tblTempUsageDetail_20' ) start [2025-03-04 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606359', 'tblTempUsageDetail_20' ) end [2025-03-04 14:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:17:27] Production.INFO: ==19680== Releasing lock... [2025-03-04 14:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:17:27] Production.INFO: 68 MB #Memory Used# [2025-03-04 14:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:18:06 [end_date_ymd] => 2025-03-04 14:18:06 [RateCDR] => 1 ) [2025-03-04 14:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 11:18:06' and `end` < '2025-03-04 14:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 14:18:19] Production.INFO: count ==5331 [2025-03-04 14:18:22] Production.ERROR: pbx CDR StartTime 2025-03-04 11:18:06 - End Time 2025-03-04 14:18:06 [2025-03-04 14:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606364', 'tblTempUsageDetail_20' ) start [2025-03-04 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606364', 'tblTempUsageDetail_20' ) end [2025-03-04 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606364', 'tblTempVendorCDR_20' ) start [2025-03-04 14:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606364', 'tblTempVendorCDR_20' ) end [2025-03-04 14:18:22] Production.INFO: ProcessCDR(1,14606364,1,1,2) [2025-03-04 14:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606364', 'tblTempUsageDetail_20' ) start [2025-03-04 14:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606364', 'tblTempUsageDetail_20' ) end [2025-03-04 14:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:18:27] Production.INFO: ==19778== Releasing lock... [2025-03-04 14:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:18:27] Production.INFO: 68 MB #Memory Used# [2025-03-04 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:19:05 [end_date_ymd] => 2025-03-04 14:19:05 [RateCDR] => 1 ) [2025-03-04 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-04 11:19:05' and `end` < '2025-03-04 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-04 14:19:18] Production.INFO: count ==5335 [2025-03-04 14:19:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:19:05 - End Time 2025-03-04 14:19:05 [2025-03-04 14:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606369', 'tblTempUsageDetail_20' ) start [2025-03-04 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606369', 'tblTempUsageDetail_20' ) end [2025-03-04 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606369', 'tblTempVendorCDR_20' ) start [2025-03-04 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606369', 'tblTempVendorCDR_20' ) end [2025-03-04 14:19:21] Production.INFO: ProcessCDR(1,14606369,1,1,2) [2025-03-04 14:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606369', 'tblTempUsageDetail_20' ) start [2025-03-04 14:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606369', 'tblTempUsageDetail_20' ) end [2025-03-04 14:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:19:27] Production.INFO: ==19853== Releasing lock... [2025-03-04 14:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:19:27] Production.INFO: 68 MB #Memory Used# [2025-03-04 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:20:06 [end_date_ymd] => 2025-03-04 14:20:06 [RateCDR] => 1 ) [2025-03-04 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-04 11:20:06' and `end` < '2025-03-04 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-04 14:20:19] Production.INFO: count ==5291 [2025-03-04 14:20:22] Production.ERROR: pbx CDR StartTime 2025-03-04 11:20:06 - End Time 2025-03-04 14:20:06 [2025-03-04 14:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606374', 'tblTempUsageDetail_20' ) start [2025-03-04 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606374', 'tblTempUsageDetail_20' ) end [2025-03-04 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606374', 'tblTempVendorCDR_20' ) start [2025-03-04 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606374', 'tblTempVendorCDR_20' ) end [2025-03-04 14:20:22] Production.INFO: ProcessCDR(1,14606374,1,1,2) [2025-03-04 14:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606374', 'tblTempUsageDetail_20' ) start [2025-03-04 14:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606374', 'tblTempUsageDetail_20' ) end [2025-03-04 14:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:20:28] Production.INFO: ==19927== Releasing lock... [2025-03-04 14:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:20:28] Production.INFO: 67.75 MB #Memory Used# [2025-03-04 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:21:05 [end_date_ymd] => 2025-03-04 14:21:05 [RateCDR] => 1 ) [2025-03-04 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-04 11:21:05' and `end` < '2025-03-04 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-04 14:21:18] Production.INFO: count ==5251 [2025-03-04 14:21:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:21:05 - End Time 2025-03-04 14:21:05 [2025-03-04 14:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606380', 'tblTempUsageDetail_20' ) start [2025-03-04 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606380', 'tblTempUsageDetail_20' ) end [2025-03-04 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606380', 'tblTempVendorCDR_20' ) start [2025-03-04 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606380', 'tblTempVendorCDR_20' ) end [2025-03-04 14:21:21] Production.INFO: ProcessCDR(1,14606380,1,1,2) [2025-03-04 14:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606380', 'tblTempUsageDetail_20' ) start [2025-03-04 14:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606380', 'tblTempUsageDetail_20' ) end [2025-03-04 14:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:21:27] Production.INFO: ==20000== Releasing lock... [2025-03-04 14:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:21:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-04 14:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:22:06 [end_date_ymd] => 2025-03-04 14:22:06 [RateCDR] => 1 ) [2025-03-04 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-04 11:22:06' and `end` < '2025-03-04 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-04 14:22:19] Production.INFO: count ==5223 [2025-03-04 14:22:22] Production.ERROR: pbx CDR StartTime 2025-03-04 11:22:06 - End Time 2025-03-04 14:22:06 [2025-03-04 14:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606385', 'tblTempUsageDetail_20' ) start [2025-03-04 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606385', 'tblTempUsageDetail_20' ) end [2025-03-04 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606385', 'tblTempVendorCDR_20' ) start [2025-03-04 14:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606385', 'tblTempVendorCDR_20' ) end [2025-03-04 14:22:22] Production.INFO: ProcessCDR(1,14606385,1,1,2) [2025-03-04 14:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606385', 'tblTempUsageDetail_20' ) start [2025-03-04 14:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606385', 'tblTempUsageDetail_20' ) end [2025-03-04 14:22:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:22:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:22:28] Production.INFO: ==20075== Releasing lock... [2025-03-04 14:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:22:28] Production.INFO: 67 MB #Memory Used# [2025-03-04 14:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:23:06 [end_date_ymd] => 2025-03-04 14:23:06 [RateCDR] => 1 ) [2025-03-04 14: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-04 11:23:06' and `end` < '2025-03-04 14: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-04 14:23:19] Production.INFO: count ==5205 [2025-03-04 14:23:22] Production.ERROR: pbx CDR StartTime 2025-03-04 11:23:06 - End Time 2025-03-04 14:23:06 [2025-03-04 14:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606390', 'tblTempUsageDetail_20' ) start [2025-03-04 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606390', 'tblTempUsageDetail_20' ) end [2025-03-04 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606390', 'tblTempVendorCDR_20' ) start [2025-03-04 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606390', 'tblTempVendorCDR_20' ) end [2025-03-04 14:23:22] Production.INFO: ProcessCDR(1,14606390,1,1,2) [2025-03-04 14:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606390', 'tblTempUsageDetail_20' ) start [2025-03-04 14:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606390', 'tblTempUsageDetail_20' ) end [2025-03-04 14:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:23:28] Production.INFO: ==20147== Releasing lock... [2025-03-04 14:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:23:28] Production.INFO: 67 MB #Memory Used# [2025-03-04 14:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:24:06 [end_date_ymd] => 2025-03-04 14:24:06 [RateCDR] => 1 ) [2025-03-04 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-04 11:24:06' and `end` < '2025-03-04 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-04 14:24:19] Production.INFO: count ==5206 [2025-03-04 14:24:22] Production.ERROR: pbx CDR StartTime 2025-03-04 11:24:06 - End Time 2025-03-04 14:24:06 [2025-03-04 14:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606395', 'tblTempUsageDetail_20' ) start [2025-03-04 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606395', 'tblTempUsageDetail_20' ) end [2025-03-04 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606395', 'tblTempVendorCDR_20' ) start [2025-03-04 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606395', 'tblTempVendorCDR_20' ) end [2025-03-04 14:24:22] Production.INFO: ProcessCDR(1,14606395,1,1,2) [2025-03-04 14:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606395', 'tblTempUsageDetail_20' ) start [2025-03-04 14:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606395', 'tblTempUsageDetail_20' ) end [2025-03-04 14:24:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:24:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:24:28] Production.INFO: ==20217== Releasing lock... [2025-03-04 14:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:24:28] Production.INFO: 67 MB #Memory Used# [2025-03-04 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:25:05 [end_date_ymd] => 2025-03-04 14:25:05 [RateCDR] => 1 ) [2025-03-04 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-04 11:25:05' and `end` < '2025-03-04 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-04 14:25:18] Production.INFO: count ==5265 [2025-03-04 14:25:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:25:05 - End Time 2025-03-04 14:25:05 [2025-03-04 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606400', 'tblTempUsageDetail_20' ) start [2025-03-04 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606400', 'tblTempUsageDetail_20' ) end [2025-03-04 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606400', 'tblTempVendorCDR_20' ) start [2025-03-04 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606400', 'tblTempVendorCDR_20' ) end [2025-03-04 14:25:21] Production.INFO: ProcessCDR(1,14606400,1,1,2) [2025-03-04 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606400', 'tblTempUsageDetail_20' ) start [2025-03-04 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606400', 'tblTempUsageDetail_20' ) end [2025-03-04 14:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:25:27] Production.INFO: ==20288== Releasing lock... [2025-03-04 14:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:25:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-04 14:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:26:06 [end_date_ymd] => 2025-03-04 14:26:06 [RateCDR] => 1 ) [2025-03-04 14: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-04 11:26:06' and `end` < '2025-03-04 14: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-04 14:26:19] Production.INFO: count ==5276 [2025-03-04 14:26:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:26:06 - End Time 2025-03-04 14:26:06 [2025-03-04 14:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606401', 'tblTempUsageDetail_20' ) start [2025-03-04 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606401', 'tblTempUsageDetail_20' ) end [2025-03-04 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606401', 'tblTempVendorCDR_20' ) start [2025-03-04 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606401', 'tblTempVendorCDR_20' ) end [2025-03-04 14:26:22] Production.INFO: ProcessCDR(1,14606401,1,1,2) [2025-03-04 14:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606401', 'tblTempUsageDetail_20' ) start [2025-03-04 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606401', 'tblTempUsageDetail_20' ) end [2025-03-04 14:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:26:27] Production.INFO: ==20359== Releasing lock... [2025-03-04 14:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:26:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-04 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:27:05 [end_date_ymd] => 2025-03-04 14:27:05 [RateCDR] => 1 ) [2025-03-04 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-04 11:27:05' and `end` < '2025-03-04 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-04 14:27:19] Production.INFO: count ==5249 [2025-03-04 14:27:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:27:05 - End Time 2025-03-04 14:27:05 [2025-03-04 14:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606410', 'tblTempUsageDetail_20' ) start [2025-03-04 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606410', 'tblTempUsageDetail_20' ) end [2025-03-04 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606410', 'tblTempVendorCDR_20' ) start [2025-03-04 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606410', 'tblTempVendorCDR_20' ) end [2025-03-04 14:27:21] Production.INFO: ProcessCDR(1,14606410,1,1,2) [2025-03-04 14:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606410', 'tblTempUsageDetail_20' ) start [2025-03-04 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606410', 'tblTempUsageDetail_20' ) end [2025-03-04 14:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:27:27] Production.INFO: ==20431== Releasing lock... [2025-03-04 14:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:27:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-04 14:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:28:06 [end_date_ymd] => 2025-03-04 14:28:06 [RateCDR] => 1 ) [2025-03-04 14: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-04 11:28:06' and `end` < '2025-03-04 14: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-04 14:28:19] Production.INFO: count ==5235 [2025-03-04 14:28:22] Production.ERROR: pbx CDR StartTime 2025-03-04 11:28:06 - End Time 2025-03-04 14:28:06 [2025-03-04 14:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606415', 'tblTempUsageDetail_20' ) start [2025-03-04 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606415', 'tblTempUsageDetail_20' ) end [2025-03-04 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606415', 'tblTempVendorCDR_20' ) start [2025-03-04 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606415', 'tblTempVendorCDR_20' ) end [2025-03-04 14:28:22] Production.INFO: ProcessCDR(1,14606415,1,1,2) [2025-03-04 14:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606415', 'tblTempUsageDetail_20' ) start [2025-03-04 14:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606415', 'tblTempUsageDetail_20' ) end [2025-03-04 14:28:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:28:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:28:28] Production.INFO: ==20504== Releasing lock... [2025-03-04 14:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:28:28] Production.INFO: 67.25 MB #Memory Used# [2025-03-04 14:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:29:06 [end_date_ymd] => 2025-03-04 14:29:06 [RateCDR] => 1 ) [2025-03-04 14: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-04 11:29:06' and `end` < '2025-03-04 14: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-04 14:29:19] Production.INFO: count ==5252 [2025-03-04 14:29:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:29:06 - End Time 2025-03-04 14:29:06 [2025-03-04 14:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606420', 'tblTempUsageDetail_20' ) start [2025-03-04 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606420', 'tblTempUsageDetail_20' ) end [2025-03-04 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606420', 'tblTempVendorCDR_20' ) start [2025-03-04 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606420', 'tblTempVendorCDR_20' ) end [2025-03-04 14:29:21] Production.INFO: ProcessCDR(1,14606420,1,1,2) [2025-03-04 14:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606420', 'tblTempUsageDetail_20' ) start [2025-03-04 14:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606420', 'tblTempUsageDetail_20' ) end [2025-03-04 14:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:29:27] Production.INFO: ==20620== Releasing lock... [2025-03-04 14:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:29:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-04 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:30:06 [end_date_ymd] => 2025-03-04 14:30:06 [RateCDR] => 1 ) [2025-03-04 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-04 11:30:06' and `end` < '2025-03-04 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-04 14:30:20] Production.INFO: count ==5297 [2025-03-04 14:30:22] Production.ERROR: pbx CDR StartTime 2025-03-04 11:30:06 - End Time 2025-03-04 14:30:06 [2025-03-04 14:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606425', 'tblTempUsageDetail_20' ) start [2025-03-04 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606425', 'tblTempUsageDetail_20' ) end [2025-03-04 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606425', 'tblTempVendorCDR_20' ) start [2025-03-04 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606425', 'tblTempVendorCDR_20' ) end [2025-03-04 14:30:22] Production.INFO: ProcessCDR(1,14606425,1,1,2) [2025-03-04 14:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606425', 'tblTempUsageDetail_20' ) start [2025-03-04 14:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606425', 'tblTempUsageDetail_20' ) end [2025-03-04 14:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:30:28] Production.INFO: ==20695== Releasing lock... [2025-03-04 14:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:30:28] Production.INFO: 67.75 MB #Memory Used# [2025-03-04 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:31:05 [end_date_ymd] => 2025-03-04 14:31:05 [RateCDR] => 1 ) [2025-03-04 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 11:31:05' and `end` < '2025-03-04 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 14:31:18] Production.INFO: count ==5320 [2025-03-04 14:31:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:31:05 - End Time 2025-03-04 14:31:05 [2025-03-04 14:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606431', 'tblTempUsageDetail_20' ) start [2025-03-04 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606431', 'tblTempUsageDetail_20' ) end [2025-03-04 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606431', 'tblTempVendorCDR_20' ) start [2025-03-04 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606431', 'tblTempVendorCDR_20' ) end [2025-03-04 14:31:21] Production.INFO: ProcessCDR(1,14606431,1,1,2) [2025-03-04 14:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606431', 'tblTempUsageDetail_20' ) start [2025-03-04 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606431', 'tblTempUsageDetail_20' ) end [2025-03-04 14:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:31:27] Production.INFO: ==20767== Releasing lock... [2025-03-04 14:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:31:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-04 14:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:32:06 [end_date_ymd] => 2025-03-04 14:32:06 [RateCDR] => 1 ) [2025-03-04 14: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 11:32:06' and `end` < '2025-03-04 14: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-04 14:32:19] Production.INFO: count ==5316 [2025-03-04 14:32:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:32:06 - End Time 2025-03-04 14:32:06 [2025-03-04 14:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606436', 'tblTempUsageDetail_20' ) start [2025-03-04 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606436', 'tblTempUsageDetail_20' ) end [2025-03-04 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606436', 'tblTempVendorCDR_20' ) start [2025-03-04 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606436', 'tblTempVendorCDR_20' ) end [2025-03-04 14:32:22] Production.INFO: ProcessCDR(1,14606436,1,1,2) [2025-03-04 14:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606436', 'tblTempUsageDetail_20' ) start [2025-03-04 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606436', 'tblTempUsageDetail_20' ) end [2025-03-04 14:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:32:27] Production.INFO: ==20839== Releasing lock... [2025-03-04 14:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:32:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-04 14:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:33:06 [end_date_ymd] => 2025-03-04 14:33:06 [RateCDR] => 1 ) [2025-03-04 14:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 11:33:06' and `end` < '2025-03-04 14:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 14:33:19] Production.INFO: count ==5330 [2025-03-04 14:33:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:33:06 - End Time 2025-03-04 14:33:06 [2025-03-04 14:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606441', 'tblTempUsageDetail_20' ) start [2025-03-04 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606441', 'tblTempUsageDetail_20' ) end [2025-03-04 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606441', 'tblTempVendorCDR_20' ) start [2025-03-04 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606441', 'tblTempVendorCDR_20' ) end [2025-03-04 14:33:21] Production.INFO: ProcessCDR(1,14606441,1,1,2) [2025-03-04 14:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606441', 'tblTempUsageDetail_20' ) start [2025-03-04 14:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606441', 'tblTempUsageDetail_20' ) end [2025-03-04 14:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:33:27] Production.INFO: ==20914== Releasing lock... [2025-03-04 14:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:33:27] Production.INFO: 68 MB #Memory Used# [2025-03-04 14:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:34:06 [end_date_ymd] => 2025-03-04 14:34:06 [RateCDR] => 1 ) [2025-03-04 14: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 11:34:06' and `end` < '2025-03-04 14: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-04 14:34:19] Production.INFO: count ==5301 [2025-03-04 14:34:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:34:06 - End Time 2025-03-04 14:34:06 [2025-03-04 14:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606446', 'tblTempUsageDetail_20' ) start [2025-03-04 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606446', 'tblTempUsageDetail_20' ) end [2025-03-04 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606446', 'tblTempVendorCDR_20' ) start [2025-03-04 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606446', 'tblTempVendorCDR_20' ) end [2025-03-04 14:34:21] Production.INFO: ProcessCDR(1,14606446,1,1,2) [2025-03-04 14:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606446', 'tblTempUsageDetail_20' ) start [2025-03-04 14:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606446', 'tblTempUsageDetail_20' ) end [2025-03-04 14:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:34:27] Production.INFO: ==20985== Releasing lock... [2025-03-04 14:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:34:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-04 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:35:05 [end_date_ymd] => 2025-03-04 14:35:05 [RateCDR] => 1 ) [2025-03-04 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-04 11:35:05' and `end` < '2025-03-04 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-04 14:35:18] Production.INFO: count ==5305 [2025-03-04 14:35:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:35:05 - End Time 2025-03-04 14:35:05 [2025-03-04 14:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606451', 'tblTempUsageDetail_20' ) start [2025-03-04 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606451', 'tblTempUsageDetail_20' ) end [2025-03-04 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606451', 'tblTempVendorCDR_20' ) start [2025-03-04 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606451', 'tblTempVendorCDR_20' ) end [2025-03-04 14:35:21] Production.INFO: ProcessCDR(1,14606451,1,1,2) [2025-03-04 14:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606451', 'tblTempUsageDetail_20' ) start [2025-03-04 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606451', 'tblTempUsageDetail_20' ) end [2025-03-04 14:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:35:27] Production.INFO: ==21066== Releasing lock... [2025-03-04 14:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:35:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-04 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:36:05 [end_date_ymd] => 2025-03-04 14:36:05 [RateCDR] => 1 ) [2025-03-04 14:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 11:36:05' and `end` < '2025-03-04 14:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 14:36:19] Production.INFO: count ==5312 [2025-03-04 14:36:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:36:05 - End Time 2025-03-04 14:36:05 [2025-03-04 14:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606456', 'tblTempUsageDetail_20' ) start [2025-03-04 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606456', 'tblTempUsageDetail_20' ) end [2025-03-04 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606456', 'tblTempVendorCDR_20' ) start [2025-03-04 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606456', 'tblTempVendorCDR_20' ) end [2025-03-04 14:36:21] Production.INFO: ProcessCDR(1,14606456,1,1,2) [2025-03-04 14:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606456', 'tblTempUsageDetail_20' ) start [2025-03-04 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606456', 'tblTempUsageDetail_20' ) end [2025-03-04 14:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:36:27] Production.INFO: ==21138== Releasing lock... [2025-03-04 14:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:36:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-04 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:37:05 [end_date_ymd] => 2025-03-04 14:37:05 [RateCDR] => 1 ) [2025-03-04 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-04 11:37:05' and `end` < '2025-03-04 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-04 14:37:18] Production.INFO: count ==5322 [2025-03-04 14:37:20] Production.ERROR: pbx CDR StartTime 2025-03-04 11:37:05 - End Time 2025-03-04 14:37:05 [2025-03-04 14:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606461', 'tblTempUsageDetail_20' ) start [2025-03-04 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606461', 'tblTempUsageDetail_20' ) end [2025-03-04 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606461', 'tblTempVendorCDR_20' ) start [2025-03-04 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606461', 'tblTempVendorCDR_20' ) end [2025-03-04 14:37:20] Production.INFO: ProcessCDR(1,14606461,1,1,2) [2025-03-04 14:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606461', 'tblTempUsageDetail_20' ) start [2025-03-04 14:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606461', 'tblTempUsageDetail_20' ) end [2025-03-04 14:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:37:26] Production.INFO: ==21209== Releasing lock... [2025-03-04 14:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:37:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-04 14:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:38:06 [end_date_ymd] => 2025-03-04 14:38:06 [RateCDR] => 1 ) [2025-03-04 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-04 11:38:06' and `end` < '2025-03-04 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-04 14:38:19] Production.INFO: count ==5315 [2025-03-04 14:38:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:38:06 - End Time 2025-03-04 14:38:06 [2025-03-04 14:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606466', 'tblTempUsageDetail_20' ) start [2025-03-04 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606466', 'tblTempUsageDetail_20' ) end [2025-03-04 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606466', 'tblTempVendorCDR_20' ) start [2025-03-04 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606466', 'tblTempVendorCDR_20' ) end [2025-03-04 14:38:22] Production.INFO: ProcessCDR(1,14606466,1,1,2) [2025-03-04 14:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606466', 'tblTempUsageDetail_20' ) start [2025-03-04 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606466', 'tblTempUsageDetail_20' ) end [2025-03-04 14:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:38:27] Production.INFO: ==21284== Releasing lock... [2025-03-04 14:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:38:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-04 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:39:05 [end_date_ymd] => 2025-03-04 14:39:05 [RateCDR] => 1 ) [2025-03-04 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-04 11:39:05' and `end` < '2025-03-04 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-04 14:39:18] Production.INFO: count ==5309 [2025-03-04 14:39:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:39:05 - End Time 2025-03-04 14:39:05 [2025-03-04 14:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606471', 'tblTempUsageDetail_20' ) start [2025-03-04 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606471', 'tblTempUsageDetail_20' ) end [2025-03-04 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606471', 'tblTempVendorCDR_20' ) start [2025-03-04 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606471', 'tblTempVendorCDR_20' ) end [2025-03-04 14:39:21] Production.INFO: ProcessCDR(1,14606471,1,1,2) [2025-03-04 14:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606471', 'tblTempUsageDetail_20' ) start [2025-03-04 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606471', 'tblTempUsageDetail_20' ) end [2025-03-04 14:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:39:26] Production.INFO: ==21358== Releasing lock... [2025-03-04 14:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:39:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-04 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:40:06 [end_date_ymd] => 2025-03-04 14:40:06 [RateCDR] => 1 ) [2025-03-04 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-04 11:40:06' and `end` < '2025-03-04 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-04 14:40:19] Production.INFO: count ==5307 [2025-03-04 14:40:22] Production.ERROR: pbx CDR StartTime 2025-03-04 11:40:06 - End Time 2025-03-04 14:40:06 [2025-03-04 14:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606477', 'tblTempUsageDetail_20' ) start [2025-03-04 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606477', 'tblTempUsageDetail_20' ) end [2025-03-04 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606477', 'tblTempVendorCDR_20' ) start [2025-03-04 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606477', 'tblTempVendorCDR_20' ) end [2025-03-04 14:40:22] Production.INFO: ProcessCDR(1,14606477,1,1,2) [2025-03-04 14:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606477', 'tblTempUsageDetail_20' ) start [2025-03-04 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606477', 'tblTempUsageDetail_20' ) end [2025-03-04 14:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:40:27] Production.INFO: ==21431== Releasing lock... [2025-03-04 14:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:40:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-04 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:41:05 [end_date_ymd] => 2025-03-04 14:41:05 [RateCDR] => 1 ) [2025-03-04 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-04 11:41:05' and `end` < '2025-03-04 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-04 14:41:18] Production.INFO: count ==5304 [2025-03-04 14:41:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:41:05 - End Time 2025-03-04 14:41:05 [2025-03-04 14:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606482', 'tblTempUsageDetail_20' ) start [2025-03-04 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606482', 'tblTempUsageDetail_20' ) end [2025-03-04 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606482', 'tblTempVendorCDR_20' ) start [2025-03-04 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606482', 'tblTempVendorCDR_20' ) end [2025-03-04 14:41:21] Production.INFO: ProcessCDR(1,14606482,1,1,2) [2025-03-04 14:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606482', 'tblTempUsageDetail_20' ) start [2025-03-04 14:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606482', 'tblTempUsageDetail_20' ) end [2025-03-04 14:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:41:24] Production.INFO: ==21511== Releasing lock... [2025-03-04 14:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:41:24] Production.INFO: 67.75 MB #Memory Used# [2025-03-04 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:42:05 [end_date_ymd] => 2025-03-04 14:42:05 [RateCDR] => 1 ) [2025-03-04 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-04 11:42:05' and `end` < '2025-03-04 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-04 14:42:19] Production.INFO: count ==5262 [2025-03-04 14:42:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:42:05 - End Time 2025-03-04 14:42:05 [2025-03-04 14:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606487', 'tblTempUsageDetail_20' ) start [2025-03-04 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606487', 'tblTempUsageDetail_20' ) end [2025-03-04 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606487', 'tblTempVendorCDR_20' ) start [2025-03-04 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606487', 'tblTempVendorCDR_20' ) end [2025-03-04 14:42:21] Production.INFO: ProcessCDR(1,14606487,1,1,2) [2025-03-04 14:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606487', 'tblTempUsageDetail_20' ) start [2025-03-04 14:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606487', 'tblTempUsageDetail_20' ) end [2025-03-04 14:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:42:26] Production.INFO: ==21594== Releasing lock... [2025-03-04 14:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:42:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-04 14:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:43:06 [end_date_ymd] => 2025-03-04 14:43:06 [RateCDR] => 1 ) [2025-03-04 14: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-04 11:43:06' and `end` < '2025-03-04 14: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-04 14:43:19] Production.INFO: count ==5261 [2025-03-04 14:43:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:43:06 - End Time 2025-03-04 14:43:06 [2025-03-04 14:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606492', 'tblTempUsageDetail_20' ) start [2025-03-04 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606492', 'tblTempUsageDetail_20' ) end [2025-03-04 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606492', 'tblTempVendorCDR_20' ) start [2025-03-04 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606492', 'tblTempVendorCDR_20' ) end [2025-03-04 14:43:21] Production.INFO: ProcessCDR(1,14606492,1,1,2) [2025-03-04 14:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606492', 'tblTempUsageDetail_20' ) start [2025-03-04 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606492', 'tblTempUsageDetail_20' ) end [2025-03-04 14:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:43:27] Production.INFO: ==21675== Releasing lock... [2025-03-04 14:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:43:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-04 14:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:44:06 [end_date_ymd] => 2025-03-04 14:44:06 [RateCDR] => 1 ) [2025-03-04 14: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 11:44:06' and `end` < '2025-03-04 14: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-04 14:44:20] Production.INFO: count ==5261 [2025-03-04 14:44:22] Production.ERROR: pbx CDR StartTime 2025-03-04 11:44:06 - End Time 2025-03-04 14:44:06 [2025-03-04 14:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606497', 'tblTempUsageDetail_20' ) start [2025-03-04 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606497', 'tblTempUsageDetail_20' ) end [2025-03-04 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606497', 'tblTempVendorCDR_20' ) start [2025-03-04 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606497', 'tblTempVendorCDR_20' ) end [2025-03-04 14:44:22] Production.INFO: ProcessCDR(1,14606497,1,1,2) [2025-03-04 14:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606497', 'tblTempUsageDetail_20' ) start [2025-03-04 14:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606497', 'tblTempUsageDetail_20' ) end [2025-03-04 14:44:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:44:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:44:28] Production.INFO: ==21758== Releasing lock... [2025-03-04 14:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:44:28] Production.INFO: 67.5 MB #Memory Used# [2025-03-04 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:45:05 [end_date_ymd] => 2025-03-04 14:45:05 [RateCDR] => 1 ) [2025-03-04 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-04 11:45:05' and `end` < '2025-03-04 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-04 14:45:19] Production.INFO: count ==5278 [2025-03-04 14:45:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:45:05 - End Time 2025-03-04 14:45:05 [2025-03-04 14:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606502', 'tblTempUsageDetail_20' ) start [2025-03-04 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606502', 'tblTempUsageDetail_20' ) end [2025-03-04 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606502', 'tblTempVendorCDR_20' ) start [2025-03-04 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606502', 'tblTempVendorCDR_20' ) end [2025-03-04 14:45:22] Production.INFO: ProcessCDR(1,14606502,1,1,2) [2025-03-04 14:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606502', 'tblTempUsageDetail_20' ) start [2025-03-04 14:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606502', 'tblTempUsageDetail_20' ) end [2025-03-04 14:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:45:27] Production.INFO: ==21877== Releasing lock... [2025-03-04 14:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:45:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-04 14:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:46:06 [end_date_ymd] => 2025-03-04 14:46:06 [RateCDR] => 1 ) [2025-03-04 14: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 11:46:06' and `end` < '2025-03-04 14: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-04 14:46:19] Production.INFO: count ==5279 [2025-03-04 14:46:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:46:06 - End Time 2025-03-04 14:46:06 [2025-03-04 14:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606507', 'tblTempUsageDetail_20' ) start [2025-03-04 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606507', 'tblTempUsageDetail_20' ) end [2025-03-04 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606507', 'tblTempVendorCDR_20' ) start [2025-03-04 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606507', 'tblTempVendorCDR_20' ) end [2025-03-04 14:46:22] Production.INFO: ProcessCDR(1,14606507,1,1,2) [2025-03-04 14:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606507', 'tblTempUsageDetail_20' ) start [2025-03-04 14:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606507', 'tblTempUsageDetail_20' ) end [2025-03-04 14:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:46:27] Production.INFO: ==21958== Releasing lock... [2025-03-04 14:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:46:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-04 14:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:47:06 [end_date_ymd] => 2025-03-04 14:47:06 [RateCDR] => 1 ) [2025-03-04 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-04 11:47:06' and `end` < '2025-03-04 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-04 14:47:19] Production.INFO: count ==5273 [2025-03-04 14:47:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:47:06 - End Time 2025-03-04 14:47:06 [2025-03-04 14:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606512', 'tblTempUsageDetail_20' ) start [2025-03-04 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606512', 'tblTempUsageDetail_20' ) end [2025-03-04 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606512', 'tblTempVendorCDR_20' ) start [2025-03-04 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606512', 'tblTempVendorCDR_20' ) end [2025-03-04 14:47:22] Production.INFO: ProcessCDR(1,14606512,1,1,2) [2025-03-04 14:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606512', 'tblTempUsageDetail_20' ) start [2025-03-04 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606512', 'tblTempUsageDetail_20' ) end [2025-03-04 14:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:47:26] Production.INFO: ==22049== Releasing lock... [2025-03-04 14:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:47:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-04 14:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:48:06 [end_date_ymd] => 2025-03-04 14:48:06 [RateCDR] => 1 ) [2025-03-04 14: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 11:48:06' and `end` < '2025-03-04 14: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-04 14:48:19] Production.INFO: count ==5261 [2025-03-04 14:48:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:48:06 - End Time 2025-03-04 14:48:06 [2025-03-04 14:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606517', 'tblTempUsageDetail_20' ) start [2025-03-04 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606517', 'tblTempUsageDetail_20' ) end [2025-03-04 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606517', 'tblTempVendorCDR_20' ) start [2025-03-04 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606517', 'tblTempVendorCDR_20' ) end [2025-03-04 14:48:22] Production.INFO: ProcessCDR(1,14606517,1,1,2) [2025-03-04 14:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606517', 'tblTempUsageDetail_20' ) start [2025-03-04 14:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606517', 'tblTempUsageDetail_20' ) end [2025-03-04 14:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:48:27] Production.INFO: ==22130== Releasing lock... [2025-03-04 14:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:48:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-04 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:49:05 [end_date_ymd] => 2025-03-04 14:49:05 [RateCDR] => 1 ) [2025-03-04 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-04 11:49:05' and `end` < '2025-03-04 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-04 14:49:18] Production.INFO: count ==5261 [2025-03-04 14:49:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:49:05 - End Time 2025-03-04 14:49:05 [2025-03-04 14:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606522', 'tblTempUsageDetail_20' ) start [2025-03-04 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606522', 'tblTempUsageDetail_20' ) end [2025-03-04 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606522', 'tblTempVendorCDR_20' ) start [2025-03-04 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606522', 'tblTempVendorCDR_20' ) end [2025-03-04 14:49:21] Production.INFO: ProcessCDR(1,14606522,1,1,2) [2025-03-04 14:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606522', 'tblTempUsageDetail_20' ) start [2025-03-04 14:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606522', 'tblTempUsageDetail_20' ) end [2025-03-04 14:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:49:26] Production.INFO: ==22222== Releasing lock... [2025-03-04 14:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:49:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-04 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:50:06 [end_date_ymd] => 2025-03-04 14:50:06 [RateCDR] => 1 ) [2025-03-04 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-04 11:50:06' and `end` < '2025-03-04 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-04 14:50:20] Production.INFO: count ==5267 [2025-03-04 14:50:22] Production.ERROR: pbx CDR StartTime 2025-03-04 11:50:06 - End Time 2025-03-04 14:50:06 [2025-03-04 14:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606527', 'tblTempUsageDetail_20' ) start [2025-03-04 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606527', 'tblTempUsageDetail_20' ) end [2025-03-04 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606527', 'tblTempVendorCDR_20' ) start [2025-03-04 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606527', 'tblTempVendorCDR_20' ) end [2025-03-04 14:50:22] Production.INFO: ProcessCDR(1,14606527,1,1,2) [2025-03-04 14:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606527', 'tblTempUsageDetail_20' ) start [2025-03-04 14:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606527', 'tblTempUsageDetail_20' ) end [2025-03-04 14:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:50:28] Production.INFO: ==22305== Releasing lock... [2025-03-04 14:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:50:28] Production.INFO: 67.5 MB #Memory Used# [2025-03-04 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:51:05 [end_date_ymd] => 2025-03-04 14:51:05 [RateCDR] => 1 ) [2025-03-04 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-04 11:51:05' and `end` < '2025-03-04 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-04 14:51:19] Production.INFO: count ==5291 [2025-03-04 14:51:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:51:05 - End Time 2025-03-04 14:51:05 [2025-03-04 14:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606533', 'tblTempUsageDetail_20' ) start [2025-03-04 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606533', 'tblTempUsageDetail_20' ) end [2025-03-04 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606533', 'tblTempVendorCDR_20' ) start [2025-03-04 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606533', 'tblTempVendorCDR_20' ) end [2025-03-04 14:51:21] Production.INFO: ProcessCDR(1,14606533,1,1,2) [2025-03-04 14:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606533', 'tblTempUsageDetail_20' ) start [2025-03-04 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606533', 'tblTempUsageDetail_20' ) end [2025-03-04 14:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:51:26] Production.INFO: ==22388== Releasing lock... [2025-03-04 14:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:51:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-04 14:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:52:06 [end_date_ymd] => 2025-03-04 14:52:06 [RateCDR] => 1 ) [2025-03-04 14: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 11:52:06' and `end` < '2025-03-04 14: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-04 14:52:19] Production.INFO: count ==5287 [2025-03-04 14:52:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:52:06 - End Time 2025-03-04 14:52:06 [2025-03-04 14:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606538', 'tblTempUsageDetail_20' ) start [2025-03-04 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606538', 'tblTempUsageDetail_20' ) end [2025-03-04 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606538', 'tblTempVendorCDR_20' ) start [2025-03-04 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606538', 'tblTempVendorCDR_20' ) end [2025-03-04 14:52:21] Production.INFO: ProcessCDR(1,14606538,1,1,2) [2025-03-04 14:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606538', 'tblTempUsageDetail_20' ) start [2025-03-04 14:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606538', 'tblTempUsageDetail_20' ) end [2025-03-04 14:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:52:26] Production.INFO: ==22466== Releasing lock... [2025-03-04 14:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:52:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-04 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:53:05 [end_date_ymd] => 2025-03-04 14:53:05 [RateCDR] => 1 ) [2025-03-04 14:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 11:53:05' and `end` < '2025-03-04 14:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 14:53:18] Production.INFO: count ==5275 [2025-03-04 14:53:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:53:05 - End Time 2025-03-04 14:53:05 [2025-03-04 14:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606543', 'tblTempUsageDetail_20' ) start [2025-03-04 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606543', 'tblTempUsageDetail_20' ) end [2025-03-04 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606543', 'tblTempVendorCDR_20' ) start [2025-03-04 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606543', 'tblTempVendorCDR_20' ) end [2025-03-04 14:53:21] Production.INFO: ProcessCDR(1,14606543,1,1,2) [2025-03-04 14:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606543', 'tblTempUsageDetail_20' ) start [2025-03-04 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606543', 'tblTempUsageDetail_20' ) end [2025-03-04 14:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:53:26] Production.INFO: ==22549== Releasing lock... [2025-03-04 14:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:53:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-04 14:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:54:06 [end_date_ymd] => 2025-03-04 14:54:06 [RateCDR] => 1 ) [2025-03-04 14: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 11:54:06' and `end` < '2025-03-04 14: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-04 14:54:19] Production.INFO: count ==5259 [2025-03-04 14:54:22] Production.ERROR: pbx CDR StartTime 2025-03-04 11:54:06 - End Time 2025-03-04 14:54:06 [2025-03-04 14:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606548', 'tblTempUsageDetail_20' ) start [2025-03-04 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606548', 'tblTempUsageDetail_20' ) end [2025-03-04 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606548', 'tblTempVendorCDR_20' ) start [2025-03-04 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606548', 'tblTempVendorCDR_20' ) end [2025-03-04 14:54:22] Production.INFO: ProcessCDR(1,14606548,1,1,2) [2025-03-04 14:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606548', 'tblTempUsageDetail_20' ) start [2025-03-04 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606548', 'tblTempUsageDetail_20' ) end [2025-03-04 14:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:54:27] Production.INFO: ==22632== Releasing lock... [2025-03-04 14:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:54:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-04 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:55:05 [end_date_ymd] => 2025-03-04 14:55:05 [RateCDR] => 1 ) [2025-03-04 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-04 11:55:05' and `end` < '2025-03-04 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-04 14:55:18] Production.INFO: count ==5240 [2025-03-04 14:55:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:55:05 - End Time 2025-03-04 14:55:05 [2025-03-04 14:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606553', 'tblTempUsageDetail_20' ) start [2025-03-04 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606553', 'tblTempUsageDetail_20' ) end [2025-03-04 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606553', 'tblTempVendorCDR_20' ) start [2025-03-04 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606553', 'tblTempVendorCDR_20' ) end [2025-03-04 14:55:21] Production.INFO: ProcessCDR(1,14606553,1,1,2) [2025-03-04 14:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606553', 'tblTempUsageDetail_20' ) start [2025-03-04 14:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606553', 'tblTempUsageDetail_20' ) end [2025-03-04 14:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:55:26] Production.INFO: ==22714== Releasing lock... [2025-03-04 14:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:55:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-04 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:56:06 [end_date_ymd] => 2025-03-04 14:56:06 [RateCDR] => 1 ) [2025-03-04 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-04 11:56:06' and `end` < '2025-03-04 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-04 14:56:19] Production.INFO: count ==5284 [2025-03-04 14:56:22] Production.ERROR: pbx CDR StartTime 2025-03-04 11:56:06 - End Time 2025-03-04 14:56:06 [2025-03-04 14:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606558', 'tblTempUsageDetail_20' ) start [2025-03-04 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606558', 'tblTempUsageDetail_20' ) end [2025-03-04 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606558', 'tblTempVendorCDR_20' ) start [2025-03-04 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606558', 'tblTempVendorCDR_20' ) end [2025-03-04 14:56:22] Production.INFO: ProcessCDR(1,14606558,1,1,2) [2025-03-04 14:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606558', 'tblTempUsageDetail_20' ) start [2025-03-04 14:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606558', 'tblTempUsageDetail_20' ) end [2025-03-04 14:56:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:56:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:56:28] Production.INFO: ==22797== Releasing lock... [2025-03-04 14:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:56:28] Production.INFO: 67.5 MB #Memory Used# [2025-03-04 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:57:05 [end_date_ymd] => 2025-03-04 14:57:05 [RateCDR] => 1 ) [2025-03-04 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-04 11:57:05' and `end` < '2025-03-04 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-04 14:57:19] Production.INFO: count ==5282 [2025-03-04 14:57:22] Production.ERROR: pbx CDR StartTime 2025-03-04 11:57:05 - End Time 2025-03-04 14:57:05 [2025-03-04 14:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606563', 'tblTempUsageDetail_20' ) start [2025-03-04 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606563', 'tblTempUsageDetail_20' ) end [2025-03-04 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606563', 'tblTempVendorCDR_20' ) start [2025-03-04 14:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606563', 'tblTempVendorCDR_20' ) end [2025-03-04 14:57:22] Production.INFO: ProcessCDR(1,14606563,1,1,2) [2025-03-04 14:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606563', 'tblTempUsageDetail_20' ) start [2025-03-04 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606563', 'tblTempUsageDetail_20' ) end [2025-03-04 14:57:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:57:27] Production.INFO: ==22880== Releasing lock... [2025-03-04 14:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:57:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-04 14:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:58:06 [end_date_ymd] => 2025-03-04 14:58:06 [RateCDR] => 1 ) [2025-03-04 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-04 11:58:06' and `end` < '2025-03-04 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-04 14:58:19] Production.INFO: count ==5285 [2025-03-04 14:58:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:58:06 - End Time 2025-03-04 14:58:06 [2025-03-04 14:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606568', 'tblTempUsageDetail_20' ) start [2025-03-04 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606568', 'tblTempUsageDetail_20' ) end [2025-03-04 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606568', 'tblTempVendorCDR_20' ) start [2025-03-04 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606568', 'tblTempVendorCDR_20' ) end [2025-03-04 14:58:21] Production.INFO: ProcessCDR(1,14606568,1,1,2) [2025-03-04 14:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606568', 'tblTempUsageDetail_20' ) start [2025-03-04 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606568', 'tblTempUsageDetail_20' ) end [2025-03-04 14:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:58:27] Production.INFO: ==22965== Releasing lock... [2025-03-04 14:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:58:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-04 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 11:59:05 [end_date_ymd] => 2025-03-04 14:59:05 [RateCDR] => 1 ) [2025-03-04 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-04 11:59:05' and `end` < '2025-03-04 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-04 14:59:18] Production.INFO: count ==5284 [2025-03-04 14:59:21] Production.ERROR: pbx CDR StartTime 2025-03-04 11:59:05 - End Time 2025-03-04 14:59:05 [2025-03-04 14:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606573', 'tblTempUsageDetail_20' ) start [2025-03-04 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606573', 'tblTempUsageDetail_20' ) end [2025-03-04 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606573', 'tblTempVendorCDR_20' ) start [2025-03-04 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606573', 'tblTempVendorCDR_20' ) end [2025-03-04 14:59:21] Production.INFO: ProcessCDR(1,14606573,1,1,2) [2025-03-04 14:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 14:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 14:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606573', 'tblTempUsageDetail_20' ) start [2025-03-04 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606573', 'tblTempUsageDetail_20' ) end [2025-03-04 14:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 14:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 14:59:27] Production.INFO: ==23044== Releasing lock... [2025-03-04 14:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 14:59:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-04 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:00:06 [end_date_ymd] => 2025-03-04 15:00:06 [RateCDR] => 1 ) [2025-03-04 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-04 12:00:06' and `end` < '2025-03-04 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-04 15:00:20] Production.INFO: count ==5274 [2025-03-04 15:00:23] Production.ERROR: pbx CDR StartTime 2025-03-04 12:00:06 - End Time 2025-03-04 15:00:06 [2025-03-04 15:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606579', 'tblTempUsageDetail_20' ) start [2025-03-04 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606579', 'tblTempUsageDetail_20' ) end [2025-03-04 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606579', 'tblTempVendorCDR_20' ) start [2025-03-04 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606579', 'tblTempVendorCDR_20' ) end [2025-03-04 15:00:23] Production.INFO: ProcessCDR(1,14606579,1,1,2) [2025-03-04 15:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606579', 'tblTempUsageDetail_20' ) start [2025-03-04 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606579', 'tblTempUsageDetail_20' ) end [2025-03-04 15:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:00:28] Production.INFO: ==23170== Releasing lock... [2025-03-04 15:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:00:28] Production.INFO: 67.5 MB #Memory Used# [2025-03-04 15:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:01:06 [end_date_ymd] => 2025-03-04 15:01:06 [RateCDR] => 1 ) [2025-03-04 15: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 12:01:06' and `end` < '2025-03-04 15: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-04 15:01:19] Production.INFO: count ==5305 [2025-03-04 15:01:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:01:06 - End Time 2025-03-04 15:01:06 [2025-03-04 15:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606584', 'tblTempUsageDetail_20' ) start [2025-03-04 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606584', 'tblTempUsageDetail_20' ) end [2025-03-04 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606584', 'tblTempVendorCDR_20' ) start [2025-03-04 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606584', 'tblTempVendorCDR_20' ) end [2025-03-04 15:01:22] Production.INFO: ProcessCDR(1,14606584,1,1,2) [2025-03-04 15:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606584', 'tblTempUsageDetail_20' ) start [2025-03-04 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606584', 'tblTempUsageDetail_20' ) end [2025-03-04 15:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:01:27] Production.INFO: ==23308== Releasing lock... [2025-03-04 15:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:01:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-04 15:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:02:06 [end_date_ymd] => 2025-03-04 15:02:06 [RateCDR] => 1 ) [2025-03-04 15: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-04 12:02:06' and `end` < '2025-03-04 15: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-04 15:02:21] Production.INFO: count ==5304 [2025-03-04 15:02:24] Production.ERROR: pbx CDR StartTime 2025-03-04 12:02:06 - End Time 2025-03-04 15:02:06 [2025-03-04 15:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606589', 'tblTempUsageDetail_20' ) start [2025-03-04 15:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606589', 'tblTempUsageDetail_20' ) end [2025-03-04 15:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606589', 'tblTempVendorCDR_20' ) start [2025-03-04 15:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606589', 'tblTempVendorCDR_20' ) end [2025-03-04 15:02:24] Production.INFO: ProcessCDR(1,14606589,1,1,2) [2025-03-04 15:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606589', 'tblTempUsageDetail_20' ) start [2025-03-04 15:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606589', 'tblTempUsageDetail_20' ) end [2025-03-04 15:02:29] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:02:29] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:02:29] Production.INFO: ==23432== Releasing lock... [2025-03-04 15:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:02:29] Production.INFO: 67.75 MB #Memory Used# [2025-03-04 15:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:03:06 [end_date_ymd] => 2025-03-04 15:03:06 [RateCDR] => 1 ) [2025-03-04 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-04 12:03:06' and `end` < '2025-03-04 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-04 15:03:19] Production.INFO: count ==5332 [2025-03-04 15:03:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:03:06 - End Time 2025-03-04 15:03:06 [2025-03-04 15:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606594', 'tblTempUsageDetail_20' ) start [2025-03-04 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606594', 'tblTempUsageDetail_20' ) end [2025-03-04 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606594', 'tblTempVendorCDR_20' ) start [2025-03-04 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606594', 'tblTempVendorCDR_20' ) end [2025-03-04 15:03:21] Production.INFO: ProcessCDR(1,14606594,1,1,2) [2025-03-04 15:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606594', 'tblTempUsageDetail_20' ) start [2025-03-04 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606594', 'tblTempUsageDetail_20' ) end [2025-03-04 15:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:03:27] Production.INFO: ==23515== Releasing lock... [2025-03-04 15:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:03:27] Production.INFO: 68 MB #Memory Used# [2025-03-04 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:04:06 [end_date_ymd] => 2025-03-04 15:04:06 [RateCDR] => 1 ) [2025-03-04 15: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 12:04:06' and `end` < '2025-03-04 15: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-04 15:04:19] Production.INFO: count ==5327 [2025-03-04 15:04:22] Production.ERROR: pbx CDR StartTime 2025-03-04 12:04:06 - End Time 2025-03-04 15:04:06 [2025-03-04 15:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606599', 'tblTempUsageDetail_20' ) start [2025-03-04 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606599', 'tblTempUsageDetail_20' ) end [2025-03-04 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606599', 'tblTempVendorCDR_20' ) start [2025-03-04 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606599', 'tblTempVendorCDR_20' ) end [2025-03-04 15:04:22] Production.INFO: ProcessCDR(1,14606599,1,1,2) [2025-03-04 15:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606599', 'tblTempUsageDetail_20' ) start [2025-03-04 15:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606599', 'tblTempUsageDetail_20' ) end [2025-03-04 15:04:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:04:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:04:28] Production.INFO: ==23598== Releasing lock... [2025-03-04 15:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:04:28] Production.INFO: 68 MB #Memory Used# [2025-03-04 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:05:05 [end_date_ymd] => 2025-03-04 15:05:05 [RateCDR] => 1 ) [2025-03-04 15: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 12:05:05' and `end` < '2025-03-04 15: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-04 15:05:18] Production.INFO: count ==5362 [2025-03-04 15:05:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:05:05 - End Time 2025-03-04 15:05:05 [2025-03-04 15:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606604', 'tblTempUsageDetail_20' ) start [2025-03-04 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606604', 'tblTempUsageDetail_20' ) end [2025-03-04 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606604', 'tblTempVendorCDR_20' ) start [2025-03-04 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606604', 'tblTempVendorCDR_20' ) end [2025-03-04 15:05:21] Production.INFO: ProcessCDR(1,14606604,1,1,2) [2025-03-04 15:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606604', 'tblTempUsageDetail_20' ) start [2025-03-04 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606604', 'tblTempUsageDetail_20' ) end [2025-03-04 15:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:05:28] Production.INFO: ==23761== Releasing lock... [2025-03-04 15:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:05:28] Production.INFO: 68.25 MB #Memory Used# [2025-03-04 15:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:06:06 [end_date_ymd] => 2025-03-04 15:06:06 [RateCDR] => 1 ) [2025-03-04 15: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 12:06:06' and `end` < '2025-03-04 15: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-04 15:06:19] Production.INFO: count ==5419 [2025-03-04 15:06:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:06:06 - End Time 2025-03-04 15:06:06 [2025-03-04 15:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606609', 'tblTempUsageDetail_20' ) start [2025-03-04 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606609', 'tblTempUsageDetail_20' ) end [2025-03-04 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606609', 'tblTempVendorCDR_20' ) start [2025-03-04 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606609', 'tblTempVendorCDR_20' ) end [2025-03-04 15:06:21] Production.INFO: ProcessCDR(1,14606609,1,1,2) [2025-03-04 15:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606609', 'tblTempUsageDetail_20' ) start [2025-03-04 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606609', 'tblTempUsageDetail_20' ) end [2025-03-04 15:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:06:27] Production.INFO: ==23864== Releasing lock... [2025-03-04 15:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:06:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-04 15:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:07:06 [end_date_ymd] => 2025-03-04 15:07:06 [RateCDR] => 1 ) [2025-03-04 15: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 12:07:06' and `end` < '2025-03-04 15: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-04 15:07:19] Production.INFO: count ==5443 [2025-03-04 15:07:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:07:06 - End Time 2025-03-04 15:07:06 [2025-03-04 15:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606614', 'tblTempUsageDetail_20' ) start [2025-03-04 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606614', 'tblTempUsageDetail_20' ) end [2025-03-04 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606614', 'tblTempVendorCDR_20' ) start [2025-03-04 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606614', 'tblTempVendorCDR_20' ) end [2025-03-04 15:07:22] Production.INFO: ProcessCDR(1,14606614,1,1,2) [2025-03-04 15:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606614', 'tblTempUsageDetail_20' ) start [2025-03-04 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606614', 'tblTempUsageDetail_20' ) end [2025-03-04 15:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:07:27] Production.INFO: ==23947== Releasing lock... [2025-03-04 15:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:07:27] Production.INFO: 68.75 MB #Memory Used# [2025-03-04 15:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:08:06 [end_date_ymd] => 2025-03-04 15:08:06 [RateCDR] => 1 ) [2025-03-04 15: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-04 12:08:06' and `end` < '2025-03-04 15: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-04 15:08:19] Production.INFO: count ==5466 [2025-03-04 15:08:22] Production.ERROR: pbx CDR StartTime 2025-03-04 12:08:06 - End Time 2025-03-04 15:08:06 [2025-03-04 15:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606619', 'tblTempUsageDetail_20' ) start [2025-03-04 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606619', 'tblTempUsageDetail_20' ) end [2025-03-04 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606619', 'tblTempVendorCDR_20' ) start [2025-03-04 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606619', 'tblTempVendorCDR_20' ) end [2025-03-04 15:08:22] Production.INFO: ProcessCDR(1,14606619,1,1,2) [2025-03-04 15:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606619', 'tblTempUsageDetail_20' ) start [2025-03-04 15:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606619', 'tblTempUsageDetail_20' ) end [2025-03-04 15:08:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:08:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:08:28] Production.INFO: ==24112== Releasing lock... [2025-03-04 15:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:08:28] Production.INFO: 69 MB #Memory Used# [2025-03-04 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:09:05 [end_date_ymd] => 2025-03-04 15:09:05 [RateCDR] => 1 ) [2025-03-04 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-04 12:09:05' and `end` < '2025-03-04 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-04 15:09:18] Production.INFO: count ==5481 [2025-03-04 15:09:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:09:05 - End Time 2025-03-04 15:09:05 [2025-03-04 15:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606624', 'tblTempUsageDetail_20' ) start [2025-03-04 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606624', 'tblTempUsageDetail_20' ) end [2025-03-04 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606624', 'tblTempVendorCDR_20' ) start [2025-03-04 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606624', 'tblTempVendorCDR_20' ) end [2025-03-04 15:09:21] Production.INFO: ProcessCDR(1,14606624,1,1,2) [2025-03-04 15:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606624', 'tblTempUsageDetail_20' ) start [2025-03-04 15:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606624', 'tblTempUsageDetail_20' ) end [2025-03-04 15:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:09:26] Production.INFO: ==24194== Releasing lock... [2025-03-04 15:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:09:26] Production.INFO: 69 MB #Memory Used# [2025-03-04 15:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:10:07 [end_date_ymd] => 2025-03-04 15:10:07 [RateCDR] => 1 ) [2025-03-04 15: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-04 12:10:07' and `end` < '2025-03-04 15: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-04 15:10:20] Production.INFO: count ==5495 [2025-03-04 15:10:23] Production.ERROR: pbx CDR StartTime 2025-03-04 12:10:07 - End Time 2025-03-04 15:10:07 [2025-03-04 15:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606630', 'tblTempUsageDetail_20' ) start [2025-03-04 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606630', 'tblTempUsageDetail_20' ) end [2025-03-04 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606630', 'tblTempVendorCDR_20' ) start [2025-03-04 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606630', 'tblTempVendorCDR_20' ) end [2025-03-04 15:10:23] Production.INFO: ProcessCDR(1,14606630,1,1,2) [2025-03-04 15:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606630', 'tblTempUsageDetail_20' ) start [2025-03-04 15:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606630', 'tblTempUsageDetail_20' ) end [2025-03-04 15:10:29] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:10:29] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:10:29] Production.INFO: ==24277== Releasing lock... [2025-03-04 15:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:10:29] Production.INFO: 69.25 MB #Memory Used# [2025-03-04 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:11:05 [end_date_ymd] => 2025-03-04 15:11:05 [RateCDR] => 1 ) [2025-03-04 15:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 12:11:05' and `end` < '2025-03-04 15:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 15:11:19] Production.INFO: count ==5513 [2025-03-04 15:11:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:11:05 - End Time 2025-03-04 15:11:05 [2025-03-04 15:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606635', 'tblTempUsageDetail_20' ) start [2025-03-04 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606635', 'tblTempUsageDetail_20' ) end [2025-03-04 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606635', 'tblTempVendorCDR_20' ) start [2025-03-04 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606635', 'tblTempVendorCDR_20' ) end [2025-03-04 15:11:21] Production.INFO: ProcessCDR(1,14606635,1,1,2) [2025-03-04 15:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606635', 'tblTempUsageDetail_20' ) start [2025-03-04 15:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606635', 'tblTempUsageDetail_20' ) end [2025-03-04 15:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:11:27] Production.INFO: ==24366== Releasing lock... [2025-03-04 15:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:11:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-04 15:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:12:06 [end_date_ymd] => 2025-03-04 15:12:06 [RateCDR] => 1 ) [2025-03-04 15: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-04 12:12:06' and `end` < '2025-03-04 15: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-04 15:12:19] Production.INFO: count ==5518 [2025-03-04 15:12:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:12:06 - End Time 2025-03-04 15:12:06 [2025-03-04 15:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606640', 'tblTempUsageDetail_20' ) start [2025-03-04 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606640', 'tblTempUsageDetail_20' ) end [2025-03-04 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606640', 'tblTempVendorCDR_20' ) start [2025-03-04 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606640', 'tblTempVendorCDR_20' ) end [2025-03-04 15:12:22] Production.INFO: ProcessCDR(1,14606640,1,1,2) [2025-03-04 15:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606640', 'tblTempUsageDetail_20' ) start [2025-03-04 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606640', 'tblTempUsageDetail_20' ) end [2025-03-04 15:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:12:27] Production.INFO: ==24525== Releasing lock... [2025-03-04 15:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:12:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-04 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:13:05 [end_date_ymd] => 2025-03-04 15:13:05 [RateCDR] => 1 ) [2025-03-04 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-04 12:13:05' and `end` < '2025-03-04 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-04 15:13:18] Production.INFO: count ==5521 [2025-03-04 15:13:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:13:05 - End Time 2025-03-04 15:13:05 [2025-03-04 15:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606645', 'tblTempUsageDetail_20' ) start [2025-03-04 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606645', 'tblTempUsageDetail_20' ) end [2025-03-04 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606645', 'tblTempVendorCDR_20' ) start [2025-03-04 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606645', 'tblTempVendorCDR_20' ) end [2025-03-04 15:13:21] Production.INFO: ProcessCDR(1,14606645,1,1,2) [2025-03-04 15:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606645', 'tblTempUsageDetail_20' ) start [2025-03-04 15:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606645', 'tblTempUsageDetail_20' ) end [2025-03-04 15:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:13:26] Production.INFO: ==24609== Releasing lock... [2025-03-04 15:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:13:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-04 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:14:05 [end_date_ymd] => 2025-03-04 15:14:05 [RateCDR] => 1 ) [2025-03-04 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-04 12:14:05' and `end` < '2025-03-04 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-04 15:14:19] Production.INFO: count ==5531 [2025-03-04 15:14:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:14:05 - End Time 2025-03-04 15:14:05 [2025-03-04 15:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606650', 'tblTempUsageDetail_20' ) start [2025-03-04 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606650', 'tblTempUsageDetail_20' ) end [2025-03-04 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606650', 'tblTempVendorCDR_20' ) start [2025-03-04 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606650', 'tblTempVendorCDR_20' ) end [2025-03-04 15:14:21] Production.INFO: ProcessCDR(1,14606650,1,1,2) [2025-03-04 15:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606650', 'tblTempUsageDetail_20' ) start [2025-03-04 15:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606650', 'tblTempUsageDetail_20' ) end [2025-03-04 15:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:14:26] Production.INFO: ==24686== Releasing lock... [2025-03-04 15:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:14:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-04 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:15:05 [end_date_ymd] => 2025-03-04 15:15:05 [RateCDR] => 1 ) [2025-03-04 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-04 12:15:05' and `end` < '2025-03-04 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-04 15:15:18] Production.INFO: count ==5579 [2025-03-04 15:15:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:15:05 - End Time 2025-03-04 15:15:05 [2025-03-04 15:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606655', 'tblTempUsageDetail_20' ) start [2025-03-04 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606655', 'tblTempUsageDetail_20' ) end [2025-03-04 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606655', 'tblTempVendorCDR_20' ) start [2025-03-04 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606655', 'tblTempVendorCDR_20' ) end [2025-03-04 15:15:21] Production.INFO: ProcessCDR(1,14606655,1,1,2) [2025-03-04 15:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606655', 'tblTempUsageDetail_20' ) start [2025-03-04 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606655', 'tblTempUsageDetail_20' ) end [2025-03-04 15:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:15:26] Production.INFO: ==24849== Releasing lock... [2025-03-04 15:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:15:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-04 15:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:16:06 [end_date_ymd] => 2025-03-04 15:16:06 [RateCDR] => 1 ) [2025-03-04 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-04 12:16:06' and `end` < '2025-03-04 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-04 15:16:19] Production.INFO: count ==5568 [2025-03-04 15:16:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:16:06 - End Time 2025-03-04 15:16:06 [2025-03-04 15:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606660', 'tblTempUsageDetail_20' ) start [2025-03-04 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606660', 'tblTempUsageDetail_20' ) end [2025-03-04 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606660', 'tblTempVendorCDR_20' ) start [2025-03-04 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606660', 'tblTempVendorCDR_20' ) end [2025-03-04 15:16:22] Production.INFO: ProcessCDR(1,14606660,1,1,2) [2025-03-04 15:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606660', 'tblTempUsageDetail_20' ) start [2025-03-04 15:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606660', 'tblTempUsageDetail_20' ) end [2025-03-04 15:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:16:27] Production.INFO: ==24972== Releasing lock... [2025-03-04 15:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:16:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-04 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:17:05 [end_date_ymd] => 2025-03-04 15:17:05 [RateCDR] => 1 ) [2025-03-04 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-04 12:17:05' and `end` < '2025-03-04 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-04 15:17:18] Production.INFO: count ==5571 [2025-03-04 15:17:20] Production.ERROR: pbx CDR StartTime 2025-03-04 12:17:05 - End Time 2025-03-04 15:17:05 [2025-03-04 15:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606665', 'tblTempUsageDetail_20' ) start [2025-03-04 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606665', 'tblTempUsageDetail_20' ) end [2025-03-04 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606665', 'tblTempVendorCDR_20' ) start [2025-03-04 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606665', 'tblTempVendorCDR_20' ) end [2025-03-04 15:17:21] Production.INFO: ProcessCDR(1,14606665,1,1,2) [2025-03-04 15:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606665', 'tblTempUsageDetail_20' ) start [2025-03-04 15:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606665', 'tblTempUsageDetail_20' ) end [2025-03-04 15:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:17:26] Production.INFO: ==25050== Releasing lock... [2025-03-04 15:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:17:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-04 15:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:18:06 [end_date_ymd] => 2025-03-04 15:18:06 [RateCDR] => 1 ) [2025-03-04 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-04 12:18:06' and `end` < '2025-03-04 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-04 15:18:19] Production.INFO: count ==5563 [2025-03-04 15:18:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:18:06 - End Time 2025-03-04 15:18:06 [2025-03-04 15:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606670', 'tblTempUsageDetail_20' ) start [2025-03-04 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606670', 'tblTempUsageDetail_20' ) end [2025-03-04 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606670', 'tblTempVendorCDR_20' ) start [2025-03-04 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606670', 'tblTempVendorCDR_20' ) end [2025-03-04 15:18:21] Production.INFO: ProcessCDR(1,14606670,1,1,2) [2025-03-04 15:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606670', 'tblTempUsageDetail_20' ) start [2025-03-04 15:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606670', 'tblTempUsageDetail_20' ) end [2025-03-04 15:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:18:25] Production.INFO: ==25128== Releasing lock... [2025-03-04 15:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:18:25] Production.INFO: 69.75 MB #Memory Used# [2025-03-04 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:19:05 [end_date_ymd] => 2025-03-04 15:19:05 [RateCDR] => 1 ) [2025-03-04 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-04 12:19:05' and `end` < '2025-03-04 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-04 15:19:18] Production.INFO: count ==5591 [2025-03-04 15:19:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:19:05 - End Time 2025-03-04 15:19:05 [2025-03-04 15:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606675', 'tblTempUsageDetail_20' ) start [2025-03-04 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606675', 'tblTempUsageDetail_20' ) end [2025-03-04 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606675', 'tblTempVendorCDR_20' ) start [2025-03-04 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606675', 'tblTempVendorCDR_20' ) end [2025-03-04 15:19:21] Production.INFO: ProcessCDR(1,14606675,1,1,2) [2025-03-04 15:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606675', 'tblTempUsageDetail_20' ) start [2025-03-04 15:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606675', 'tblTempUsageDetail_20' ) end [2025-03-04 15:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:19:26] Production.INFO: ==25208== Releasing lock... [2025-03-04 15:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:19:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-04 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:20:06 [end_date_ymd] => 2025-03-04 15:20:06 [RateCDR] => 1 ) [2025-03-04 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-04 12:20:06' and `end` < '2025-03-04 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-04 15:20:19] Production.INFO: count ==5594 [2025-03-04 15:20:22] Production.ERROR: pbx CDR StartTime 2025-03-04 12:20:06 - End Time 2025-03-04 15:20:06 [2025-03-04 15:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606681', 'tblTempUsageDetail_20' ) start [2025-03-04 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606681', 'tblTempUsageDetail_20' ) end [2025-03-04 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606681', 'tblTempVendorCDR_20' ) start [2025-03-04 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606681', 'tblTempVendorCDR_20' ) end [2025-03-04 15:20:22] Production.INFO: ProcessCDR(1,14606681,1,1,2) [2025-03-04 15:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606681', 'tblTempUsageDetail_20' ) start [2025-03-04 15:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606681', 'tblTempUsageDetail_20' ) end [2025-03-04 15:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:20:27] Production.INFO: ==25288== Releasing lock... [2025-03-04 15:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:20:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-04 15:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:21:06 [end_date_ymd] => 2025-03-04 15:21:06 [RateCDR] => 1 ) [2025-03-04 15: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-04 12:21:06' and `end` < '2025-03-04 15: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-04 15:21:19] Production.INFO: count ==5594 [2025-03-04 15:21:22] Production.ERROR: pbx CDR StartTime 2025-03-04 12:21:06 - End Time 2025-03-04 15:21:06 [2025-03-04 15:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606686', 'tblTempUsageDetail_20' ) start [2025-03-04 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606686', 'tblTempUsageDetail_20' ) end [2025-03-04 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606686', 'tblTempVendorCDR_20' ) start [2025-03-04 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606686', 'tblTempVendorCDR_20' ) end [2025-03-04 15:21:22] Production.INFO: ProcessCDR(1,14606686,1,1,2) [2025-03-04 15:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606686', 'tblTempUsageDetail_20' ) start [2025-03-04 15:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606686', 'tblTempUsageDetail_20' ) end [2025-03-04 15:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:21:27] Production.INFO: ==25365== Releasing lock... [2025-03-04 15:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:21:27] Production.INFO: 70 MB #Memory Used# [2025-03-04 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:22:05 [end_date_ymd] => 2025-03-04 15:22:05 [RateCDR] => 1 ) [2025-03-04 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-04 12:22:05' and `end` < '2025-03-04 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-04 15:22:18] Production.INFO: count ==5603 [2025-03-04 15:22:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:22:05 - End Time 2025-03-04 15:22:05 [2025-03-04 15:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606691', 'tblTempUsageDetail_20' ) start [2025-03-04 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606691', 'tblTempUsageDetail_20' ) end [2025-03-04 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606691', 'tblTempVendorCDR_20' ) start [2025-03-04 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606691', 'tblTempVendorCDR_20' ) end [2025-03-04 15:22:21] Production.INFO: ProcessCDR(1,14606691,1,1,2) [2025-03-04 15:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606691', 'tblTempUsageDetail_20' ) start [2025-03-04 15:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606691', 'tblTempUsageDetail_20' ) end [2025-03-04 15:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:22:25] Production.INFO: ==25439== Releasing lock... [2025-03-04 15:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:22:25] Production.INFO: 70 MB #Memory Used# [2025-03-04 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:23:05 [end_date_ymd] => 2025-03-04 15:23:05 [RateCDR] => 1 ) [2025-03-04 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-04 12:23:05' and `end` < '2025-03-04 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-04 15:23:18] Production.INFO: count ==5599 [2025-03-04 15:23:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:23:05 - End Time 2025-03-04 15:23:05 [2025-03-04 15:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606696', 'tblTempUsageDetail_20' ) start [2025-03-04 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606696', 'tblTempUsageDetail_20' ) end [2025-03-04 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606696', 'tblTempVendorCDR_20' ) start [2025-03-04 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606696', 'tblTempVendorCDR_20' ) end [2025-03-04 15:23:21] Production.INFO: ProcessCDR(1,14606696,1,1,2) [2025-03-04 15:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606696', 'tblTempUsageDetail_20' ) start [2025-03-04 15:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606696', 'tblTempUsageDetail_20' ) end [2025-03-04 15:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:23:24] Production.INFO: ==25513== Releasing lock... [2025-03-04 15:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:23:24] Production.INFO: 70 MB #Memory Used# [2025-03-04 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:24:05 [end_date_ymd] => 2025-03-04 15:24:05 [RateCDR] => 1 ) [2025-03-04 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-04 12:24:05' and `end` < '2025-03-04 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-04 15:24:18] Production.INFO: count ==5600 [2025-03-04 15:24:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:24:05 - End Time 2025-03-04 15:24:05 [2025-03-04 15:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606701', 'tblTempUsageDetail_20' ) start [2025-03-04 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606701', 'tblTempUsageDetail_20' ) end [2025-03-04 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606701', 'tblTempVendorCDR_20' ) start [2025-03-04 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606701', 'tblTempVendorCDR_20' ) end [2025-03-04 15:24:21] Production.INFO: ProcessCDR(1,14606701,1,1,2) [2025-03-04 15:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606701', 'tblTempUsageDetail_20' ) start [2025-03-04 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606701', 'tblTempUsageDetail_20' ) end [2025-03-04 15:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:24:26] Production.INFO: ==25587== Releasing lock... [2025-03-04 15:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:24:26] Production.INFO: 70 MB #Memory Used# [2025-03-04 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:25:06 [end_date_ymd] => 2025-03-04 15:25:06 [RateCDR] => 1 ) [2025-03-04 15: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-04 12:25:06' and `end` < '2025-03-04 15: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-04 15:25:19] Production.INFO: count ==5601 [2025-03-04 15:25:22] Production.ERROR: pbx CDR StartTime 2025-03-04 12:25:06 - End Time 2025-03-04 15:25:06 [2025-03-04 15:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606706', 'tblTempUsageDetail_20' ) start [2025-03-04 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606706', 'tblTempUsageDetail_20' ) end [2025-03-04 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606706', 'tblTempVendorCDR_20' ) start [2025-03-04 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606706', 'tblTempVendorCDR_20' ) end [2025-03-04 15:25:22] Production.INFO: ProcessCDR(1,14606706,1,1,2) [2025-03-04 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606706', 'tblTempUsageDetail_20' ) start [2025-03-04 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606706', 'tblTempUsageDetail_20' ) end [2025-03-04 15:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:25:27] Production.INFO: ==25664== Releasing lock... [2025-03-04 15:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:25:27] Production.INFO: 70 MB #Memory Used# [2025-03-04 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:26:05 [end_date_ymd] => 2025-03-04 15:26:05 [RateCDR] => 1 ) [2025-03-04 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-04 12:26:05' and `end` < '2025-03-04 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-04 15:26:18] Production.INFO: count ==5594 [2025-03-04 15:26:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:26:05 - End Time 2025-03-04 15:26:05 [2025-03-04 15:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606711', 'tblTempUsageDetail_20' ) start [2025-03-04 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606711', 'tblTempUsageDetail_20' ) end [2025-03-04 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606711', 'tblTempVendorCDR_20' ) start [2025-03-04 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606711', 'tblTempVendorCDR_20' ) end [2025-03-04 15:26:21] Production.INFO: ProcessCDR(1,14606711,1,1,2) [2025-03-04 15:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606711', 'tblTempUsageDetail_20' ) start [2025-03-04 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606711', 'tblTempUsageDetail_20' ) end [2025-03-04 15:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:26:26] Production.INFO: ==25739== Releasing lock... [2025-03-04 15:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:26:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-04 15:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:27:06 [end_date_ymd] => 2025-03-04 15:27:06 [RateCDR] => 1 ) [2025-03-04 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-04 12:27:06' and `end` < '2025-03-04 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-04 15:27:19] Production.INFO: count ==5590 [2025-03-04 15:27:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:27:06 - End Time 2025-03-04 15:27:06 [2025-03-04 15:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606716', 'tblTempUsageDetail_20' ) start [2025-03-04 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606716', 'tblTempUsageDetail_20' ) end [2025-03-04 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606716', 'tblTempVendorCDR_20' ) start [2025-03-04 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606716', 'tblTempVendorCDR_20' ) end [2025-03-04 15:27:21] Production.INFO: ProcessCDR(1,14606716,1,1,2) [2025-03-04 15:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606716', 'tblTempUsageDetail_20' ) start [2025-03-04 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606716', 'tblTempUsageDetail_20' ) end [2025-03-04 15:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:27:26] Production.INFO: ==25817== Releasing lock... [2025-03-04 15:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:27:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-04 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:28:05 [end_date_ymd] => 2025-03-04 15:28:05 [RateCDR] => 1 ) [2025-03-04 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-04 12:28:05' and `end` < '2025-03-04 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-04 15:28:18] Production.INFO: count ==5598 [2025-03-04 15:28:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:28:05 - End Time 2025-03-04 15:28:05 [2025-03-04 15:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606721', 'tblTempUsageDetail_20' ) start [2025-03-04 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606721', 'tblTempUsageDetail_20' ) end [2025-03-04 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606721', 'tblTempVendorCDR_20' ) start [2025-03-04 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606721', 'tblTempVendorCDR_20' ) end [2025-03-04 15:28:21] Production.INFO: ProcessCDR(1,14606721,1,1,2) [2025-03-04 15:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606721', 'tblTempUsageDetail_20' ) start [2025-03-04 15:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606721', 'tblTempUsageDetail_20' ) end [2025-03-04 15:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:28:26] Production.INFO: ==25893== Releasing lock... [2025-03-04 15:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:28:26] Production.INFO: 70 MB #Memory Used# [2025-03-04 15:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:29:06 [end_date_ymd] => 2025-03-04 15:29:06 [RateCDR] => 1 ) [2025-03-04 15: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-04 12:29:06' and `end` < '2025-03-04 15: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-04 15:29:19] Production.INFO: count ==5588 [2025-03-04 15:29:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:29:06 - End Time 2025-03-04 15:29:06 [2025-03-04 15:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606726', 'tblTempUsageDetail_20' ) start [2025-03-04 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606726', 'tblTempUsageDetail_20' ) end [2025-03-04 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606726', 'tblTempVendorCDR_20' ) start [2025-03-04 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606726', 'tblTempVendorCDR_20' ) end [2025-03-04 15:29:21] Production.INFO: ProcessCDR(1,14606726,1,1,2) [2025-03-04 15:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606726', 'tblTempUsageDetail_20' ) start [2025-03-04 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606726', 'tblTempUsageDetail_20' ) end [2025-03-04 15:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:29:26] Production.INFO: ==25967== Releasing lock... [2025-03-04 15:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:29:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-04 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:30:06 [end_date_ymd] => 2025-03-04 15:30:06 [RateCDR] => 1 ) [2025-03-04 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-04 12:30:06' and `end` < '2025-03-04 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-04 15:30:19] Production.INFO: count ==5597 [2025-03-04 15:30:22] Production.ERROR: pbx CDR StartTime 2025-03-04 12:30:06 - End Time 2025-03-04 15:30:06 [2025-03-04 15:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606732', 'tblTempUsageDetail_20' ) start [2025-03-04 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606732', 'tblTempUsageDetail_20' ) end [2025-03-04 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606732', 'tblTempVendorCDR_20' ) start [2025-03-04 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606732', 'tblTempVendorCDR_20' ) end [2025-03-04 15:30:22] Production.INFO: ProcessCDR(1,14606732,1,1,2) [2025-03-04 15:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606732', 'tblTempUsageDetail_20' ) start [2025-03-04 15:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606732', 'tblTempUsageDetail_20' ) end [2025-03-04 15:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:30:25] Production.INFO: ==26048== Releasing lock... [2025-03-04 15:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:30:25] Production.INFO: 70 MB #Memory Used# [2025-03-04 15:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:31:06 [end_date_ymd] => 2025-03-04 15:31:06 [RateCDR] => 1 ) [2025-03-04 15: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-04 12:31:06' and `end` < '2025-03-04 15: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-04 15:31:19] Production.INFO: count ==5660 [2025-03-04 15:31:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:31:06 - End Time 2025-03-04 15:31:06 [2025-03-04 15:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606737', 'tblTempUsageDetail_20' ) start [2025-03-04 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606737', 'tblTempUsageDetail_20' ) end [2025-03-04 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606737', 'tblTempVendorCDR_20' ) start [2025-03-04 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606737', 'tblTempVendorCDR_20' ) end [2025-03-04 15:31:21] Production.INFO: ProcessCDR(1,14606737,1,1,2) [2025-03-04 15:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606737', 'tblTempUsageDetail_20' ) start [2025-03-04 15:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606737', 'tblTempUsageDetail_20' ) end [2025-03-04 15:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:31:27] Production.INFO: ==26162== Releasing lock... [2025-03-04 15:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:31:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-04 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:32:05 [end_date_ymd] => 2025-03-04 15:32:05 [RateCDR] => 1 ) [2025-03-04 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-04 12:32:05' and `end` < '2025-03-04 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-04 15:32:18] Production.INFO: count ==5664 [2025-03-04 15:32:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:32:05 - End Time 2025-03-04 15:32:05 [2025-03-04 15:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606742', 'tblTempUsageDetail_20' ) start [2025-03-04 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606742', 'tblTempUsageDetail_20' ) end [2025-03-04 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606742', 'tblTempVendorCDR_20' ) start [2025-03-04 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606742', 'tblTempVendorCDR_20' ) end [2025-03-04 15:32:21] Production.INFO: ProcessCDR(1,14606742,1,1,2) [2025-03-04 15:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606742', 'tblTempUsageDetail_20' ) start [2025-03-04 15:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606742', 'tblTempUsageDetail_20' ) end [2025-03-04 15:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:32:26] Production.INFO: ==26236== Releasing lock... [2025-03-04 15:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:32:26] Production.INFO: 70.5 MB #Memory Used# [2025-03-04 15:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:33:06 [end_date_ymd] => 2025-03-04 15:33:06 [RateCDR] => 1 ) [2025-03-04 15: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 12:33:06' and `end` < '2025-03-04 15: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-04 15:33:19] Production.INFO: count ==5680 [2025-03-04 15:33:22] Production.ERROR: pbx CDR StartTime 2025-03-04 12:33:06 - End Time 2025-03-04 15:33:06 [2025-03-04 15:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606747', 'tblTempUsageDetail_20' ) start [2025-03-04 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606747', 'tblTempUsageDetail_20' ) end [2025-03-04 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606747', 'tblTempVendorCDR_20' ) start [2025-03-04 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606747', 'tblTempVendorCDR_20' ) end [2025-03-04 15:33:22] Production.INFO: ProcessCDR(1,14606747,1,1,2) [2025-03-04 15:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606747', 'tblTempUsageDetail_20' ) start [2025-03-04 15:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606747', 'tblTempUsageDetail_20' ) end [2025-03-04 15:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:33:27] Production.INFO: ==26308== Releasing lock... [2025-03-04 15:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:33:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-04 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:34:05 [end_date_ymd] => 2025-03-04 15:34:05 [RateCDR] => 1 ) [2025-03-04 15:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 12:34:05' and `end` < '2025-03-04 15:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 15:34:19] Production.INFO: count ==5695 [2025-03-04 15:34:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:34:05 - End Time 2025-03-04 15:34:05 [2025-03-04 15:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606752', 'tblTempUsageDetail_20' ) start [2025-03-04 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606752', 'tblTempUsageDetail_20' ) end [2025-03-04 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606752', 'tblTempVendorCDR_20' ) start [2025-03-04 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606752', 'tblTempVendorCDR_20' ) end [2025-03-04 15:34:22] Production.INFO: ProcessCDR(1,14606752,1,1,2) [2025-03-04 15:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606752', 'tblTempUsageDetail_20' ) start [2025-03-04 15:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606752', 'tblTempUsageDetail_20' ) end [2025-03-04 15:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:34:26] Production.INFO: ==26384== Releasing lock... [2025-03-04 15:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:34:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-04 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:35:05 [end_date_ymd] => 2025-03-04 15:35:05 [RateCDR] => 1 ) [2025-03-04 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-04 12:35:05' and `end` < '2025-03-04 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-04 15:35:19] Production.INFO: count ==5706 [2025-03-04 15:35:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:35:05 - End Time 2025-03-04 15:35:05 [2025-03-04 15:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606757', 'tblTempUsageDetail_20' ) start [2025-03-04 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606757', 'tblTempUsageDetail_20' ) end [2025-03-04 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606757', 'tblTempVendorCDR_20' ) start [2025-03-04 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606757', 'tblTempVendorCDR_20' ) end [2025-03-04 15:35:21] Production.INFO: ProcessCDR(1,14606757,1,1,2) [2025-03-04 15:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606757', 'tblTempUsageDetail_20' ) start [2025-03-04 15:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606757', 'tblTempUsageDetail_20' ) end [2025-03-04 15:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:35:26] Production.INFO: ==26456== Releasing lock... [2025-03-04 15:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:35:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-04 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:36:05 [end_date_ymd] => 2025-03-04 15:36:05 [RateCDR] => 1 ) [2025-03-04 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-04 12:36:05' and `end` < '2025-03-04 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-04 15:36:18] Production.INFO: count ==5692 [2025-03-04 15:36:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:36:05 - End Time 2025-03-04 15:36:05 [2025-03-04 15:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606762', 'tblTempUsageDetail_20' ) start [2025-03-04 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606762', 'tblTempUsageDetail_20' ) end [2025-03-04 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606762', 'tblTempVendorCDR_20' ) start [2025-03-04 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606762', 'tblTempVendorCDR_20' ) end [2025-03-04 15:36:21] Production.INFO: ProcessCDR(1,14606762,1,1,2) [2025-03-04 15:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606762', 'tblTempUsageDetail_20' ) start [2025-03-04 15:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606762', 'tblTempUsageDetail_20' ) end [2025-03-04 15:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:36:26] Production.INFO: ==26527== Releasing lock... [2025-03-04 15:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:36:26] Production.INFO: 70.5 MB #Memory Used# [2025-03-04 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:37:05 [end_date_ymd] => 2025-03-04 15:37:05 [RateCDR] => 1 ) [2025-03-04 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-04 12:37:05' and `end` < '2025-03-04 15:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 15:37:19] Production.INFO: count ==5688 [2025-03-04 15:37:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:37:05 - End Time 2025-03-04 15:37:05 [2025-03-04 15:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606767', 'tblTempUsageDetail_20' ) start [2025-03-04 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606767', 'tblTempUsageDetail_20' ) end [2025-03-04 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606767', 'tblTempVendorCDR_20' ) start [2025-03-04 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606767', 'tblTempVendorCDR_20' ) end [2025-03-04 15:37:21] Production.INFO: ProcessCDR(1,14606767,1,1,2) [2025-03-04 15:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606767', 'tblTempUsageDetail_20' ) start [2025-03-04 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606767', 'tblTempUsageDetail_20' ) end [2025-03-04 15:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:37:26] Production.INFO: ==26603== Releasing lock... [2025-03-04 15:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:37:26] Production.INFO: 70.5 MB #Memory Used# [2025-03-04 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:38:05 [end_date_ymd] => 2025-03-04 15:38:05 [RateCDR] => 1 ) [2025-03-04 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-04 12:38:05' and `end` < '2025-03-04 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-04 15:38:18] Production.INFO: count ==5733 [2025-03-04 15:38:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:38:05 - End Time 2025-03-04 15:38:05 [2025-03-04 15:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606772', 'tblTempUsageDetail_20' ) start [2025-03-04 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606772', 'tblTempUsageDetail_20' ) end [2025-03-04 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606772', 'tblTempVendorCDR_20' ) start [2025-03-04 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606772', 'tblTempVendorCDR_20' ) end [2025-03-04 15:38:21] Production.INFO: ProcessCDR(1,14606772,1,1,2) [2025-03-04 15:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606772', 'tblTempUsageDetail_20' ) start [2025-03-04 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606772', 'tblTempUsageDetail_20' ) end [2025-03-04 15:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:38:26] Production.INFO: ==26675== Releasing lock... [2025-03-04 15:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:38:26] Production.INFO: 71 MB #Memory Used# [2025-03-04 15:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:39:06 [end_date_ymd] => 2025-03-04 15:39:06 [RateCDR] => 1 ) [2025-03-04 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-04 12:39:06' and `end` < '2025-03-04 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-04 15:39:19] Production.INFO: count ==5728 [2025-03-04 15:39:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:39:06 - End Time 2025-03-04 15:39:06 [2025-03-04 15:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606777', 'tblTempUsageDetail_20' ) start [2025-03-04 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606777', 'tblTempUsageDetail_20' ) end [2025-03-04 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606777', 'tblTempVendorCDR_20' ) start [2025-03-04 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606777', 'tblTempVendorCDR_20' ) end [2025-03-04 15:39:22] Production.INFO: ProcessCDR(1,14606777,1,1,2) [2025-03-04 15:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606777', 'tblTempUsageDetail_20' ) start [2025-03-04 15:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606777', 'tblTempUsageDetail_20' ) end [2025-03-04 15:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:39:27] Production.INFO: ==26751== Releasing lock... [2025-03-04 15:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:39:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-04 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:40:06 [end_date_ymd] => 2025-03-04 15:40:06 [RateCDR] => 1 ) [2025-03-04 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-04 12:40:06' and `end` < '2025-03-04 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-04 15:40:19] Production.INFO: count ==5716 [2025-03-04 15:40:22] Production.ERROR: pbx CDR StartTime 2025-03-04 12:40:06 - End Time 2025-03-04 15:40:06 [2025-03-04 15:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606783', 'tblTempUsageDetail_20' ) start [2025-03-04 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606783', 'tblTempUsageDetail_20' ) end [2025-03-04 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606783', 'tblTempVendorCDR_20' ) start [2025-03-04 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606783', 'tblTempVendorCDR_20' ) end [2025-03-04 15:40:22] Production.INFO: ProcessCDR(1,14606783,1,1,2) [2025-03-04 15:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606783', 'tblTempUsageDetail_20' ) start [2025-03-04 15:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606783', 'tblTempUsageDetail_20' ) end [2025-03-04 15:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:40:28] Production.INFO: ==26825== Releasing lock... [2025-03-04 15:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:40:28] Production.INFO: 70.75 MB #Memory Used# [2025-03-04 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:41:05 [end_date_ymd] => 2025-03-04 15:41:05 [RateCDR] => 1 ) [2025-03-04 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 12:41:05' and `end` < '2025-03-04 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 15:41:18] Production.INFO: count ==5750 [2025-03-04 15:41:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:41:05 - End Time 2025-03-04 15:41:05 [2025-03-04 15:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606787', 'tblTempUsageDetail_20' ) start [2025-03-04 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606787', 'tblTempUsageDetail_20' ) end [2025-03-04 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606787', 'tblTempVendorCDR_20' ) start [2025-03-04 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606787', 'tblTempVendorCDR_20' ) end [2025-03-04 15:41:21] Production.INFO: ProcessCDR(1,14606787,1,1,2) [2025-03-04 15:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606787', 'tblTempUsageDetail_20' ) start [2025-03-04 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606787', 'tblTempUsageDetail_20' ) end [2025-03-04 15:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:41:26] Production.INFO: ==26901== Releasing lock... [2025-03-04 15:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:41:26] Production.INFO: 71 MB #Memory Used# [2025-03-04 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:42:05 [end_date_ymd] => 2025-03-04 15:42:05 [RateCDR] => 1 ) [2025-03-04 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-04 12:42:05' and `end` < '2025-03-04 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-04 15:42:18] Production.INFO: count ==5734 [2025-03-04 15:42:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:42:05 - End Time 2025-03-04 15:42:05 [2025-03-04 15:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606793', 'tblTempUsageDetail_20' ) start [2025-03-04 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606793', 'tblTempUsageDetail_20' ) end [2025-03-04 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606793', 'tblTempVendorCDR_20' ) start [2025-03-04 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606793', 'tblTempVendorCDR_20' ) end [2025-03-04 15:42:21] Production.INFO: ProcessCDR(1,14606793,1,1,2) [2025-03-04 15:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606793', 'tblTempUsageDetail_20' ) start [2025-03-04 15:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606793', 'tblTempUsageDetail_20' ) end [2025-03-04 15:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:42:26] Production.INFO: ==26973== Releasing lock... [2025-03-04 15:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:42:26] Production.INFO: 71 MB #Memory Used# [2025-03-04 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:43:05 [end_date_ymd] => 2025-03-04 15:43:05 [RateCDR] => 1 ) [2025-03-04 15:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 12:43:05' and `end` < '2025-03-04 15:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 15:43:19] Production.INFO: count ==5728 [2025-03-04 15:43:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:43:05 - End Time 2025-03-04 15:43:05 [2025-03-04 15:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606798', 'tblTempUsageDetail_20' ) start [2025-03-04 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606798', 'tblTempUsageDetail_20' ) end [2025-03-04 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606798', 'tblTempVendorCDR_20' ) start [2025-03-04 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606798', 'tblTempVendorCDR_20' ) end [2025-03-04 15:43:22] Production.INFO: ProcessCDR(1,14606798,1,1,2) [2025-03-04 15:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606798', 'tblTempUsageDetail_20' ) start [2025-03-04 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606798', 'tblTempUsageDetail_20' ) end [2025-03-04 15:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:43:26] Production.INFO: ==27044== Releasing lock... [2025-03-04 15:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:43:26] Production.INFO: 71 MB #Memory Used# [2025-03-04 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:44:05 [end_date_ymd] => 2025-03-04 15:44:05 [RateCDR] => 1 ) [2025-03-04 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-04 12:44:05' and `end` < '2025-03-04 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-04 15:44:18] Production.INFO: count ==5732 [2025-03-04 15:44:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:44:05 - End Time 2025-03-04 15:44:05 [2025-03-04 15:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606803', 'tblTempUsageDetail_20' ) start [2025-03-04 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606803', 'tblTempUsageDetail_20' ) end [2025-03-04 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606803', 'tblTempVendorCDR_20' ) start [2025-03-04 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606803', 'tblTempVendorCDR_20' ) end [2025-03-04 15:44:21] Production.INFO: ProcessCDR(1,14606803,1,1,2) [2025-03-04 15:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606803', 'tblTempUsageDetail_20' ) start [2025-03-04 15:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606803', 'tblTempUsageDetail_20' ) end [2025-03-04 15:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:44:26] Production.INFO: ==27120== Releasing lock... [2025-03-04 15:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:44:26] Production.INFO: 71 MB #Memory Used# [2025-03-04 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:45:05 [end_date_ymd] => 2025-03-04 15:45:05 [RateCDR] => 1 ) [2025-03-04 15: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 12:45:05' and `end` < '2025-03-04 15: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-04 15:45:18] Production.INFO: count ==5703 [2025-03-04 15:45:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:45:05 - End Time 2025-03-04 15:45:05 [2025-03-04 15:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606808', 'tblTempUsageDetail_20' ) start [2025-03-04 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606808', 'tblTempUsageDetail_20' ) end [2025-03-04 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606808', 'tblTempVendorCDR_20' ) start [2025-03-04 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606808', 'tblTempVendorCDR_20' ) end [2025-03-04 15:45:21] Production.INFO: ProcessCDR(1,14606808,1,1,2) [2025-03-04 15:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606808', 'tblTempUsageDetail_20' ) start [2025-03-04 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606808', 'tblTempUsageDetail_20' ) end [2025-03-04 15:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:45:26] Production.INFO: ==27194== Releasing lock... [2025-03-04 15:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:45:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-04 15:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:46:06 [end_date_ymd] => 2025-03-04 15:46:06 [RateCDR] => 1 ) [2025-03-04 15: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 12:46:06' and `end` < '2025-03-04 15: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-04 15:46:19] Production.INFO: count ==5704 [2025-03-04 15:46:22] Production.ERROR: pbx CDR StartTime 2025-03-04 12:46:06 - End Time 2025-03-04 15:46:06 [2025-03-04 15:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606813', 'tblTempUsageDetail_20' ) start [2025-03-04 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606813', 'tblTempUsageDetail_20' ) end [2025-03-04 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606813', 'tblTempVendorCDR_20' ) start [2025-03-04 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606813', 'tblTempVendorCDR_20' ) end [2025-03-04 15:46:22] Production.INFO: ProcessCDR(1,14606813,1,1,2) [2025-03-04 15:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606813', 'tblTempUsageDetail_20' ) start [2025-03-04 15:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606813', 'tblTempUsageDetail_20' ) end [2025-03-04 15:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:46:27] Production.INFO: ==27264== Releasing lock... [2025-03-04 15:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:46:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-04 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:47:05 [end_date_ymd] => 2025-03-04 15:47:05 [RateCDR] => 1 ) [2025-03-04 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 12:47:05' and `end` < '2025-03-04 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 15:47:19] Production.INFO: count ==5699 [2025-03-04 15:47:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:47:05 - End Time 2025-03-04 15:47:05 [2025-03-04 15:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606818', 'tblTempUsageDetail_20' ) start [2025-03-04 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606818', 'tblTempUsageDetail_20' ) end [2025-03-04 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606818', 'tblTempVendorCDR_20' ) start [2025-03-04 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606818', 'tblTempVendorCDR_20' ) end [2025-03-04 15:47:21] Production.INFO: ProcessCDR(1,14606818,1,1,2) [2025-03-04 15:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606818', 'tblTempUsageDetail_20' ) start [2025-03-04 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606818', 'tblTempUsageDetail_20' ) end [2025-03-04 15:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:47:26] Production.INFO: ==27378== Releasing lock... [2025-03-04 15:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:47:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-04 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:48:05 [end_date_ymd] => 2025-03-04 15:48:05 [RateCDR] => 1 ) [2025-03-04 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-04 12:48:05' and `end` < '2025-03-04 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-04 15:48:18] Production.INFO: count ==5713 [2025-03-04 15:48:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:48:05 - End Time 2025-03-04 15:48:05 [2025-03-04 15:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606823', 'tblTempUsageDetail_20' ) start [2025-03-04 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606823', 'tblTempUsageDetail_20' ) end [2025-03-04 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606823', 'tblTempVendorCDR_20' ) start [2025-03-04 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606823', 'tblTempVendorCDR_20' ) end [2025-03-04 15:48:21] Production.INFO: ProcessCDR(1,14606823,1,1,2) [2025-03-04 15:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606823', 'tblTempUsageDetail_20' ) start [2025-03-04 15:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606823', 'tblTempUsageDetail_20' ) end [2025-03-04 15:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:48:26] Production.INFO: ==27449== Releasing lock... [2025-03-04 15:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:48:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-04 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:49:05 [end_date_ymd] => 2025-03-04 15:49:05 [RateCDR] => 1 ) [2025-03-04 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-04 12:49:05' and `end` < '2025-03-04 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-04 15:49:19] Production.INFO: count ==5749 [2025-03-04 15:49:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:49:05 - End Time 2025-03-04 15:49:05 [2025-03-04 15:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606828', 'tblTempUsageDetail_20' ) start [2025-03-04 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606828', 'tblTempUsageDetail_20' ) end [2025-03-04 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606828', 'tblTempVendorCDR_20' ) start [2025-03-04 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606828', 'tblTempVendorCDR_20' ) end [2025-03-04 15:49:21] Production.INFO: ProcessCDR(1,14606828,1,1,2) [2025-03-04 15:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606828', 'tblTempUsageDetail_20' ) start [2025-03-04 15:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606828', 'tblTempUsageDetail_20' ) end [2025-03-04 15:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:49:26] Production.INFO: ==27522== Releasing lock... [2025-03-04 15:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:49:26] Production.INFO: 71 MB #Memory Used# [2025-03-04 15:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:50:07 [end_date_ymd] => 2025-03-04 15:50:07 [RateCDR] => 1 ) [2025-03-04 15:50: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 12:50:07' and `end` < '2025-03-04 15:50: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-04 15:50:20] Production.INFO: count ==5789 [2025-03-04 15:50:23] Production.ERROR: pbx CDR StartTime 2025-03-04 12:50:07 - End Time 2025-03-04 15:50:07 [2025-03-04 15:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606833', 'tblTempUsageDetail_20' ) start [2025-03-04 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606833', 'tblTempUsageDetail_20' ) end [2025-03-04 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606833', 'tblTempVendorCDR_20' ) start [2025-03-04 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606833', 'tblTempVendorCDR_20' ) end [2025-03-04 15:50:23] Production.INFO: ProcessCDR(1,14606833,1,1,2) [2025-03-04 15:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606833', 'tblTempUsageDetail_20' ) start [2025-03-04 15:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606833', 'tblTempUsageDetail_20' ) end [2025-03-04 15:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:50:28] Production.INFO: ==27596== Releasing lock... [2025-03-04 15:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:50:28] Production.INFO: 71.25 MB #Memory Used# [2025-03-04 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:51:05 [end_date_ymd] => 2025-03-04 15:51:05 [RateCDR] => 1 ) [2025-03-04 15:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 12:51:05' and `end` < '2025-03-04 15:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 15:51:18] Production.INFO: count ==5926 [2025-03-04 15:51:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:51:05 - End Time 2025-03-04 15:51:05 [2025-03-04 15:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606839', 'tblTempUsageDetail_20' ) start [2025-03-04 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606839', 'tblTempUsageDetail_20' ) end [2025-03-04 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606839', 'tblTempVendorCDR_20' ) start [2025-03-04 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606839', 'tblTempVendorCDR_20' ) end [2025-03-04 15:51:21] Production.INFO: ProcessCDR(1,14606839,1,1,2) [2025-03-04 15:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606839', 'tblTempUsageDetail_20' ) start [2025-03-04 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606839', 'tblTempUsageDetail_20' ) end [2025-03-04 15:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:51:26] Production.INFO: ==27670== Releasing lock... [2025-03-04 15:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:51:26] Production.INFO: 72.25 MB #Memory Used# [2025-03-04 15:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:52:06 [end_date_ymd] => 2025-03-04 15:52:06 [RateCDR] => 1 ) [2025-03-04 15: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 12:52:06' and `end` < '2025-03-04 15: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-04 15:52:19] Production.INFO: count ==5958 [2025-03-04 15:52:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:52:06 - End Time 2025-03-04 15:52:06 [2025-03-04 15:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606844', 'tblTempUsageDetail_20' ) start [2025-03-04 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606844', 'tblTempUsageDetail_20' ) end [2025-03-04 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606844', 'tblTempVendorCDR_20' ) start [2025-03-04 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606844', 'tblTempVendorCDR_20' ) end [2025-03-04 15:52:22] Production.INFO: ProcessCDR(1,14606844,1,1,2) [2025-03-04 15:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606844', 'tblTempUsageDetail_20' ) start [2025-03-04 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606844', 'tblTempUsageDetail_20' ) end [2025-03-04 15:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:52:27] Production.INFO: ==27739== Releasing lock... [2025-03-04 15:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:52:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-04 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:53:05 [end_date_ymd] => 2025-03-04 15:53:05 [RateCDR] => 1 ) [2025-03-04 15:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 12:53:05' and `end` < '2025-03-04 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-04 15:53:18] Production.INFO: count ==5953 [2025-03-04 15:53:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:53:05 - End Time 2025-03-04 15:53:05 [2025-03-04 15:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606849', 'tblTempUsageDetail_20' ) start [2025-03-04 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606849', 'tblTempUsageDetail_20' ) end [2025-03-04 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606849', 'tblTempVendorCDR_20' ) start [2025-03-04 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606849', 'tblTempVendorCDR_20' ) end [2025-03-04 15:53:21] Production.INFO: ProcessCDR(1,14606849,1,1,2) [2025-03-04 15:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606849', 'tblTempUsageDetail_20' ) start [2025-03-04 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606849', 'tblTempUsageDetail_20' ) end [2025-03-04 15:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:53:26] Production.INFO: ==27816== Releasing lock... [2025-03-04 15:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:53:26] Production.INFO: 72.5 MB #Memory Used# [2025-03-04 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:54:05 [end_date_ymd] => 2025-03-04 15:54:05 [RateCDR] => 1 ) [2025-03-04 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-04 12:54:05' and `end` < '2025-03-04 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-04 15:54:19] Production.INFO: count ==5967 [2025-03-04 15:54:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:54:05 - End Time 2025-03-04 15:54:05 [2025-03-04 15:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606854', 'tblTempUsageDetail_20' ) start [2025-03-04 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606854', 'tblTempUsageDetail_20' ) end [2025-03-04 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606854', 'tblTempVendorCDR_20' ) start [2025-03-04 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606854', 'tblTempVendorCDR_20' ) end [2025-03-04 15:54:22] Production.INFO: ProcessCDR(1,14606854,1,1,2) [2025-03-04 15:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606854', 'tblTempUsageDetail_20' ) start [2025-03-04 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606854', 'tblTempUsageDetail_20' ) end [2025-03-04 15:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:54:27] Production.INFO: ==27887== Releasing lock... [2025-03-04 15:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:54:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-04 15:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:55:06 [end_date_ymd] => 2025-03-04 15:55:06 [RateCDR] => 1 ) [2025-03-04 15: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 12:55:06' and `end` < '2025-03-04 15: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-04 15:55:19] Production.INFO: count ==5946 [2025-03-04 15:55:22] Production.ERROR: pbx CDR StartTime 2025-03-04 12:55:06 - End Time 2025-03-04 15:55:06 [2025-03-04 15:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606859', 'tblTempUsageDetail_20' ) start [2025-03-04 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606859', 'tblTempUsageDetail_20' ) end [2025-03-04 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606859', 'tblTempVendorCDR_20' ) start [2025-03-04 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606859', 'tblTempVendorCDR_20' ) end [2025-03-04 15:55:22] Production.INFO: ProcessCDR(1,14606859,1,1,2) [2025-03-04 15:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606859', 'tblTempUsageDetail_20' ) start [2025-03-04 15:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606859', 'tblTempUsageDetail_20' ) end [2025-03-04 15:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:55:27] Production.INFO: ==27960== Releasing lock... [2025-03-04 15:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:55:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-04 15:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:56:06 [end_date_ymd] => 2025-03-04 15:56:06 [RateCDR] => 1 ) [2025-03-04 15: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 12:56:06' and `end` < '2025-03-04 15: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-04 15:56:19] Production.INFO: count ==5933 [2025-03-04 15:56:22] Production.ERROR: pbx CDR StartTime 2025-03-04 12:56:06 - End Time 2025-03-04 15:56:06 [2025-03-04 15:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606864', 'tblTempUsageDetail_20' ) start [2025-03-04 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606864', 'tblTempUsageDetail_20' ) end [2025-03-04 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606864', 'tblTempVendorCDR_20' ) start [2025-03-04 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606864', 'tblTempVendorCDR_20' ) end [2025-03-04 15:56:22] Production.INFO: ProcessCDR(1,14606864,1,1,2) [2025-03-04 15:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606864', 'tblTempUsageDetail_20' ) start [2025-03-04 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606864', 'tblTempUsageDetail_20' ) end [2025-03-04 15:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:56:27] Production.INFO: ==28039== Releasing lock... [2025-03-04 15:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:56:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-04 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:57:05 [end_date_ymd] => 2025-03-04 15:57:05 [RateCDR] => 1 ) [2025-03-04 15:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 12:57:05' and `end` < '2025-03-04 15:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 15:57:18] Production.INFO: count ==5926 [2025-03-04 15:57:21] Production.ERROR: pbx CDR StartTime 2025-03-04 12:57:05 - End Time 2025-03-04 15:57:05 [2025-03-04 15:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606869', 'tblTempUsageDetail_20' ) start [2025-03-04 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606869', 'tblTempUsageDetail_20' ) end [2025-03-04 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606869', 'tblTempVendorCDR_20' ) start [2025-03-04 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606869', 'tblTempVendorCDR_20' ) end [2025-03-04 15:57:21] Production.INFO: ProcessCDR(1,14606869,1,1,2) [2025-03-04 15:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606869', 'tblTempUsageDetail_20' ) start [2025-03-04 15:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606869', 'tblTempUsageDetail_20' ) end [2025-03-04 15:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:57:26] Production.INFO: ==28118== Releasing lock... [2025-03-04 15:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:57:26] Production.INFO: 72.25 MB #Memory Used# [2025-03-04 15:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:58:06 [end_date_ymd] => 2025-03-04 15:58:06 [RateCDR] => 1 ) [2025-03-04 15: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 12:58:06' and `end` < '2025-03-04 15: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-04 15:58:19] Production.INFO: count ==5906 [2025-03-04 15:58:22] Production.ERROR: pbx CDR StartTime 2025-03-04 12:58:06 - End Time 2025-03-04 15:58:06 [2025-03-04 15:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606874', 'tblTempUsageDetail_20' ) start [2025-03-04 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606874', 'tblTempUsageDetail_20' ) end [2025-03-04 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606874', 'tblTempVendorCDR_20' ) start [2025-03-04 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606874', 'tblTempVendorCDR_20' ) end [2025-03-04 15:58:22] Production.INFO: ProcessCDR(1,14606874,1,1,2) [2025-03-04 15:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606874', 'tblTempUsageDetail_20' ) start [2025-03-04 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606874', 'tblTempUsageDetail_20' ) end [2025-03-04 15:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:58:27] Production.INFO: ==28202== Releasing lock... [2025-03-04 15:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:58:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-04 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 12:59:05 [end_date_ymd] => 2025-03-04 15:59:05 [RateCDR] => 1 ) [2025-03-04 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-04 12:59:05' and `end` < '2025-03-04 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-04 15:59:18] Production.INFO: count ==5922 [2025-03-04 15:59:20] Production.ERROR: pbx CDR StartTime 2025-03-04 12:59:05 - End Time 2025-03-04 15:59:05 [2025-03-04 15:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606879', 'tblTempUsageDetail_20' ) start [2025-03-04 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606879', 'tblTempUsageDetail_20' ) end [2025-03-04 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606879', 'tblTempVendorCDR_20' ) start [2025-03-04 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606879', 'tblTempVendorCDR_20' ) end [2025-03-04 15:59:21] Production.INFO: ProcessCDR(1,14606879,1,1,2) [2025-03-04 15:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 15:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 15:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606879', 'tblTempUsageDetail_20' ) start [2025-03-04 15:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606879', 'tblTempUsageDetail_20' ) end [2025-03-04 15:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 15:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 15:59:25] Production.INFO: ==28276== Releasing lock... [2025-03-04 15:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 15:59:25] Production.INFO: 72.25 MB #Memory Used# [2025-03-04 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:00:06 [end_date_ymd] => 2025-03-04 16:00:06 [RateCDR] => 1 ) [2025-03-04 16: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 13:00:06' and `end` < '2025-03-04 16: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-04 16:00:19] Production.INFO: count ==5892 [2025-03-04 16:00:22] Production.ERROR: pbx CDR StartTime 2025-03-04 13:00:06 - End Time 2025-03-04 16:00:06 [2025-03-04 16:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606885', 'tblTempUsageDetail_20' ) start [2025-03-04 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606885', 'tblTempUsageDetail_20' ) end [2025-03-04 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606885', 'tblTempVendorCDR_20' ) start [2025-03-04 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606885', 'tblTempVendorCDR_20' ) end [2025-03-04 16:00:22] Production.INFO: ProcessCDR(1,14606885,1,1,2) [2025-03-04 16:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606885', 'tblTempUsageDetail_20' ) start [2025-03-04 16:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606885', 'tblTempUsageDetail_20' ) end [2025-03-04 16:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:00:27] Production.INFO: ==28381== Releasing lock... [2025-03-04 16:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:00:27] Production.INFO: 72 MB #Memory Used# [2025-03-04 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:01:05 [end_date_ymd] => 2025-03-04 16:01:05 [RateCDR] => 1 ) [2025-03-04 16: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 13:01:05' and `end` < '2025-03-04 16: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-04 16:01:18] Production.INFO: count ==5917 [2025-03-04 16:01:21] Production.ERROR: pbx CDR StartTime 2025-03-04 13:01:05 - End Time 2025-03-04 16:01:05 [2025-03-04 16:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606890', 'tblTempUsageDetail_20' ) start [2025-03-04 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606890', 'tblTempUsageDetail_20' ) end [2025-03-04 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606890', 'tblTempVendorCDR_20' ) start [2025-03-04 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606890', 'tblTempVendorCDR_20' ) end [2025-03-04 16:01:21] Production.INFO: ProcessCDR(1,14606890,1,1,2) [2025-03-04 16:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606890', 'tblTempUsageDetail_20' ) start [2025-03-04 16:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606890', 'tblTempUsageDetail_20' ) end [2025-03-04 16:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:01:26] Production.INFO: ==28473== Releasing lock... [2025-03-04 16:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:01:26] Production.INFO: 72.25 MB #Memory Used# [2025-03-04 16:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:02:06 [end_date_ymd] => 2025-03-04 16:02:06 [RateCDR] => 1 ) [2025-03-04 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-04 13:02:06' and `end` < '2025-03-04 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-04 16:02:19] Production.INFO: count ==5915 [2025-03-04 16:02:22] Production.ERROR: pbx CDR StartTime 2025-03-04 13:02:06 - End Time 2025-03-04 16:02:06 [2025-03-04 16:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606895', 'tblTempUsageDetail_20' ) start [2025-03-04 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606895', 'tblTempUsageDetail_20' ) end [2025-03-04 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606895', 'tblTempVendorCDR_20' ) start [2025-03-04 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606895', 'tblTempVendorCDR_20' ) end [2025-03-04 16:02:22] Production.INFO: ProcessCDR(1,14606895,1,1,2) [2025-03-04 16:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606895', 'tblTempUsageDetail_20' ) start [2025-03-04 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606895', 'tblTempUsageDetail_20' ) end [2025-03-04 16:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:02:27] Production.INFO: ==28587== Releasing lock... [2025-03-04 16:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:02:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-04 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:03:05 [end_date_ymd] => 2025-03-04 16:03:05 [RateCDR] => 1 ) [2025-03-04 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-04 13:03:05' and `end` < '2025-03-04 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-04 16:03:18] Production.INFO: count ==5905 [2025-03-04 16:03:21] Production.ERROR: pbx CDR StartTime 2025-03-04 13:03:05 - End Time 2025-03-04 16:03:05 [2025-03-04 16:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606900', 'tblTempUsageDetail_20' ) start [2025-03-04 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606900', 'tblTempUsageDetail_20' ) end [2025-03-04 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606900', 'tblTempVendorCDR_20' ) start [2025-03-04 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606900', 'tblTempVendorCDR_20' ) end [2025-03-04 16:03:21] Production.INFO: ProcessCDR(1,14606900,1,1,2) [2025-03-04 16:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606900', 'tblTempUsageDetail_20' ) start [2025-03-04 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606900', 'tblTempUsageDetail_20' ) end [2025-03-04 16:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:03:26] Production.INFO: ==28660== Releasing lock... [2025-03-04 16:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:03:26] Production.INFO: 72.25 MB #Memory Used# [2025-03-04 16:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:04:06 [end_date_ymd] => 2025-03-04 16:04:06 [RateCDR] => 1 ) [2025-03-04 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-04 13:04:06' and `end` < '2025-03-04 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-04 16:04:19] Production.INFO: count ==5913 [2025-03-04 16:04:22] Production.ERROR: pbx CDR StartTime 2025-03-04 13:04:06 - End Time 2025-03-04 16:04:06 [2025-03-04 16:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606905', 'tblTempUsageDetail_20' ) start [2025-03-04 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606905', 'tblTempUsageDetail_20' ) end [2025-03-04 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606905', 'tblTempVendorCDR_20' ) start [2025-03-04 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606905', 'tblTempVendorCDR_20' ) end [2025-03-04 16:04:22] Production.INFO: ProcessCDR(1,14606905,1,1,2) [2025-03-04 16:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606905', 'tblTempUsageDetail_20' ) start [2025-03-04 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606905', 'tblTempUsageDetail_20' ) end [2025-03-04 16:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:04:27] Production.INFO: ==28738== Releasing lock... [2025-03-04 16:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:04:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-04 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:05:05 [end_date_ymd] => 2025-03-04 16:05:05 [RateCDR] => 1 ) [2025-03-04 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-04 13:05:05' and `end` < '2025-03-04 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-04 16:05:18] Production.INFO: count ==5929 [2025-03-04 16:05:21] Production.ERROR: pbx CDR StartTime 2025-03-04 13:05:05 - End Time 2025-03-04 16:05:05 [2025-03-04 16:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606910', 'tblTempUsageDetail_20' ) start [2025-03-04 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606910', 'tblTempUsageDetail_20' ) end [2025-03-04 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606910', 'tblTempVendorCDR_20' ) start [2025-03-04 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606910', 'tblTempVendorCDR_20' ) end [2025-03-04 16:05:21] Production.INFO: ProcessCDR(1,14606910,1,1,2) [2025-03-04 16:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606910', 'tblTempUsageDetail_20' ) start [2025-03-04 16:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606910', 'tblTempUsageDetail_20' ) end [2025-03-04 16:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:05:26] Production.INFO: ==28809== Releasing lock... [2025-03-04 16:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:05:26] Production.INFO: 72.5 MB #Memory Used# [2025-03-04 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:06:05 [end_date_ymd] => 2025-03-04 16:06:05 [RateCDR] => 1 ) [2025-03-04 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-04 13:06:05' and `end` < '2025-03-04 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-04 16:06:18] Production.INFO: count ==5945 [2025-03-04 16:06:21] Production.ERROR: pbx CDR StartTime 2025-03-04 13:06:05 - End Time 2025-03-04 16:06:05 [2025-03-04 16:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606915', 'tblTempUsageDetail_20' ) start [2025-03-04 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606915', 'tblTempUsageDetail_20' ) end [2025-03-04 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606915', 'tblTempVendorCDR_20' ) start [2025-03-04 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606915', 'tblTempVendorCDR_20' ) end [2025-03-04 16:06:21] Production.INFO: ProcessCDR(1,14606915,1,1,2) [2025-03-04 16:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606915', 'tblTempUsageDetail_20' ) start [2025-03-04 16:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606915', 'tblTempUsageDetail_20' ) end [2025-03-04 16:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:06:26] Production.INFO: ==28892== Releasing lock... [2025-03-04 16:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:06:26] Production.INFO: 72.5 MB #Memory Used# [2025-03-04 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:07:05 [end_date_ymd] => 2025-03-04 16:07:05 [RateCDR] => 1 ) [2025-03-04 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-04 13:07:05' and `end` < '2025-03-04 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-04 16:07:19] Production.INFO: count ==5943 [2025-03-04 16:07:21] Production.ERROR: pbx CDR StartTime 2025-03-04 13:07:05 - End Time 2025-03-04 16:07:05 [2025-03-04 16:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606920', 'tblTempUsageDetail_20' ) start [2025-03-04 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606920', 'tblTempUsageDetail_20' ) end [2025-03-04 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606920', 'tblTempVendorCDR_20' ) start [2025-03-04 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606920', 'tblTempVendorCDR_20' ) end [2025-03-04 16:07:21] Production.INFO: ProcessCDR(1,14606920,1,1,2) [2025-03-04 16:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606920', 'tblTempUsageDetail_20' ) start [2025-03-04 16:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606920', 'tblTempUsageDetail_20' ) end [2025-03-04 16:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:07:26] Production.INFO: ==28968== Releasing lock... [2025-03-04 16:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:07:26] Production.INFO: 72.5 MB #Memory Used# [2025-03-04 16:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:08:06 [end_date_ymd] => 2025-03-04 16:08:06 [RateCDR] => 1 ) [2025-03-04 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-04 13:08:06' and `end` < '2025-03-04 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-04 16:08:19] Production.INFO: count ==5943 [2025-03-04 16:08:22] Production.ERROR: pbx CDR StartTime 2025-03-04 13:08:06 - End Time 2025-03-04 16:08:06 [2025-03-04 16:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606925', 'tblTempUsageDetail_20' ) start [2025-03-04 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606925', 'tblTempUsageDetail_20' ) end [2025-03-04 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606925', 'tblTempVendorCDR_20' ) start [2025-03-04 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606925', 'tblTempVendorCDR_20' ) end [2025-03-04 16:08:22] Production.INFO: ProcessCDR(1,14606925,1,1,2) [2025-03-04 16:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606925', 'tblTempUsageDetail_20' ) start [2025-03-04 16:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606925', 'tblTempUsageDetail_20' ) end [2025-03-04 16:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:08:27] Production.INFO: ==29042== Releasing lock... [2025-03-04 16:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:08:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-04 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:09:05 [end_date_ymd] => 2025-03-04 16:09:05 [RateCDR] => 1 ) [2025-03-04 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-04 13:09:05' and `end` < '2025-03-04 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-04 16:09:18] Production.INFO: count ==5925 [2025-03-04 16:09:21] Production.ERROR: pbx CDR StartTime 2025-03-04 13:09:05 - End Time 2025-03-04 16:09:05 [2025-03-04 16:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606930', 'tblTempUsageDetail_20' ) start [2025-03-04 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606930', 'tblTempUsageDetail_20' ) end [2025-03-04 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606930', 'tblTempVendorCDR_20' ) start [2025-03-04 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606930', 'tblTempVendorCDR_20' ) end [2025-03-04 16:09:21] Production.INFO: ProcessCDR(1,14606930,1,1,2) [2025-03-04 16:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606930', 'tblTempUsageDetail_20' ) start [2025-03-04 16:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606930', 'tblTempUsageDetail_20' ) end [2025-03-04 16:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:09:26] Production.INFO: ==29118== Releasing lock... [2025-03-04 16:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:09:26] Production.INFO: 72.25 MB #Memory Used# [2025-03-04 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:10:06 [end_date_ymd] => 2025-03-04 16:10:06 [RateCDR] => 1 ) [2025-03-04 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-04 13:10:06' and `end` < '2025-03-04 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-04 16:10:19] Production.INFO: count ==5926 [2025-03-04 16:10:22] Production.ERROR: pbx CDR StartTime 2025-03-04 13:10:06 - End Time 2025-03-04 16:10:06 [2025-03-04 16:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606936', 'tblTempUsageDetail_20' ) start [2025-03-04 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606936', 'tblTempUsageDetail_20' ) end [2025-03-04 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606936', 'tblTempVendorCDR_20' ) start [2025-03-04 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606936', 'tblTempVendorCDR_20' ) end [2025-03-04 16:10:22] Production.INFO: ProcessCDR(1,14606936,1,1,2) [2025-03-04 16:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606936', 'tblTempUsageDetail_20' ) start [2025-03-04 16:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606936', 'tblTempUsageDetail_20' ) end [2025-03-04 16:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:10:27] Production.INFO: ==29196== Releasing lock... [2025-03-04 16:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:10:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-04 16:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:11:06 [end_date_ymd] => 2025-03-04 16:11:06 [RateCDR] => 1 ) [2025-03-04 16: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 13:11:06' and `end` < '2025-03-04 16: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-04 16:11:19] Production.INFO: count ==5916 [2025-03-04 16:11:22] Production.ERROR: pbx CDR StartTime 2025-03-04 13:11:06 - End Time 2025-03-04 16:11:06 [2025-03-04 16:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606941', 'tblTempUsageDetail_20' ) start [2025-03-04 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606941', 'tblTempUsageDetail_20' ) end [2025-03-04 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606941', 'tblTempVendorCDR_20' ) start [2025-03-04 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606941', 'tblTempVendorCDR_20' ) end [2025-03-04 16:11:22] Production.INFO: ProcessCDR(1,14606941,1,1,2) [2025-03-04 16:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606941', 'tblTempUsageDetail_20' ) start [2025-03-04 16:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606941', 'tblTempUsageDetail_20' ) end [2025-03-04 16:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:11:27] Production.INFO: ==29277== Releasing lock... [2025-03-04 16:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:11:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-04 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:12:05 [end_date_ymd] => 2025-03-04 16:12:05 [RateCDR] => 1 ) [2025-03-04 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-04 13:12:05' and `end` < '2025-03-04 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-04 16:12:18] Production.INFO: count ==5910 [2025-03-04 16:12:21] Production.ERROR: pbx CDR StartTime 2025-03-04 13:12:05 - End Time 2025-03-04 16:12:05 [2025-03-04 16:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606946', 'tblTempUsageDetail_20' ) start [2025-03-04 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606946', 'tblTempUsageDetail_20' ) end [2025-03-04 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606946', 'tblTempVendorCDR_20' ) start [2025-03-04 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606946', 'tblTempVendorCDR_20' ) end [2025-03-04 16:12:21] Production.INFO: ProcessCDR(1,14606946,1,1,2) [2025-03-04 16:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606946', 'tblTempUsageDetail_20' ) start [2025-03-04 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606946', 'tblTempUsageDetail_20' ) end [2025-03-04 16:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:12:26] Production.INFO: ==29355== Releasing lock... [2025-03-04 16:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:12:26] Production.INFO: 72.25 MB #Memory Used# [2025-03-04 16:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:13:06 [end_date_ymd] => 2025-03-04 16:13:06 [RateCDR] => 1 ) [2025-03-04 16: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 13:13:06' and `end` < '2025-03-04 16: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-04 16:13:19] Production.INFO: count ==5901 [2025-03-04 16:13:22] Production.ERROR: pbx CDR StartTime 2025-03-04 13:13:06 - End Time 2025-03-04 16:13:06 [2025-03-04 16:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606951', 'tblTempUsageDetail_20' ) start [2025-03-04 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606951', 'tblTempUsageDetail_20' ) end [2025-03-04 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606951', 'tblTempVendorCDR_20' ) start [2025-03-04 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606951', 'tblTempVendorCDR_20' ) end [2025-03-04 16:13:22] Production.INFO: ProcessCDR(1,14606951,1,1,2) [2025-03-04 16:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606951', 'tblTempUsageDetail_20' ) start [2025-03-04 16:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606951', 'tblTempUsageDetail_20' ) end [2025-03-04 16:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:13:26] Production.INFO: ==29432== Releasing lock... [2025-03-04 16:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:13:26] Production.INFO: 72.25 MB #Memory Used# [2025-03-04 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:14:05 [end_date_ymd] => 2025-03-04 16:14:05 [RateCDR] => 1 ) [2025-03-04 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-04 13:14:05' and `end` < '2025-03-04 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-04 16:14:18] Production.INFO: count ==5926 [2025-03-04 16:14:21] Production.ERROR: pbx CDR StartTime 2025-03-04 13:14:05 - End Time 2025-03-04 16:14:05 [2025-03-04 16:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606956', 'tblTempUsageDetail_20' ) start [2025-03-04 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606956', 'tblTempUsageDetail_20' ) end [2025-03-04 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606956', 'tblTempVendorCDR_20' ) start [2025-03-04 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606956', 'tblTempVendorCDR_20' ) end [2025-03-04 16:14:21] Production.INFO: ProcessCDR(1,14606956,1,1,2) [2025-03-04 16:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606956', 'tblTempUsageDetail_20' ) start [2025-03-04 16:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606956', 'tblTempUsageDetail_20' ) end [2025-03-04 16:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:14:26] Production.INFO: ==29508== Releasing lock... [2025-03-04 16:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:14:26] Production.INFO: 72.25 MB #Memory Used# [2025-03-04 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:15:05 [end_date_ymd] => 2025-03-04 16:15:05 [RateCDR] => 1 ) [2025-03-04 16: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 13:15:05' and `end` < '2025-03-04 16: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-04 16:15:19] Production.INFO: count ==5946 [2025-03-04 16:15:21] Production.ERROR: pbx CDR StartTime 2025-03-04 13:15:05 - End Time 2025-03-04 16:15:05 [2025-03-04 16:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606961', 'tblTempUsageDetail_20' ) start [2025-03-04 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606961', 'tblTempUsageDetail_20' ) end [2025-03-04 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606961', 'tblTempVendorCDR_20' ) start [2025-03-04 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606961', 'tblTempVendorCDR_20' ) end [2025-03-04 16:15:21] Production.INFO: ProcessCDR(1,14606961,1,1,2) [2025-03-04 16:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606961', 'tblTempUsageDetail_20' ) start [2025-03-04 16:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606961', 'tblTempUsageDetail_20' ) end [2025-03-04 16:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:15:26] Production.INFO: ==29581== Releasing lock... [2025-03-04 16:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:15:26] Production.INFO: 72.5 MB #Memory Used# [2025-03-04 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:16:05 [end_date_ymd] => 2025-03-04 16:16:05 [RateCDR] => 1 ) [2025-03-04 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-04 13:16:05' and `end` < '2025-03-04 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-04 16:16:19] Production.INFO: count ==5934 [2025-03-04 16:16:21] Production.ERROR: pbx CDR StartTime 2025-03-04 13:16:05 - End Time 2025-03-04 16:16:05 [2025-03-04 16:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606966', 'tblTempUsageDetail_20' ) start [2025-03-04 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606966', 'tblTempUsageDetail_20' ) end [2025-03-04 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606966', 'tblTempVendorCDR_20' ) start [2025-03-04 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606966', 'tblTempVendorCDR_20' ) end [2025-03-04 16:16:22] Production.INFO: ProcessCDR(1,14606966,1,1,2) [2025-03-04 16:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606966', 'tblTempUsageDetail_20' ) start [2025-03-04 16:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606966', 'tblTempUsageDetail_20' ) end [2025-03-04 16:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:16:25] Production.INFO: ==29658== Releasing lock... [2025-03-04 16:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:16:25] Production.INFO: 72.5 MB #Memory Used# [2025-03-04 16:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:17:06 [end_date_ymd] => 2025-03-04 16:17:06 [RateCDR] => 1 ) [2025-03-04 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-04 13:17:06' and `end` < '2025-03-04 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-04 16:17:19] Production.INFO: count ==5924 [2025-03-04 16:17:22] Production.ERROR: pbx CDR StartTime 2025-03-04 13:17:06 - End Time 2025-03-04 16:17:06 [2025-03-04 16:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606971', 'tblTempUsageDetail_20' ) start [2025-03-04 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606971', 'tblTempUsageDetail_20' ) end [2025-03-04 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606971', 'tblTempVendorCDR_20' ) start [2025-03-04 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606971', 'tblTempVendorCDR_20' ) end [2025-03-04 16:17:22] Production.INFO: ProcessCDR(1,14606971,1,1,2) [2025-03-04 16:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606971', 'tblTempUsageDetail_20' ) start [2025-03-04 16:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606971', 'tblTempUsageDetail_20' ) end [2025-03-04 16:17:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:17:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:17:28] Production.INFO: ==29734== Releasing lock... [2025-03-04 16:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:17:28] Production.INFO: 72.25 MB #Memory Used# [2025-03-04 16:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:18:06 [end_date_ymd] => 2025-03-04 16:18:06 [RateCDR] => 1 ) [2025-03-04 16: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 13:18:06' and `end` < '2025-03-04 16: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-04 16:18:19] Production.INFO: count ==5907 [2025-03-04 16:18:22] Production.ERROR: pbx CDR StartTime 2025-03-04 13:18:06 - End Time 2025-03-04 16:18:06 [2025-03-04 16:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606976', 'tblTempUsageDetail_20' ) start [2025-03-04 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606976', 'tblTempUsageDetail_20' ) end [2025-03-04 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606976', 'tblTempVendorCDR_20' ) start [2025-03-04 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606976', 'tblTempVendorCDR_20' ) end [2025-03-04 16:18:22] Production.INFO: ProcessCDR(1,14606976,1,1,2) [2025-03-04 16:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606976', 'tblTempUsageDetail_20' ) start [2025-03-04 16:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606976', 'tblTempUsageDetail_20' ) end [2025-03-04 16:18:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:18:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:18:28] Production.INFO: ==29855== Releasing lock... [2025-03-04 16:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:18:28] Production.INFO: 72.25 MB #Memory Used# [2025-03-04 16:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:19:06 [end_date_ymd] => 2025-03-04 16:19:06 [RateCDR] => 1 ) [2025-03-04 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-04 13:19:06' and `end` < '2025-03-04 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-04 16:19:19] Production.INFO: count ==5892 [2025-03-04 16:19:22] Production.ERROR: pbx CDR StartTime 2025-03-04 13:19:06 - End Time 2025-03-04 16:19:06 [2025-03-04 16:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606981', 'tblTempUsageDetail_20' ) start [2025-03-04 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606981', 'tblTempUsageDetail_20' ) end [2025-03-04 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606981', 'tblTempVendorCDR_20' ) start [2025-03-04 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606981', 'tblTempVendorCDR_20' ) end [2025-03-04 16:19:22] Production.INFO: ProcessCDR(1,14606981,1,1,2) [2025-03-04 16:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606981', 'tblTempUsageDetail_20' ) start [2025-03-04 16:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606981', 'tblTempUsageDetail_20' ) end [2025-03-04 16:19:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:19:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:19:28] Production.INFO: ==29933== Releasing lock... [2025-03-04 16:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:19:28] Production.INFO: 72 MB #Memory Used# [2025-03-04 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:20:06 [end_date_ymd] => 2025-03-04 16:20:06 [RateCDR] => 1 ) [2025-03-04 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-04 13:20:06' and `end` < '2025-03-04 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-04 16:20:20] Production.INFO: count ==5906 [2025-03-04 16:20:23] Production.ERROR: pbx CDR StartTime 2025-03-04 13:20:06 - End Time 2025-03-04 16:20:06 [2025-03-04 16:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606986', 'tblTempUsageDetail_20' ) start [2025-03-04 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606986', 'tblTempUsageDetail_20' ) end [2025-03-04 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606986', 'tblTempVendorCDR_20' ) start [2025-03-04 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606986', 'tblTempVendorCDR_20' ) end [2025-03-04 16:20:23] Production.INFO: ProcessCDR(1,14606986,1,1,2) [2025-03-04 16:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606986', 'tblTempUsageDetail_20' ) start [2025-03-04 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606986', 'tblTempUsageDetail_20' ) end [2025-03-04 16:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:20:28] Production.INFO: ==30009== Releasing lock... [2025-03-04 16:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:20:28] Production.INFO: 72.25 MB #Memory Used# [2025-03-04 16:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:21:06 [end_date_ymd] => 2025-03-04 16:21:06 [RateCDR] => 1 ) [2025-03-04 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-04 13:21:06' and `end` < '2025-03-04 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-04 16:21:19] Production.INFO: count ==5898 [2025-03-04 16:21:22] Production.ERROR: pbx CDR StartTime 2025-03-04 13:21:06 - End Time 2025-03-04 16:21:06 [2025-03-04 16:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606992', 'tblTempUsageDetail_20' ) start [2025-03-04 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606992', 'tblTempUsageDetail_20' ) end [2025-03-04 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606992', 'tblTempVendorCDR_20' ) start [2025-03-04 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606992', 'tblTempVendorCDR_20' ) end [2025-03-04 16:21:22] Production.INFO: ProcessCDR(1,14606992,1,1,2) [2025-03-04 16:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606992', 'tblTempUsageDetail_20' ) start [2025-03-04 16:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606992', 'tblTempUsageDetail_20' ) end [2025-03-04 16:21:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:21:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:21:28] Production.INFO: ==30085== Releasing lock... [2025-03-04 16:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:21:28] Production.INFO: 72.25 MB #Memory Used# [2025-03-04 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:22:05 [end_date_ymd] => 2025-03-04 16:22:05 [RateCDR] => 1 ) [2025-03-04 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-04 13:22:05' and `end` < '2025-03-04 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-04 16:22:18] Production.INFO: count ==5909 [2025-03-04 16:22:21] Production.ERROR: pbx CDR StartTime 2025-03-04 13:22:05 - End Time 2025-03-04 16:22:05 [2025-03-04 16:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606997', 'tblTempUsageDetail_20' ) start [2025-03-04 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14606997', 'tblTempUsageDetail_20' ) end [2025-03-04 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606997', 'tblTempVendorCDR_20' ) start [2025-03-04 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14606997', 'tblTempVendorCDR_20' ) end [2025-03-04 16:22:21] Production.INFO: ProcessCDR(1,14606997,1,1,2) [2025-03-04 16:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14606997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14606997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14606997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14606997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606997', 'tblTempUsageDetail_20' ) start [2025-03-04 16:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14606997', 'tblTempUsageDetail_20' ) end [2025-03-04 16:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:22:27] Production.INFO: ==30159== Releasing lock... [2025-03-04 16:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:22:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-04 16:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:23:06 [end_date_ymd] => 2025-03-04 16:23:06 [RateCDR] => 1 ) [2025-03-04 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-04 13:23:06' and `end` < '2025-03-04 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-04 16:23:19] Production.INFO: count ==5901 [2025-03-04 16:23:21] Production.ERROR: pbx CDR StartTime 2025-03-04 13:23:06 - End Time 2025-03-04 16:23:06 [2025-03-04 16:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607002', 'tblTempUsageDetail_20' ) start [2025-03-04 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607002', 'tblTempUsageDetail_20' ) end [2025-03-04 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607002', 'tblTempVendorCDR_20' ) start [2025-03-04 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607002', 'tblTempVendorCDR_20' ) end [2025-03-04 16:23:22] Production.INFO: ProcessCDR(1,14607002,1,1,2) [2025-03-04 16:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607002', 'tblTempUsageDetail_20' ) start [2025-03-04 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607002', 'tblTempUsageDetail_20' ) end [2025-03-04 16:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:23:27] Production.INFO: ==30235== Releasing lock... [2025-03-04 16:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:23:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-04 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:24:05 [end_date_ymd] => 2025-03-04 16:24:05 [RateCDR] => 1 ) [2025-03-04 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-04 13:24:05' and `end` < '2025-03-04 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-04 16:24:19] Production.INFO: count ==5904 [2025-03-04 16:24:21] Production.ERROR: pbx CDR StartTime 2025-03-04 13:24:05 - End Time 2025-03-04 16:24:05 [2025-03-04 16:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607007', 'tblTempUsageDetail_20' ) start [2025-03-04 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607007', 'tblTempUsageDetail_20' ) end [2025-03-04 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607007', 'tblTempVendorCDR_20' ) start [2025-03-04 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607007', 'tblTempVendorCDR_20' ) end [2025-03-04 16:24:21] Production.INFO: ProcessCDR(1,14607007,1,1,2) [2025-03-04 16:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607007', 'tblTempUsageDetail_20' ) start [2025-03-04 16:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607007', 'tblTempUsageDetail_20' ) end [2025-03-04 16:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:24:26] Production.INFO: ==30311== Releasing lock... [2025-03-04 16:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:24:26] Production.INFO: 72.25 MB #Memory Used# [2025-03-04 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:25:06 [end_date_ymd] => 2025-03-04 16:25:06 [RateCDR] => 1 ) [2025-03-04 16: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-04 13:25:06' and `end` < '2025-03-04 16: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-04 16:25:19] Production.INFO: count ==5907 [2025-03-04 16:25:22] Production.ERROR: pbx CDR StartTime 2025-03-04 13:25:06 - End Time 2025-03-04 16:25:06 [2025-03-04 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607012', 'tblTempUsageDetail_20' ) start [2025-03-04 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607012', 'tblTempUsageDetail_20' ) end [2025-03-04 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607012', 'tblTempVendorCDR_20' ) start [2025-03-04 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607012', 'tblTempVendorCDR_20' ) end [2025-03-04 16:25:22] Production.INFO: ProcessCDR(1,14607012,1,1,2) [2025-03-04 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607012', 'tblTempUsageDetail_20' ) start [2025-03-04 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607012', 'tblTempUsageDetail_20' ) end [2025-03-04 16:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:25:27] Production.INFO: ==30395== Releasing lock... [2025-03-04 16:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:25:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-04 16:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:26:06 [end_date_ymd] => 2025-03-04 16:26:06 [RateCDR] => 1 ) [2025-03-04 16: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-04 13:26:06' and `end` < '2025-03-04 16: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-04 16:26:19] Production.INFO: count ==5904 [2025-03-04 16:26:22] Production.ERROR: pbx CDR StartTime 2025-03-04 13:26:06 - End Time 2025-03-04 16:26:06 [2025-03-04 16:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607017', 'tblTempUsageDetail_20' ) start [2025-03-04 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607017', 'tblTempUsageDetail_20' ) end [2025-03-04 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607017', 'tblTempVendorCDR_20' ) start [2025-03-04 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607017', 'tblTempVendorCDR_20' ) end [2025-03-04 16:26:22] Production.INFO: ProcessCDR(1,14607017,1,1,2) [2025-03-04 16:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607017', 'tblTempUsageDetail_20' ) start [2025-03-04 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607017', 'tblTempUsageDetail_20' ) end [2025-03-04 16:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:26:27] Production.INFO: ==30472== Releasing lock... [2025-03-04 16:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:26:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-04 16:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:27:06 [end_date_ymd] => 2025-03-04 16:27:06 [RateCDR] => 1 ) [2025-03-04 16: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 13:27:06' and `end` < '2025-03-04 16: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-04 16:27:19] Production.INFO: count ==5913 [2025-03-04 16:27:21] Production.ERROR: pbx CDR StartTime 2025-03-04 13:27:06 - End Time 2025-03-04 16:27:06 [2025-03-04 16:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607022', 'tblTempUsageDetail_20' ) start [2025-03-04 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607022', 'tblTempUsageDetail_20' ) end [2025-03-04 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607022', 'tblTempVendorCDR_20' ) start [2025-03-04 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607022', 'tblTempVendorCDR_20' ) end [2025-03-04 16:27:22] Production.INFO: ProcessCDR(1,14607022,1,1,2) [2025-03-04 16:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607022', 'tblTempUsageDetail_20' ) start [2025-03-04 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607022', 'tblTempUsageDetail_20' ) end [2025-03-04 16:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:27:27] Production.INFO: ==30554== Releasing lock... [2025-03-04 16:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:27:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-04 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:28:05 [end_date_ymd] => 2025-03-04 16:28:05 [RateCDR] => 1 ) [2025-03-04 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-04 13:28:05' and `end` < '2025-03-04 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-04 16:28:19] Production.INFO: count ==5899 [2025-03-04 16:28:21] Production.ERROR: pbx CDR StartTime 2025-03-04 13:28:05 - End Time 2025-03-04 16:28:05 [2025-03-04 16:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607027', 'tblTempUsageDetail_20' ) start [2025-03-04 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607027', 'tblTempUsageDetail_20' ) end [2025-03-04 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607027', 'tblTempVendorCDR_20' ) start [2025-03-04 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607027', 'tblTempVendorCDR_20' ) end [2025-03-04 16:28:21] Production.INFO: ProcessCDR(1,14607027,1,1,2) [2025-03-04 16:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607027', 'tblTempUsageDetail_20' ) start [2025-03-04 16:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607027', 'tblTempUsageDetail_20' ) end [2025-03-04 16:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:28:26] Production.INFO: ==30628== Releasing lock... [2025-03-04 16:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:28:26] Production.INFO: 72.25 MB #Memory Used# [2025-03-04 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:29:05 [end_date_ymd] => 2025-03-04 16:29:05 [RateCDR] => 1 ) [2025-03-04 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-04 13:29:05' and `end` < '2025-03-04 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-04 16:29:19] Production.INFO: count ==5858 [2025-03-04 16:29:21] Production.ERROR: pbx CDR StartTime 2025-03-04 13:29:05 - End Time 2025-03-04 16:29:05 [2025-03-04 16:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607032', 'tblTempUsageDetail_20' ) start [2025-03-04 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607032', 'tblTempUsageDetail_20' ) end [2025-03-04 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607032', 'tblTempVendorCDR_20' ) start [2025-03-04 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607032', 'tblTempVendorCDR_20' ) end [2025-03-04 16:29:21] Production.INFO: ProcessCDR(1,14607032,1,1,2) [2025-03-04 16:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607032', 'tblTempUsageDetail_20' ) start [2025-03-04 16:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607032', 'tblTempUsageDetail_20' ) end [2025-03-04 16:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:29:26] Production.INFO: ==30704== Releasing lock... [2025-03-04 16:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:29:26] Production.INFO: 71.75 MB #Memory Used# [2025-03-04 16:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:30:05 [end_date_ymd] => 2025-03-04 16:30:05 [RateCDR] => 1 ) [2025-03-04 16:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 13:30:05' and `end` < '2025-03-04 16:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 16:30:19] Production.INFO: count ==5837 [2025-03-04 16:30:21] Production.ERROR: pbx CDR StartTime 2025-03-04 13:30:05 - End Time 2025-03-04 16:30:05 [2025-03-04 16:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607038', 'tblTempUsageDetail_20' ) start [2025-03-04 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607038', 'tblTempUsageDetail_20' ) end [2025-03-04 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607038', 'tblTempVendorCDR_20' ) start [2025-03-04 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607038', 'tblTempVendorCDR_20' ) end [2025-03-04 16:30:22] Production.INFO: ProcessCDR(1,14607038,1,1,2) [2025-03-04 16:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607038', 'tblTempUsageDetail_20' ) start [2025-03-04 16:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607038', 'tblTempUsageDetail_20' ) end [2025-03-04 16:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:30:27] Production.INFO: ==30782== Releasing lock... [2025-03-04 16:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:30:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-04 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:31:05 [end_date_ymd] => 2025-03-04 16:31:05 [RateCDR] => 1 ) [2025-03-04 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-04 13:31:05' and `end` < '2025-03-04 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-04 16:31:19] Production.INFO: count ==5839 [2025-03-04 16:31:22] Production.ERROR: pbx CDR StartTime 2025-03-04 13:31:05 - End Time 2025-03-04 16:31:05 [2025-03-04 16:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607043', 'tblTempUsageDetail_20' ) start [2025-03-04 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607043', 'tblTempUsageDetail_20' ) end [2025-03-04 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607043', 'tblTempVendorCDR_20' ) start [2025-03-04 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607043', 'tblTempVendorCDR_20' ) end [2025-03-04 16:31:22] Production.INFO: ProcessCDR(1,14607043,1,1,2) [2025-03-04 16:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607043', 'tblTempUsageDetail_20' ) start [2025-03-04 16:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607043', 'tblTempUsageDetail_20' ) end [2025-03-04 16:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:31:27] Production.INFO: ==30865== Releasing lock... [2025-03-04 16:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:31:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-04 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:32:05 [end_date_ymd] => 2025-03-04 16:32:05 [RateCDR] => 1 ) [2025-03-04 16:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 13:32:05' and `end` < '2025-03-04 16:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 16:32:18] Production.INFO: count ==5815 [2025-03-04 16:32:21] Production.ERROR: pbx CDR StartTime 2025-03-04 13:32:05 - End Time 2025-03-04 16:32:05 [2025-03-04 16:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607048', 'tblTempUsageDetail_20' ) start [2025-03-04 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607048', 'tblTempUsageDetail_20' ) end [2025-03-04 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607048', 'tblTempVendorCDR_20' ) start [2025-03-04 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607048', 'tblTempVendorCDR_20' ) end [2025-03-04 16:32:21] Production.INFO: ProcessCDR(1,14607048,1,1,2) [2025-03-04 16:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607048', 'tblTempUsageDetail_20' ) start [2025-03-04 16:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607048', 'tblTempUsageDetail_20' ) end [2025-03-04 16:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:32:26] Production.INFO: ==30944== Releasing lock... [2025-03-04 16:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:32:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-04 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:33:05 [end_date_ymd] => 2025-03-04 16:33:05 [RateCDR] => 1 ) [2025-03-04 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-04 13:33:05' and `end` < '2025-03-04 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-04 16:33:19] Production.INFO: count ==5798 [2025-03-04 16:33:21] Production.ERROR: pbx CDR StartTime 2025-03-04 13:33:05 - End Time 2025-03-04 16:33:05 [2025-03-04 16:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607053', 'tblTempUsageDetail_20' ) start [2025-03-04 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607053', 'tblTempUsageDetail_20' ) end [2025-03-04 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607053', 'tblTempVendorCDR_20' ) start [2025-03-04 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607053', 'tblTempVendorCDR_20' ) end [2025-03-04 16:33:21] Production.INFO: ProcessCDR(1,14607053,1,1,2) [2025-03-04 16:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607053', 'tblTempUsageDetail_20' ) start [2025-03-04 16:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607053', 'tblTempUsageDetail_20' ) end [2025-03-04 16:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:33:26] Production.INFO: ==31063== Releasing lock... [2025-03-04 16:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:33:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-04 16:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:34:06 [end_date_ymd] => 2025-03-04 16:34:06 [RateCDR] => 1 ) [2025-03-04 16:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 13:34:06' and `end` < '2025-03-04 16: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-04 16:34:19] Production.INFO: count ==5794 [2025-03-04 16:34:22] Production.ERROR: pbx CDR StartTime 2025-03-04 13:34:06 - End Time 2025-03-04 16:34:06 [2025-03-04 16:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607058', 'tblTempUsageDetail_20' ) start [2025-03-04 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607058', 'tblTempUsageDetail_20' ) end [2025-03-04 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607058', 'tblTempVendorCDR_20' ) start [2025-03-04 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607058', 'tblTempVendorCDR_20' ) end [2025-03-04 16:34:22] Production.INFO: ProcessCDR(1,14607058,1,1,2) [2025-03-04 16:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607058', 'tblTempUsageDetail_20' ) start [2025-03-04 16:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607058', 'tblTempUsageDetail_20' ) end [2025-03-04 16:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:34:27] Production.INFO: ==31148== Releasing lock... [2025-03-04 16:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:34:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-04 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:35:05 [end_date_ymd] => 2025-03-04 16:35:05 [RateCDR] => 1 ) [2025-03-04 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-04 13:35:05' and `end` < '2025-03-04 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-04 16:35:18] Production.INFO: count ==5791 [2025-03-04 16:35:21] Production.ERROR: pbx CDR StartTime 2025-03-04 13:35:05 - End Time 2025-03-04 16:35:05 [2025-03-04 16:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607063', 'tblTempUsageDetail_20' ) start [2025-03-04 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607063', 'tblTempUsageDetail_20' ) end [2025-03-04 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607063', 'tblTempVendorCDR_20' ) start [2025-03-04 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607063', 'tblTempVendorCDR_20' ) end [2025-03-04 16:35:21] Production.INFO: ProcessCDR(1,14607063,1,1,2) [2025-03-04 16:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607063', 'tblTempUsageDetail_20' ) start [2025-03-04 16:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607063', 'tblTempUsageDetail_20' ) end [2025-03-04 16:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:35:26] Production.INFO: ==31228== Releasing lock... [2025-03-04 16:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:35:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-04 16:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:36:06 [end_date_ymd] => 2025-03-04 16:36:06 [RateCDR] => 1 ) [2025-03-04 16: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 13:36:06' and `end` < '2025-03-04 16: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-04 16:36:19] Production.INFO: count ==5775 [2025-03-04 16:36:21] Production.ERROR: pbx CDR StartTime 2025-03-04 13:36:06 - End Time 2025-03-04 16:36:06 [2025-03-04 16:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607068', 'tblTempUsageDetail_20' ) start [2025-03-04 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607068', 'tblTempUsageDetail_20' ) end [2025-03-04 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607068', 'tblTempVendorCDR_20' ) start [2025-03-04 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607068', 'tblTempVendorCDR_20' ) end [2025-03-04 16:36:22] Production.INFO: ProcessCDR(1,14607068,1,1,2) [2025-03-04 16:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607068', 'tblTempUsageDetail_20' ) start [2025-03-04 16:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607068', 'tblTempUsageDetail_20' ) end [2025-03-04 16:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:36:25] Production.INFO: ==31312== Releasing lock... [2025-03-04 16:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:36:25] Production.INFO: 71.25 MB #Memory Used# [2025-03-04 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:37:05 [end_date_ymd] => 2025-03-04 16:37:05 [RateCDR] => 1 ) [2025-03-04 16: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 13:37:05' and `end` < '2025-03-04 16: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-04 16:37:18] Production.INFO: count ==5778 [2025-03-04 16:37:21] Production.ERROR: pbx CDR StartTime 2025-03-04 13:37:05 - End Time 2025-03-04 16:37:05 [2025-03-04 16:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607073', 'tblTempUsageDetail_20' ) start [2025-03-04 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607073', 'tblTempUsageDetail_20' ) end [2025-03-04 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607073', 'tblTempVendorCDR_20' ) start [2025-03-04 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607073', 'tblTempVendorCDR_20' ) end [2025-03-04 16:37:21] Production.INFO: ProcessCDR(1,14607073,1,1,2) [2025-03-04 16:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607073', 'tblTempUsageDetail_20' ) start [2025-03-04 16:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607073', 'tblTempUsageDetail_20' ) end [2025-03-04 16:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:37:26] Production.INFO: ==31399== Releasing lock... [2025-03-04 16:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:37:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-04 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:38:05 [end_date_ymd] => 2025-03-04 16:38:05 [RateCDR] => 1 ) [2025-03-04 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-04 13:38:05' and `end` < '2025-03-04 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-04 16:38:18] Production.INFO: count ==5772 [2025-03-04 16:38:21] Production.ERROR: pbx CDR StartTime 2025-03-04 13:38:05 - End Time 2025-03-04 16:38:05 [2025-03-04 16:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607078', 'tblTempUsageDetail_20' ) start [2025-03-04 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607078', 'tblTempUsageDetail_20' ) end [2025-03-04 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607078', 'tblTempVendorCDR_20' ) start [2025-03-04 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607078', 'tblTempVendorCDR_20' ) end [2025-03-04 16:38:21] Production.INFO: ProcessCDR(1,14607078,1,1,2) [2025-03-04 16:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607078', 'tblTempUsageDetail_20' ) start [2025-03-04 16:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607078', 'tblTempUsageDetail_20' ) end [2025-03-04 16:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:38:26] Production.INFO: ==31482== Releasing lock... [2025-03-04 16:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:38:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-04 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:39:05 [end_date_ymd] => 2025-03-04 16:39:05 [RateCDR] => 1 ) [2025-03-04 16: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 13:39:05' and `end` < '2025-03-04 16: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-04 16:39:18] Production.INFO: count ==5771 [2025-03-04 16:39:21] Production.ERROR: pbx CDR StartTime 2025-03-04 13:39:05 - End Time 2025-03-04 16:39:05 [2025-03-04 16:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607083', 'tblTempUsageDetail_20' ) start [2025-03-04 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607083', 'tblTempUsageDetail_20' ) end [2025-03-04 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607083', 'tblTempVendorCDR_20' ) start [2025-03-04 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607083', 'tblTempVendorCDR_20' ) end [2025-03-04 16:39:21] Production.INFO: ProcessCDR(1,14607083,1,1,2) [2025-03-04 16:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607083', 'tblTempUsageDetail_20' ) start [2025-03-04 16:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607083', 'tblTempUsageDetail_20' ) end [2025-03-04 16:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:39:26] Production.INFO: ==31565== Releasing lock... [2025-03-04 16:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:39:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-04 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:40:06 [end_date_ymd] => 2025-03-04 16:40:06 [RateCDR] => 1 ) [2025-03-04 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-04 13:40:06' and `end` < '2025-03-04 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-04 16:40:19] Production.INFO: count ==5724 [2025-03-04 16:40:22] Production.ERROR: pbx CDR StartTime 2025-03-04 13:40:06 - End Time 2025-03-04 16:40:06 [2025-03-04 16:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607089', 'tblTempUsageDetail_20' ) start [2025-03-04 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607089', 'tblTempUsageDetail_20' ) end [2025-03-04 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607089', 'tblTempVendorCDR_20' ) start [2025-03-04 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607089', 'tblTempVendorCDR_20' ) end [2025-03-04 16:40:22] Production.INFO: ProcessCDR(1,14607089,1,1,2) [2025-03-04 16:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607089', 'tblTempUsageDetail_20' ) start [2025-03-04 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607089', 'tblTempUsageDetail_20' ) end [2025-03-04 16:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:40:27] Production.INFO: ==31656== Releasing lock... [2025-03-04 16:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:40:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-04 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:41:05 [end_date_ymd] => 2025-03-04 16:41:05 [RateCDR] => 1 ) [2025-03-04 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-04 13:41:05' and `end` < '2025-03-04 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-04 16:41:18] Production.INFO: count ==5743 [2025-03-04 16:41:21] Production.ERROR: pbx CDR StartTime 2025-03-04 13:41:05 - End Time 2025-03-04 16:41:05 [2025-03-04 16:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607094', 'tblTempUsageDetail_20' ) start [2025-03-04 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607094', 'tblTempUsageDetail_20' ) end [2025-03-04 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607094', 'tblTempVendorCDR_20' ) start [2025-03-04 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607094', 'tblTempVendorCDR_20' ) end [2025-03-04 16:41:21] Production.INFO: ProcessCDR(1,14607094,1,1,2) [2025-03-04 16:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607094', 'tblTempUsageDetail_20' ) start [2025-03-04 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607094', 'tblTempUsageDetail_20' ) end [2025-03-04 16:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:41:26] Production.INFO: ==31744== Releasing lock... [2025-03-04 16:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:41:26] Production.INFO: 71 MB #Memory Used# [2025-03-04 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:42:05 [end_date_ymd] => 2025-03-04 16:42:05 [RateCDR] => 1 ) [2025-03-04 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-04 13:42:05' and `end` < '2025-03-04 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-04 16:42:19] Production.INFO: count ==5734 [2025-03-04 16:42:21] Production.ERROR: pbx CDR StartTime 2025-03-04 13:42:05 - End Time 2025-03-04 16:42:05 [2025-03-04 16:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607099', 'tblTempUsageDetail_20' ) start [2025-03-04 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607099', 'tblTempUsageDetail_20' ) end [2025-03-04 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607099', 'tblTempVendorCDR_20' ) start [2025-03-04 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607099', 'tblTempVendorCDR_20' ) end [2025-03-04 16:42:21] Production.INFO: ProcessCDR(1,14607099,1,1,2) [2025-03-04 16:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607099', 'tblTempUsageDetail_20' ) start [2025-03-04 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607099', 'tblTempUsageDetail_20' ) end [2025-03-04 16:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:42:27] Production.INFO: ==31831== Releasing lock... [2025-03-04 16:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:42:27] Production.INFO: 71 MB #Memory Used# [2025-03-04 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:43:05 [end_date_ymd] => 2025-03-04 16:43:05 [RateCDR] => 1 ) [2025-03-04 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-04 13:43:05' and `end` < '2025-03-04 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-04 16:43:18] Production.INFO: count ==5729 [2025-03-04 16:43:20] Production.ERROR: pbx CDR StartTime 2025-03-04 13:43:05 - End Time 2025-03-04 16:43:05 [2025-03-04 16:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607104', 'tblTempUsageDetail_20' ) start [2025-03-04 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607104', 'tblTempUsageDetail_20' ) end [2025-03-04 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607104', 'tblTempVendorCDR_20' ) start [2025-03-04 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607104', 'tblTempVendorCDR_20' ) end [2025-03-04 16:43:20] Production.INFO: ProcessCDR(1,14607104,1,1,2) [2025-03-04 16:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607104', 'tblTempUsageDetail_20' ) start [2025-03-04 16:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607104', 'tblTempUsageDetail_20' ) end [2025-03-04 16:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:43:25] Production.INFO: ==31918== Releasing lock... [2025-03-04 16:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:43:25] Production.INFO: 71 MB #Memory Used# [2025-03-04 16:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:44:06 [end_date_ymd] => 2025-03-04 16:44:06 [RateCDR] => 1 ) [2025-03-04 16: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 13:44:06' and `end` < '2025-03-04 16: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-04 16:44:19] Production.INFO: count ==5717 [2025-03-04 16:44:22] Production.ERROR: pbx CDR StartTime 2025-03-04 13:44:06 - End Time 2025-03-04 16:44:06 [2025-03-04 16:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607109', 'tblTempUsageDetail_20' ) start [2025-03-04 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607109', 'tblTempUsageDetail_20' ) end [2025-03-04 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607109', 'tblTempVendorCDR_20' ) start [2025-03-04 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607109', 'tblTempVendorCDR_20' ) end [2025-03-04 16:44:22] Production.INFO: ProcessCDR(1,14607109,1,1,2) [2025-03-04 16:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607109', 'tblTempUsageDetail_20' ) start [2025-03-04 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607109', 'tblTempUsageDetail_20' ) end [2025-03-04 16:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:44:27] Production.INFO: ==32007== Releasing lock... [2025-03-04 16:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:44:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-04 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:45:05 [end_date_ymd] => 2025-03-04 16:45:05 [RateCDR] => 1 ) [2025-03-04 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-04 13:45:05' and `end` < '2025-03-04 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-04 16:45:19] Production.INFO: count ==5700 [2025-03-04 16:45:21] Production.ERROR: pbx CDR StartTime 2025-03-04 13:45:05 - End Time 2025-03-04 16:45:05 [2025-03-04 16:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607114', 'tblTempUsageDetail_20' ) start [2025-03-04 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607114', 'tblTempUsageDetail_20' ) end [2025-03-04 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607114', 'tblTempVendorCDR_20' ) start [2025-03-04 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607114', 'tblTempVendorCDR_20' ) end [2025-03-04 16:45:21] Production.INFO: ProcessCDR(1,14607114,1,1,2) [2025-03-04 16:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607114', 'tblTempUsageDetail_20' ) start [2025-03-04 16:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607114', 'tblTempUsageDetail_20' ) end [2025-03-04 16:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:45:26] Production.INFO: ==32100== Releasing lock... [2025-03-04 16:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:45:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-04 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:46:05 [end_date_ymd] => 2025-03-04 16:46:05 [RateCDR] => 1 ) [2025-03-04 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-04 13:46:05' and `end` < '2025-03-04 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-04 16:46:19] Production.INFO: count ==5709 [2025-03-04 16:46:21] Production.ERROR: pbx CDR StartTime 2025-03-04 13:46:05 - End Time 2025-03-04 16:46:05 [2025-03-04 16:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607119', 'tblTempUsageDetail_20' ) start [2025-03-04 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607119', 'tblTempUsageDetail_20' ) end [2025-03-04 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607119', 'tblTempVendorCDR_20' ) start [2025-03-04 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607119', 'tblTempVendorCDR_20' ) end [2025-03-04 16:46:21] Production.INFO: ProcessCDR(1,14607119,1,1,2) [2025-03-04 16:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607119', 'tblTempUsageDetail_20' ) start [2025-03-04 16:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607119', 'tblTempUsageDetail_20' ) end [2025-03-04 16:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:46:26] Production.INFO: ==32194== Releasing lock... [2025-03-04 16:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:46:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-04 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:47:05 [end_date_ymd] => 2025-03-04 16:47:05 [RateCDR] => 1 ) [2025-03-04 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-04 13:47:05' and `end` < '2025-03-04 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-04 16:47:18] Production.INFO: count ==5697 [2025-03-04 16:47:20] Production.ERROR: pbx CDR StartTime 2025-03-04 13:47:05 - End Time 2025-03-04 16:47:05 [2025-03-04 16:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607124', 'tblTempUsageDetail_20' ) start [2025-03-04 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607124', 'tblTempUsageDetail_20' ) end [2025-03-04 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607124', 'tblTempVendorCDR_20' ) start [2025-03-04 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607124', 'tblTempVendorCDR_20' ) end [2025-03-04 16:47:21] Production.INFO: ProcessCDR(1,14607124,1,1,2) [2025-03-04 16:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607124', 'tblTempUsageDetail_20' ) start [2025-03-04 16:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607124', 'tblTempUsageDetail_20' ) end [2025-03-04 16:47:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:47:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:47:25] Production.INFO: ==32287== Releasing lock... [2025-03-04 16:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:47:25] Production.INFO: 70.75 MB #Memory Used# [2025-03-04 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:48:05 [end_date_ymd] => 2025-03-04 16:48:05 [RateCDR] => 1 ) [2025-03-04 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-04 13:48:05' and `end` < '2025-03-04 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-04 16:48:18] Production.INFO: count ==5695 [2025-03-04 16:48:21] Production.ERROR: pbx CDR StartTime 2025-03-04 13:48:05 - End Time 2025-03-04 16:48:05 [2025-03-04 16:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607129', 'tblTempUsageDetail_20' ) start [2025-03-04 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607129', 'tblTempUsageDetail_20' ) end [2025-03-04 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607129', 'tblTempVendorCDR_20' ) start [2025-03-04 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607129', 'tblTempVendorCDR_20' ) end [2025-03-04 16:48:21] Production.INFO: ProcessCDR(1,14607129,1,1,2) [2025-03-04 16:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607129', 'tblTempUsageDetail_20' ) start [2025-03-04 16:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607129', 'tblTempUsageDetail_20' ) end [2025-03-04 16:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:48:26] Production.INFO: ==32411== Releasing lock... [2025-03-04 16:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:48:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-04 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:49:05 [end_date_ymd] => 2025-03-04 16:49:05 [RateCDR] => 1 ) [2025-03-04 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-04 13:49:05' and `end` < '2025-03-04 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-04 16:49:18] Production.INFO: count ==5677 [2025-03-04 16:49:20] Production.ERROR: pbx CDR StartTime 2025-03-04 13:49:05 - End Time 2025-03-04 16:49:05 [2025-03-04 16:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607134', 'tblTempUsageDetail_20' ) start [2025-03-04 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607134', 'tblTempUsageDetail_20' ) end [2025-03-04 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607134', 'tblTempVendorCDR_20' ) start [2025-03-04 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607134', 'tblTempVendorCDR_20' ) end [2025-03-04 16:49:21] Production.INFO: ProcessCDR(1,14607134,1,1,2) [2025-03-04 16:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607134', 'tblTempUsageDetail_20' ) start [2025-03-04 16:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607134', 'tblTempUsageDetail_20' ) end [2025-03-04 16:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:49:25] Production.INFO: ==32501== Releasing lock... [2025-03-04 16:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:49:25] Production.INFO: 70.5 MB #Memory Used# [2025-03-04 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:50:06 [end_date_ymd] => 2025-03-04 16:50:06 [RateCDR] => 1 ) [2025-03-04 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-04 13:50:06' and `end` < '2025-03-04 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-04 16:50:19] Production.INFO: count ==5648 [2025-03-04 16:50:21] Production.ERROR: pbx CDR StartTime 2025-03-04 13:50:06 - End Time 2025-03-04 16:50:06 [2025-03-04 16:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607140', 'tblTempUsageDetail_20' ) start [2025-03-04 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607140', 'tblTempUsageDetail_20' ) end [2025-03-04 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607140', 'tblTempVendorCDR_20' ) start [2025-03-04 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607140', 'tblTempVendorCDR_20' ) end [2025-03-04 16:50:22] Production.INFO: ProcessCDR(1,14607140,1,1,2) [2025-03-04 16:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607140', 'tblTempUsageDetail_20' ) start [2025-03-04 16:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607140', 'tblTempUsageDetail_20' ) end [2025-03-04 16:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:50:26] Production.INFO: ==32592== Releasing lock... [2025-03-04 16:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:50:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-04 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:51:05 [end_date_ymd] => 2025-03-04 16:51:05 [RateCDR] => 1 ) [2025-03-04 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-04 13:51:05' and `end` < '2025-03-04 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-04 16:51:18] Production.INFO: count ==5611 [2025-03-04 16:51:20] Production.ERROR: pbx CDR StartTime 2025-03-04 13:51:05 - End Time 2025-03-04 16:51:05 [2025-03-04 16:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607145', 'tblTempUsageDetail_20' ) start [2025-03-04 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607145', 'tblTempUsageDetail_20' ) end [2025-03-04 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607145', 'tblTempVendorCDR_20' ) start [2025-03-04 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607145', 'tblTempVendorCDR_20' ) end [2025-03-04 16:51:20] Production.INFO: ProcessCDR(1,14607145,1,1,2) [2025-03-04 16:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607145', 'tblTempUsageDetail_20' ) start [2025-03-04 16:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607145', 'tblTempUsageDetail_20' ) end [2025-03-04 16:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:51:25] Production.INFO: ==32683== Releasing lock... [2025-03-04 16:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:51:25] Production.INFO: 70 MB #Memory Used# [2025-03-04 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:52:05 [end_date_ymd] => 2025-03-04 16:52:05 [RateCDR] => 1 ) [2025-03-04 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-04 13:52:05' and `end` < '2025-03-04 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-04 16:52:18] Production.INFO: count ==5580 [2025-03-04 16:52:21] Production.ERROR: pbx CDR StartTime 2025-03-04 13:52:05 - End Time 2025-03-04 16:52:05 [2025-03-04 16:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607150', 'tblTempUsageDetail_20' ) start [2025-03-04 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607150', 'tblTempUsageDetail_20' ) end [2025-03-04 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607150', 'tblTempVendorCDR_20' ) start [2025-03-04 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607150', 'tblTempVendorCDR_20' ) end [2025-03-04 16:52:21] Production.INFO: ProcessCDR(1,14607150,1,1,2) [2025-03-04 16:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607150', 'tblTempUsageDetail_20' ) start [2025-03-04 16:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607150', 'tblTempUsageDetail_20' ) end [2025-03-04 16:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:52:27] Production.INFO: ==315== Releasing lock... [2025-03-04 16:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:52:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-04 16:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:53:06 [end_date_ymd] => 2025-03-04 16:53:06 [RateCDR] => 1 ) [2025-03-04 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-04 13:53:06' and `end` < '2025-03-04 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-04 16:53:19] Production.INFO: count ==5577 [2025-03-04 16:53:22] Production.ERROR: pbx CDR StartTime 2025-03-04 13:53:06 - End Time 2025-03-04 16:53:06 [2025-03-04 16:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607155', 'tblTempUsageDetail_20' ) start [2025-03-04 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607155', 'tblTempUsageDetail_20' ) end [2025-03-04 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607155', 'tblTempVendorCDR_20' ) start [2025-03-04 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607155', 'tblTempVendorCDR_20' ) end [2025-03-04 16:53:22] Production.INFO: ProcessCDR(1,14607155,1,1,2) [2025-03-04 16:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607155', 'tblTempUsageDetail_20' ) start [2025-03-04 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607155', 'tblTempUsageDetail_20' ) end [2025-03-04 16:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:53:26] Production.INFO: ==421== Releasing lock... [2025-03-04 16:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:53:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-04 16:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:54:06 [end_date_ymd] => 2025-03-04 16:54:06 [RateCDR] => 1 ) [2025-03-04 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-04 13:54:06' and `end` < '2025-03-04 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-04 16:54:19] Production.INFO: count ==5569 [2025-03-04 16:54:21] Production.ERROR: pbx CDR StartTime 2025-03-04 13:54:06 - End Time 2025-03-04 16:54:06 [2025-03-04 16:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607160', 'tblTempUsageDetail_20' ) start [2025-03-04 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607160', 'tblTempUsageDetail_20' ) end [2025-03-04 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607160', 'tblTempVendorCDR_20' ) start [2025-03-04 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607160', 'tblTempVendorCDR_20' ) end [2025-03-04 16:54:21] Production.INFO: ProcessCDR(1,14607160,1,1,2) [2025-03-04 16:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607160', 'tblTempUsageDetail_20' ) start [2025-03-04 16:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607160', 'tblTempUsageDetail_20' ) end [2025-03-04 16:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:54:25] Production.INFO: ==516== Releasing lock... [2025-03-04 16:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:54:25] Production.INFO: 69.75 MB #Memory Used# [2025-03-04 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:55:05 [end_date_ymd] => 2025-03-04 16:55:05 [RateCDR] => 1 ) [2025-03-04 16:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 13:55:05' and `end` < '2025-03-04 16:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 16:55:18] Production.INFO: count ==5572 [2025-03-04 16:55:20] Production.ERROR: pbx CDR StartTime 2025-03-04 13:55:05 - End Time 2025-03-04 16:55:05 [2025-03-04 16:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607165', 'tblTempUsageDetail_20' ) start [2025-03-04 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607165', 'tblTempUsageDetail_20' ) end [2025-03-04 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607165', 'tblTempVendorCDR_20' ) start [2025-03-04 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607165', 'tblTempVendorCDR_20' ) end [2025-03-04 16:55:21] Production.INFO: ProcessCDR(1,14607165,1,1,2) [2025-03-04 16:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607165', 'tblTempUsageDetail_20' ) start [2025-03-04 16:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607165', 'tblTempUsageDetail_20' ) end [2025-03-04 16:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:55:26] Production.INFO: ==616== Releasing lock... [2025-03-04 16:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:55:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-04 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:56:05 [end_date_ymd] => 2025-03-04 16:56:05 [RateCDR] => 1 ) [2025-03-04 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-04 13:56:05' and `end` < '2025-03-04 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-04 16:56:18] Production.INFO: count ==5597 [2025-03-04 16:56:21] Production.ERROR: pbx CDR StartTime 2025-03-04 13:56:05 - End Time 2025-03-04 16:56:05 [2025-03-04 16:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607170', 'tblTempUsageDetail_20' ) start [2025-03-04 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607170', 'tblTempUsageDetail_20' ) end [2025-03-04 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607170', 'tblTempVendorCDR_20' ) start [2025-03-04 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607170', 'tblTempVendorCDR_20' ) end [2025-03-04 16:56:21] Production.INFO: ProcessCDR(1,14607170,1,1,2) [2025-03-04 16:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607170', 'tblTempUsageDetail_20' ) start [2025-03-04 16:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607170', 'tblTempUsageDetail_20' ) end [2025-03-04 16:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:56:26] Production.INFO: ==731== Releasing lock... [2025-03-04 16:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:56:26] Production.INFO: 70 MB #Memory Used# [2025-03-04 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:57:05 [end_date_ymd] => 2025-03-04 16:57:05 [RateCDR] => 1 ) [2025-03-04 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-04 13:57:05' and `end` < '2025-03-04 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-04 16:57:18] Production.INFO: count ==5559 [2025-03-04 16:57:21] Production.ERROR: pbx CDR StartTime 2025-03-04 13:57:05 - End Time 2025-03-04 16:57:05 [2025-03-04 16:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607175', 'tblTempUsageDetail_20' ) start [2025-03-04 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607175', 'tblTempUsageDetail_20' ) end [2025-03-04 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607175', 'tblTempVendorCDR_20' ) start [2025-03-04 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607175', 'tblTempVendorCDR_20' ) end [2025-03-04 16:57:21] Production.INFO: ProcessCDR(1,14607175,1,1,2) [2025-03-04 16:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607175', 'tblTempUsageDetail_20' ) start [2025-03-04 16:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607175', 'tblTempUsageDetail_20' ) end [2025-03-04 16:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:57:26] Production.INFO: ==834== Releasing lock... [2025-03-04 16:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:57:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-04 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:58:05 [end_date_ymd] => 2025-03-04 16:58:05 [RateCDR] => 1 ) [2025-03-04 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-04 13:58:05' and `end` < '2025-03-04 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-04 16:58:18] Production.INFO: count ==5549 [2025-03-04 16:58:21] Production.ERROR: pbx CDR StartTime 2025-03-04 13:58:05 - End Time 2025-03-04 16:58:05 [2025-03-04 16:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607180', 'tblTempUsageDetail_20' ) start [2025-03-04 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607180', 'tblTempUsageDetail_20' ) end [2025-03-04 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607180', 'tblTempVendorCDR_20' ) start [2025-03-04 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607180', 'tblTempVendorCDR_20' ) end [2025-03-04 16:58:21] Production.INFO: ProcessCDR(1,14607180,1,1,2) [2025-03-04 16:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607180', 'tblTempUsageDetail_20' ) start [2025-03-04 16:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607180', 'tblTempUsageDetail_20' ) end [2025-03-04 16:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:58:25] Production.INFO: ==926== Releasing lock... [2025-03-04 16:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:58:25] Production.INFO: 69.5 MB #Memory Used# [2025-03-04 16:59:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 13:59:07 [end_date_ymd] => 2025-03-04 16:59:07 [RateCDR] => 1 ) [2025-03-04 16:59: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 13:59:07' and `end` < '2025-03-04 16:59: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-04 16:59:21] Production.INFO: count ==5541 [2025-03-04 16:59:23] Production.ERROR: pbx CDR StartTime 2025-03-04 13:59:07 - End Time 2025-03-04 16:59:07 [2025-03-04 16:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 16:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607185', 'tblTempUsageDetail_20' ) start [2025-03-04 16:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607185', 'tblTempUsageDetail_20' ) end [2025-03-04 16:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607185', 'tblTempVendorCDR_20' ) start [2025-03-04 16:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607185', 'tblTempVendorCDR_20' ) end [2025-03-04 16:59:23] Production.INFO: ProcessCDR(1,14607185,1,1,2) [2025-03-04 16:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:59:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 16:59:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 16:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607185', 'tblTempUsageDetail_20' ) start [2025-03-04 16:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607185', 'tblTempUsageDetail_20' ) end [2025-03-04 16:59:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 16:59:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 16:59:28] Production.INFO: ==1019== Releasing lock... [2025-03-04 16:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 16:59:28] Production.INFO: 69.5 MB #Memory Used# [2025-03-04 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:00:06 [end_date_ymd] => 2025-03-04 17:00:06 [RateCDR] => 1 ) [2025-03-04 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-04 14:00:06' and `end` < '2025-03-04 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-04 17:00:19] Production.INFO: count ==5550 [2025-03-04 17:00:21] Production.ERROR: pbx CDR StartTime 2025-03-04 14:00:06 - End Time 2025-03-04 17:00:06 [2025-03-04 17:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607191', 'tblTempUsageDetail_20' ) start [2025-03-04 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607191', 'tblTempUsageDetail_20' ) end [2025-03-04 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607191', 'tblTempVendorCDR_20' ) start [2025-03-04 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607191', 'tblTempVendorCDR_20' ) end [2025-03-04 17:00:22] Production.INFO: ProcessCDR(1,14607191,1,1,2) [2025-03-04 17:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607191', 'tblTempUsageDetail_20' ) start [2025-03-04 17:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607191', 'tblTempUsageDetail_20' ) end [2025-03-04 17:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:00:27] Production.INFO: ==1108== Releasing lock... [2025-03-04 17:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:00:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-04 17:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:01:06 [end_date_ymd] => 2025-03-04 17:01:06 [RateCDR] => 1 ) [2025-03-04 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-04 14:01:06' and `end` < '2025-03-04 17: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-04 17:01:19] Production.INFO: count ==5552 [2025-03-04 17:01:22] Production.ERROR: pbx CDR StartTime 2025-03-04 14:01:06 - End Time 2025-03-04 17:01:06 [2025-03-04 17:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607196', 'tblTempUsageDetail_20' ) start [2025-03-04 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607196', 'tblTempUsageDetail_20' ) end [2025-03-04 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607196', 'tblTempVendorCDR_20' ) start [2025-03-04 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607196', 'tblTempVendorCDR_20' ) end [2025-03-04 17:01:22] Production.INFO: ProcessCDR(1,14607196,1,1,2) [2025-03-04 17:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607196', 'tblTempUsageDetail_20' ) start [2025-03-04 17:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607196', 'tblTempUsageDetail_20' ) end [2025-03-04 17:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:01:27] Production.INFO: ==1220== Releasing lock... [2025-03-04 17:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:01:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-04 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:02:05 [end_date_ymd] => 2025-03-04 17:02:05 [RateCDR] => 1 ) [2025-03-04 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-04 14:02:05' and `end` < '2025-03-04 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-04 17:02:18] Production.INFO: count ==5572 [2025-03-04 17:02:21] Production.ERROR: pbx CDR StartTime 2025-03-04 14:02:05 - End Time 2025-03-04 17:02:05 [2025-03-04 17:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607201', 'tblTempUsageDetail_20' ) start [2025-03-04 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607201', 'tblTempUsageDetail_20' ) end [2025-03-04 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607201', 'tblTempVendorCDR_20' ) start [2025-03-04 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607201', 'tblTempVendorCDR_20' ) end [2025-03-04 17:02:21] Production.INFO: ProcessCDR(1,14607201,1,1,2) [2025-03-04 17:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607201', 'tblTempUsageDetail_20' ) start [2025-03-04 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607201', 'tblTempUsageDetail_20' ) end [2025-03-04 17:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:02:26] Production.INFO: ==1318== Releasing lock... [2025-03-04 17:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:02:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-04 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:03:05 [end_date_ymd] => 2025-03-04 17:03:05 [RateCDR] => 1 ) [2025-03-04 17:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 14:03:05' and `end` < '2025-03-04 17:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 17:03:19] Production.INFO: count ==5579 [2025-03-04 17:03:21] Production.ERROR: pbx CDR StartTime 2025-03-04 14:03:05 - End Time 2025-03-04 17:03:05 [2025-03-04 17:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607206', 'tblTempUsageDetail_20' ) start [2025-03-04 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607206', 'tblTempUsageDetail_20' ) end [2025-03-04 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607206', 'tblTempVendorCDR_20' ) start [2025-03-04 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607206', 'tblTempVendorCDR_20' ) end [2025-03-04 17:03:22] Production.INFO: ProcessCDR(1,14607206,1,1,2) [2025-03-04 17:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607206', 'tblTempUsageDetail_20' ) start [2025-03-04 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607206', 'tblTempUsageDetail_20' ) end [2025-03-04 17:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:03:27] Production.INFO: ==1403== Releasing lock... [2025-03-04 17:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:03:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-04 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:04:06 [end_date_ymd] => 2025-03-04 17:04:06 [RateCDR] => 1 ) [2025-03-04 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-04 14:04:06' and `end` < '2025-03-04 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-04 17:04:19] Production.INFO: count ==5569 [2025-03-04 17:04:21] Production.ERROR: pbx CDR StartTime 2025-03-04 14:04:06 - End Time 2025-03-04 17:04:06 [2025-03-04 17:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607211', 'tblTempUsageDetail_20' ) start [2025-03-04 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607211', 'tblTempUsageDetail_20' ) end [2025-03-04 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607211', 'tblTempVendorCDR_20' ) start [2025-03-04 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607211', 'tblTempVendorCDR_20' ) end [2025-03-04 17:04:22] Production.INFO: ProcessCDR(1,14607211,1,1,2) [2025-03-04 17:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607211', 'tblTempUsageDetail_20' ) start [2025-03-04 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607211', 'tblTempUsageDetail_20' ) end [2025-03-04 17:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:04:26] Production.INFO: ==1578== Releasing lock... [2025-03-04 17:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:04:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-04 17:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:05:06 [end_date_ymd] => 2025-03-04 17:05:06 [RateCDR] => 1 ) [2025-03-04 17: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 14:05:06' and `end` < '2025-03-04 17: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-04 17:05:19] Production.INFO: count ==5567 [2025-03-04 17:05:21] Production.ERROR: pbx CDR StartTime 2025-03-04 14:05:06 - End Time 2025-03-04 17:05:06 [2025-03-04 17:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607216', 'tblTempUsageDetail_20' ) start [2025-03-04 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607216', 'tblTempUsageDetail_20' ) end [2025-03-04 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607216', 'tblTempVendorCDR_20' ) start [2025-03-04 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607216', 'tblTempVendorCDR_20' ) end [2025-03-04 17:05:22] Production.INFO: ProcessCDR(1,14607216,1,1,2) [2025-03-04 17:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607216', 'tblTempUsageDetail_20' ) start [2025-03-04 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607216', 'tblTempUsageDetail_20' ) end [2025-03-04 17:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:05:27] Production.INFO: ==1669== Releasing lock... [2025-03-04 17:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:05:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-04 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:06:05 [end_date_ymd] => 2025-03-04 17:06:05 [RateCDR] => 1 ) [2025-03-04 17: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 14:06:05' and `end` < '2025-03-04 17: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-04 17:06:19] Production.INFO: count ==5569 [2025-03-04 17:06:21] Production.ERROR: pbx CDR StartTime 2025-03-04 14:06:05 - End Time 2025-03-04 17:06:05 [2025-03-04 17:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607221', 'tblTempUsageDetail_20' ) start [2025-03-04 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607221', 'tblTempUsageDetail_20' ) end [2025-03-04 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607221', 'tblTempVendorCDR_20' ) start [2025-03-04 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607221', 'tblTempVendorCDR_20' ) end [2025-03-04 17:06:22] Production.INFO: ProcessCDR(1,14607221,1,1,2) [2025-03-04 17:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607221', 'tblTempUsageDetail_20' ) start [2025-03-04 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607221', 'tblTempUsageDetail_20' ) end [2025-03-04 17:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:06:27] Production.INFO: ==1758== Releasing lock... [2025-03-04 17:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:06:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-04 17:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:07:06 [end_date_ymd] => 2025-03-04 17:07:06 [RateCDR] => 1 ) [2025-03-04 17: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 14:07:06' and `end` < '2025-03-04 17: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-04 17:07:19] Production.INFO: count ==5593 [2025-03-04 17:07:22] Production.ERROR: pbx CDR StartTime 2025-03-04 14:07:06 - End Time 2025-03-04 17:07:06 [2025-03-04 17:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607226', 'tblTempUsageDetail_20' ) start [2025-03-04 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607226', 'tblTempUsageDetail_20' ) end [2025-03-04 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607226', 'tblTempVendorCDR_20' ) start [2025-03-04 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607226', 'tblTempVendorCDR_20' ) end [2025-03-04 17:07:22] Production.INFO: ProcessCDR(1,14607226,1,1,2) [2025-03-04 17:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607226', 'tblTempUsageDetail_20' ) start [2025-03-04 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607226', 'tblTempUsageDetail_20' ) end [2025-03-04 17:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:07:27] Production.INFO: ==1852== Releasing lock... [2025-03-04 17:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:07:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-04 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:08:05 [end_date_ymd] => 2025-03-04 17:08:05 [RateCDR] => 1 ) [2025-03-04 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-04 14:08:05' and `end` < '2025-03-04 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-04 17:08:18] Production.INFO: count ==5601 [2025-03-04 17:08:21] Production.ERROR: pbx CDR StartTime 2025-03-04 14:08:05 - End Time 2025-03-04 17:08:05 [2025-03-04 17:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607231', 'tblTempUsageDetail_20' ) start [2025-03-04 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607231', 'tblTempUsageDetail_20' ) end [2025-03-04 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607231', 'tblTempVendorCDR_20' ) start [2025-03-04 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607231', 'tblTempVendorCDR_20' ) end [2025-03-04 17:08:21] Production.INFO: ProcessCDR(1,14607231,1,1,2) [2025-03-04 17:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607231', 'tblTempUsageDetail_20' ) start [2025-03-04 17:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607231', 'tblTempUsageDetail_20' ) end [2025-03-04 17:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:08:25] Production.INFO: ==1944== Releasing lock... [2025-03-04 17:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:08:25] Production.INFO: 70 MB #Memory Used# [2025-03-04 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:09:05 [end_date_ymd] => 2025-03-04 17:09:05 [RateCDR] => 1 ) [2025-03-04 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-04 14:09:05' and `end` < '2025-03-04 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-04 17:09:19] Production.INFO: count ==5592 [2025-03-04 17:09:21] Production.ERROR: pbx CDR StartTime 2025-03-04 14:09:05 - End Time 2025-03-04 17:09:05 [2025-03-04 17:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607236', 'tblTempUsageDetail_20' ) start [2025-03-04 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607236', 'tblTempUsageDetail_20' ) end [2025-03-04 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607236', 'tblTempVendorCDR_20' ) start [2025-03-04 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607236', 'tblTempVendorCDR_20' ) end [2025-03-04 17:09:21] Production.INFO: ProcessCDR(1,14607236,1,1,2) [2025-03-04 17:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607236', 'tblTempUsageDetail_20' ) start [2025-03-04 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607236', 'tblTempUsageDetail_20' ) end [2025-03-04 17:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:09:26] Production.INFO: ==2028== Releasing lock... [2025-03-04 17:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:09:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-04 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:10:06 [end_date_ymd] => 2025-03-04 17:10:06 [RateCDR] => 1 ) [2025-03-04 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-04 14:10:06' and `end` < '2025-03-04 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-04 17:10:19] Production.INFO: count ==5598 [2025-03-04 17:10:22] Production.ERROR: pbx CDR StartTime 2025-03-04 14:10:06 - End Time 2025-03-04 17:10:06 [2025-03-04 17:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607242', 'tblTempUsageDetail_20' ) start [2025-03-04 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607242', 'tblTempUsageDetail_20' ) end [2025-03-04 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607242', 'tblTempVendorCDR_20' ) start [2025-03-04 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607242', 'tblTempVendorCDR_20' ) end [2025-03-04 17:10:22] Production.INFO: ProcessCDR(1,14607242,1,1,2) [2025-03-04 17:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607242', 'tblTempUsageDetail_20' ) start [2025-03-04 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607242', 'tblTempUsageDetail_20' ) end [2025-03-04 17:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:10:27] Production.INFO: ==2114== Releasing lock... [2025-03-04 17:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:10:27] Production.INFO: 70 MB #Memory Used# [2025-03-04 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:11:05 [end_date_ymd] => 2025-03-04 17:11:05 [RateCDR] => 1 ) [2025-03-04 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 14:11:05' and `end` < '2025-03-04 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 17:11:18] Production.INFO: count ==5611 [2025-03-04 17:11:21] Production.ERROR: pbx CDR StartTime 2025-03-04 14:11:05 - End Time 2025-03-04 17:11:05 [2025-03-04 17:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607247', 'tblTempUsageDetail_20' ) start [2025-03-04 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607247', 'tblTempUsageDetail_20' ) end [2025-03-04 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607247', 'tblTempVendorCDR_20' ) start [2025-03-04 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607247', 'tblTempVendorCDR_20' ) end [2025-03-04 17:11:21] Production.INFO: ProcessCDR(1,14607247,1,1,2) [2025-03-04 17:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607247', 'tblTempUsageDetail_20' ) start [2025-03-04 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607247', 'tblTempUsageDetail_20' ) end [2025-03-04 17:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:11:26] Production.INFO: ==2203== Releasing lock... [2025-03-04 17:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:11:26] Production.INFO: 70 MB #Memory Used# [2025-03-04 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:12:05 [end_date_ymd] => 2025-03-04 17:12:05 [RateCDR] => 1 ) [2025-03-04 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-04 14:12:05' and `end` < '2025-03-04 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-04 17:12:19] Production.INFO: count ==5592 [2025-03-04 17:12:21] Production.ERROR: pbx CDR StartTime 2025-03-04 14:12:05 - End Time 2025-03-04 17:12:05 [2025-03-04 17:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607252', 'tblTempUsageDetail_20' ) start [2025-03-04 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607252', 'tblTempUsageDetail_20' ) end [2025-03-04 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607252', 'tblTempVendorCDR_20' ) start [2025-03-04 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607252', 'tblTempVendorCDR_20' ) end [2025-03-04 17:12:21] Production.INFO: ProcessCDR(1,14607252,1,1,2) [2025-03-04 17:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607252', 'tblTempUsageDetail_20' ) start [2025-03-04 17:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607252', 'tblTempUsageDetail_20' ) end [2025-03-04 17:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:12:27] Production.INFO: ==2292== Releasing lock... [2025-03-04 17:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:12:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-04 17:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:13:06 [end_date_ymd] => 2025-03-04 17:13:06 [RateCDR] => 1 ) [2025-03-04 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-04 14:13:06' and `end` < '2025-03-04 17: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-04 17:13:19] Production.INFO: count ==5593 [2025-03-04 17:13:21] Production.ERROR: pbx CDR StartTime 2025-03-04 14:13:06 - End Time 2025-03-04 17:13:06 [2025-03-04 17:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607257', 'tblTempUsageDetail_20' ) start [2025-03-04 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607257', 'tblTempUsageDetail_20' ) end [2025-03-04 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607257', 'tblTempVendorCDR_20' ) start [2025-03-04 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607257', 'tblTempVendorCDR_20' ) end [2025-03-04 17:13:22] Production.INFO: ProcessCDR(1,14607257,1,1,2) [2025-03-04 17:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607257', 'tblTempUsageDetail_20' ) start [2025-03-04 17:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607257', 'tblTempUsageDetail_20' ) end [2025-03-04 17:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:13:27] Production.INFO: ==2367== Releasing lock... [2025-03-04 17:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:13:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-04 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:14:05 [end_date_ymd] => 2025-03-04 17:14:05 [RateCDR] => 1 ) [2025-03-04 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-04 14:14:05' and `end` < '2025-03-04 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-04 17:14:18] Production.INFO: count ==5560 [2025-03-04 17:14:21] Production.ERROR: pbx CDR StartTime 2025-03-04 14:14:05 - End Time 2025-03-04 17:14:05 [2025-03-04 17:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607262', 'tblTempUsageDetail_20' ) start [2025-03-04 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607262', 'tblTempUsageDetail_20' ) end [2025-03-04 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607262', 'tblTempVendorCDR_20' ) start [2025-03-04 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607262', 'tblTempVendorCDR_20' ) end [2025-03-04 17:14:21] Production.INFO: ProcessCDR(1,14607262,1,1,2) [2025-03-04 17:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607262', 'tblTempUsageDetail_20' ) start [2025-03-04 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607262', 'tblTempUsageDetail_20' ) end [2025-03-04 17:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:14:26] Production.INFO: ==2446== Releasing lock... [2025-03-04 17:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:14:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-04 17:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:15:06 [end_date_ymd] => 2025-03-04 17:15:06 [RateCDR] => 1 ) [2025-03-04 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-04 14:15:06' and `end` < '2025-03-04 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-04 17:15:19] Production.INFO: count ==5565 [2025-03-04 17:15:21] Production.ERROR: pbx CDR StartTime 2025-03-04 14:15:06 - End Time 2025-03-04 17:15:06 [2025-03-04 17:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607267', 'tblTempUsageDetail_20' ) start [2025-03-04 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607267', 'tblTempUsageDetail_20' ) end [2025-03-04 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607267', 'tblTempVendorCDR_20' ) start [2025-03-04 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607267', 'tblTempVendorCDR_20' ) end [2025-03-04 17:15:21] Production.INFO: ProcessCDR(1,14607267,1,1,2) [2025-03-04 17:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607267', 'tblTempUsageDetail_20' ) start [2025-03-04 17:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607267', 'tblTempUsageDetail_20' ) end [2025-03-04 17:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:15:27] Production.INFO: ==2527== Releasing lock... [2025-03-04 17:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:15:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-04 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:16:05 [end_date_ymd] => 2025-03-04 17:16:05 [RateCDR] => 1 ) [2025-03-04 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-04 14:16:05' and `end` < '2025-03-04 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-04 17:16:18] Production.INFO: count ==5560 [2025-03-04 17:16:21] Production.ERROR: pbx CDR StartTime 2025-03-04 14:16:05 - End Time 2025-03-04 17:16:05 [2025-03-04 17:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607272', 'tblTempUsageDetail_20' ) start [2025-03-04 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607272', 'tblTempUsageDetail_20' ) end [2025-03-04 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607272', 'tblTempVendorCDR_20' ) start [2025-03-04 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607272', 'tblTempVendorCDR_20' ) end [2025-03-04 17:16:21] Production.INFO: ProcessCDR(1,14607272,1,1,2) [2025-03-04 17:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607272', 'tblTempUsageDetail_20' ) start [2025-03-04 17:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607272', 'tblTempUsageDetail_20' ) end [2025-03-04 17:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:16:25] Production.INFO: ==2613== Releasing lock... [2025-03-04 17:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:16:25] Production.INFO: 69.5 MB #Memory Used# [2025-03-04 17:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:17:06 [end_date_ymd] => 2025-03-04 17:17:06 [RateCDR] => 1 ) [2025-03-04 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-04 14:17:06' and `end` < '2025-03-04 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-04 17:17:19] Production.INFO: count ==5574 [2025-03-04 17:17:21] Production.ERROR: pbx CDR StartTime 2025-03-04 14:17:06 - End Time 2025-03-04 17:17:06 [2025-03-04 17:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607277', 'tblTempUsageDetail_20' ) start [2025-03-04 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607277', 'tblTempUsageDetail_20' ) end [2025-03-04 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607277', 'tblTempVendorCDR_20' ) start [2025-03-04 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607277', 'tblTempVendorCDR_20' ) end [2025-03-04 17:17:21] Production.INFO: ProcessCDR(1,14607277,1,1,2) [2025-03-04 17:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607277', 'tblTempUsageDetail_20' ) start [2025-03-04 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607277', 'tblTempUsageDetail_20' ) end [2025-03-04 17:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:17:26] Production.INFO: ==2690== Releasing lock... [2025-03-04 17:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:17:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-04 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:18:05 [end_date_ymd] => 2025-03-04 17:18:05 [RateCDR] => 1 ) [2025-03-04 17: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 14:18:05' and `end` < '2025-03-04 17: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-04 17:18:18] Production.INFO: count ==5561 [2025-03-04 17:18:21] Production.ERROR: pbx CDR StartTime 2025-03-04 14:18:05 - End Time 2025-03-04 17:18:05 [2025-03-04 17:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607282', 'tblTempUsageDetail_20' ) start [2025-03-04 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607282', 'tblTempUsageDetail_20' ) end [2025-03-04 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607282', 'tblTempVendorCDR_20' ) start [2025-03-04 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607282', 'tblTempVendorCDR_20' ) end [2025-03-04 17:18:21] Production.INFO: ProcessCDR(1,14607282,1,1,2) [2025-03-04 17:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607282', 'tblTempUsageDetail_20' ) start [2025-03-04 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607282', 'tblTempUsageDetail_20' ) end [2025-03-04 17:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:18:26] Production.INFO: ==2777== Releasing lock... [2025-03-04 17:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:18:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-04 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:19:05 [end_date_ymd] => 2025-03-04 17:19:05 [RateCDR] => 1 ) [2025-03-04 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-04 14:19:05' and `end` < '2025-03-04 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-04 17:19:19] Production.INFO: count ==5548 [2025-03-04 17:19:21] Production.ERROR: pbx CDR StartTime 2025-03-04 14:19:05 - End Time 2025-03-04 17:19:05 [2025-03-04 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607287', 'tblTempUsageDetail_20' ) start [2025-03-04 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607287', 'tblTempUsageDetail_20' ) end [2025-03-04 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607287', 'tblTempVendorCDR_20' ) start [2025-03-04 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607287', 'tblTempVendorCDR_20' ) end [2025-03-04 17:19:21] Production.INFO: ProcessCDR(1,14607287,1,1,2) [2025-03-04 17:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607287', 'tblTempUsageDetail_20' ) start [2025-03-04 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607287', 'tblTempUsageDetail_20' ) end [2025-03-04 17:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:19:26] Production.INFO: ==2900== Releasing lock... [2025-03-04 17:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:19:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-04 17:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:20:05 [end_date_ymd] => 2025-03-04 17:20:05 [RateCDR] => 1 ) [2025-03-04 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-04 14:20:05' and `end` < '2025-03-04 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-04 17:20:18] Production.INFO: count ==5524 [2025-03-04 17:20:21] Production.ERROR: pbx CDR StartTime 2025-03-04 14:20:05 - End Time 2025-03-04 17:20:05 [2025-03-04 17:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607292', 'tblTempUsageDetail_20' ) start [2025-03-04 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607292', 'tblTempUsageDetail_20' ) end [2025-03-04 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607292', 'tblTempVendorCDR_20' ) start [2025-03-04 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607292', 'tblTempVendorCDR_20' ) end [2025-03-04 17:20:21] Production.INFO: ProcessCDR(1,14607292,1,1,2) [2025-03-04 17:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607292', 'tblTempUsageDetail_20' ) start [2025-03-04 17:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607292', 'tblTempUsageDetail_20' ) end [2025-03-04 17:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:20:26] Production.INFO: ==2983== Releasing lock... [2025-03-04 17:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:20:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-04 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:21:05 [end_date_ymd] => 2025-03-04 17:21:05 [RateCDR] => 1 ) [2025-03-04 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-04 14:21:05' and `end` < '2025-03-04 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-04 17:21:18] Production.INFO: count ==5494 [2025-03-04 17:21:21] Production.ERROR: pbx CDR StartTime 2025-03-04 14:21:05 - End Time 2025-03-04 17:21:05 [2025-03-04 17:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607298', 'tblTempUsageDetail_20' ) start [2025-03-04 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607298', 'tblTempUsageDetail_20' ) end [2025-03-04 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607298', 'tblTempVendorCDR_20' ) start [2025-03-04 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607298', 'tblTempVendorCDR_20' ) end [2025-03-04 17:21:21] Production.INFO: ProcessCDR(1,14607298,1,1,2) [2025-03-04 17:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607298', 'tblTempUsageDetail_20' ) start [2025-03-04 17:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607298', 'tblTempUsageDetail_20' ) end [2025-03-04 17:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:21:25] Production.INFO: ==3067== Releasing lock... [2025-03-04 17:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:21:25] Production.INFO: 69 MB #Memory Used# [2025-03-04 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:22:05 [end_date_ymd] => 2025-03-04 17:22:05 [RateCDR] => 1 ) [2025-03-04 17:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 14:22:05' and `end` < '2025-03-04 17:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 17:22:18] Production.INFO: count ==5444 [2025-03-04 17:22:21] Production.ERROR: pbx CDR StartTime 2025-03-04 14:22:05 - End Time 2025-03-04 17:22:05 [2025-03-04 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607303', 'tblTempUsageDetail_20' ) start [2025-03-04 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607303', 'tblTempUsageDetail_20' ) end [2025-03-04 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607303', 'tblTempVendorCDR_20' ) start [2025-03-04 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607303', 'tblTempVendorCDR_20' ) end [2025-03-04 17:22:21] Production.INFO: ProcessCDR(1,14607303,1,1,2) [2025-03-04 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607303', 'tblTempUsageDetail_20' ) start [2025-03-04 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607303', 'tblTempUsageDetail_20' ) end [2025-03-04 17:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:22:26] Production.INFO: ==3147== Releasing lock... [2025-03-04 17:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:22:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-04 17:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:23:06 [end_date_ymd] => 2025-03-04 17:23:06 [RateCDR] => 1 ) [2025-03-04 17: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-04 14:23:06' and `end` < '2025-03-04 17: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-04 17:23:19] Production.INFO: count ==5381 [2025-03-04 17:23:21] Production.ERROR: pbx CDR StartTime 2025-03-04 14:23:06 - End Time 2025-03-04 17:23:06 [2025-03-04 17:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607308', 'tblTempUsageDetail_20' ) start [2025-03-04 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607308', 'tblTempUsageDetail_20' ) end [2025-03-04 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607308', 'tblTempVendorCDR_20' ) start [2025-03-04 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607308', 'tblTempVendorCDR_20' ) end [2025-03-04 17:23:21] Production.INFO: ProcessCDR(1,14607308,1,1,2) [2025-03-04 17:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607308', 'tblTempUsageDetail_20' ) start [2025-03-04 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607308', 'tblTempUsageDetail_20' ) end [2025-03-04 17:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:23:26] Production.INFO: ==3224== Releasing lock... [2025-03-04 17:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:23:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-04 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:24:05 [end_date_ymd] => 2025-03-04 17:24:05 [RateCDR] => 1 ) [2025-03-04 17:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 14:24:05' and `end` < '2025-03-04 17:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 17:24:18] Production.INFO: count ==5331 [2025-03-04 17:24:20] Production.ERROR: pbx CDR StartTime 2025-03-04 14:24:05 - End Time 2025-03-04 17:24:05 [2025-03-04 17:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607313', 'tblTempUsageDetail_20' ) start [2025-03-04 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607313', 'tblTempUsageDetail_20' ) end [2025-03-04 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607313', 'tblTempVendorCDR_20' ) start [2025-03-04 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607313', 'tblTempVendorCDR_20' ) end [2025-03-04 17:24:20] Production.INFO: ProcessCDR(1,14607313,1,1,2) [2025-03-04 17:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607313', 'tblTempUsageDetail_20' ) start [2025-03-04 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607313', 'tblTempUsageDetail_20' ) end [2025-03-04 17:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:24:25] Production.INFO: ==3311== Releasing lock... [2025-03-04 17:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:24:25] Production.INFO: 68 MB #Memory Used# [2025-03-04 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:25:06 [end_date_ymd] => 2025-03-04 17:25:06 [RateCDR] => 1 ) [2025-03-04 17: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-04 14:25:06' and `end` < '2025-03-04 17: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-04 17:25:19] Production.INFO: count ==5297 [2025-03-04 17:25:22] Production.ERROR: pbx CDR StartTime 2025-03-04 14:25:06 - End Time 2025-03-04 17:25:06 [2025-03-04 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607318', 'tblTempUsageDetail_20' ) start [2025-03-04 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607318', 'tblTempUsageDetail_20' ) end [2025-03-04 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607318', 'tblTempVendorCDR_20' ) start [2025-03-04 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607318', 'tblTempVendorCDR_20' ) end [2025-03-04 17:25:22] Production.INFO: ProcessCDR(1,14607318,1,1,2) [2025-03-04 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607318', 'tblTempUsageDetail_20' ) start [2025-03-04 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607318', 'tblTempUsageDetail_20' ) end [2025-03-04 17:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:25:27] Production.INFO: ==3388== Releasing lock... [2025-03-04 17:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:25:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-04 17:26:20] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:26:20 [end_date_ymd] => 2025-03-04 17:26:20 [RateCDR] => 1 ) [2025-03-04 17:26:20] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and 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 14:26:20' and `end` < '2025-03-04 17:26:20' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 17:26:33] Production.INFO: count ==5265 [2025-03-04 17:27:16] Production.ERROR: pbx CDR StartTime 2025-03-04 14:26:20 - End Time 2025-03-04 17:26:20 [2025-03-04 17:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607323', 'tblTempUsageDetail_20' ) start [2025-03-04 17:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607323', 'tblTempUsageDetail_20' ) end [2025-03-04 17:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607323', 'tblTempVendorCDR_20' ) start [2025-03-04 17:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607323', 'tblTempVendorCDR_20' ) end [2025-03-04 17:27:25] Production.INFO: ProcessCDR(1,14607323,1,1,2) [2025-03-04 17:27:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:27:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:27:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:27:59] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:27:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607323', 'tblTempUsageDetail_20' ) start [2025-03-04 17:28:02] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607323', 'tblTempUsageDetail_20' ) end [2025-03-04 17:28:02] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:28:02] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:28:11] Production.INFO: ==3460== Releasing lock... [2025-03-04 17:28:11] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:28:11] Production.INFO: 67.5 MB #Memory Used# [2025-03-04 17:29:22] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:29:22 [end_date_ymd] => 2025-03-04 17:29:22 [RateCDR] => 1 ) [2025-03-04 17:29:22] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and 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 14:29:22' and `end` < '2025-03-04 17:29:22' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 17:29:35] Production.INFO: count ==5237 [2025-03-04 17:30:25] Production.ERROR: pbx CDR StartTime 2025-03-04 14:29:22 - End Time 2025-03-04 17:29:22 [2025-03-04 17:30:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607334', 'tblTempUsageDetail_20' ) start [2025-03-04 17:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607334', 'tblTempUsageDetail_20' ) end [2025-03-04 17:30:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607334', 'tblTempVendorCDR_20' ) start [2025-03-04 17:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607334', 'tblTempVendorCDR_20' ) end [2025-03-04 17:30:32] Production.INFO: ProcessCDR(1,14607334,1,1,2) [2025-03-04 17:30:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:30:48] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:30:48] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:31:13] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:31:13] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607334', 'tblTempUsageDetail_20' ) start [2025-03-04 17:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607334', 'tblTempUsageDetail_20' ) end [2025-03-04 17:31:28] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:31:28] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:31:28] Production.INFO: ==3665== Releasing lock... [2025-03-04 17:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:31:28] Production.INFO: 67.25 MB #Memory Used# [2025-03-04 17:32:29] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:32:29 [end_date_ymd] => 2025-03-04 17:32:29 [RateCDR] => 1 ) [2025-03-04 17:32:29] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and 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 14:32:29' and `end` < '2025-03-04 17:32:29' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 17:32:42] Production.INFO: count ==5073 [2025-03-04 17:32:44] Production.ERROR: pbx CDR StartTime 2025-03-04 14:32:29 - End Time 2025-03-04 17:32:29 [2025-03-04 17:32:44] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:32:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607346', 'tblTempUsageDetail_20' ) start [2025-03-04 17:32:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607346', 'tblTempUsageDetail_20' ) end [2025-03-04 17:32:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607346', 'tblTempVendorCDR_20' ) start [2025-03-04 17:32:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607346', 'tblTempVendorCDR_20' ) end [2025-03-04 17:32:44] Production.INFO: ProcessCDR(1,14607346,1,1,2) [2025-03-04 17:32:44] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:32:45] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:32:45] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:32:47] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:32:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607346', 'tblTempUsageDetail_20' ) start [2025-03-04 17:32:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607346', 'tblTempUsageDetail_20' ) end [2025-03-04 17:32:47] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:32:47] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:32:48] Production.INFO: ==3885== Releasing lock... [2025-03-04 17:32:48] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:32:48] Production.INFO: 66 MB #Memory Used# [2025-03-04 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:33:05 [end_date_ymd] => 2025-03-04 17:33:05 [RateCDR] => 1 ) [2025-03-04 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-04 14:33:05' and `end` < '2025-03-04 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-04 17:33:18] Production.INFO: count ==5065 [2025-03-04 17:33:20] Production.ERROR: pbx CDR StartTime 2025-03-04 14:33:05 - End Time 2025-03-04 17:33:05 [2025-03-04 17:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607351', 'tblTempUsageDetail_20' ) start [2025-03-04 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607351', 'tblTempUsageDetail_20' ) end [2025-03-04 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607351', 'tblTempVendorCDR_20' ) start [2025-03-04 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607351', 'tblTempVendorCDR_20' ) end [2025-03-04 17:33:20] Production.INFO: ProcessCDR(1,14607351,1,1,2) [2025-03-04 17:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607351', 'tblTempUsageDetail_20' ) start [2025-03-04 17:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607351', 'tblTempUsageDetail_20' ) end [2025-03-04 17:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:33:25] Production.INFO: ==3963== Releasing lock... [2025-03-04 17:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:33:25] Production.INFO: 66 MB #Memory Used# [2025-03-04 17:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:34:04 [end_date_ymd] => 2025-03-04 17:34:04 [RateCDR] => 1 ) [2025-03-04 17:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 14:34:04' and `end` < '2025-03-04 17:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 17:34:17] Production.INFO: count ==5062 [2025-03-04 17:34:19] Production.ERROR: pbx CDR StartTime 2025-03-04 14:34:04 - End Time 2025-03-04 17:34:04 [2025-03-04 17:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607353', 'tblTempUsageDetail_20' ) start [2025-03-04 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607353', 'tblTempUsageDetail_20' ) end [2025-03-04 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607353', 'tblTempVendorCDR_20' ) start [2025-03-04 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607353', 'tblTempVendorCDR_20' ) end [2025-03-04 17:34:20] Production.INFO: ProcessCDR(1,14607353,1,1,2) [2025-03-04 17:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607353', 'tblTempUsageDetail_20' ) start [2025-03-04 17:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607353', 'tblTempUsageDetail_20' ) end [2025-03-04 17:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:34:23] Production.INFO: ==4034== Releasing lock... [2025-03-04 17:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:34:23] Production.INFO: 65.75 MB #Memory Used# [2025-03-04 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:35:05 [end_date_ymd] => 2025-03-04 17:35:05 [RateCDR] => 1 ) [2025-03-04 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-04 14:35:05' and `end` < '2025-03-04 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-04 17:35:18] Production.INFO: count ==5033 [2025-03-04 17:35:19] Production.ERROR: pbx CDR StartTime 2025-03-04 14:35:05 - End Time 2025-03-04 17:35:05 [2025-03-04 17:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607361', 'tblTempUsageDetail_20' ) start [2025-03-04 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607361', 'tblTempUsageDetail_20' ) end [2025-03-04 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607361', 'tblTempVendorCDR_20' ) start [2025-03-04 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607361', 'tblTempVendorCDR_20' ) end [2025-03-04 17:35:20] Production.INFO: ProcessCDR(1,14607361,1,1,2) [2025-03-04 17:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607361', 'tblTempUsageDetail_20' ) start [2025-03-04 17:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607361', 'tblTempUsageDetail_20' ) end [2025-03-04 17:35:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:35:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:35:24] Production.INFO: ==4147== Releasing lock... [2025-03-04 17:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:35:24] Production.INFO: 65.75 MB #Memory Used# [2025-03-04 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:36:05 [end_date_ymd] => 2025-03-04 17:36:05 [RateCDR] => 1 ) [2025-03-04 17:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 14:36:05' and `end` < '2025-03-04 17:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 17:36:18] Production.INFO: count ==5026 [2025-03-04 17:36:20] Production.ERROR: pbx CDR StartTime 2025-03-04 14:36:05 - End Time 2025-03-04 17:36:05 [2025-03-04 17:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607366', 'tblTempUsageDetail_20' ) start [2025-03-04 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607366', 'tblTempUsageDetail_20' ) end [2025-03-04 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607366', 'tblTempVendorCDR_20' ) start [2025-03-04 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607366', 'tblTempVendorCDR_20' ) end [2025-03-04 17:36:20] Production.INFO: ProcessCDR(1,14607366,1,1,2) [2025-03-04 17:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607366', 'tblTempUsageDetail_20' ) start [2025-03-04 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607366', 'tblTempUsageDetail_20' ) end [2025-03-04 17:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:36:25] Production.INFO: ==4219== Releasing lock... [2025-03-04 17:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:36:25] Production.INFO: 65.5 MB #Memory Used# [2025-03-04 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:37:05 [end_date_ymd] => 2025-03-04 17:37:05 [RateCDR] => 1 ) [2025-03-04 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-04 14:37:05' and `end` < '2025-03-04 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-04 17:37:18] Production.INFO: count ==5016 [2025-03-04 17:37:20] Production.ERROR: pbx CDR StartTime 2025-03-04 14:37:05 - End Time 2025-03-04 17:37:05 [2025-03-04 17:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607371', 'tblTempUsageDetail_20' ) start [2025-03-04 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607371', 'tblTempUsageDetail_20' ) end [2025-03-04 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607371', 'tblTempVendorCDR_20' ) start [2025-03-04 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607371', 'tblTempVendorCDR_20' ) end [2025-03-04 17:37:20] Production.INFO: ProcessCDR(1,14607371,1,1,2) [2025-03-04 17:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607371', 'tblTempUsageDetail_20' ) start [2025-03-04 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607371', 'tblTempUsageDetail_20' ) end [2025-03-04 17:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:37:25] Production.INFO: ==4297== Releasing lock... [2025-03-04 17:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:37:25] Production.INFO: 65.5 MB #Memory Used# [2025-03-04 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:38:05 [end_date_ymd] => 2025-03-04 17:38:05 [RateCDR] => 1 ) [2025-03-04 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-04 14:38:05' and `end` < '2025-03-04 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-04 17:38:18] Production.INFO: count ==5008 [2025-03-04 17:38:20] Production.ERROR: pbx CDR StartTime 2025-03-04 14:38:05 - End Time 2025-03-04 17:38:05 [2025-03-04 17:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607376', 'tblTempUsageDetail_20' ) start [2025-03-04 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607376', 'tblTempUsageDetail_20' ) end [2025-03-04 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607376', 'tblTempVendorCDR_20' ) start [2025-03-04 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607376', 'tblTempVendorCDR_20' ) end [2025-03-04 17:38:21] Production.INFO: ProcessCDR(1,14607376,1,1,2) [2025-03-04 17:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607376', 'tblTempUsageDetail_20' ) start [2025-03-04 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607376', 'tblTempUsageDetail_20' ) end [2025-03-04 17:38:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:38:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:38:25] Production.INFO: ==4370== Releasing lock... [2025-03-04 17:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:38:25] Production.INFO: 65.5 MB #Memory Used# [2025-03-04 17:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:39:04 [end_date_ymd] => 2025-03-04 17:39:04 [RateCDR] => 1 ) [2025-03-04 17:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 14:39:04' and `end` < '2025-03-04 17:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 17:39:17] Production.INFO: count ==5018 [2025-03-04 17:39:19] Production.ERROR: pbx CDR StartTime 2025-03-04 14:39:04 - End Time 2025-03-04 17:39:04 [2025-03-04 17:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607378', 'tblTempUsageDetail_20' ) start [2025-03-04 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607378', 'tblTempUsageDetail_20' ) end [2025-03-04 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607378', 'tblTempVendorCDR_20' ) start [2025-03-04 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607378', 'tblTempVendorCDR_20' ) end [2025-03-04 17:39:19] Production.INFO: ProcessCDR(1,14607378,1,1,2) [2025-03-04 17:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607378', 'tblTempUsageDetail_20' ) start [2025-03-04 17:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607378', 'tblTempUsageDetail_20' ) end [2025-03-04 17:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:39:24] Production.INFO: ==4442== Releasing lock... [2025-03-04 17:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:39:24] Production.INFO: 65.5 MB #Memory Used# [2025-03-04 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:40:06 [end_date_ymd] => 2025-03-04 17:40:06 [RateCDR] => 1 ) [2025-03-04 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-04 14:40:06' and `end` < '2025-03-04 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-04 17:40:19] Production.INFO: count ==5016 [2025-03-04 17:40:21] Production.ERROR: pbx CDR StartTime 2025-03-04 14:40:06 - End Time 2025-03-04 17:40:06 [2025-03-04 17:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607387', 'tblTempUsageDetail_20' ) start [2025-03-04 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607387', 'tblTempUsageDetail_20' ) end [2025-03-04 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607387', 'tblTempVendorCDR_20' ) start [2025-03-04 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607387', 'tblTempVendorCDR_20' ) end [2025-03-04 17:40:21] Production.INFO: ProcessCDR(1,14607387,1,1,2) [2025-03-04 17:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607387', 'tblTempUsageDetail_20' ) start [2025-03-04 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607387', 'tblTempUsageDetail_20' ) end [2025-03-04 17:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:40:26] Production.INFO: ==4515== Releasing lock... [2025-03-04 17:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:40:26] Production.INFO: 65.5 MB #Memory Used# [2025-03-04 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:41:05 [end_date_ymd] => 2025-03-04 17:41:05 [RateCDR] => 1 ) [2025-03-04 17:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 14:41:05' and `end` < '2025-03-04 17:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 17:41:18] Production.INFO: count ==5015 [2025-03-04 17:41:20] Production.ERROR: pbx CDR StartTime 2025-03-04 14:41:05 - End Time 2025-03-04 17:41:05 [2025-03-04 17:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607392', 'tblTempUsageDetail_20' ) start [2025-03-04 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607392', 'tblTempUsageDetail_20' ) end [2025-03-04 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607392', 'tblTempVendorCDR_20' ) start [2025-03-04 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607392', 'tblTempVendorCDR_20' ) end [2025-03-04 17:41:20] Production.INFO: ProcessCDR(1,14607392,1,1,2) [2025-03-04 17:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607392', 'tblTempUsageDetail_20' ) start [2025-03-04 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607392', 'tblTempUsageDetail_20' ) end [2025-03-04 17:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:41:25] Production.INFO: ==4598== Releasing lock... [2025-03-04 17:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:41:25] Production.INFO: 65.5 MB #Memory Used# [2025-03-04 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:42:05 [end_date_ymd] => 2025-03-04 17:42:05 [RateCDR] => 1 ) [2025-03-04 17: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 14:42:05' and `end` < '2025-03-04 17: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-04 17:42:19] Production.INFO: count ==5020 [2025-03-04 17:42:21] Production.ERROR: pbx CDR StartTime 2025-03-04 14:42:05 - End Time 2025-03-04 17:42:05 [2025-03-04 17:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607397', 'tblTempUsageDetail_20' ) start [2025-03-04 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607397', 'tblTempUsageDetail_20' ) end [2025-03-04 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607397', 'tblTempVendorCDR_20' ) start [2025-03-04 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607397', 'tblTempVendorCDR_20' ) end [2025-03-04 17:42:21] Production.INFO: ProcessCDR(1,14607397,1,1,2) [2025-03-04 17:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607397', 'tblTempUsageDetail_20' ) start [2025-03-04 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607397', 'tblTempUsageDetail_20' ) end [2025-03-04 17:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:42:26] Production.INFO: ==4672== Releasing lock... [2025-03-04 17:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:42:26] Production.INFO: 65.5 MB #Memory Used# [2025-03-04 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:43:05 [end_date_ymd] => 2025-03-04 17:43:05 [RateCDR] => 1 ) [2025-03-04 17:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 14:43:05' and `end` < '2025-03-04 17:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 17:43:18] Production.INFO: count ==5011 [2025-03-04 17:43:19] Production.ERROR: pbx CDR StartTime 2025-03-04 14:43:05 - End Time 2025-03-04 17:43:05 [2025-03-04 17:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607402', 'tblTempUsageDetail_20' ) start [2025-03-04 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607402', 'tblTempUsageDetail_20' ) end [2025-03-04 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607402', 'tblTempVendorCDR_20' ) start [2025-03-04 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607402', 'tblTempVendorCDR_20' ) end [2025-03-04 17:43:20] Production.INFO: ProcessCDR(1,14607402,1,1,2) [2025-03-04 17:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607402', 'tblTempUsageDetail_20' ) start [2025-03-04 17:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607402', 'tblTempUsageDetail_20' ) end [2025-03-04 17:43:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:43:24] Production.INFO: ==4748== Releasing lock... [2025-03-04 17:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:43:24] Production.INFO: 65.5 MB #Memory Used# [2025-03-04 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:44:05 [end_date_ymd] => 2025-03-04 17:44:05 [RateCDR] => 1 ) [2025-03-04 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-04 14:44:05' and `end` < '2025-03-04 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-04 17:44:18] Production.INFO: count ==5006 [2025-03-04 17:44:20] Production.ERROR: pbx CDR StartTime 2025-03-04 14:44:05 - End Time 2025-03-04 17:44:05 [2025-03-04 17:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607407', 'tblTempUsageDetail_20' ) start [2025-03-04 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607407', 'tblTempUsageDetail_20' ) end [2025-03-04 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607407', 'tblTempVendorCDR_20' ) start [2025-03-04 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607407', 'tblTempVendorCDR_20' ) end [2025-03-04 17:44:20] Production.INFO: ProcessCDR(1,14607407,1,1,2) [2025-03-04 17:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607407', 'tblTempUsageDetail_20' ) start [2025-03-04 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607407', 'tblTempUsageDetail_20' ) end [2025-03-04 17:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:44:25] Production.INFO: ==4821== Releasing lock... [2025-03-04 17:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:44:25] Production.INFO: 65.5 MB #Memory Used# [2025-03-04 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:45:05 [end_date_ymd] => 2025-03-04 17:45:05 [RateCDR] => 1 ) [2025-03-04 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-04 14:45:05' and `end` < '2025-03-04 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-04 17:45:18] Production.INFO: count ==5002 [2025-03-04 17:45:20] Production.ERROR: pbx CDR StartTime 2025-03-04 14:45:05 - End Time 2025-03-04 17:45:05 [2025-03-04 17:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607412', 'tblTempUsageDetail_20' ) start [2025-03-04 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607412', 'tblTempUsageDetail_20' ) end [2025-03-04 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607412', 'tblTempVendorCDR_20' ) start [2025-03-04 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607412', 'tblTempVendorCDR_20' ) end [2025-03-04 17:45:20] Production.INFO: ProcessCDR(1,14607412,1,1,2) [2025-03-04 17:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607412', 'tblTempUsageDetail_20' ) start [2025-03-04 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607412', 'tblTempUsageDetail_20' ) end [2025-03-04 17:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:45:25] Production.INFO: ==4896== Releasing lock... [2025-03-04 17:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:45:25] Production.INFO: 65.5 MB #Memory Used# [2025-03-04 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:46:05 [end_date_ymd] => 2025-03-04 17:46:05 [RateCDR] => 1 ) [2025-03-04 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-04 14:46:05' and `end` < '2025-03-04 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-04 17:46:18] Production.INFO: count ==4993 [2025-03-04 17:46:19] Production.ERROR: pbx CDR StartTime 2025-03-04 14:46:05 - End Time 2025-03-04 17:46:05 [2025-03-04 17:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607417', 'tblTempUsageDetail_20' ) start [2025-03-04 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607417', 'tblTempUsageDetail_20' ) end [2025-03-04 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607417', 'tblTempVendorCDR_20' ) start [2025-03-04 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607417', 'tblTempVendorCDR_20' ) end [2025-03-04 17:46:20] Production.INFO: ProcessCDR(1,14607417,1,1,2) [2025-03-04 17:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607417', 'tblTempUsageDetail_20' ) start [2025-03-04 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607417', 'tblTempUsageDetail_20' ) end [2025-03-04 17:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:46:24] Production.INFO: ==4970== Releasing lock... [2025-03-04 17:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:46:24] Production.INFO: 65.25 MB #Memory Used# [2025-03-04 17:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:47:06 [end_date_ymd] => 2025-03-04 17:47:06 [RateCDR] => 1 ) [2025-03-04 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-04 14:47:06' and `end` < '2025-03-04 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-04 17:47:18] Production.INFO: count ==4988 [2025-03-04 17:47:20] Production.ERROR: pbx CDR StartTime 2025-03-04 14:47:06 - End Time 2025-03-04 17:47:06 [2025-03-04 17:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607422', 'tblTempUsageDetail_20' ) start [2025-03-04 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607422', 'tblTempUsageDetail_20' ) end [2025-03-04 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607422', 'tblTempVendorCDR_20' ) start [2025-03-04 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607422', 'tblTempVendorCDR_20' ) end [2025-03-04 17:47:21] Production.INFO: ProcessCDR(1,14607422,1,1,2) [2025-03-04 17:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607422', 'tblTempUsageDetail_20' ) start [2025-03-04 17:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607422', 'tblTempUsageDetail_20' ) end [2025-03-04 17:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:47:24] Production.INFO: ==5041== Releasing lock... [2025-03-04 17:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:47:24] Production.INFO: 65.25 MB #Memory Used# [2025-03-04 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:48:05 [end_date_ymd] => 2025-03-04 17:48:05 [RateCDR] => 1 ) [2025-03-04 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 14:48:05' and `end` < '2025-03-04 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 17:48:18] Production.INFO: count ==4981 [2025-03-04 17:48:20] Production.ERROR: pbx CDR StartTime 2025-03-04 14:48:05 - End Time 2025-03-04 17:48:05 [2025-03-04 17:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607427', 'tblTempUsageDetail_20' ) start [2025-03-04 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607427', 'tblTempUsageDetail_20' ) end [2025-03-04 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607427', 'tblTempVendorCDR_20' ) start [2025-03-04 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607427', 'tblTempVendorCDR_20' ) end [2025-03-04 17:48:20] Production.INFO: ProcessCDR(1,14607427,1,1,2) [2025-03-04 17:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607427', 'tblTempUsageDetail_20' ) start [2025-03-04 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607427', 'tblTempUsageDetail_20' ) end [2025-03-04 17:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:48:25] Production.INFO: ==5114== Releasing lock... [2025-03-04 17:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:48:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-04 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:49:05 [end_date_ymd] => 2025-03-04 17:49:05 [RateCDR] => 1 ) [2025-03-04 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-04 14:49:05' and `end` < '2025-03-04 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-04 17:49:18] Production.INFO: count ==4976 [2025-03-04 17:49:20] Production.ERROR: pbx CDR StartTime 2025-03-04 14:49:05 - End Time 2025-03-04 17:49:05 [2025-03-04 17:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607432', 'tblTempUsageDetail_20' ) start [2025-03-04 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607432', 'tblTempUsageDetail_20' ) end [2025-03-04 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607432', 'tblTempVendorCDR_20' ) start [2025-03-04 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607432', 'tblTempVendorCDR_20' ) end [2025-03-04 17:49:20] Production.INFO: ProcessCDR(1,14607432,1,1,2) [2025-03-04 17:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607432', 'tblTempUsageDetail_20' ) start [2025-03-04 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607432', 'tblTempUsageDetail_20' ) end [2025-03-04 17:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:49:25] Production.INFO: ==5186== Releasing lock... [2025-03-04 17:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:49:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-04 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:50:06 [end_date_ymd] => 2025-03-04 17:50:06 [RateCDR] => 1 ) [2025-03-04 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-04 14:50:06' and `end` < '2025-03-04 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-04 17:50:18] Production.INFO: count ==4963 [2025-03-04 17:50:20] Production.ERROR: pbx CDR StartTime 2025-03-04 14:50:06 - End Time 2025-03-04 17:50:06 [2025-03-04 17:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607438', 'tblTempUsageDetail_20' ) start [2025-03-04 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607438', 'tblTempUsageDetail_20' ) end [2025-03-04 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607438', 'tblTempVendorCDR_20' ) start [2025-03-04 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607438', 'tblTempVendorCDR_20' ) end [2025-03-04 17:50:20] Production.INFO: ProcessCDR(1,14607438,1,1,2) [2025-03-04 17:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607438', 'tblTempUsageDetail_20' ) start [2025-03-04 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607438', 'tblTempUsageDetail_20' ) end [2025-03-04 17:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:50:25] Production.INFO: ==5301== Releasing lock... [2025-03-04 17:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:50:25] Production.INFO: 65 MB #Memory Used# [2025-03-04 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:51:05 [end_date_ymd] => 2025-03-04 17:51:05 [RateCDR] => 1 ) [2025-03-04 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-04 14:51:05' and `end` < '2025-03-04 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-04 17:51:18] Production.INFO: count ==4920 [2025-03-04 17:51:20] Production.ERROR: pbx CDR StartTime 2025-03-04 14:51:05 - End Time 2025-03-04 17:51:05 [2025-03-04 17:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607443', 'tblTempUsageDetail_20' ) start [2025-03-04 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607443', 'tblTempUsageDetail_20' ) end [2025-03-04 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607443', 'tblTempVendorCDR_20' ) start [2025-03-04 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607443', 'tblTempVendorCDR_20' ) end [2025-03-04 17:51:20] Production.INFO: ProcessCDR(1,14607443,1,1,2) [2025-03-04 17:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607443', 'tblTempUsageDetail_20' ) start [2025-03-04 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607443', 'tblTempUsageDetail_20' ) end [2025-03-04 17:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:51:25] Production.INFO: ==5379== Releasing lock... [2025-03-04 17:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:51:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-04 17:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:52:04 [end_date_ymd] => 2025-03-04 17:52:04 [RateCDR] => 1 ) [2025-03-04 17:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 14:52:04' and `end` < '2025-03-04 17:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 17:52:17] Production.INFO: count ==4902 [2025-03-04 17:52:19] Production.ERROR: pbx CDR StartTime 2025-03-04 14:52:04 - End Time 2025-03-04 17:52:04 [2025-03-04 17:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607448', 'tblTempUsageDetail_20' ) start [2025-03-04 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607448', 'tblTempUsageDetail_20' ) end [2025-03-04 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607448', 'tblTempVendorCDR_20' ) start [2025-03-04 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607448', 'tblTempVendorCDR_20' ) end [2025-03-04 17:52:20] Production.INFO: ProcessCDR(1,14607448,1,1,2) [2025-03-04 17:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607448', 'tblTempUsageDetail_20' ) start [2025-03-04 17:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607448', 'tblTempUsageDetail_20' ) end [2025-03-04 17:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:52:23] Production.INFO: ==5458== Releasing lock... [2025-03-04 17:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:52:23] Production.INFO: 64.75 MB #Memory Used# [2025-03-04 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:53:05 [end_date_ymd] => 2025-03-04 17:53:05 [RateCDR] => 1 ) [2025-03-04 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-04 14:53:05' and `end` < '2025-03-04 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-04 17:53:18] Production.INFO: count ==4892 [2025-03-04 17:53:20] Production.ERROR: pbx CDR StartTime 2025-03-04 14:53:05 - End Time 2025-03-04 17:53:05 [2025-03-04 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607453', 'tblTempUsageDetail_20' ) start [2025-03-04 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607453', 'tblTempUsageDetail_20' ) end [2025-03-04 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607453', 'tblTempVendorCDR_20' ) start [2025-03-04 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607453', 'tblTempVendorCDR_20' ) end [2025-03-04 17:53:20] Production.INFO: ProcessCDR(1,14607453,1,1,2) [2025-03-04 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607453', 'tblTempUsageDetail_20' ) start [2025-03-04 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607453', 'tblTempUsageDetail_20' ) end [2025-03-04 17:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:53:25] Production.INFO: ==5532== Releasing lock... [2025-03-04 17:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:53:25] Production.INFO: 64.5 MB #Memory Used# [2025-03-04 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:54:05 [end_date_ymd] => 2025-03-04 17:54:05 [RateCDR] => 1 ) [2025-03-04 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-04 14:54:05' and `end` < '2025-03-04 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-04 17:54:18] Production.INFO: count ==4868 [2025-03-04 17:54:20] Production.ERROR: pbx CDR StartTime 2025-03-04 14:54:05 - End Time 2025-03-04 17:54:05 [2025-03-04 17:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607458', 'tblTempUsageDetail_20' ) start [2025-03-04 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607458', 'tblTempUsageDetail_20' ) end [2025-03-04 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607458', 'tblTempVendorCDR_20' ) start [2025-03-04 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607458', 'tblTempVendorCDR_20' ) end [2025-03-04 17:54:20] Production.INFO: ProcessCDR(1,14607458,1,1,2) [2025-03-04 17:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607458', 'tblTempUsageDetail_20' ) start [2025-03-04 17:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607458', 'tblTempUsageDetail_20' ) end [2025-03-04 17:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:54:23] Production.INFO: ==5605== Releasing lock... [2025-03-04 17:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:54:23] Production.INFO: 64.5 MB #Memory Used# [2025-03-04 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:55:05 [end_date_ymd] => 2025-03-04 17:55:05 [RateCDR] => 1 ) [2025-03-04 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-04 14:55:05' and `end` < '2025-03-04 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-04 17:55:18] Production.INFO: count ==4860 [2025-03-04 17:55:20] Production.ERROR: pbx CDR StartTime 2025-03-04 14:55:05 - End Time 2025-03-04 17:55:05 [2025-03-04 17:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607463', 'tblTempUsageDetail_20' ) start [2025-03-04 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607463', 'tblTempUsageDetail_20' ) end [2025-03-04 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607463', 'tblTempVendorCDR_20' ) start [2025-03-04 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607463', 'tblTempVendorCDR_20' ) end [2025-03-04 17:55:20] Production.INFO: ProcessCDR(1,14607463,1,1,2) [2025-03-04 17:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607463', 'tblTempUsageDetail_20' ) start [2025-03-04 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607463', 'tblTempUsageDetail_20' ) end [2025-03-04 17:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:55:25] Production.INFO: ==5681== Releasing lock... [2025-03-04 17:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:55:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-04 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:56:05 [end_date_ymd] => 2025-03-04 17:56:05 [RateCDR] => 1 ) [2025-03-04 17: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 14:56:05' and `end` < '2025-03-04 17: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-04 17:56:17] Production.INFO: count ==4819 [2025-03-04 17:56:19] Production.ERROR: pbx CDR StartTime 2025-03-04 14:56:05 - End Time 2025-03-04 17:56:05 [2025-03-04 17:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607468', 'tblTempUsageDetail_20' ) start [2025-03-04 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607468', 'tblTempUsageDetail_20' ) end [2025-03-04 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607468', 'tblTempVendorCDR_20' ) start [2025-03-04 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607468', 'tblTempVendorCDR_20' ) end [2025-03-04 17:56:20] Production.INFO: ProcessCDR(1,14607468,1,1,2) [2025-03-04 17:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607468', 'tblTempUsageDetail_20' ) start [2025-03-04 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607468', 'tblTempUsageDetail_20' ) end [2025-03-04 17:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:56:24] Production.INFO: ==5758== Releasing lock... [2025-03-04 17:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:56:24] Production.INFO: 64 MB #Memory Used# [2025-03-04 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:57:05 [end_date_ymd] => 2025-03-04 17:57:05 [RateCDR] => 1 ) [2025-03-04 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-04 14:57:05' and `end` < '2025-03-04 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-04 17:57:18] Production.INFO: count ==4784 [2025-03-04 17:57:20] Production.ERROR: pbx CDR StartTime 2025-03-04 14:57:05 - End Time 2025-03-04 17:57:05 [2025-03-04 17:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607473', 'tblTempUsageDetail_20' ) start [2025-03-04 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607473', 'tblTempUsageDetail_20' ) end [2025-03-04 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607473', 'tblTempVendorCDR_20' ) start [2025-03-04 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607473', 'tblTempVendorCDR_20' ) end [2025-03-04 17:57:20] Production.INFO: ProcessCDR(1,14607473,1,1,2) [2025-03-04 17:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607473', 'tblTempUsageDetail_20' ) start [2025-03-04 17:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607473', 'tblTempUsageDetail_20' ) end [2025-03-04 17:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:57:23] Production.INFO: ==5833== Releasing lock... [2025-03-04 17:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:57:23] Production.INFO: 63.75 MB #Memory Used# [2025-03-04 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:58:05 [end_date_ymd] => 2025-03-04 17:58:05 [RateCDR] => 1 ) [2025-03-04 17:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 14:58:05' and `end` < '2025-03-04 17:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 17:58:18] Production.INFO: count ==4756 [2025-03-04 17:58:20] Production.ERROR: pbx CDR StartTime 2025-03-04 14:58:05 - End Time 2025-03-04 17:58:05 [2025-03-04 17:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607478', 'tblTempUsageDetail_20' ) start [2025-03-04 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607478', 'tblTempUsageDetail_20' ) end [2025-03-04 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607478', 'tblTempVendorCDR_20' ) start [2025-03-04 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607478', 'tblTempVendorCDR_20' ) end [2025-03-04 17:58:20] Production.INFO: ProcessCDR(1,14607478,1,1,2) [2025-03-04 17:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607478', 'tblTempUsageDetail_20' ) start [2025-03-04 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607478', 'tblTempUsageDetail_20' ) end [2025-03-04 17:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:58:25] Production.INFO: ==5909== Releasing lock... [2025-03-04 17:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:58:25] Production.INFO: 63.5 MB #Memory Used# [2025-03-04 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 14:59:05 [end_date_ymd] => 2025-03-04 17:59:05 [RateCDR] => 1 ) [2025-03-04 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-04 14:59:05' and `end` < '2025-03-04 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-04 17:59:18] Production.INFO: count ==4745 [2025-03-04 17:59:20] Production.ERROR: pbx CDR StartTime 2025-03-04 14:59:05 - End Time 2025-03-04 17:59:05 [2025-03-04 17:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607483', 'tblTempUsageDetail_20' ) start [2025-03-04 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607483', 'tblTempUsageDetail_20' ) end [2025-03-04 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607483', 'tblTempVendorCDR_20' ) start [2025-03-04 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607483', 'tblTempVendorCDR_20' ) end [2025-03-04 17:59:20] Production.INFO: ProcessCDR(1,14607483,1,1,2) [2025-03-04 17:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 17:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 17:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607483', 'tblTempUsageDetail_20' ) start [2025-03-04 17:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607483', 'tblTempUsageDetail_20' ) end [2025-03-04 17:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 17:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 17:59:23] Production.INFO: ==5985== Releasing lock... [2025-03-04 17:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 17:59:23] Production.INFO: 63.5 MB #Memory Used# [2025-03-04 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:00:06 [end_date_ymd] => 2025-03-04 18:00:06 [RateCDR] => 1 ) [2025-03-04 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-04 15:00:06' and `end` < '2025-03-04 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-04 18:00:19] Production.INFO: count ==4740 [2025-03-04 18:00:21] Production.ERROR: pbx CDR StartTime 2025-03-04 15:00:06 - End Time 2025-03-04 18:00:06 [2025-03-04 18:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607489', 'tblTempUsageDetail_20' ) start [2025-03-04 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607489', 'tblTempUsageDetail_20' ) end [2025-03-04 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607489', 'tblTempVendorCDR_20' ) start [2025-03-04 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607489', 'tblTempVendorCDR_20' ) end [2025-03-04 18:00:21] Production.INFO: ProcessCDR(1,14607489,1,1,2) [2025-03-04 18:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607489', 'tblTempUsageDetail_20' ) start [2025-03-04 18:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607489', 'tblTempUsageDetail_20' ) end [2025-03-04 18:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:00:26] Production.INFO: ==6062== Releasing lock... [2025-03-04 18:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:00:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-04 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:01:05 [end_date_ymd] => 2025-03-04 18:01:05 [RateCDR] => 1 ) [2025-03-04 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-04 15:01:05' and `end` < '2025-03-04 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-04 18:01:18] Production.INFO: count ==4628 [2025-03-04 18:01:19] Production.ERROR: pbx CDR StartTime 2025-03-04 15:01:05 - End Time 2025-03-04 18:01:05 [2025-03-04 18:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607494', 'tblTempUsageDetail_20' ) start [2025-03-04 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607494', 'tblTempUsageDetail_20' ) end [2025-03-04 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607494', 'tblTempVendorCDR_20' ) start [2025-03-04 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607494', 'tblTempVendorCDR_20' ) end [2025-03-04 18:01:19] Production.INFO: ProcessCDR(1,14607494,1,1,2) [2025-03-04 18:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607494', 'tblTempUsageDetail_20' ) start [2025-03-04 18:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607494', 'tblTempUsageDetail_20' ) end [2025-03-04 18:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:01:25] Production.INFO: ==6154== Releasing lock... [2025-03-04 18:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:01:25] Production.INFO: 62.5 MB #Memory Used# [2025-03-04 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:02:06 [end_date_ymd] => 2025-03-04 18:02:06 [RateCDR] => 1 ) [2025-03-04 18: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-04 15:02:06' and `end` < '2025-03-04 18: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-04 18:02:18] Production.INFO: count ==4576 [2025-03-04 18:02:20] Production.ERROR: pbx CDR StartTime 2025-03-04 15:02:06 - End Time 2025-03-04 18:02:06 [2025-03-04 18:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607499', 'tblTempUsageDetail_20' ) start [2025-03-04 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607499', 'tblTempUsageDetail_20' ) end [2025-03-04 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607499', 'tblTempVendorCDR_20' ) start [2025-03-04 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607499', 'tblTempVendorCDR_20' ) end [2025-03-04 18:02:20] Production.INFO: ProcessCDR(1,14607499,1,1,2) [2025-03-04 18:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607499', 'tblTempUsageDetail_20' ) start [2025-03-04 18:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607499', 'tblTempUsageDetail_20' ) end [2025-03-04 18:02:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:02:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:02:25] Production.INFO: ==6235== Releasing lock... [2025-03-04 18:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:02:25] Production.INFO: 62.25 MB #Memory Used# [2025-03-04 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:03:05 [end_date_ymd] => 2025-03-04 18:03:05 [RateCDR] => 1 ) [2025-03-04 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-04 15:03:05' and `end` < '2025-03-04 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-04 18:03:18] Production.INFO: count ==4547 [2025-03-04 18:03:19] Production.ERROR: pbx CDR StartTime 2025-03-04 15:03:05 - End Time 2025-03-04 18:03:05 [2025-03-04 18:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607504', 'tblTempUsageDetail_20' ) start [2025-03-04 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607504', 'tblTempUsageDetail_20' ) end [2025-03-04 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607504', 'tblTempVendorCDR_20' ) start [2025-03-04 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607504', 'tblTempVendorCDR_20' ) end [2025-03-04 18:03:20] Production.INFO: ProcessCDR(1,14607504,1,1,2) [2025-03-04 18:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607504', 'tblTempUsageDetail_20' ) start [2025-03-04 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607504', 'tblTempUsageDetail_20' ) end [2025-03-04 18:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:03:24] Production.INFO: ==6312== Releasing lock... [2025-03-04 18:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:03:24] Production.INFO: 62 MB #Memory Used# [2025-03-04 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:04:05 [end_date_ymd] => 2025-03-04 18:04:05 [RateCDR] => 1 ) [2025-03-04 18: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 15:04:05' and `end` < '2025-03-04 18: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-04 18:04:18] Production.INFO: count ==4501 [2025-03-04 18:04:19] Production.ERROR: pbx CDR StartTime 2025-03-04 15:04:05 - End Time 2025-03-04 18:04:05 [2025-03-04 18:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607509', 'tblTempUsageDetail_20' ) start [2025-03-04 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607509', 'tblTempUsageDetail_20' ) end [2025-03-04 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607509', 'tblTempVendorCDR_20' ) start [2025-03-04 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607509', 'tblTempVendorCDR_20' ) end [2025-03-04 18:04:20] Production.INFO: ProcessCDR(1,14607509,1,1,2) [2025-03-04 18:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607509', 'tblTempUsageDetail_20' ) start [2025-03-04 18:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607509', 'tblTempUsageDetail_20' ) end [2025-03-04 18:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:04:24] Production.INFO: ==6390== Releasing lock... [2025-03-04 18:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:04:24] Production.INFO: 61.75 MB #Memory Used# [2025-03-04 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:05:05 [end_date_ymd] => 2025-03-04 18:05:05 [RateCDR] => 1 ) [2025-03-04 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-04 15:05:05' and `end` < '2025-03-04 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-04 18:05:18] Production.INFO: count ==4448 [2025-03-04 18:05:20] Production.ERROR: pbx CDR StartTime 2025-03-04 15:05:05 - End Time 2025-03-04 18:05:05 [2025-03-04 18:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607514', 'tblTempUsageDetail_20' ) start [2025-03-04 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607514', 'tblTempUsageDetail_20' ) end [2025-03-04 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607514', 'tblTempVendorCDR_20' ) start [2025-03-04 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607514', 'tblTempVendorCDR_20' ) end [2025-03-04 18:05:20] Production.INFO: ProcessCDR(1,14607514,1,1,2) [2025-03-04 18:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607514', 'tblTempUsageDetail_20' ) start [2025-03-04 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607514', 'tblTempUsageDetail_20' ) end [2025-03-04 18:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:05:23] Production.INFO: ==6465== Releasing lock... [2025-03-04 18:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:05:23] Production.INFO: 61.25 MB #Memory Used# [2025-03-04 18:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:06:06 [end_date_ymd] => 2025-03-04 18:06:06 [RateCDR] => 1 ) [2025-03-04 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-04 15:06:06' and `end` < '2025-03-04 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-04 18:06:19] Production.INFO: count ==4414 [2025-03-04 18:06:20] Production.ERROR: pbx CDR StartTime 2025-03-04 15:06:06 - End Time 2025-03-04 18:06:06 [2025-03-04 18:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607519', 'tblTempUsageDetail_20' ) start [2025-03-04 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607519', 'tblTempUsageDetail_20' ) end [2025-03-04 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607519', 'tblTempVendorCDR_20' ) start [2025-03-04 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607519', 'tblTempVendorCDR_20' ) end [2025-03-04 18:06:21] Production.INFO: ProcessCDR(1,14607519,1,1,2) [2025-03-04 18:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607519', 'tblTempUsageDetail_20' ) start [2025-03-04 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607519', 'tblTempUsageDetail_20' ) end [2025-03-04 18:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:06:24] Production.INFO: ==6579== Releasing lock... [2025-03-04 18:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:06:24] Production.INFO: 61 MB #Memory Used# [2025-03-04 18:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:07:06 [end_date_ymd] => 2025-03-04 18:07:06 [RateCDR] => 1 ) [2025-03-04 18: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 15:07:06' and `end` < '2025-03-04 18: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-04 18:07:19] Production.INFO: count ==4404 [2025-03-04 18:07:20] Production.ERROR: pbx CDR StartTime 2025-03-04 15:07:06 - End Time 2025-03-04 18:07:06 [2025-03-04 18:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607524', 'tblTempUsageDetail_20' ) start [2025-03-04 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607524', 'tblTempUsageDetail_20' ) end [2025-03-04 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607524', 'tblTempVendorCDR_20' ) start [2025-03-04 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607524', 'tblTempVendorCDR_20' ) end [2025-03-04 18:07:20] Production.INFO: ProcessCDR(1,14607524,1,1,2) [2025-03-04 18:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607524', 'tblTempUsageDetail_20' ) start [2025-03-04 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607524', 'tblTempUsageDetail_20' ) end [2025-03-04 18:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:07:24] Production.INFO: ==6652== Releasing lock... [2025-03-04 18:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:07:24] Production.INFO: 61 MB #Memory Used# [2025-03-04 18:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:08:06 [end_date_ymd] => 2025-03-04 18:08:06 [RateCDR] => 1 ) [2025-03-04 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-04 15:08:06' and `end` < '2025-03-04 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-04 18:08:18] Production.INFO: count ==4365 [2025-03-04 18:08:20] Production.ERROR: pbx CDR StartTime 2025-03-04 15:08:06 - End Time 2025-03-04 18:08:06 [2025-03-04 18:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607529', 'tblTempUsageDetail_20' ) start [2025-03-04 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607529', 'tblTempUsageDetail_20' ) end [2025-03-04 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607529', 'tblTempVendorCDR_20' ) start [2025-03-04 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607529', 'tblTempVendorCDR_20' ) end [2025-03-04 18:08:20] Production.INFO: ProcessCDR(1,14607529,1,1,2) [2025-03-04 18:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607529', 'tblTempUsageDetail_20' ) start [2025-03-04 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607529', 'tblTempUsageDetail_20' ) end [2025-03-04 18:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:08:25] Production.INFO: ==6728== Releasing lock... [2025-03-04 18:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:08:25] Production.INFO: 60.75 MB #Memory Used# [2025-03-04 18:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:09:06 [end_date_ymd] => 2025-03-04 18:09:06 [RateCDR] => 1 ) [2025-03-04 18: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 15:09:06' and `end` < '2025-03-04 18: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-04 18:09:19] Production.INFO: count ==4336 [2025-03-04 18:09:20] Production.ERROR: pbx CDR StartTime 2025-03-04 15:09:06 - End Time 2025-03-04 18:09:06 [2025-03-04 18:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607534', 'tblTempUsageDetail_20' ) start [2025-03-04 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607534', 'tblTempUsageDetail_20' ) end [2025-03-04 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607534', 'tblTempVendorCDR_20' ) start [2025-03-04 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607534', 'tblTempVendorCDR_20' ) end [2025-03-04 18:09:20] Production.INFO: ProcessCDR(1,14607534,1,1,2) [2025-03-04 18:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607534', 'tblTempUsageDetail_20' ) start [2025-03-04 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607534', 'tblTempUsageDetail_20' ) end [2025-03-04 18:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:09:25] Production.INFO: ==6804== Releasing lock... [2025-03-04 18:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:09:25] Production.INFO: 60.5 MB #Memory Used# [2025-03-04 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:10:06 [end_date_ymd] => 2025-03-04 18:10:06 [RateCDR] => 1 ) [2025-03-04 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-04 15:10:06' and `end` < '2025-03-04 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-04 18:10:19] Production.INFO: count ==4276 [2025-03-04 18:10:21] Production.ERROR: pbx CDR StartTime 2025-03-04 15:10:06 - End Time 2025-03-04 18:10:06 [2025-03-04 18:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607540', 'tblTempUsageDetail_20' ) start [2025-03-04 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607540', 'tblTempUsageDetail_20' ) end [2025-03-04 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607540', 'tblTempVendorCDR_20' ) start [2025-03-04 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607540', 'tblTempVendorCDR_20' ) end [2025-03-04 18:10:21] Production.INFO: ProcessCDR(1,14607540,1,1,2) [2025-03-04 18:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607540', 'tblTempUsageDetail_20' ) start [2025-03-04 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607540', 'tblTempUsageDetail_20' ) end [2025-03-04 18:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:10:26] Production.INFO: ==6882== Releasing lock... [2025-03-04 18:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:10:26] Production.INFO: 60 MB #Memory Used# [2025-03-04 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:11:05 [end_date_ymd] => 2025-03-04 18:11:05 [RateCDR] => 1 ) [2025-03-04 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-04 15:11:05' and `end` < '2025-03-04 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-04 18:11:18] Production.INFO: count ==4192 [2025-03-04 18:11:20] Production.ERROR: pbx CDR StartTime 2025-03-04 15:11:05 - End Time 2025-03-04 18:11:05 [2025-03-04 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607545', 'tblTempUsageDetail_20' ) start [2025-03-04 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607545', 'tblTempUsageDetail_20' ) end [2025-03-04 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607545', 'tblTempVendorCDR_20' ) start [2025-03-04 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607545', 'tblTempVendorCDR_20' ) end [2025-03-04 18:11:20] Production.INFO: ProcessCDR(1,14607545,1,1,2) [2025-03-04 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607545', 'tblTempUsageDetail_20' ) start [2025-03-04 18:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607545', 'tblTempUsageDetail_20' ) end [2025-03-04 18:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:11:23] Production.INFO: ==6961== Releasing lock... [2025-03-04 18:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:11:23] Production.INFO: 59.25 MB #Memory Used# [2025-03-04 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:12:05 [end_date_ymd] => 2025-03-04 18:12:05 [RateCDR] => 1 ) [2025-03-04 18:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 15:12:05' and `end` < '2025-03-04 18:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 18:12:18] Production.INFO: count ==4185 [2025-03-04 18:12:19] Production.ERROR: pbx CDR StartTime 2025-03-04 15:12:05 - End Time 2025-03-04 18:12:05 [2025-03-04 18:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607550', 'tblTempUsageDetail_20' ) start [2025-03-04 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607550', 'tblTempUsageDetail_20' ) end [2025-03-04 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607550', 'tblTempVendorCDR_20' ) start [2025-03-04 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607550', 'tblTempVendorCDR_20' ) end [2025-03-04 18:12:19] Production.INFO: ProcessCDR(1,14607550,1,1,2) [2025-03-04 18:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607550', 'tblTempUsageDetail_20' ) start [2025-03-04 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607550', 'tblTempUsageDetail_20' ) end [2025-03-04 18:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:12:25] Production.INFO: ==7034== Releasing lock... [2025-03-04 18:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:12:25] Production.INFO: 59.25 MB #Memory Used# [2025-03-04 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:13:05 [end_date_ymd] => 2025-03-04 18:13:05 [RateCDR] => 1 ) [2025-03-04 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-04 15:13:05' and `end` < '2025-03-04 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-04 18:13:18] Production.INFO: count ==4174 [2025-03-04 18:13:20] Production.ERROR: pbx CDR StartTime 2025-03-04 15:13:05 - End Time 2025-03-04 18:13:05 [2025-03-04 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607555', 'tblTempUsageDetail_20' ) start [2025-03-04 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607555', 'tblTempUsageDetail_20' ) end [2025-03-04 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607555', 'tblTempVendorCDR_20' ) start [2025-03-04 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607555', 'tblTempVendorCDR_20' ) end [2025-03-04 18:13:20] Production.INFO: ProcessCDR(1,14607555,1,1,2) [2025-03-04 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607555', 'tblTempUsageDetail_20' ) start [2025-03-04 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607555', 'tblTempUsageDetail_20' ) end [2025-03-04 18:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:13:24] Production.INFO: ==7111== Releasing lock... [2025-03-04 18:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:13:24] Production.INFO: 59.25 MB #Memory Used# [2025-03-04 18:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:14:04 [end_date_ymd] => 2025-03-04 18:14:04 [RateCDR] => 1 ) [2025-03-04 18:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 15:14:04' and `end` < '2025-03-04 18:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 18:14:17] Production.INFO: count ==4176 [2025-03-04 18:14:19] Production.ERROR: pbx CDR StartTime 2025-03-04 15:14:04 - End Time 2025-03-04 18:14:04 [2025-03-04 18:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607560', 'tblTempUsageDetail_20' ) start [2025-03-04 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607560', 'tblTempUsageDetail_20' ) end [2025-03-04 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607560', 'tblTempVendorCDR_20' ) start [2025-03-04 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607560', 'tblTempVendorCDR_20' ) end [2025-03-04 18:14:19] Production.INFO: ProcessCDR(1,14607560,1,1,2) [2025-03-04 18:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607560', 'tblTempUsageDetail_20' ) start [2025-03-04 18:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607560', 'tblTempUsageDetail_20' ) end [2025-03-04 18:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:14:22] Production.INFO: ==7187== Releasing lock... [2025-03-04 18:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:14:22] Production.INFO: 59.25 MB #Memory Used# [2025-03-04 18:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:15:06 [end_date_ymd] => 2025-03-04 18:15:06 [RateCDR] => 1 ) [2025-03-04 18:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 15:15:06' and `end` < '2025-03-04 18:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 18:15:19] Production.INFO: count ==4167 [2025-03-04 18:15:20] Production.ERROR: pbx CDR StartTime 2025-03-04 15:15:06 - End Time 2025-03-04 18:15:06 [2025-03-04 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607565', 'tblTempUsageDetail_20' ) start [2025-03-04 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607565', 'tblTempUsageDetail_20' ) end [2025-03-04 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607565', 'tblTempVendorCDR_20' ) start [2025-03-04 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607565', 'tblTempVendorCDR_20' ) end [2025-03-04 18:15:20] Production.INFO: ProcessCDR(1,14607565,1,1,2) [2025-03-04 18:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607565', 'tblTempUsageDetail_20' ) start [2025-03-04 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607565', 'tblTempUsageDetail_20' ) end [2025-03-04 18:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:15:25] Production.INFO: ==7263== Releasing lock... [2025-03-04 18:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:15:25] Production.INFO: 59.25 MB #Memory Used# [2025-03-04 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:16:05 [end_date_ymd] => 2025-03-04 18:16:05 [RateCDR] => 1 ) [2025-03-04 18: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 15:16:05' and `end` < '2025-03-04 18: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-04 18:16:17] Production.INFO: count ==4160 [2025-03-04 18:16:19] Production.ERROR: pbx CDR StartTime 2025-03-04 15:16:05 - End Time 2025-03-04 18:16:05 [2025-03-04 18:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607570', 'tblTempUsageDetail_20' ) start [2025-03-04 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607570', 'tblTempUsageDetail_20' ) end [2025-03-04 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607570', 'tblTempVendorCDR_20' ) start [2025-03-04 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607570', 'tblTempVendorCDR_20' ) end [2025-03-04 18:16:19] Production.INFO: ProcessCDR(1,14607570,1,1,2) [2025-03-04 18:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607570', 'tblTempUsageDetail_20' ) start [2025-03-04 18:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607570', 'tblTempUsageDetail_20' ) end [2025-03-04 18:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:16:22] Production.INFO: ==7339== Releasing lock... [2025-03-04 18:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:16:22] Production.INFO: 59 MB #Memory Used# [2025-03-04 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:17:05 [end_date_ymd] => 2025-03-04 18:17:05 [RateCDR] => 1 ) [2025-03-04 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-04 15:17:05' and `end` < '2025-03-04 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-04 18:17:17] Production.INFO: count ==4123 [2025-03-04 18:17:19] Production.ERROR: pbx CDR StartTime 2025-03-04 15:17:05 - End Time 2025-03-04 18:17:05 [2025-03-04 18:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607575', 'tblTempUsageDetail_20' ) start [2025-03-04 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607575', 'tblTempUsageDetail_20' ) end [2025-03-04 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607575', 'tblTempVendorCDR_20' ) start [2025-03-04 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607575', 'tblTempVendorCDR_20' ) end [2025-03-04 18:17:19] Production.INFO: ProcessCDR(1,14607575,1,1,2) [2025-03-04 18:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607575', 'tblTempUsageDetail_20' ) start [2025-03-04 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607575', 'tblTempUsageDetail_20' ) end [2025-03-04 18:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:17:24] Production.INFO: ==7413== Releasing lock... [2025-03-04 18:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:17:24] Production.INFO: 58.75 MB #Memory Used# [2025-03-04 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:18:05 [end_date_ymd] => 2025-03-04 18:18:05 [RateCDR] => 1 ) [2025-03-04 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-04 15:18:05' and `end` < '2025-03-04 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-04 18:18:17] Production.INFO: count ==4099 [2025-03-04 18:18:19] Production.ERROR: pbx CDR StartTime 2025-03-04 15:18:05 - End Time 2025-03-04 18:18:05 [2025-03-04 18:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607580', 'tblTempUsageDetail_20' ) start [2025-03-04 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607580', 'tblTempUsageDetail_20' ) end [2025-03-04 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607580', 'tblTempVendorCDR_20' ) start [2025-03-04 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607580', 'tblTempVendorCDR_20' ) end [2025-03-04 18:18:19] Production.INFO: ProcessCDR(1,14607580,1,1,2) [2025-03-04 18:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607580', 'tblTempUsageDetail_20' ) start [2025-03-04 18:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607580', 'tblTempUsageDetail_20' ) end [2025-03-04 18:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:18:23] Production.INFO: ==7489== Releasing lock... [2025-03-04 18:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:18:23] Production.INFO: 58.75 MB #Memory Used# [2025-03-04 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:19:05 [end_date_ymd] => 2025-03-04 18:19:05 [RateCDR] => 1 ) [2025-03-04 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-04 15:19:05' and `end` < '2025-03-04 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-04 18:19:18] Production.INFO: count ==4079 [2025-03-04 18:19:19] Production.ERROR: pbx CDR StartTime 2025-03-04 15:19:05 - End Time 2025-03-04 18:19:05 [2025-03-04 18:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607585', 'tblTempUsageDetail_20' ) start [2025-03-04 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607585', 'tblTempUsageDetail_20' ) end [2025-03-04 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607585', 'tblTempVendorCDR_20' ) start [2025-03-04 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607585', 'tblTempVendorCDR_20' ) end [2025-03-04 18:19:19] Production.INFO: ProcessCDR(1,14607585,1,1,2) [2025-03-04 18:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607585', 'tblTempUsageDetail_20' ) start [2025-03-04 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607585', 'tblTempUsageDetail_20' ) end [2025-03-04 18:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:19:24] Production.INFO: ==7564== Releasing lock... [2025-03-04 18:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:19:24] Production.INFO: 58.5 MB #Memory Used# [2025-03-04 18:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:20:07 [end_date_ymd] => 2025-03-04 18:20:07 [RateCDR] => 1 ) [2025-03-04 18: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-04 15:20:07' and `end` < '2025-03-04 18: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-04 18:20:19] Production.INFO: count ==4062 [2025-03-04 18:20:21] Production.ERROR: pbx CDR StartTime 2025-03-04 15:20:07 - End Time 2025-03-04 18:20:07 [2025-03-04 18:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607591', 'tblTempUsageDetail_20' ) start [2025-03-04 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607591', 'tblTempUsageDetail_20' ) end [2025-03-04 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607591', 'tblTempVendorCDR_20' ) start [2025-03-04 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607591', 'tblTempVendorCDR_20' ) end [2025-03-04 18:20:21] Production.INFO: ProcessCDR(1,14607591,1,1,2) [2025-03-04 18:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607591', 'tblTempUsageDetail_20' ) start [2025-03-04 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607591', 'tblTempUsageDetail_20' ) end [2025-03-04 18:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:20:25] Production.INFO: ==7646== Releasing lock... [2025-03-04 18:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:20:25] Production.INFO: 58.25 MB #Memory Used# [2025-03-04 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:21:05 [end_date_ymd] => 2025-03-04 18:21:05 [RateCDR] => 1 ) [2025-03-04 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-04 15:21:05' and `end` < '2025-03-04 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-04 18:21:18] Production.INFO: count ==4038 [2025-03-04 18:21:19] Production.ERROR: pbx CDR StartTime 2025-03-04 15:21:05 - End Time 2025-03-04 18:21:05 [2025-03-04 18:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607596', 'tblTempUsageDetail_20' ) start [2025-03-04 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607596', 'tblTempUsageDetail_20' ) end [2025-03-04 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607596', 'tblTempVendorCDR_20' ) start [2025-03-04 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607596', 'tblTempVendorCDR_20' ) end [2025-03-04 18:21:20] Production.INFO: ProcessCDR(1,14607596,1,1,2) [2025-03-04 18:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607596', 'tblTempUsageDetail_20' ) start [2025-03-04 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607596', 'tblTempUsageDetail_20' ) end [2025-03-04 18:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:21:23] Production.INFO: ==7762== Releasing lock... [2025-03-04 18:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:21:23] Production.INFO: 58.25 MB #Memory Used# [2025-03-04 18:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:22:06 [end_date_ymd] => 2025-03-04 18:22:06 [RateCDR] => 1 ) [2025-03-04 18: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 15:22:06' and `end` < '2025-03-04 18: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-04 18:22:18] Production.INFO: count ==4036 [2025-03-04 18:22:20] Production.ERROR: pbx CDR StartTime 2025-03-04 15:22:06 - End Time 2025-03-04 18:22:06 [2025-03-04 18:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607601', 'tblTempUsageDetail_20' ) start [2025-03-04 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607601', 'tblTempUsageDetail_20' ) end [2025-03-04 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607601', 'tblTempVendorCDR_20' ) start [2025-03-04 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607601', 'tblTempVendorCDR_20' ) end [2025-03-04 18:22:20] Production.INFO: ProcessCDR(1,14607601,1,1,2) [2025-03-04 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607601', 'tblTempUsageDetail_20' ) start [2025-03-04 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607601', 'tblTempUsageDetail_20' ) end [2025-03-04 18:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:22:24] Production.INFO: ==7841== Releasing lock... [2025-03-04 18:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:22:24] Production.INFO: 58.25 MB #Memory Used# [2025-03-04 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:23:05 [end_date_ymd] => 2025-03-04 18:23:05 [RateCDR] => 1 ) [2025-03-04 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-04 15:23:05' and `end` < '2025-03-04 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-04 18:23:18] Production.INFO: count ==4039 [2025-03-04 18:23:20] Production.ERROR: pbx CDR StartTime 2025-03-04 15:23:05 - End Time 2025-03-04 18:23:05 [2025-03-04 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607606', 'tblTempUsageDetail_20' ) start [2025-03-04 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607606', 'tblTempUsageDetail_20' ) end [2025-03-04 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607606', 'tblTempVendorCDR_20' ) start [2025-03-04 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607606', 'tblTempVendorCDR_20' ) end [2025-03-04 18:23:20] Production.INFO: ProcessCDR(1,14607606,1,1,2) [2025-03-04 18:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607606', 'tblTempUsageDetail_20' ) start [2025-03-04 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607606', 'tblTempUsageDetail_20' ) end [2025-03-04 18:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:23:25] Production.INFO: ==7915== Releasing lock... [2025-03-04 18:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:23:25] Production.INFO: 58.25 MB #Memory Used# [2025-03-04 18:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:24:06 [end_date_ymd] => 2025-03-04 18:24:06 [RateCDR] => 1 ) [2025-03-04 18: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 15:24:06' and `end` < '2025-03-04 18: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-04 18:24:18] Production.INFO: count ==4019 [2025-03-04 18:24:20] Production.ERROR: pbx CDR StartTime 2025-03-04 15:24:06 - End Time 2025-03-04 18:24:06 [2025-03-04 18:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607611', 'tblTempUsageDetail_20' ) start [2025-03-04 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607611', 'tblTempUsageDetail_20' ) end [2025-03-04 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607611', 'tblTempVendorCDR_20' ) start [2025-03-04 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607611', 'tblTempVendorCDR_20' ) end [2025-03-04 18:24:20] Production.INFO: ProcessCDR(1,14607611,1,1,2) [2025-03-04 18:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607611', 'tblTempUsageDetail_20' ) start [2025-03-04 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607611', 'tblTempUsageDetail_20' ) end [2025-03-04 18:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:24:25] Production.INFO: ==7990== Releasing lock... [2025-03-04 18:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:24:25] Production.INFO: 58 MB #Memory Used# [2025-03-04 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:25:05 [end_date_ymd] => 2025-03-04 18:25:05 [RateCDR] => 1 ) [2025-03-04 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 15:25:05' and `end` < '2025-03-04 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 18:25:18] Production.INFO: count ==4010 [2025-03-04 18:25:19] Production.ERROR: pbx CDR StartTime 2025-03-04 15:25:05 - End Time 2025-03-04 18:25:05 [2025-03-04 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607616', 'tblTempUsageDetail_20' ) start [2025-03-04 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607616', 'tblTempUsageDetail_20' ) end [2025-03-04 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607616', 'tblTempVendorCDR_20' ) start [2025-03-04 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607616', 'tblTempVendorCDR_20' ) end [2025-03-04 18:25:19] Production.INFO: ProcessCDR(1,14607616,1,1,2) [2025-03-04 18:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607616', 'tblTempUsageDetail_20' ) start [2025-03-04 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607616', 'tblTempUsageDetail_20' ) end [2025-03-04 18:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:25:24] Production.INFO: ==8063== Releasing lock... [2025-03-04 18:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:25:24] Production.INFO: 58 MB #Memory Used# [2025-03-04 18:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:26:06 [end_date_ymd] => 2025-03-04 18:26:06 [RateCDR] => 1 ) [2025-03-04 18: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-04 15:26:06' and `end` < '2025-03-04 18: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-04 18:26:18] Production.INFO: count ==4002 [2025-03-04 18:26:20] Production.ERROR: pbx CDR StartTime 2025-03-04 15:26:06 - End Time 2025-03-04 18:26:06 [2025-03-04 18:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607621', 'tblTempUsageDetail_20' ) start [2025-03-04 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607621', 'tblTempUsageDetail_20' ) end [2025-03-04 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607621', 'tblTempVendorCDR_20' ) start [2025-03-04 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607621', 'tblTempVendorCDR_20' ) end [2025-03-04 18:26:20] Production.INFO: ProcessCDR(1,14607621,1,1,2) [2025-03-04 18:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607621', 'tblTempUsageDetail_20' ) start [2025-03-04 18:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607621', 'tblTempUsageDetail_20' ) end [2025-03-04 18:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:26:25] Production.INFO: ==8139== Releasing lock... [2025-03-04 18:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:26:25] Production.INFO: 58 MB #Memory Used# [2025-03-04 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:27:05 [end_date_ymd] => 2025-03-04 18:27:05 [RateCDR] => 1 ) [2025-03-04 18: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 15:27:05' and `end` < '2025-03-04 18: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-04 18:27:17] Production.INFO: count ==3994 [2025-03-04 18:27:19] Production.ERROR: pbx CDR StartTime 2025-03-04 15:27:05 - End Time 2025-03-04 18:27:05 [2025-03-04 18:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607626', 'tblTempUsageDetail_20' ) start [2025-03-04 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607626', 'tblTempUsageDetail_20' ) end [2025-03-04 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607626', 'tblTempVendorCDR_20' ) start [2025-03-04 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607626', 'tblTempVendorCDR_20' ) end [2025-03-04 18:27:19] Production.INFO: ProcessCDR(1,14607626,1,1,2) [2025-03-04 18:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607626', 'tblTempUsageDetail_20' ) start [2025-03-04 18:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607626', 'tblTempUsageDetail_20' ) end [2025-03-04 18:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:27:24] Production.INFO: ==8217== Releasing lock... [2025-03-04 18:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:27:24] Production.INFO: 57.75 MB #Memory Used# [2025-03-04 18:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:28:06 [end_date_ymd] => 2025-03-04 18:28:06 [RateCDR] => 1 ) [2025-03-04 18: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-04 15:28:06' and `end` < '2025-03-04 18: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-04 18:28:18] Production.INFO: count ==3982 [2025-03-04 18:28:20] Production.ERROR: pbx CDR StartTime 2025-03-04 15:28:06 - End Time 2025-03-04 18:28:06 [2025-03-04 18:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607631', 'tblTempUsageDetail_20' ) start [2025-03-04 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607631', 'tblTempUsageDetail_20' ) end [2025-03-04 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607631', 'tblTempVendorCDR_20' ) start [2025-03-04 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607631', 'tblTempVendorCDR_20' ) end [2025-03-04 18:28:20] Production.INFO: ProcessCDR(1,14607631,1,1,2) [2025-03-04 18:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607631', 'tblTempUsageDetail_20' ) start [2025-03-04 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607631', 'tblTempUsageDetail_20' ) end [2025-03-04 18:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:28:25] Production.INFO: ==8293== Releasing lock... [2025-03-04 18:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:28:25] Production.INFO: 57.75 MB #Memory Used# [2025-03-04 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:29:05 [end_date_ymd] => 2025-03-04 18:29:05 [RateCDR] => 1 ) [2025-03-04 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-04 15:29:05' and `end` < '2025-03-04 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-04 18:29:17] Production.INFO: count ==3981 [2025-03-04 18:29:19] Production.ERROR: pbx CDR StartTime 2025-03-04 15:29:05 - End Time 2025-03-04 18:29:05 [2025-03-04 18:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607636', 'tblTempUsageDetail_20' ) start [2025-03-04 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607636', 'tblTempUsageDetail_20' ) end [2025-03-04 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607636', 'tblTempVendorCDR_20' ) start [2025-03-04 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607636', 'tblTempVendorCDR_20' ) end [2025-03-04 18:29:19] Production.INFO: ProcessCDR(1,14607636,1,1,2) [2025-03-04 18:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607636', 'tblTempUsageDetail_20' ) start [2025-03-04 18:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607636', 'tblTempUsageDetail_20' ) end [2025-03-04 18:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:29:22] Production.INFO: ==8367== Releasing lock... [2025-03-04 18:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:29:22] Production.INFO: 57.75 MB #Memory Used# [2025-03-04 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:30:06 [end_date_ymd] => 2025-03-04 18:30:06 [RateCDR] => 1 ) [2025-03-04 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-04 15:30:06' and `end` < '2025-03-04 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-04 18:30:19] Production.INFO: count ==3960 [2025-03-04 18:30:20] Production.ERROR: pbx CDR StartTime 2025-03-04 15:30:06 - End Time 2025-03-04 18:30:06 [2025-03-04 18:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607642', 'tblTempUsageDetail_20' ) start [2025-03-04 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607642', 'tblTempUsageDetail_20' ) end [2025-03-04 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607642', 'tblTempVendorCDR_20' ) start [2025-03-04 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607642', 'tblTempVendorCDR_20' ) end [2025-03-04 18:30:20] Production.INFO: ProcessCDR(1,14607642,1,1,2) [2025-03-04 18:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607642', 'tblTempUsageDetail_20' ) start [2025-03-04 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607642', 'tblTempUsageDetail_20' ) end [2025-03-04 18:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:30:25] Production.INFO: ==8443== Releasing lock... [2025-03-04 18:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:30:25] Production.INFO: 57.5 MB #Memory Used# [2025-03-04 18:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:31:06 [end_date_ymd] => 2025-03-04 18:31:06 [RateCDR] => 1 ) [2025-03-04 18: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-04 15:31:06' and `end` < '2025-03-04 18: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-04 18:31:18] Production.INFO: count ==3897 [2025-03-04 18:31:20] Production.ERROR: pbx CDR StartTime 2025-03-04 15:31:06 - End Time 2025-03-04 18:31:06 [2025-03-04 18:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607647', 'tblTempUsageDetail_20' ) start [2025-03-04 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607647', 'tblTempUsageDetail_20' ) end [2025-03-04 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607647', 'tblTempVendorCDR_20' ) start [2025-03-04 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607647', 'tblTempVendorCDR_20' ) end [2025-03-04 18:31:20] Production.INFO: ProcessCDR(1,14607647,1,1,2) [2025-03-04 18:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607647', 'tblTempUsageDetail_20' ) start [2025-03-04 18:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607647', 'tblTempUsageDetail_20' ) end [2025-03-04 18:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:31:23] Production.INFO: ==8523== Releasing lock... [2025-03-04 18:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:31:23] Production.INFO: 57 MB #Memory Used# [2025-03-04 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:32:05 [end_date_ymd] => 2025-03-04 18:32:05 [RateCDR] => 1 ) [2025-03-04 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-04 15:32:05' and `end` < '2025-03-04 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-04 18:32:18] Production.INFO: count ==3901 [2025-03-04 18:32:19] Production.ERROR: pbx CDR StartTime 2025-03-04 15:32:05 - End Time 2025-03-04 18:32:05 [2025-03-04 18:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607652', 'tblTempUsageDetail_20' ) start [2025-03-04 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607652', 'tblTempUsageDetail_20' ) end [2025-03-04 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607652', 'tblTempVendorCDR_20' ) start [2025-03-04 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607652', 'tblTempVendorCDR_20' ) end [2025-03-04 18:32:19] Production.INFO: ProcessCDR(1,14607652,1,1,2) [2025-03-04 18:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607652', 'tblTempUsageDetail_20' ) start [2025-03-04 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607652', 'tblTempUsageDetail_20' ) end [2025-03-04 18:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:32:24] Production.INFO: ==8598== Releasing lock... [2025-03-04 18:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:32:24] Production.INFO: 57.25 MB #Memory Used# [2025-03-04 18:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:33:06 [end_date_ymd] => 2025-03-04 18:33:06 [RateCDR] => 1 ) [2025-03-04 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-04 15:33:06' and `end` < '2025-03-04 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-04 18:33:18] Production.INFO: count ==3866 [2025-03-04 18:33:20] Production.ERROR: pbx CDR StartTime 2025-03-04 15:33:06 - End Time 2025-03-04 18:33:06 [2025-03-04 18:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607657', 'tblTempUsageDetail_20' ) start [2025-03-04 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607657', 'tblTempUsageDetail_20' ) end [2025-03-04 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607657', 'tblTempVendorCDR_20' ) start [2025-03-04 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607657', 'tblTempVendorCDR_20' ) end [2025-03-04 18:33:20] Production.INFO: ProcessCDR(1,14607657,1,1,2) [2025-03-04 18:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607657', 'tblTempUsageDetail_20' ) start [2025-03-04 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607657', 'tblTempUsageDetail_20' ) end [2025-03-04 18:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:33:24] Production.INFO: ==8676== Releasing lock... [2025-03-04 18:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:33:24] Production.INFO: 56.75 MB #Memory Used# [2025-03-04 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:34:05 [end_date_ymd] => 2025-03-04 18:34:05 [RateCDR] => 1 ) [2025-03-04 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-04 15:34:05' and `end` < '2025-03-04 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-04 18:34:17] Production.INFO: count ==3834 [2025-03-04 18:34:19] Production.ERROR: pbx CDR StartTime 2025-03-04 15:34:05 - End Time 2025-03-04 18:34:05 [2025-03-04 18:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607662', 'tblTempUsageDetail_20' ) start [2025-03-04 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607662', 'tblTempUsageDetail_20' ) end [2025-03-04 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607662', 'tblTempVendorCDR_20' ) start [2025-03-04 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607662', 'tblTempVendorCDR_20' ) end [2025-03-04 18:34:19] Production.INFO: ProcessCDR(1,14607662,1,1,2) [2025-03-04 18:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607662', 'tblTempUsageDetail_20' ) start [2025-03-04 18:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607662', 'tblTempUsageDetail_20' ) end [2025-03-04 18:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:34:22] Production.INFO: ==8755== Releasing lock... [2025-03-04 18:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:34:22] Production.INFO: 57.25 MB #Memory Used# [2025-03-04 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:35:05 [end_date_ymd] => 2025-03-04 18:35:05 [RateCDR] => 1 ) [2025-03-04 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-04 15:35:05' and `end` < '2025-03-04 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-04 18:35:18] Production.INFO: count ==3801 [2025-03-04 18:35:19] Production.ERROR: pbx CDR StartTime 2025-03-04 15:35:05 - End Time 2025-03-04 18:35:05 [2025-03-04 18:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607667', 'tblTempUsageDetail_20' ) start [2025-03-04 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607667', 'tblTempUsageDetail_20' ) end [2025-03-04 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607667', 'tblTempVendorCDR_20' ) start [2025-03-04 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607667', 'tblTempVendorCDR_20' ) end [2025-03-04 18:35:19] Production.INFO: ProcessCDR(1,14607667,1,1,2) [2025-03-04 18:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607667', 'tblTempUsageDetail_20' ) start [2025-03-04 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607667', 'tblTempUsageDetail_20' ) end [2025-03-04 18:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:35:25] Production.INFO: ==8831== Releasing lock... [2025-03-04 18:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:35:25] Production.INFO: 56.5 MB #Memory Used# [2025-03-04 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:36:05 [end_date_ymd] => 2025-03-04 18:36:05 [RateCDR] => 1 ) [2025-03-04 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-04 15:36:05' and `end` < '2025-03-04 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-04 18:36:17] Production.INFO: count ==3761 [2025-03-04 18:36:19] Production.ERROR: pbx CDR StartTime 2025-03-04 15:36:05 - End Time 2025-03-04 18:36:05 [2025-03-04 18:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607672', 'tblTempUsageDetail_20' ) start [2025-03-04 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607672', 'tblTempUsageDetail_20' ) end [2025-03-04 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607672', 'tblTempVendorCDR_20' ) start [2025-03-04 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607672', 'tblTempVendorCDR_20' ) end [2025-03-04 18:36:19] Production.INFO: ProcessCDR(1,14607672,1,1,2) [2025-03-04 18:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607672', 'tblTempUsageDetail_20' ) start [2025-03-04 18:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607672', 'tblTempUsageDetail_20' ) end [2025-03-04 18:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:36:22] Production.INFO: ==8909== Releasing lock... [2025-03-04 18:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:36:22] Production.INFO: 56 MB #Memory Used# [2025-03-04 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:37:05 [end_date_ymd] => 2025-03-04 18:37:05 [RateCDR] => 1 ) [2025-03-04 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-04 15:37:05' and `end` < '2025-03-04 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-04 18:37:18] Production.INFO: count ==3731 [2025-03-04 18:37:19] Production.ERROR: pbx CDR StartTime 2025-03-04 15:37:05 - End Time 2025-03-04 18:37:05 [2025-03-04 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607676', 'tblTempUsageDetail_20' ) start [2025-03-04 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607676', 'tblTempUsageDetail_20' ) end [2025-03-04 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607676', 'tblTempVendorCDR_20' ) start [2025-03-04 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607676', 'tblTempVendorCDR_20' ) end [2025-03-04 18:37:19] Production.INFO: ProcessCDR(1,14607676,1,1,2) [2025-03-04 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607676', 'tblTempUsageDetail_20' ) start [2025-03-04 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607676', 'tblTempUsageDetail_20' ) end [2025-03-04 18:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:37:24] Production.INFO: ==9025== Releasing lock... [2025-03-04 18:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:37:24] Production.INFO: 56.75 MB #Memory Used# [2025-03-04 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:38:05 [end_date_ymd] => 2025-03-04 18:38:05 [RateCDR] => 1 ) [2025-03-04 18:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 15:38:05' and `end` < '2025-03-04 18:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 18:38:17] Production.INFO: count ==3726 [2025-03-04 18:38:19] Production.ERROR: pbx CDR StartTime 2025-03-04 15:38:05 - End Time 2025-03-04 18:38:05 [2025-03-04 18:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607682', 'tblTempUsageDetail_20' ) start [2025-03-04 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607682', 'tblTempUsageDetail_20' ) end [2025-03-04 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607682', 'tblTempVendorCDR_20' ) start [2025-03-04 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607682', 'tblTempVendorCDR_20' ) end [2025-03-04 18:38:19] Production.INFO: ProcessCDR(1,14607682,1,1,2) [2025-03-04 18:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607682', 'tblTempUsageDetail_20' ) start [2025-03-04 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607682', 'tblTempUsageDetail_20' ) end [2025-03-04 18:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:38:22] Production.INFO: ==9101== Releasing lock... [2025-03-04 18:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:38:22] Production.INFO: 56.25 MB #Memory Used# [2025-03-04 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:39:05 [end_date_ymd] => 2025-03-04 18:39:05 [RateCDR] => 1 ) [2025-03-04 18:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 15:39:05' and `end` < '2025-03-04 18:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 18:39:18] Production.INFO: count ==3715 [2025-03-04 18:39:19] Production.ERROR: pbx CDR StartTime 2025-03-04 15:39:05 - End Time 2025-03-04 18:39:05 [2025-03-04 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607687', 'tblTempUsageDetail_20' ) start [2025-03-04 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607687', 'tblTempUsageDetail_20' ) end [2025-03-04 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607687', 'tblTempVendorCDR_20' ) start [2025-03-04 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607687', 'tblTempVendorCDR_20' ) end [2025-03-04 18:39:19] Production.INFO: ProcessCDR(1,14607687,1,1,2) [2025-03-04 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607687', 'tblTempUsageDetail_20' ) start [2025-03-04 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607687', 'tblTempUsageDetail_20' ) end [2025-03-04 18:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:39:24] Production.INFO: ==9179== Releasing lock... [2025-03-04 18:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:39:24] Production.INFO: 55.75 MB #Memory Used# [2025-03-04 18:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:40:05 [end_date_ymd] => 2025-03-04 18:40:05 [RateCDR] => 1 ) [2025-03-04 18:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 15:40:05' and `end` < '2025-03-04 18:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 18:40:18] Production.INFO: count ==3716 [2025-03-04 18:40:19] Production.ERROR: pbx CDR StartTime 2025-03-04 15:40:05 - End Time 2025-03-04 18:40:05 [2025-03-04 18:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607693', 'tblTempUsageDetail_20' ) start [2025-03-04 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607693', 'tblTempUsageDetail_20' ) end [2025-03-04 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607693', 'tblTempVendorCDR_20' ) start [2025-03-04 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607693', 'tblTempVendorCDR_20' ) end [2025-03-04 18:40:19] Production.INFO: ProcessCDR(1,14607693,1,1,2) [2025-03-04 18:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607693', 'tblTempUsageDetail_20' ) start [2025-03-04 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607693', 'tblTempUsageDetail_20' ) end [2025-03-04 18:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:40:25] Production.INFO: ==9253== Releasing lock... [2025-03-04 18:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:40:25] Production.INFO: 56.5 MB #Memory Used# [2025-03-04 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:41:05 [end_date_ymd] => 2025-03-04 18:41:05 [RateCDR] => 1 ) [2025-03-04 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-04 15:41:05' and `end` < '2025-03-04 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-04 18:41:18] Production.INFO: count ==3655 [2025-03-04 18:41:19] Production.ERROR: pbx CDR StartTime 2025-03-04 15:41:05 - End Time 2025-03-04 18:41:05 [2025-03-04 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607698', 'tblTempUsageDetail_20' ) start [2025-03-04 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607698', 'tblTempUsageDetail_20' ) end [2025-03-04 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607698', 'tblTempVendorCDR_20' ) start [2025-03-04 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607698', 'tblTempVendorCDR_20' ) end [2025-03-04 18:41:19] Production.INFO: ProcessCDR(1,14607698,1,1,2) [2025-03-04 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607698', 'tblTempUsageDetail_20' ) start [2025-03-04 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607698', 'tblTempUsageDetail_20' ) end [2025-03-04 18:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:41:24] Production.INFO: ==9337== Releasing lock... [2025-03-04 18:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:41:24] Production.INFO: 56 MB #Memory Used# [2025-03-04 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:42:05 [end_date_ymd] => 2025-03-04 18:42:05 [RateCDR] => 1 ) [2025-03-04 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-04 15:42:05' and `end` < '2025-03-04 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-04 18:42:18] Production.INFO: count ==3657 [2025-03-04 18:42:19] Production.ERROR: pbx CDR StartTime 2025-03-04 15:42:05 - End Time 2025-03-04 18:42:05 [2025-03-04 18:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607703', 'tblTempUsageDetail_20' ) start [2025-03-04 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607703', 'tblTempUsageDetail_20' ) end [2025-03-04 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607703', 'tblTempVendorCDR_20' ) start [2025-03-04 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607703', 'tblTempVendorCDR_20' ) end [2025-03-04 18:42:20] Production.INFO: ProcessCDR(1,14607703,1,1,2) [2025-03-04 18:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607703', 'tblTempUsageDetail_20' ) start [2025-03-04 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607703', 'tblTempUsageDetail_20' ) end [2025-03-04 18:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:42:24] Production.INFO: ==9413== Releasing lock... [2025-03-04 18:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:42:24] Production.INFO: 56 MB #Memory Used# [2025-03-04 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:43:05 [end_date_ymd] => 2025-03-04 18:43:05 [RateCDR] => 1 ) [2025-03-04 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-04 15:43:05' and `end` < '2025-03-04 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-04 18:43:17] Production.INFO: count ==3648 [2025-03-04 18:43:19] Production.ERROR: pbx CDR StartTime 2025-03-04 15:43:05 - End Time 2025-03-04 18:43:05 [2025-03-04 18:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607708', 'tblTempUsageDetail_20' ) start [2025-03-04 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607708', 'tblTempUsageDetail_20' ) end [2025-03-04 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607708', 'tblTempVendorCDR_20' ) start [2025-03-04 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607708', 'tblTempVendorCDR_20' ) end [2025-03-04 18:43:19] Production.INFO: ProcessCDR(1,14607708,1,1,2) [2025-03-04 18:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607708', 'tblTempUsageDetail_20' ) start [2025-03-04 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607708', 'tblTempUsageDetail_20' ) end [2025-03-04 18:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:43:24] Production.INFO: ==9491== Releasing lock... [2025-03-04 18:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:43:24] Production.INFO: 55.75 MB #Memory Used# [2025-03-04 18:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:44:06 [end_date_ymd] => 2025-03-04 18:44:06 [RateCDR] => 1 ) [2025-03-04 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-04 15:44:06' and `end` < '2025-03-04 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-04 18:44:18] Production.INFO: count ==3627 [2025-03-04 18:44:19] Production.ERROR: pbx CDR StartTime 2025-03-04 15:44:06 - End Time 2025-03-04 18:44:06 [2025-03-04 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607713', 'tblTempUsageDetail_20' ) start [2025-03-04 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607713', 'tblTempUsageDetail_20' ) end [2025-03-04 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607713', 'tblTempVendorCDR_20' ) start [2025-03-04 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607713', 'tblTempVendorCDR_20' ) end [2025-03-04 18:44:20] Production.INFO: ProcessCDR(1,14607713,1,1,2) [2025-03-04 18:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607713', 'tblTempUsageDetail_20' ) start [2025-03-04 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607713', 'tblTempUsageDetail_20' ) end [2025-03-04 18:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:44:23] Production.INFO: ==9574== Releasing lock... [2025-03-04 18:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:44:23] Production.INFO: 55 MB #Memory Used# [2025-03-04 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:45:05 [end_date_ymd] => 2025-03-04 18:45:05 [RateCDR] => 1 ) [2025-03-04 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 15:45:05' and `end` < '2025-03-04 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 18:45:17] Production.INFO: count ==3619 [2025-03-04 18:45:19] Production.ERROR: pbx CDR StartTime 2025-03-04 15:45:05 - End Time 2025-03-04 18:45:05 [2025-03-04 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607718', 'tblTempUsageDetail_20' ) start [2025-03-04 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607718', 'tblTempUsageDetail_20' ) end [2025-03-04 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607718', 'tblTempVendorCDR_20' ) start [2025-03-04 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607718', 'tblTempVendorCDR_20' ) end [2025-03-04 18:45:19] Production.INFO: ProcessCDR(1,14607718,1,1,2) [2025-03-04 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607718', 'tblTempUsageDetail_20' ) start [2025-03-04 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607718', 'tblTempUsageDetail_20' ) end [2025-03-04 18:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:45:23] Production.INFO: ==9646== Releasing lock... [2025-03-04 18:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:45:23] Production.INFO: 55.25 MB #Memory Used# [2025-03-04 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:46:05 [end_date_ymd] => 2025-03-04 18:46:05 [RateCDR] => 1 ) [2025-03-04 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-04 15:46:05' and `end` < '2025-03-04 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-04 18:46:18] Production.INFO: count ==3583 [2025-03-04 18:46:19] Production.ERROR: pbx CDR StartTime 2025-03-04 15:46:05 - End Time 2025-03-04 18:46:05 [2025-03-04 18:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607723', 'tblTempUsageDetail_20' ) start [2025-03-04 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607723', 'tblTempUsageDetail_20' ) end [2025-03-04 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607723', 'tblTempVendorCDR_20' ) start [2025-03-04 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607723', 'tblTempVendorCDR_20' ) end [2025-03-04 18:46:19] Production.INFO: ProcessCDR(1,14607723,1,1,2) [2025-03-04 18:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607723', 'tblTempUsageDetail_20' ) start [2025-03-04 18:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607723', 'tblTempUsageDetail_20' ) end [2025-03-04 18:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:46:22] Production.INFO: ==9724== Releasing lock... [2025-03-04 18:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:46:22] Production.INFO: 55.5 MB #Memory Used# [2025-03-04 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:47:05 [end_date_ymd] => 2025-03-04 18:47:05 [RateCDR] => 1 ) [2025-03-04 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-04 15:47:05' and `end` < '2025-03-04 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-04 18:47:18] Production.INFO: count ==3558 [2025-03-04 18:47:19] Production.ERROR: pbx CDR StartTime 2025-03-04 15:47:05 - End Time 2025-03-04 18:47:05 [2025-03-04 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607728', 'tblTempUsageDetail_20' ) start [2025-03-04 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607728', 'tblTempUsageDetail_20' ) end [2025-03-04 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607728', 'tblTempVendorCDR_20' ) start [2025-03-04 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607728', 'tblTempVendorCDR_20' ) end [2025-03-04 18:47:19] Production.INFO: ProcessCDR(1,14607728,1,1,2) [2025-03-04 18:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607728', 'tblTempUsageDetail_20' ) start [2025-03-04 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607728', 'tblTempUsageDetail_20' ) end [2025-03-04 18:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:47:24] Production.INFO: ==9826== Releasing lock... [2025-03-04 18:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:47:24] Production.INFO: 55 MB #Memory Used# [2025-03-04 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:48:05 [end_date_ymd] => 2025-03-04 18:48:05 [RateCDR] => 1 ) [2025-03-04 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-04 15:48:05' and `end` < '2025-03-04 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-04 18:48:18] Production.INFO: count ==3527 [2025-03-04 18:48:19] Production.ERROR: pbx CDR StartTime 2025-03-04 15:48:05 - End Time 2025-03-04 18:48:05 [2025-03-04 18:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607733', 'tblTempUsageDetail_20' ) start [2025-03-04 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607733', 'tblTempUsageDetail_20' ) end [2025-03-04 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607733', 'tblTempVendorCDR_20' ) start [2025-03-04 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607733', 'tblTempVendorCDR_20' ) end [2025-03-04 18:48:19] Production.INFO: ProcessCDR(1,14607733,1,1,2) [2025-03-04 18:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607733', 'tblTempUsageDetail_20' ) start [2025-03-04 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607733', 'tblTempUsageDetail_20' ) end [2025-03-04 18:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:48:23] Production.INFO: ==9905== Releasing lock... [2025-03-04 18:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:48:23] Production.INFO: 54.5 MB #Memory Used# [2025-03-04 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:49:05 [end_date_ymd] => 2025-03-04 18:49:05 [RateCDR] => 1 ) [2025-03-04 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-04 15:49:05' and `end` < '2025-03-04 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-04 18:49:17] Production.INFO: count ==3455 [2025-03-04 18:49:18] Production.ERROR: pbx CDR StartTime 2025-03-04 15:49:05 - End Time 2025-03-04 18:49:05 [2025-03-04 18:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607738', 'tblTempUsageDetail_20' ) start [2025-03-04 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607738', 'tblTempUsageDetail_20' ) end [2025-03-04 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607738', 'tblTempVendorCDR_20' ) start [2025-03-04 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607738', 'tblTempVendorCDR_20' ) end [2025-03-04 18:49:18] Production.INFO: ProcessCDR(1,14607738,1,1,2) [2025-03-04 18:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607738', 'tblTempUsageDetail_20' ) start [2025-03-04 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607738', 'tblTempUsageDetail_20' ) end [2025-03-04 18:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:49:22] Production.INFO: ==9993== Releasing lock... [2025-03-04 18:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:49:22] Production.INFO: 54.25 MB #Memory Used# [2025-03-04 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:50:06 [end_date_ymd] => 2025-03-04 18:50:06 [RateCDR] => 1 ) [2025-03-04 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-04 15:50:06' and `end` < '2025-03-04 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-04 18:50:19] Production.INFO: count ==3419 [2025-03-04 18:50:20] Production.ERROR: pbx CDR StartTime 2025-03-04 15:50:06 - End Time 2025-03-04 18:50:06 [2025-03-04 18:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607742', 'tblTempUsageDetail_20' ) start [2025-03-04 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607742', 'tblTempUsageDetail_20' ) end [2025-03-04 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607742', 'tblTempVendorCDR_20' ) start [2025-03-04 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607742', 'tblTempVendorCDR_20' ) end [2025-03-04 18:50:20] Production.INFO: ProcessCDR(1,14607742,1,1,2) [2025-03-04 18:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607742', 'tblTempUsageDetail_20' ) start [2025-03-04 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607742', 'tblTempUsageDetail_20' ) end [2025-03-04 18:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:50:25] Production.INFO: ==10074== Releasing lock... [2025-03-04 18:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:50:25] Production.INFO: 53.75 MB #Memory Used# [2025-03-04 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:51:05 [end_date_ymd] => 2025-03-04 18:51:05 [RateCDR] => 1 ) [2025-03-04 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-04 15:51:05' and `end` < '2025-03-04 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-04 18:51:17] Production.INFO: count ==3292 [2025-03-04 18:51:18] Production.ERROR: pbx CDR StartTime 2025-03-04 15:51:05 - End Time 2025-03-04 18:51:05 [2025-03-04 18:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607749', 'tblTempUsageDetail_20' ) start [2025-03-04 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607749', 'tblTempUsageDetail_20' ) end [2025-03-04 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607749', 'tblTempVendorCDR_20' ) start [2025-03-04 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607749', 'tblTempVendorCDR_20' ) end [2025-03-04 18:51:18] Production.INFO: ProcessCDR(1,14607749,1,1,2) [2025-03-04 18:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607749', 'tblTempUsageDetail_20' ) start [2025-03-04 18:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607749', 'tblTempUsageDetail_20' ) end [2025-03-04 18:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:51:21] Production.INFO: ==10154== Releasing lock... [2025-03-04 18:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:51:21] Production.INFO: 52.5 MB #Memory Used# [2025-03-04 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:52:05 [end_date_ymd] => 2025-03-04 18:52:05 [RateCDR] => 1 ) [2025-03-04 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 15:52:05' and `end` < '2025-03-04 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-04 18:52:18] Production.INFO: count ==3248 [2025-03-04 18:52:19] Production.ERROR: pbx CDR StartTime 2025-03-04 15:52:05 - End Time 2025-03-04 18:52:05 [2025-03-04 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607754', 'tblTempUsageDetail_20' ) start [2025-03-04 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607754', 'tblTempUsageDetail_20' ) end [2025-03-04 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607754', 'tblTempVendorCDR_20' ) start [2025-03-04 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607754', 'tblTempVendorCDR_20' ) end [2025-03-04 18:52:19] Production.INFO: ProcessCDR(1,14607754,1,1,2) [2025-03-04 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607754', 'tblTempUsageDetail_20' ) start [2025-03-04 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607754', 'tblTempUsageDetail_20' ) end [2025-03-04 18:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:52:22] Production.INFO: ==10282== Releasing lock... [2025-03-04 18:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:52:22] Production.INFO: 52.25 MB #Memory Used# [2025-03-04 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:53:05 [end_date_ymd] => 2025-03-04 18:53:05 [RateCDR] => 1 ) [2025-03-04 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-04 15:53:05' and `end` < '2025-03-04 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-04 18:53:17] Production.INFO: count ==3222 [2025-03-04 18:53:18] Production.ERROR: pbx CDR StartTime 2025-03-04 15:53:05 - End Time 2025-03-04 18:53:05 [2025-03-04 18:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607759', 'tblTempUsageDetail_20' ) start [2025-03-04 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607759', 'tblTempUsageDetail_20' ) end [2025-03-04 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607759', 'tblTempVendorCDR_20' ) start [2025-03-04 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607759', 'tblTempVendorCDR_20' ) end [2025-03-04 18:53:18] Production.INFO: ProcessCDR(1,14607759,1,1,2) [2025-03-04 18:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607759', 'tblTempUsageDetail_20' ) start [2025-03-04 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607759', 'tblTempUsageDetail_20' ) end [2025-03-04 18:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:53:22] Production.INFO: ==10354== Releasing lock... [2025-03-04 18:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:53:22] Production.INFO: 52.25 MB #Memory Used# [2025-03-04 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:54:05 [end_date_ymd] => 2025-03-04 18:54:05 [RateCDR] => 1 ) [2025-03-04 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-04 15:54:05' and `end` < '2025-03-04 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-04 18:54:18] Production.INFO: count ==3200 [2025-03-04 18:54:19] Production.ERROR: pbx CDR StartTime 2025-03-04 15:54:05 - End Time 2025-03-04 18:54:05 [2025-03-04 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607764', 'tblTempUsageDetail_20' ) start [2025-03-04 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607764', 'tblTempUsageDetail_20' ) end [2025-03-04 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607764', 'tblTempVendorCDR_20' ) start [2025-03-04 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607764', 'tblTempVendorCDR_20' ) end [2025-03-04 18:54:19] Production.INFO: ProcessCDR(1,14607764,1,1,2) [2025-03-04 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607764', 'tblTempUsageDetail_20' ) start [2025-03-04 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607764', 'tblTempUsageDetail_20' ) end [2025-03-04 18:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:54:24] Production.INFO: ==10439== Releasing lock... [2025-03-04 18:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:54:24] Production.INFO: 52.25 MB #Memory Used# [2025-03-04 18:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:55:06 [end_date_ymd] => 2025-03-04 18:55:06 [RateCDR] => 1 ) [2025-03-04 18: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 15:55:06' and `end` < '2025-03-04 18: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-04 18:55:18] Production.INFO: count ==3202 [2025-03-04 18:55:19] Production.ERROR: pbx CDR StartTime 2025-03-04 15:55:06 - End Time 2025-03-04 18:55:06 [2025-03-04 18:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607769', 'tblTempUsageDetail_20' ) start [2025-03-04 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607769', 'tblTempUsageDetail_20' ) end [2025-03-04 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607769', 'tblTempVendorCDR_20' ) start [2025-03-04 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607769', 'tblTempVendorCDR_20' ) end [2025-03-04 18:55:19] Production.INFO: ProcessCDR(1,14607769,1,1,2) [2025-03-04 18:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607769', 'tblTempUsageDetail_20' ) start [2025-03-04 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607769', 'tblTempUsageDetail_20' ) end [2025-03-04 18:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:55:23] Production.INFO: ==10518== Releasing lock... [2025-03-04 18:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:55:23] Production.INFO: 52 MB #Memory Used# [2025-03-04 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:56:05 [end_date_ymd] => 2025-03-04 18:56:05 [RateCDR] => 1 ) [2025-03-04 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-04 15:56:05' and `end` < '2025-03-04 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-04 18:56:17] Production.INFO: count ==3168 [2025-03-04 18:56:18] Production.ERROR: pbx CDR StartTime 2025-03-04 15:56:05 - End Time 2025-03-04 18:56:05 [2025-03-04 18:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607774', 'tblTempUsageDetail_20' ) start [2025-03-04 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607774', 'tblTempUsageDetail_20' ) end [2025-03-04 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607774', 'tblTempVendorCDR_20' ) start [2025-03-04 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607774', 'tblTempVendorCDR_20' ) end [2025-03-04 18:56:19] Production.INFO: ProcessCDR(1,14607774,1,1,2) [2025-03-04 18:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607774', 'tblTempUsageDetail_20' ) start [2025-03-04 18:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607774', 'tblTempUsageDetail_20' ) end [2025-03-04 18:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:56:22] Production.INFO: ==10595== Releasing lock... [2025-03-04 18:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:56:22] Production.INFO: 51.75 MB #Memory Used# [2025-03-04 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:57:05 [end_date_ymd] => 2025-03-04 18:57:05 [RateCDR] => 1 ) [2025-03-04 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-04 15:57:05' and `end` < '2025-03-04 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-04 18:57:18] Production.INFO: count ==3160 [2025-03-04 18:57:19] Production.ERROR: pbx CDR StartTime 2025-03-04 15:57:05 - End Time 2025-03-04 18:57:05 [2025-03-04 18:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607779', 'tblTempUsageDetail_20' ) start [2025-03-04 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607779', 'tblTempUsageDetail_20' ) end [2025-03-04 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607779', 'tblTempVendorCDR_20' ) start [2025-03-04 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607779', 'tblTempVendorCDR_20' ) end [2025-03-04 18:57:19] Production.INFO: ProcessCDR(1,14607779,1,1,2) [2025-03-04 18:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607779', 'tblTempUsageDetail_20' ) start [2025-03-04 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607779', 'tblTempUsageDetail_20' ) end [2025-03-04 18:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:57:23] Production.INFO: ==10672== Releasing lock... [2025-03-04 18:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:57:23] Production.INFO: 52 MB #Memory Used# [2025-03-04 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:58:05 [end_date_ymd] => 2025-03-04 18:58:05 [RateCDR] => 1 ) [2025-03-04 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-04 15:58:05' and `end` < '2025-03-04 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-04 18:58:18] Production.INFO: count ==3159 [2025-03-04 18:58:19] Production.ERROR: pbx CDR StartTime 2025-03-04 15:58:05 - End Time 2025-03-04 18:58:05 [2025-03-04 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607784', 'tblTempUsageDetail_20' ) start [2025-03-04 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607784', 'tblTempUsageDetail_20' ) end [2025-03-04 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607784', 'tblTempVendorCDR_20' ) start [2025-03-04 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607784', 'tblTempVendorCDR_20' ) end [2025-03-04 18:58:19] Production.INFO: ProcessCDR(1,14607784,1,1,2) [2025-03-04 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607784', 'tblTempUsageDetail_20' ) start [2025-03-04 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607784', 'tblTempUsageDetail_20' ) end [2025-03-04 18:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:58:23] Production.INFO: ==10749== Releasing lock... [2025-03-04 18:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:58:23] Production.INFO: 51.5 MB #Memory Used# [2025-03-04 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 15:59:05 [end_date_ymd] => 2025-03-04 18:59:05 [RateCDR] => 1 ) [2025-03-04 18: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 15:59:05' and `end` < '2025-03-04 18: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-04 18:59:18] Production.INFO: count ==3154 [2025-03-04 18:59:19] Production.ERROR: pbx CDR StartTime 2025-03-04 15:59:05 - End Time 2025-03-04 18:59:05 [2025-03-04 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607789', 'tblTempUsageDetail_20' ) start [2025-03-04 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607789', 'tblTempUsageDetail_20' ) end [2025-03-04 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607789', 'tblTempVendorCDR_20' ) start [2025-03-04 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607789', 'tblTempVendorCDR_20' ) end [2025-03-04 18:59:19] Production.INFO: ProcessCDR(1,14607789,1,1,2) [2025-03-04 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 18:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607789', 'tblTempUsageDetail_20' ) start [2025-03-04 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607789', 'tblTempUsageDetail_20' ) end [2025-03-04 18:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 18:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 18:59:22] Production.INFO: ==10830== Releasing lock... [2025-03-04 18:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 18:59:22] Production.INFO: 51.75 MB #Memory Used# [2025-03-04 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:00:06 [end_date_ymd] => 2025-03-04 19:00:06 [RateCDR] => 1 ) [2025-03-04 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-04 16:00:06' and `end` < '2025-03-04 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-04 19:00:18] Production.INFO: count ==3156 [2025-03-04 19:00:19] Production.ERROR: pbx CDR StartTime 2025-03-04 16:00:06 - End Time 2025-03-04 19:00:06 [2025-03-04 19:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607795', 'tblTempUsageDetail_20' ) start [2025-03-04 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607795', 'tblTempUsageDetail_20' ) end [2025-03-04 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607795', 'tblTempVendorCDR_20' ) start [2025-03-04 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607795', 'tblTempVendorCDR_20' ) end [2025-03-04 19:00:19] Production.INFO: ProcessCDR(1,14607795,1,1,2) [2025-03-04 19:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607795', 'tblTempUsageDetail_20' ) start [2025-03-04 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607795', 'tblTempUsageDetail_20' ) end [2025-03-04 19:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:00:24] Production.INFO: ==10923== Releasing lock... [2025-03-04 19:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:00:24] Production.INFO: 51.75 MB #Memory Used# [2025-03-04 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:01:05 [end_date_ymd] => 2025-03-04 19:01:05 [RateCDR] => 1 ) [2025-03-04 19: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 16:01:05' and `end` < '2025-03-04 19: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-04 19:01:18] Production.INFO: count ==3074 [2025-03-04 19:01:19] Production.ERROR: pbx CDR StartTime 2025-03-04 16:01:05 - End Time 2025-03-04 19:01:05 [2025-03-04 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607800', 'tblTempUsageDetail_20' ) start [2025-03-04 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607800', 'tblTempUsageDetail_20' ) end [2025-03-04 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607800', 'tblTempVendorCDR_20' ) start [2025-03-04 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607800', 'tblTempVendorCDR_20' ) end [2025-03-04 19:01:19] Production.INFO: ProcessCDR(1,14607800,1,1,2) [2025-03-04 19:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607800', 'tblTempUsageDetail_20' ) start [2025-03-04 19:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607800', 'tblTempUsageDetail_20' ) end [2025-03-04 19:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:01:22] Production.INFO: ==11097== Releasing lock... [2025-03-04 19:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:01:22] Production.INFO: 51 MB #Memory Used# [2025-03-04 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:02:05 [end_date_ymd] => 2025-03-04 19:02:05 [RateCDR] => 1 ) [2025-03-04 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-04 16:02:05' and `end` < '2025-03-04 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-04 19:02:17] Production.INFO: count ==3063 [2025-03-04 19:02:18] Production.ERROR: pbx CDR StartTime 2025-03-04 16:02:05 - End Time 2025-03-04 19:02:05 [2025-03-04 19:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607805', 'tblTempUsageDetail_20' ) start [2025-03-04 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607805', 'tblTempUsageDetail_20' ) end [2025-03-04 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607805', 'tblTempVendorCDR_20' ) start [2025-03-04 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607805', 'tblTempVendorCDR_20' ) end [2025-03-04 19:02:19] Production.INFO: ProcessCDR(1,14607805,1,1,2) [2025-03-04 19:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607805', 'tblTempUsageDetail_20' ) start [2025-03-04 19:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607805', 'tblTempUsageDetail_20' ) end [2025-03-04 19:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:02:22] Production.INFO: ==11172== Releasing lock... [2025-03-04 19:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:02:22] Production.INFO: 50.75 MB #Memory Used# [2025-03-04 19:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:03:06 [end_date_ymd] => 2025-03-04 19:03:06 [RateCDR] => 1 ) [2025-03-04 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-04 16:03:06' and `end` < '2025-03-04 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-04 19:03:18] Production.INFO: count ==3054 [2025-03-04 19:03:19] Production.ERROR: pbx CDR StartTime 2025-03-04 16:03:06 - End Time 2025-03-04 19:03:06 [2025-03-04 19:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607810', 'tblTempUsageDetail_20' ) start [2025-03-04 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607810', 'tblTempUsageDetail_20' ) end [2025-03-04 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607810', 'tblTempVendorCDR_20' ) start [2025-03-04 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607810', 'tblTempVendorCDR_20' ) end [2025-03-04 19:03:19] Production.INFO: ProcessCDR(1,14607810,1,1,2) [2025-03-04 19:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607810', 'tblTempUsageDetail_20' ) start [2025-03-04 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607810', 'tblTempUsageDetail_20' ) end [2025-03-04 19:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:03:25] Production.INFO: ==11251== Releasing lock... [2025-03-04 19:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:03:25] Production.INFO: 50.75 MB #Memory Used# [2025-03-04 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:04:05 [end_date_ymd] => 2025-03-04 19:04:05 [RateCDR] => 1 ) [2025-03-04 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-04 16:04:05' and `end` < '2025-03-04 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-04 19:04:18] Production.INFO: count ==3025 [2025-03-04 19:04:19] Production.ERROR: pbx CDR StartTime 2025-03-04 16:04:05 - End Time 2025-03-04 19:04:05 [2025-03-04 19:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607815', 'tblTempUsageDetail_20' ) start [2025-03-04 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607815', 'tblTempUsageDetail_20' ) end [2025-03-04 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607815', 'tblTempVendorCDR_20' ) start [2025-03-04 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607815', 'tblTempVendorCDR_20' ) end [2025-03-04 19:04:19] Production.INFO: ProcessCDR(1,14607815,1,1,2) [2025-03-04 19:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607815', 'tblTempUsageDetail_20' ) start [2025-03-04 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607815', 'tblTempUsageDetail_20' ) end [2025-03-04 19:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:04:24] Production.INFO: ==11335== Releasing lock... [2025-03-04 19:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:04:24] Production.INFO: 51 MB #Memory Used# [2025-03-04 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:05:05 [end_date_ymd] => 2025-03-04 19:05:05 [RateCDR] => 1 ) [2025-03-04 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-04 16:05:05' and `end` < '2025-03-04 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-04 19:05:18] Production.INFO: count ==3003 [2025-03-04 19:05:19] Production.ERROR: pbx CDR StartTime 2025-03-04 16:05:05 - End Time 2025-03-04 19:05:05 [2025-03-04 19:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607820', 'tblTempUsageDetail_20' ) start [2025-03-04 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607820', 'tblTempUsageDetail_20' ) end [2025-03-04 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607820', 'tblTempVendorCDR_20' ) start [2025-03-04 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607820', 'tblTempVendorCDR_20' ) end [2025-03-04 19:05:19] Production.INFO: ProcessCDR(1,14607820,1,1,2) [2025-03-04 19:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607820', 'tblTempUsageDetail_20' ) start [2025-03-04 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607820', 'tblTempUsageDetail_20' ) end [2025-03-04 19:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:05:22] Production.INFO: ==11488== Releasing lock... [2025-03-04 19:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:05:22] Production.INFO: 50.5 MB #Memory Used# [2025-03-04 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:06:05 [end_date_ymd] => 2025-03-04 19:06:05 [RateCDR] => 1 ) [2025-03-04 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-04 16:06:05' and `end` < '2025-03-04 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-04 19:06:17] Production.INFO: count ==3003 [2025-03-04 19:06:18] Production.ERROR: pbx CDR StartTime 2025-03-04 16:06:05 - End Time 2025-03-04 19:06:05 [2025-03-04 19:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607825', 'tblTempUsageDetail_20' ) start [2025-03-04 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607825', 'tblTempUsageDetail_20' ) end [2025-03-04 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607825', 'tblTempVendorCDR_20' ) start [2025-03-04 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607825', 'tblTempVendorCDR_20' ) end [2025-03-04 19:06:18] Production.INFO: ProcessCDR(1,14607825,1,1,2) [2025-03-04 19:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607825', 'tblTempUsageDetail_20' ) start [2025-03-04 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607825', 'tblTempUsageDetail_20' ) end [2025-03-04 19:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:06:23] Production.INFO: ==11563== Releasing lock... [2025-03-04 19:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:06:23] Production.INFO: 50.5 MB #Memory Used# [2025-03-04 19:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:07:06 [end_date_ymd] => 2025-03-04 19:07:06 [RateCDR] => 1 ) [2025-03-04 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-04 16:07:06' and `end` < '2025-03-04 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-04 19:07:18] Production.INFO: count ==2990 [2025-03-04 19:07:19] Production.ERROR: pbx CDR StartTime 2025-03-04 16:07:06 - End Time 2025-03-04 19:07:06 [2025-03-04 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607830', 'tblTempUsageDetail_20' ) start [2025-03-04 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607830', 'tblTempUsageDetail_20' ) end [2025-03-04 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607830', 'tblTempVendorCDR_20' ) start [2025-03-04 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607830', 'tblTempVendorCDR_20' ) end [2025-03-04 19:07:19] Production.INFO: ProcessCDR(1,14607830,1,1,2) [2025-03-04 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607830', 'tblTempUsageDetail_20' ) start [2025-03-04 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607830', 'tblTempUsageDetail_20' ) end [2025-03-04 19:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:07:24] Production.INFO: ==11633== Releasing lock... [2025-03-04 19:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:07:24] Production.INFO: 50.5 MB #Memory Used# [2025-03-04 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:08:05 [end_date_ymd] => 2025-03-04 19:08:05 [RateCDR] => 1 ) [2025-03-04 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-04 16:08:05' and `end` < '2025-03-04 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-04 19:08:17] Production.INFO: count ==2979 [2025-03-04 19:08:19] Production.ERROR: pbx CDR StartTime 2025-03-04 16:08:05 - End Time 2025-03-04 19:08:05 [2025-03-04 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607835', 'tblTempUsageDetail_20' ) start [2025-03-04 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607835', 'tblTempUsageDetail_20' ) end [2025-03-04 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607835', 'tblTempVendorCDR_20' ) start [2025-03-04 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607835', 'tblTempVendorCDR_20' ) end [2025-03-04 19:08:19] Production.INFO: ProcessCDR(1,14607835,1,1,2) [2025-03-04 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607835', 'tblTempUsageDetail_20' ) start [2025-03-04 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607835', 'tblTempUsageDetail_20' ) end [2025-03-04 19:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:08:24] Production.INFO: ==11820== Releasing lock... [2025-03-04 19:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:08:24] Production.INFO: 50.75 MB #Memory Used# [2025-03-04 19:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:09:06 [end_date_ymd] => 2025-03-04 19:09:06 [RateCDR] => 1 ) [2025-03-04 19: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 16:09:06' and `end` < '2025-03-04 19: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-04 19:09:18] Production.INFO: count ==2972 [2025-03-04 19:09:19] Production.ERROR: pbx CDR StartTime 2025-03-04 16:09:06 - End Time 2025-03-04 19:09:06 [2025-03-04 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607840', 'tblTempUsageDetail_20' ) start [2025-03-04 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607840', 'tblTempUsageDetail_20' ) end [2025-03-04 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607840', 'tblTempVendorCDR_20' ) start [2025-03-04 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607840', 'tblTempVendorCDR_20' ) end [2025-03-04 19:09:19] Production.INFO: ProcessCDR(1,14607840,1,1,2) [2025-03-04 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607840', 'tblTempUsageDetail_20' ) start [2025-03-04 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607840', 'tblTempUsageDetail_20' ) end [2025-03-04 19:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:09:23] Production.INFO: ==11930== Releasing lock... [2025-03-04 19:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:09:23] Production.INFO: 50 MB #Memory Used# [2025-03-04 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:10:06 [end_date_ymd] => 2025-03-04 19:10:06 [RateCDR] => 1 ) [2025-03-04 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-04 16:10:06' and `end` < '2025-03-04 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-04 19:10:19] Production.INFO: count ==2957 [2025-03-04 19:10:20] Production.ERROR: pbx CDR StartTime 2025-03-04 16:10:06 - End Time 2025-03-04 19:10:06 [2025-03-04 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607846', 'tblTempUsageDetail_20' ) start [2025-03-04 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607846', 'tblTempUsageDetail_20' ) end [2025-03-04 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607846', 'tblTempVendorCDR_20' ) start [2025-03-04 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607846', 'tblTempVendorCDR_20' ) end [2025-03-04 19:10:20] Production.INFO: ProcessCDR(1,14607846,1,1,2) [2025-03-04 19:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607846', 'tblTempUsageDetail_20' ) start [2025-03-04 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607846', 'tblTempUsageDetail_20' ) end [2025-03-04 19:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:10:23] Production.INFO: ==12006== Releasing lock... [2025-03-04 19:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:10:23] Production.INFO: 50 MB #Memory Used# [2025-03-04 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:11:05 [end_date_ymd] => 2025-03-04 19:11:05 [RateCDR] => 1 ) [2025-03-04 19:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 16:11:05' and `end` < '2025-03-04 19:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 19:11:18] Production.INFO: count ==2872 [2025-03-04 19:11:18] Production.ERROR: pbx CDR StartTime 2025-03-04 16:11:05 - End Time 2025-03-04 19:11:05 [2025-03-04 19:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607851', 'tblTempUsageDetail_20' ) start [2025-03-04 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607851', 'tblTempUsageDetail_20' ) end [2025-03-04 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607851', 'tblTempVendorCDR_20' ) start [2025-03-04 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607851', 'tblTempVendorCDR_20' ) end [2025-03-04 19:11:19] Production.INFO: ProcessCDR(1,14607851,1,1,2) [2025-03-04 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607851', 'tblTempUsageDetail_20' ) start [2025-03-04 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607851', 'tblTempUsageDetail_20' ) end [2025-03-04 19:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:11:22] Production.INFO: ==12078== Releasing lock... [2025-03-04 19:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:11:22] Production.INFO: 49.5 MB #Memory Used# [2025-03-04 19:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:12:06 [end_date_ymd] => 2025-03-04 19:12:06 [RateCDR] => 1 ) [2025-03-04 19: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-04 16:12:06' and `end` < '2025-03-04 19: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-04 19:12:18] Production.INFO: count ==2841 [2025-03-04 19:12:19] Production.ERROR: pbx CDR StartTime 2025-03-04 16:12:06 - End Time 2025-03-04 19:12:06 [2025-03-04 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607856', 'tblTempUsageDetail_20' ) start [2025-03-04 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607856', 'tblTempUsageDetail_20' ) end [2025-03-04 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607856', 'tblTempVendorCDR_20' ) start [2025-03-04 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607856', 'tblTempVendorCDR_20' ) end [2025-03-04 19:12:19] Production.INFO: ProcessCDR(1,14607856,1,1,2) [2025-03-04 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607856', 'tblTempUsageDetail_20' ) start [2025-03-04 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607856', 'tblTempUsageDetail_20' ) end [2025-03-04 19:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:12:24] Production.INFO: ==12228== Releasing lock... [2025-03-04 19:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:12:24] Production.INFO: 49.5 MB #Memory Used# [2025-03-04 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:13:05 [end_date_ymd] => 2025-03-04 19:13:05 [RateCDR] => 1 ) [2025-03-04 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-04 16:13:05' and `end` < '2025-03-04 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-04 19:13:17] Production.INFO: count ==2823 [2025-03-04 19:13:18] Production.ERROR: pbx CDR StartTime 2025-03-04 16:13:05 - End Time 2025-03-04 19:13:05 [2025-03-04 19:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607861', 'tblTempUsageDetail_20' ) start [2025-03-04 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607861', 'tblTempUsageDetail_20' ) end [2025-03-04 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607861', 'tblTempVendorCDR_20' ) start [2025-03-04 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607861', 'tblTempVendorCDR_20' ) end [2025-03-04 19:13:18] Production.INFO: ProcessCDR(1,14607861,1,1,2) [2025-03-04 19:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607861', 'tblTempUsageDetail_20' ) start [2025-03-04 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607861', 'tblTempUsageDetail_20' ) end [2025-03-04 19:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:13:22] Production.INFO: ==12302== Releasing lock... [2025-03-04 19:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:13:22] Production.INFO: 49.25 MB #Memory Used# [2025-03-04 19:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:14:06 [end_date_ymd] => 2025-03-04 19:14:06 [RateCDR] => 1 ) [2025-03-04 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-04 16:14:06' and `end` < '2025-03-04 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-04 19:14:18] Production.INFO: count ==2765 [2025-03-04 19:14:19] Production.ERROR: pbx CDR StartTime 2025-03-04 16:14:06 - End Time 2025-03-04 19:14:06 [2025-03-04 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607866', 'tblTempUsageDetail_20' ) start [2025-03-04 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607866', 'tblTempUsageDetail_20' ) end [2025-03-04 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607866', 'tblTempVendorCDR_20' ) start [2025-03-04 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607866', 'tblTempVendorCDR_20' ) end [2025-03-04 19:14:19] Production.INFO: ProcessCDR(1,14607866,1,1,2) [2025-03-04 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607866', 'tblTempUsageDetail_20' ) start [2025-03-04 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607866', 'tblTempUsageDetail_20' ) end [2025-03-04 19:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:14:22] Production.INFO: ==12375== Releasing lock... [2025-03-04 19:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:14:22] Production.INFO: 48.75 MB #Memory Used# [2025-03-04 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:15:05 [end_date_ymd] => 2025-03-04 19:15:05 [RateCDR] => 1 ) [2025-03-04 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-04 16:15:05' and `end` < '2025-03-04 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-04 19:15:18] Production.INFO: count ==2751 [2025-03-04 19:15:19] Production.ERROR: pbx CDR StartTime 2025-03-04 16:15:05 - End Time 2025-03-04 19:15:05 [2025-03-04 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607871', 'tblTempUsageDetail_20' ) start [2025-03-04 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607871', 'tblTempUsageDetail_20' ) end [2025-03-04 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607871', 'tblTempVendorCDR_20' ) start [2025-03-04 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607871', 'tblTempVendorCDR_20' ) end [2025-03-04 19:15:19] Production.INFO: ProcessCDR(1,14607871,1,1,2) [2025-03-04 19:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607871', 'tblTempUsageDetail_20' ) start [2025-03-04 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607871', 'tblTempUsageDetail_20' ) end [2025-03-04 19:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:15:22] Production.INFO: ==12526== Releasing lock... [2025-03-04 19:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:15:22] Production.INFO: 48.75 MB #Memory Used# [2025-03-04 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:16:05 [end_date_ymd] => 2025-03-04 19:16:05 [RateCDR] => 1 ) [2025-03-04 19: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 16:16:05' and `end` < '2025-03-04 19: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-04 19:16:18] Production.INFO: count ==2749 [2025-03-04 19:16:19] Production.ERROR: pbx CDR StartTime 2025-03-04 16:16:05 - End Time 2025-03-04 19:16:05 [2025-03-04 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607876', 'tblTempUsageDetail_20' ) start [2025-03-04 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607876', 'tblTempUsageDetail_20' ) end [2025-03-04 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607876', 'tblTempVendorCDR_20' ) start [2025-03-04 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607876', 'tblTempVendorCDR_20' ) end [2025-03-04 19:16:19] Production.INFO: ProcessCDR(1,14607876,1,1,2) [2025-03-04 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607876', 'tblTempUsageDetail_20' ) start [2025-03-04 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607876', 'tblTempUsageDetail_20' ) end [2025-03-04 19:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:16:23] Production.INFO: ==12595== Releasing lock... [2025-03-04 19:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:16:23] Production.INFO: 48.75 MB #Memory Used# [2025-03-04 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:17:05 [end_date_ymd] => 2025-03-04 19:17:05 [RateCDR] => 1 ) [2025-03-04 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-04 16:17:05' and `end` < '2025-03-04 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-04 19:17:17] Production.INFO: count ==2738 [2025-03-04 19:17:18] Production.ERROR: pbx CDR StartTime 2025-03-04 16:17:05 - End Time 2025-03-04 19:17:05 [2025-03-04 19:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607881', 'tblTempUsageDetail_20' ) start [2025-03-04 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607881', 'tblTempUsageDetail_20' ) end [2025-03-04 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607881', 'tblTempVendorCDR_20' ) start [2025-03-04 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607881', 'tblTempVendorCDR_20' ) end [2025-03-04 19:17:18] Production.INFO: ProcessCDR(1,14607881,1,1,2) [2025-03-04 19:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607881', 'tblTempUsageDetail_20' ) start [2025-03-04 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607881', 'tblTempUsageDetail_20' ) end [2025-03-04 19:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:17:23] Production.INFO: ==12672== Releasing lock... [2025-03-04 19:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:17:23] Production.INFO: 49 MB #Memory Used# [2025-03-04 19:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:18:06 [end_date_ymd] => 2025-03-04 19:18:06 [RateCDR] => 1 ) [2025-03-04 19: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 16:18:06' and `end` < '2025-03-04 19: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-04 19:18:18] Production.INFO: count ==2734 [2025-03-04 19:18:19] Production.ERROR: pbx CDR StartTime 2025-03-04 16:18:06 - End Time 2025-03-04 19:18:06 [2025-03-04 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607886', 'tblTempUsageDetail_20' ) start [2025-03-04 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607886', 'tblTempUsageDetail_20' ) end [2025-03-04 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607886', 'tblTempVendorCDR_20' ) start [2025-03-04 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607886', 'tblTempVendorCDR_20' ) end [2025-03-04 19:18:19] Production.INFO: ProcessCDR(1,14607886,1,1,2) [2025-03-04 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607886', 'tblTempUsageDetail_20' ) start [2025-03-04 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607886', 'tblTempUsageDetail_20' ) end [2025-03-04 19:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:18:22] Production.INFO: ==12743== Releasing lock... [2025-03-04 19:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:18:22] Production.INFO: 48.5 MB #Memory Used# [2025-03-04 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:19:05 [end_date_ymd] => 2025-03-04 19:19:05 [RateCDR] => 1 ) [2025-03-04 19:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 16:19:05' and `end` < '2025-03-04 19:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 19:19:17] Production.INFO: count ==2708 [2025-03-04 19:19:18] Production.ERROR: pbx CDR StartTime 2025-03-04 16:19:05 - End Time 2025-03-04 19:19:05 [2025-03-04 19:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607891', 'tblTempUsageDetail_20' ) start [2025-03-04 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607891', 'tblTempUsageDetail_20' ) end [2025-03-04 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607891', 'tblTempVendorCDR_20' ) start [2025-03-04 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607891', 'tblTempVendorCDR_20' ) end [2025-03-04 19:19:18] Production.INFO: ProcessCDR(1,14607891,1,1,2) [2025-03-04 19:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607891', 'tblTempUsageDetail_20' ) start [2025-03-04 19:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607891', 'tblTempUsageDetail_20' ) end [2025-03-04 19:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:19:21] Production.INFO: ==12816== Releasing lock... [2025-03-04 19:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:19:21] Production.INFO: 48.5 MB #Memory Used# [2025-03-04 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:20:06 [end_date_ymd] => 2025-03-04 19:20:06 [RateCDR] => 1 ) [2025-03-04 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-04 16:20:06' and `end` < '2025-03-04 19:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 19:20:18] Production.INFO: count ==2690 [2025-03-04 19:20:19] Production.ERROR: pbx CDR StartTime 2025-03-04 16:20:06 - End Time 2025-03-04 19:20:06 [2025-03-04 19:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607896', 'tblTempUsageDetail_20' ) start [2025-03-04 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607896', 'tblTempUsageDetail_20' ) end [2025-03-04 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607896', 'tblTempVendorCDR_20' ) start [2025-03-04 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607896', 'tblTempVendorCDR_20' ) end [2025-03-04 19:20:19] Production.INFO: ProcessCDR(1,14607896,1,1,2) [2025-03-04 19:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607896', 'tblTempUsageDetail_20' ) start [2025-03-04 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607896', 'tblTempUsageDetail_20' ) end [2025-03-04 19:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:20:22] Production.INFO: ==12895== Releasing lock... [2025-03-04 19:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:20:22] Production.INFO: 48.25 MB #Memory Used# [2025-03-04 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:21:05 [end_date_ymd] => 2025-03-04 19:21:05 [RateCDR] => 1 ) [2025-03-04 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-04 16:21:05' and `end` < '2025-03-04 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-04 19:21:17] Production.INFO: count ==2619 [2025-03-04 19:21:18] Production.ERROR: pbx CDR StartTime 2025-03-04 16:21:05 - End Time 2025-03-04 19:21:05 [2025-03-04 19:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607902', 'tblTempUsageDetail_20' ) start [2025-03-04 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607902', 'tblTempUsageDetail_20' ) end [2025-03-04 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607902', 'tblTempVendorCDR_20' ) start [2025-03-04 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607902', 'tblTempVendorCDR_20' ) end [2025-03-04 19:21:18] Production.INFO: ProcessCDR(1,14607902,1,1,2) [2025-03-04 19:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607902', 'tblTempUsageDetail_20' ) start [2025-03-04 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607902', 'tblTempUsageDetail_20' ) end [2025-03-04 19:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:21:23] Production.INFO: ==12966== Releasing lock... [2025-03-04 19:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:21:23] Production.INFO: 47.75 MB #Memory Used# [2025-03-04 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:22:05 [end_date_ymd] => 2025-03-04 19:22:05 [RateCDR] => 1 ) [2025-03-04 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-04 16:22:05' and `end` < '2025-03-04 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-04 19:22:18] Production.INFO: count ==2614 [2025-03-04 19:22:19] Production.ERROR: pbx CDR StartTime 2025-03-04 16:22:05 - End Time 2025-03-04 19:22:05 [2025-03-04 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607907', 'tblTempUsageDetail_20' ) start [2025-03-04 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607907', 'tblTempUsageDetail_20' ) end [2025-03-04 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607907', 'tblTempVendorCDR_20' ) start [2025-03-04 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607907', 'tblTempVendorCDR_20' ) end [2025-03-04 19:22:19] Production.INFO: ProcessCDR(1,14607907,1,1,2) [2025-03-04 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607907', 'tblTempUsageDetail_20' ) start [2025-03-04 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607907', 'tblTempUsageDetail_20' ) end [2025-03-04 19:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:22:24] Production.INFO: ==13035== Releasing lock... [2025-03-04 19:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:22:24] Production.INFO: 47.75 MB #Memory Used# [2025-03-04 19:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:23:06 [end_date_ymd] => 2025-03-04 19:23:06 [RateCDR] => 1 ) [2025-03-04 19: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-04 16:23:06' and `end` < '2025-03-04 19: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-04 19:23:19] Production.INFO: count ==2583 [2025-03-04 19:23:19] Production.ERROR: pbx CDR StartTime 2025-03-04 16:23:06 - End Time 2025-03-04 19:23:06 [2025-03-04 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607912', 'tblTempUsageDetail_20' ) start [2025-03-04 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607912', 'tblTempUsageDetail_20' ) end [2025-03-04 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607912', 'tblTempVendorCDR_20' ) start [2025-03-04 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607912', 'tblTempVendorCDR_20' ) end [2025-03-04 19:23:20] Production.INFO: ProcessCDR(1,14607912,1,1,2) [2025-03-04 19:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607912', 'tblTempUsageDetail_20' ) start [2025-03-04 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607912', 'tblTempUsageDetail_20' ) end [2025-03-04 19:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:23:23] Production.INFO: ==13147== Releasing lock... [2025-03-04 19:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:23:23] Production.INFO: 47.5 MB #Memory Used# [2025-03-04 19:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:24:06 [end_date_ymd] => 2025-03-04 19:24:06 [RateCDR] => 1 ) [2025-03-04 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-04 16:24:06' and `end` < '2025-03-04 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-04 19:24:18] Production.INFO: count ==2576 [2025-03-04 19:24:19] Production.ERROR: pbx CDR StartTime 2025-03-04 16:24:06 - End Time 2025-03-04 19:24:06 [2025-03-04 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607917', 'tblTempUsageDetail_20' ) start [2025-03-04 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607917', 'tblTempUsageDetail_20' ) end [2025-03-04 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607917', 'tblTempVendorCDR_20' ) start [2025-03-04 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607917', 'tblTempVendorCDR_20' ) end [2025-03-04 19:24:19] Production.INFO: ProcessCDR(1,14607917,1,1,2) [2025-03-04 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607917', 'tblTempUsageDetail_20' ) start [2025-03-04 19:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607917', 'tblTempUsageDetail_20' ) end [2025-03-04 19:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:24:22] Production.INFO: ==13219== Releasing lock... [2025-03-04 19:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:24:22] Production.INFO: 47.5 MB #Memory Used# [2025-03-04 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:25:05 [end_date_ymd] => 2025-03-04 19:25:05 [RateCDR] => 1 ) [2025-03-04 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-04 16:25:05' and `end` < '2025-03-04 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-04 19:25:17] Production.INFO: count ==2564 [2025-03-04 19:25:18] Production.ERROR: pbx CDR StartTime 2025-03-04 16:25:05 - End Time 2025-03-04 19:25:05 [2025-03-04 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607922', 'tblTempUsageDetail_20' ) start [2025-03-04 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607922', 'tblTempUsageDetail_20' ) end [2025-03-04 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607922', 'tblTempVendorCDR_20' ) start [2025-03-04 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607922', 'tblTempVendorCDR_20' ) end [2025-03-04 19:25:18] Production.INFO: ProcessCDR(1,14607922,1,1,2) [2025-03-04 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607922', 'tblTempUsageDetail_20' ) start [2025-03-04 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607922', 'tblTempUsageDetail_20' ) end [2025-03-04 19:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:25:23] Production.INFO: ==13291== Releasing lock... [2025-03-04 19:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:25:23] Production.INFO: 47.25 MB #Memory Used# [2025-03-04 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:26:05 [end_date_ymd] => 2025-03-04 19:26:05 [RateCDR] => 1 ) [2025-03-04 19:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 16:26:05' and `end` < '2025-03-04 19:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 19:26:18] Production.INFO: count ==2563 [2025-03-04 19:26:18] Production.ERROR: pbx CDR StartTime 2025-03-04 16:26:05 - End Time 2025-03-04 19:26:05 [2025-03-04 19:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607927', 'tblTempUsageDetail_20' ) start [2025-03-04 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607927', 'tblTempUsageDetail_20' ) end [2025-03-04 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607927', 'tblTempVendorCDR_20' ) start [2025-03-04 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607927', 'tblTempVendorCDR_20' ) end [2025-03-04 19:26:19] Production.INFO: ProcessCDR(1,14607927,1,1,2) [2025-03-04 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607927', 'tblTempUsageDetail_20' ) start [2025-03-04 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607927', 'tblTempUsageDetail_20' ) end [2025-03-04 19:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:26:23] Production.INFO: ==13369== Releasing lock... [2025-03-04 19:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:26:23] Production.INFO: 47.25 MB #Memory Used# [2025-03-04 19:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:27:06 [end_date_ymd] => 2025-03-04 19:27:06 [RateCDR] => 1 ) [2025-03-04 19: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 16:27:06' and `end` < '2025-03-04 19: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-04 19:27:18] Production.INFO: count ==2547 [2025-03-04 19:27:19] Production.ERROR: pbx CDR StartTime 2025-03-04 16:27:06 - End Time 2025-03-04 19:27:06 [2025-03-04 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607932', 'tblTempUsageDetail_20' ) start [2025-03-04 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607932', 'tblTempUsageDetail_20' ) end [2025-03-04 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607932', 'tblTempVendorCDR_20' ) start [2025-03-04 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607932', 'tblTempVendorCDR_20' ) end [2025-03-04 19:27:19] Production.INFO: ProcessCDR(1,14607932,1,1,2) [2025-03-04 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607932', 'tblTempUsageDetail_20' ) start [2025-03-04 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607932', 'tblTempUsageDetail_20' ) end [2025-03-04 19:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:27:24] Production.INFO: ==13440== Releasing lock... [2025-03-04 19:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:27:24] Production.INFO: 47.25 MB #Memory Used# [2025-03-04 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:28:05 [end_date_ymd] => 2025-03-04 19:28:05 [RateCDR] => 1 ) [2025-03-04 19: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 16:28:05' and `end` < '2025-03-04 19: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-04 19:28:17] Production.INFO: count ==2594 [2025-03-04 19:28:18] Production.ERROR: pbx CDR StartTime 2025-03-04 16:28:05 - End Time 2025-03-04 19:28:05 [2025-03-04 19:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607937', 'tblTempUsageDetail_20' ) start [2025-03-04 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607937', 'tblTempUsageDetail_20' ) end [2025-03-04 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607937', 'tblTempVendorCDR_20' ) start [2025-03-04 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607937', 'tblTempVendorCDR_20' ) end [2025-03-04 19:28:18] Production.INFO: ProcessCDR(1,14607937,1,1,2) [2025-03-04 19:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607937', 'tblTempUsageDetail_20' ) start [2025-03-04 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607937', 'tblTempUsageDetail_20' ) end [2025-03-04 19:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:28:23] Production.INFO: ==13512== Releasing lock... [2025-03-04 19:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:28:23] Production.INFO: 47.5 MB #Memory Used# [2025-03-04 19:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:29:06 [end_date_ymd] => 2025-03-04 19:29:06 [RateCDR] => 1 ) [2025-03-04 19: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-04 16:29:06' and `end` < '2025-03-04 19: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-04 19:29:18] Production.INFO: count ==2576 [2025-03-04 19:29:19] Production.ERROR: pbx CDR StartTime 2025-03-04 16:29:06 - End Time 2025-03-04 19:29:06 [2025-03-04 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607942', 'tblTempUsageDetail_20' ) start [2025-03-04 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607942', 'tblTempUsageDetail_20' ) end [2025-03-04 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607942', 'tblTempVendorCDR_20' ) start [2025-03-04 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607942', 'tblTempVendorCDR_20' ) end [2025-03-04 19:29:19] Production.INFO: ProcessCDR(1,14607942,1,1,2) [2025-03-04 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607942', 'tblTempUsageDetail_20' ) start [2025-03-04 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607942', 'tblTempUsageDetail_20' ) end [2025-03-04 19:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:29:22] Production.INFO: ==13584== Releasing lock... [2025-03-04 19:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:29:22] Production.INFO: 47.5 MB #Memory Used# [2025-03-04 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:30:06 [end_date_ymd] => 2025-03-04 19:30:06 [RateCDR] => 1 ) [2025-03-04 19: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 16:30:06' and `end` < '2025-03-04 19: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-04 19:30:18] Production.INFO: count ==2566 [2025-03-04 19:30:19] Production.ERROR: pbx CDR StartTime 2025-03-04 16:30:06 - End Time 2025-03-04 19:30:06 [2025-03-04 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607948', 'tblTempUsageDetail_20' ) start [2025-03-04 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607948', 'tblTempUsageDetail_20' ) end [2025-03-04 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607948', 'tblTempVendorCDR_20' ) start [2025-03-04 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607948', 'tblTempVendorCDR_20' ) end [2025-03-04 19:30:19] Production.INFO: ProcessCDR(1,14607948,1,1,2) [2025-03-04 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607948', 'tblTempUsageDetail_20' ) start [2025-03-04 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607948', 'tblTempUsageDetail_20' ) end [2025-03-04 19:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:30:24] Production.INFO: ==13658== Releasing lock... [2025-03-04 19:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:30:24] Production.INFO: 47.25 MB #Memory Used# [2025-03-04 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:31:05 [end_date_ymd] => 2025-03-04 19:31:05 [RateCDR] => 1 ) [2025-03-04 19:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 16:31:05' and `end` < '2025-03-04 19:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 19:31:18] Production.INFO: count ==2507 [2025-03-04 19:31:18] Production.ERROR: pbx CDR StartTime 2025-03-04 16:31:05 - End Time 2025-03-04 19:31:05 [2025-03-04 19:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607953', 'tblTempUsageDetail_20' ) start [2025-03-04 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607953', 'tblTempUsageDetail_20' ) end [2025-03-04 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607953', 'tblTempVendorCDR_20' ) start [2025-03-04 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607953', 'tblTempVendorCDR_20' ) end [2025-03-04 19:31:18] Production.INFO: ProcessCDR(1,14607953,1,1,2) [2025-03-04 19:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607953', 'tblTempUsageDetail_20' ) start [2025-03-04 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607953', 'tblTempUsageDetail_20' ) end [2025-03-04 19:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:31:22] Production.INFO: ==13741== Releasing lock... [2025-03-04 19:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:31:22] Production.INFO: 47.25 MB #Memory Used# [2025-03-04 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:32:05 [end_date_ymd] => 2025-03-04 19:32:05 [RateCDR] => 1 ) [2025-03-04 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 16:32:05' and `end` < '2025-03-04 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 19:32:17] Production.INFO: count ==2500 [2025-03-04 19:32:18] Production.ERROR: pbx CDR StartTime 2025-03-04 16:32:05 - End Time 2025-03-04 19:32:05 [2025-03-04 19:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607958', 'tblTempUsageDetail_20' ) start [2025-03-04 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607958', 'tblTempUsageDetail_20' ) end [2025-03-04 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607958', 'tblTempVendorCDR_20' ) start [2025-03-04 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607958', 'tblTempVendorCDR_20' ) end [2025-03-04 19:32:18] Production.INFO: ProcessCDR(1,14607958,1,1,2) [2025-03-04 19:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607958', 'tblTempUsageDetail_20' ) start [2025-03-04 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607958', 'tblTempUsageDetail_20' ) end [2025-03-04 19:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:32:23] Production.INFO: ==13828== Releasing lock... [2025-03-04 19:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:32:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-04 19:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:33:06 [end_date_ymd] => 2025-03-04 19:33:06 [RateCDR] => 1 ) [2025-03-04 19: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 16:33:06' and `end` < '2025-03-04 19: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-04 19:33:18] Production.INFO: count ==2487 [2025-03-04 19:33:19] Production.ERROR: pbx CDR StartTime 2025-03-04 16:33:06 - End Time 2025-03-04 19:33:06 [2025-03-04 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607963', 'tblTempUsageDetail_20' ) start [2025-03-04 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607963', 'tblTempUsageDetail_20' ) end [2025-03-04 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607963', 'tblTempVendorCDR_20' ) start [2025-03-04 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607963', 'tblTempVendorCDR_20' ) end [2025-03-04 19:33:19] Production.INFO: ProcessCDR(1,14607963,1,1,2) [2025-03-04 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607963', 'tblTempUsageDetail_20' ) start [2025-03-04 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607963', 'tblTempUsageDetail_20' ) end [2025-03-04 19:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:33:22] Production.INFO: ==13911== Releasing lock... [2025-03-04 19:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:33:22] Production.INFO: 47 MB #Memory Used# [2025-03-04 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:34:05 [end_date_ymd] => 2025-03-04 19:34:05 [RateCDR] => 1 ) [2025-03-04 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-04 16:34:05' and `end` < '2025-03-04 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-04 19:34:17] Production.INFO: count ==2473 [2025-03-04 19:34:18] Production.ERROR: pbx CDR StartTime 2025-03-04 16:34:05 - End Time 2025-03-04 19:34:05 [2025-03-04 19:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607968', 'tblTempUsageDetail_20' ) start [2025-03-04 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607968', 'tblTempUsageDetail_20' ) end [2025-03-04 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607968', 'tblTempVendorCDR_20' ) start [2025-03-04 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607968', 'tblTempVendorCDR_20' ) end [2025-03-04 19:34:18] Production.INFO: ProcessCDR(1,14607968,1,1,2) [2025-03-04 19:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607968', 'tblTempUsageDetail_20' ) start [2025-03-04 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607968', 'tblTempUsageDetail_20' ) end [2025-03-04 19:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:34:22] Production.INFO: ==13996== Releasing lock... [2025-03-04 19:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:34:22] Production.INFO: 46.75 MB #Memory Used# [2025-03-04 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:35:05 [end_date_ymd] => 2025-03-04 19:35:05 [RateCDR] => 1 ) [2025-03-04 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-04 16:35:05' and `end` < '2025-03-04 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-04 19:35:17] Production.INFO: count ==2470 [2025-03-04 19:35:18] Production.ERROR: pbx CDR StartTime 2025-03-04 16:35:05 - End Time 2025-03-04 19:35:05 [2025-03-04 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607973', 'tblTempUsageDetail_20' ) start [2025-03-04 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607973', 'tblTempUsageDetail_20' ) end [2025-03-04 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607973', 'tblTempVendorCDR_20' ) start [2025-03-04 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607973', 'tblTempVendorCDR_20' ) end [2025-03-04 19:35:18] Production.INFO: ProcessCDR(1,14607973,1,1,2) [2025-03-04 19:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607973', 'tblTempUsageDetail_20' ) start [2025-03-04 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607973', 'tblTempUsageDetail_20' ) end [2025-03-04 19:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:35:23] Production.INFO: ==14078== Releasing lock... [2025-03-04 19:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:35:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-04 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:36:05 [end_date_ymd] => 2025-03-04 19:36:05 [RateCDR] => 1 ) [2025-03-04 19: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 16:36:05' and `end` < '2025-03-04 19: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-04 19:36:17] Production.INFO: count ==2491 [2025-03-04 19:36:18] Production.ERROR: pbx CDR StartTime 2025-03-04 16:36:05 - End Time 2025-03-04 19:36:05 [2025-03-04 19:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607978', 'tblTempUsageDetail_20' ) start [2025-03-04 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607978', 'tblTempUsageDetail_20' ) end [2025-03-04 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607978', 'tblTempVendorCDR_20' ) start [2025-03-04 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607978', 'tblTempVendorCDR_20' ) end [2025-03-04 19:36:18] Production.INFO: ProcessCDR(1,14607978,1,1,2) [2025-03-04 19:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607978', 'tblTempUsageDetail_20' ) start [2025-03-04 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607978', 'tblTempUsageDetail_20' ) end [2025-03-04 19:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:36:23] Production.INFO: ==14160== Releasing lock... [2025-03-04 19:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:36:23] Production.INFO: 47 MB #Memory Used# [2025-03-04 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:37:05 [end_date_ymd] => 2025-03-04 19:37:05 [RateCDR] => 1 ) [2025-03-04 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-04 16:37:05' and `end` < '2025-03-04 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-04 19:37:17] Production.INFO: count ==2483 [2025-03-04 19:37:18] Production.ERROR: pbx CDR StartTime 2025-03-04 16:37:05 - End Time 2025-03-04 19:37:05 [2025-03-04 19:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607983', 'tblTempUsageDetail_20' ) start [2025-03-04 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607983', 'tblTempUsageDetail_20' ) end [2025-03-04 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607983', 'tblTempVendorCDR_20' ) start [2025-03-04 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607983', 'tblTempVendorCDR_20' ) end [2025-03-04 19:37:18] Production.INFO: ProcessCDR(1,14607983,1,1,2) [2025-03-04 19:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607983', 'tblTempUsageDetail_20' ) start [2025-03-04 19:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607983', 'tblTempUsageDetail_20' ) end [2025-03-04 19:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:37:21] Production.INFO: ==14243== Releasing lock... [2025-03-04 19:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:37:21] Production.INFO: 46.75 MB #Memory Used# [2025-03-04 19:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:38:06 [end_date_ymd] => 2025-03-04 19:38:06 [RateCDR] => 1 ) [2025-03-04 19: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 16:38:06' and `end` < '2025-03-04 19: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-04 19:38:18] Production.INFO: count ==2492 [2025-03-04 19:38:19] Production.ERROR: pbx CDR StartTime 2025-03-04 16:38:06 - End Time 2025-03-04 19:38:06 [2025-03-04 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607988', 'tblTempUsageDetail_20' ) start [2025-03-04 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607988', 'tblTempUsageDetail_20' ) end [2025-03-04 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607988', 'tblTempVendorCDR_20' ) start [2025-03-04 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607988', 'tblTempVendorCDR_20' ) end [2025-03-04 19:38:19] Production.INFO: ProcessCDR(1,14607988,1,1,2) [2025-03-04 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607988', 'tblTempUsageDetail_20' ) start [2025-03-04 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607988', 'tblTempUsageDetail_20' ) end [2025-03-04 19:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:38:23] Production.INFO: ==14367== Releasing lock... [2025-03-04 19:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:38:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-04 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:39:05 [end_date_ymd] => 2025-03-04 19:39:05 [RateCDR] => 1 ) [2025-03-04 19:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 16:39:05' and `end` < '2025-03-04 19:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 19:39:17] Production.INFO: count ==2480 [2025-03-04 19:39:18] Production.ERROR: pbx CDR StartTime 2025-03-04 16:39:05 - End Time 2025-03-04 19:39:05 [2025-03-04 19:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607993', 'tblTempUsageDetail_20' ) start [2025-03-04 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607993', 'tblTempUsageDetail_20' ) end [2025-03-04 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607993', 'tblTempVendorCDR_20' ) start [2025-03-04 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607993', 'tblTempVendorCDR_20' ) end [2025-03-04 19:39:18] Production.INFO: ProcessCDR(1,14607993,1,1,2) [2025-03-04 19:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607993', 'tblTempUsageDetail_20' ) start [2025-03-04 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607993', 'tblTempUsageDetail_20' ) end [2025-03-04 19:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:39:23] Production.INFO: ==14455== Releasing lock... [2025-03-04 19:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:39:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-04 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:40:06 [end_date_ymd] => 2025-03-04 19:40:06 [RateCDR] => 1 ) [2025-03-04 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-04 16:40:06' and `end` < '2025-03-04 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-04 19:40:19] Production.INFO: count ==2470 [2025-03-04 19:40:20] Production.ERROR: pbx CDR StartTime 2025-03-04 16:40:06 - End Time 2025-03-04 19:40:06 [2025-03-04 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607999', 'tblTempUsageDetail_20' ) start [2025-03-04 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14607999', 'tblTempUsageDetail_20' ) end [2025-03-04 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607999', 'tblTempVendorCDR_20' ) start [2025-03-04 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14607999', 'tblTempVendorCDR_20' ) end [2025-03-04 19:40:20] Production.INFO: ProcessCDR(1,14607999,1,1,2) [2025-03-04 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14607999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14607999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14607999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14607999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607999', 'tblTempUsageDetail_20' ) start [2025-03-04 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14607999', 'tblTempUsageDetail_20' ) end [2025-03-04 19:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:40:25] Production.INFO: ==14537== Releasing lock... [2025-03-04 19:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:40:25] Production.INFO: 46.5 MB #Memory Used# [2025-03-04 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:41:05 [end_date_ymd] => 2025-03-04 19:41:05 [RateCDR] => 1 ) [2025-03-04 19:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 16:41:05' and `end` < '2025-03-04 19:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 19:41:17] Production.INFO: count ==2397 [2025-03-04 19:41:18] Production.ERROR: pbx CDR StartTime 2025-03-04 16:41:05 - End Time 2025-03-04 19:41:05 [2025-03-04 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608004', 'tblTempUsageDetail_20' ) start [2025-03-04 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608004', 'tblTempUsageDetail_20' ) end [2025-03-04 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608004', 'tblTempVendorCDR_20' ) start [2025-03-04 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608004', 'tblTempVendorCDR_20' ) end [2025-03-04 19:41:18] Production.INFO: ProcessCDR(1,14608004,1,1,2) [2025-03-04 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608004', 'tblTempUsageDetail_20' ) start [2025-03-04 19:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608004', 'tblTempUsageDetail_20' ) end [2025-03-04 19:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:41:21] Production.INFO: ==14610== Releasing lock... [2025-03-04 19:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:41:21] Production.INFO: 46 MB #Memory Used# [2025-03-04 19:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:42:06 [end_date_ymd] => 2025-03-04 19:42:06 [RateCDR] => 1 ) [2025-03-04 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-04 16:42:06' and `end` < '2025-03-04 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-04 19:42:18] Production.INFO: count ==2396 [2025-03-04 19:42:19] Production.ERROR: pbx CDR StartTime 2025-03-04 16:42:06 - End Time 2025-03-04 19:42:06 [2025-03-04 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608009', 'tblTempUsageDetail_20' ) start [2025-03-04 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608009', 'tblTempUsageDetail_20' ) end [2025-03-04 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608009', 'tblTempVendorCDR_20' ) start [2025-03-04 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608009', 'tblTempVendorCDR_20' ) end [2025-03-04 19:42:19] Production.INFO: ProcessCDR(1,14608009,1,1,2) [2025-03-04 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608009', 'tblTempUsageDetail_20' ) start [2025-03-04 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608009', 'tblTempUsageDetail_20' ) end [2025-03-04 19:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:42:22] Production.INFO: ==14683== Releasing lock... [2025-03-04 19:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:42:22] Production.INFO: 46.25 MB #Memory Used# [2025-03-04 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:43:05 [end_date_ymd] => 2025-03-04 19:43:05 [RateCDR] => 1 ) [2025-03-04 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-04 16:43:05' and `end` < '2025-03-04 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-04 19:43:17] Production.INFO: count ==2382 [2025-03-04 19:43:18] Production.ERROR: pbx CDR StartTime 2025-03-04 16:43:05 - End Time 2025-03-04 19:43:05 [2025-03-04 19:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608014', 'tblTempUsageDetail_20' ) start [2025-03-04 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608014', 'tblTempUsageDetail_20' ) end [2025-03-04 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608014', 'tblTempVendorCDR_20' ) start [2025-03-04 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608014', 'tblTempVendorCDR_20' ) end [2025-03-04 19:43:18] Production.INFO: ProcessCDR(1,14608014,1,1,2) [2025-03-04 19:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608014', 'tblTempUsageDetail_20' ) start [2025-03-04 19:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608014', 'tblTempUsageDetail_20' ) end [2025-03-04 19:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:43:21] Production.INFO: ==14753== Releasing lock... [2025-03-04 19:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:43:21] Production.INFO: 46 MB #Memory Used# [2025-03-04 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:44:05 [end_date_ymd] => 2025-03-04 19:44:05 [RateCDR] => 1 ) [2025-03-04 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-04 16:44:05' and `end` < '2025-03-04 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-04 19:44:17] Production.INFO: count ==2373 [2025-03-04 19:44:18] Production.ERROR: pbx CDR StartTime 2025-03-04 16:44:05 - End Time 2025-03-04 19:44:05 [2025-03-04 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608016', 'tblTempUsageDetail_20' ) start [2025-03-04 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608016', 'tblTempUsageDetail_20' ) end [2025-03-04 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608016', 'tblTempVendorCDR_20' ) start [2025-03-04 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608016', 'tblTempVendorCDR_20' ) end [2025-03-04 19:44:18] Production.INFO: ProcessCDR(1,14608016,1,1,2) [2025-03-04 19:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608016', 'tblTempUsageDetail_20' ) start [2025-03-04 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608016', 'tblTempUsageDetail_20' ) end [2025-03-04 19:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:44:22] Production.INFO: ==14827== Releasing lock... [2025-03-04 19:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:44:22] Production.INFO: 45.75 MB #Memory Used# [2025-03-04 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:45:05 [end_date_ymd] => 2025-03-04 19:45:05 [RateCDR] => 1 ) [2025-03-04 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-04 16:45:05' and `end` < '2025-03-04 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-04 19:45:17] Production.INFO: count ==2364 [2025-03-04 19:45:18] Production.ERROR: pbx CDR StartTime 2025-03-04 16:45:05 - End Time 2025-03-04 19:45:05 [2025-03-04 19:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608024', 'tblTempUsageDetail_20' ) start [2025-03-04 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608024', 'tblTempUsageDetail_20' ) end [2025-03-04 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608024', 'tblTempVendorCDR_20' ) start [2025-03-04 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608024', 'tblTempVendorCDR_20' ) end [2025-03-04 19:45:18] Production.INFO: ProcessCDR(1,14608024,1,1,2) [2025-03-04 19:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608024', 'tblTempUsageDetail_20' ) start [2025-03-04 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608024', 'tblTempUsageDetail_20' ) end [2025-03-04 19:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:45:23] Production.INFO: ==14900== Releasing lock... [2025-03-04 19:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:45:23] Production.INFO: 45.75 MB #Memory Used# [2025-03-04 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:46:05 [end_date_ymd] => 2025-03-04 19:46:05 [RateCDR] => 1 ) [2025-03-04 19:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 16:46:05' and `end` < '2025-03-04 19:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 19:46:18] Production.INFO: count ==2344 [2025-03-04 19:46:18] Production.ERROR: pbx CDR StartTime 2025-03-04 16:46:05 - End Time 2025-03-04 19:46:05 [2025-03-04 19:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608029', 'tblTempUsageDetail_20' ) start [2025-03-04 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608029', 'tblTempUsageDetail_20' ) end [2025-03-04 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608029', 'tblTempVendorCDR_20' ) start [2025-03-04 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608029', 'tblTempVendorCDR_20' ) end [2025-03-04 19:46:18] Production.INFO: ProcessCDR(1,14608029,1,1,2) [2025-03-04 19:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608029', 'tblTempUsageDetail_20' ) start [2025-03-04 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608029', 'tblTempUsageDetail_20' ) end [2025-03-04 19:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:46:23] Production.INFO: ==14977== Releasing lock... [2025-03-04 19:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:46:23] Production.INFO: 45.75 MB #Memory Used# [2025-03-04 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:47:05 [end_date_ymd] => 2025-03-04 19:47:05 [RateCDR] => 1 ) [2025-03-04 19: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 16:47:05' and `end` < '2025-03-04 19: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-04 19:47:18] Production.INFO: count ==2327 [2025-03-04 19:47:18] Production.ERROR: pbx CDR StartTime 2025-03-04 16:47:05 - End Time 2025-03-04 19:47:05 [2025-03-04 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608034', 'tblTempUsageDetail_20' ) start [2025-03-04 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608034', 'tblTempUsageDetail_20' ) end [2025-03-04 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608034', 'tblTempVendorCDR_20' ) start [2025-03-04 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608034', 'tblTempVendorCDR_20' ) end [2025-03-04 19:47:18] Production.INFO: ProcessCDR(1,14608034,1,1,2) [2025-03-04 19:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608034', 'tblTempUsageDetail_20' ) start [2025-03-04 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608034', 'tblTempUsageDetail_20' ) end [2025-03-04 19:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:47:21] Production.INFO: ==15051== Releasing lock... [2025-03-04 19:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:47:21] Production.INFO: 45.5 MB #Memory Used# [2025-03-04 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:48:05 [end_date_ymd] => 2025-03-04 19:48:05 [RateCDR] => 1 ) [2025-03-04 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-04 16:48:05' and `end` < '2025-03-04 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-04 19:48:18] Production.INFO: count ==2306 [2025-03-04 19:48:18] Production.ERROR: pbx CDR StartTime 2025-03-04 16:48:05 - End Time 2025-03-04 19:48:05 [2025-03-04 19:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608039', 'tblTempUsageDetail_20' ) start [2025-03-04 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608039', 'tblTempUsageDetail_20' ) end [2025-03-04 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608039', 'tblTempVendorCDR_20' ) start [2025-03-04 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608039', 'tblTempVendorCDR_20' ) end [2025-03-04 19:48:18] Production.INFO: ProcessCDR(1,14608039,1,1,2) [2025-03-04 19:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608039', 'tblTempUsageDetail_20' ) start [2025-03-04 19:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608039', 'tblTempUsageDetail_20' ) end [2025-03-04 19:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:48:21] Production.INFO: ==15120== Releasing lock... [2025-03-04 19:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:48:21] Production.INFO: 45.5 MB #Memory Used# [2025-03-04 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:49:05 [end_date_ymd] => 2025-03-04 19:49:05 [RateCDR] => 1 ) [2025-03-04 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-04 16:49:05' and `end` < '2025-03-04 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-04 19:49:18] Production.INFO: count ==2304 [2025-03-04 19:49:18] Production.ERROR: pbx CDR StartTime 2025-03-04 16:49:05 - End Time 2025-03-04 19:49:05 [2025-03-04 19:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608044', 'tblTempUsageDetail_20' ) start [2025-03-04 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608044', 'tblTempUsageDetail_20' ) end [2025-03-04 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608044', 'tblTempVendorCDR_20' ) start [2025-03-04 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608044', 'tblTempVendorCDR_20' ) end [2025-03-04 19:49:18] Production.INFO: ProcessCDR(1,14608044,1,1,2) [2025-03-04 19:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608044', 'tblTempUsageDetail_20' ) start [2025-03-04 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608044', 'tblTempUsageDetail_20' ) end [2025-03-04 19:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:49:22] Production.INFO: ==15193== Releasing lock... [2025-03-04 19:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:49:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-04 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:50:05 [end_date_ymd] => 2025-03-04 19:50:05 [RateCDR] => 1 ) [2025-03-04 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-04 16:50:05' and `end` < '2025-03-04 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-04 19:50:18] Production.INFO: count ==2307 [2025-03-04 19:50:19] Production.ERROR: pbx CDR StartTime 2025-03-04 16:50:05 - End Time 2025-03-04 19:50:05 [2025-03-04 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608050', 'tblTempUsageDetail_20' ) start [2025-03-04 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608050', 'tblTempUsageDetail_20' ) end [2025-03-04 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608050', 'tblTempVendorCDR_20' ) start [2025-03-04 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608050', 'tblTempVendorCDR_20' ) end [2025-03-04 19:50:19] Production.INFO: ProcessCDR(1,14608050,1,1,2) [2025-03-04 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608050', 'tblTempUsageDetail_20' ) start [2025-03-04 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608050', 'tblTempUsageDetail_20' ) end [2025-03-04 19:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:50:24] Production.INFO: ==15266== Releasing lock... [2025-03-04 19:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:50:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-04 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:51:05 [end_date_ymd] => 2025-03-04 19:51:05 [RateCDR] => 1 ) [2025-03-04 19: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 16:51:05' and `end` < '2025-03-04 19: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-04 19:51:18] Production.INFO: count ==2282 [2025-03-04 19:51:19] Production.ERROR: pbx CDR StartTime 2025-03-04 16:51:05 - End Time 2025-03-04 19:51:05 [2025-03-04 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608055', 'tblTempUsageDetail_20' ) start [2025-03-04 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608055', 'tblTempUsageDetail_20' ) end [2025-03-04 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608055', 'tblTempVendorCDR_20' ) start [2025-03-04 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608055', 'tblTempVendorCDR_20' ) end [2025-03-04 19:51:19] Production.INFO: ProcessCDR(1,14608055,1,1,2) [2025-03-04 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608055', 'tblTempUsageDetail_20' ) start [2025-03-04 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608055', 'tblTempUsageDetail_20' ) end [2025-03-04 19:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:51:22] Production.INFO: ==15342== Releasing lock... [2025-03-04 19:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:51:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-04 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:52:05 [end_date_ymd] => 2025-03-04 19:52:05 [RateCDR] => 1 ) [2025-03-04 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-04 16:52:05' and `end` < '2025-03-04 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-04 19:52:17] Production.INFO: count ==2268 [2025-03-04 19:52:18] Production.ERROR: pbx CDR StartTime 2025-03-04 16:52:05 - End Time 2025-03-04 19:52:05 [2025-03-04 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608060', 'tblTempUsageDetail_20' ) start [2025-03-04 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608060', 'tblTempUsageDetail_20' ) end [2025-03-04 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608060', 'tblTempVendorCDR_20' ) start [2025-03-04 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608060', 'tblTempVendorCDR_20' ) end [2025-03-04 19:52:18] Production.INFO: ProcessCDR(1,14608060,1,1,2) [2025-03-04 19:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608060', 'tblTempUsageDetail_20' ) start [2025-03-04 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608060', 'tblTempUsageDetail_20' ) end [2025-03-04 19:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:52:21] Production.INFO: ==15415== Releasing lock... [2025-03-04 19:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:52:21] Production.INFO: 44.75 MB #Memory Used# [2025-03-04 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:53:05 [end_date_ymd] => 2025-03-04 19:53:05 [RateCDR] => 1 ) [2025-03-04 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-04 16:53:05' and `end` < '2025-03-04 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-04 19:53:18] Production.INFO: count ==2266 [2025-03-04 19:53:19] Production.ERROR: pbx CDR StartTime 2025-03-04 16:53:05 - End Time 2025-03-04 19:53:05 [2025-03-04 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608065', 'tblTempUsageDetail_20' ) start [2025-03-04 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608065', 'tblTempUsageDetail_20' ) end [2025-03-04 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608065', 'tblTempVendorCDR_20' ) start [2025-03-04 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608065', 'tblTempVendorCDR_20' ) end [2025-03-04 19:53:19] Production.INFO: ProcessCDR(1,14608065,1,1,2) [2025-03-04 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608065', 'tblTempUsageDetail_20' ) start [2025-03-04 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608065', 'tblTempUsageDetail_20' ) end [2025-03-04 19:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:53:22] Production.INFO: ==15486== Releasing lock... [2025-03-04 19:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:53:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-04 19:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:54:04 [end_date_ymd] => 2025-03-04 19:54:04 [RateCDR] => 1 ) [2025-03-04 19:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 16:54:04' and `end` < '2025-03-04 19:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 19:54:17] Production.INFO: count ==2258 [2025-03-04 19:54:17] Production.ERROR: pbx CDR StartTime 2025-03-04 16:54:04 - End Time 2025-03-04 19:54:04 [2025-03-04 19:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608070', 'tblTempUsageDetail_20' ) start [2025-03-04 19:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608070', 'tblTempUsageDetail_20' ) end [2025-03-04 19:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608070', 'tblTempVendorCDR_20' ) start [2025-03-04 19:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608070', 'tblTempVendorCDR_20' ) end [2025-03-04 19:54:17] Production.INFO: ProcessCDR(1,14608070,1,1,2) [2025-03-04 19:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608070', 'tblTempUsageDetail_20' ) start [2025-03-04 19:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608070', 'tblTempUsageDetail_20' ) end [2025-03-04 19:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:54:20] Production.INFO: ==15597== Releasing lock... [2025-03-04 19:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:54:20] Production.INFO: 45 MB #Memory Used# [2025-03-04 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:55:05 [end_date_ymd] => 2025-03-04 19:55:05 [RateCDR] => 1 ) [2025-03-04 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-04 16:55:05' and `end` < '2025-03-04 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-04 19:55:17] Production.INFO: count ==2242 [2025-03-04 19:55:18] Production.ERROR: pbx CDR StartTime 2025-03-04 16:55:05 - End Time 2025-03-04 19:55:05 [2025-03-04 19:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608075', 'tblTempUsageDetail_20' ) start [2025-03-04 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608075', 'tblTempUsageDetail_20' ) end [2025-03-04 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608075', 'tblTempVendorCDR_20' ) start [2025-03-04 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608075', 'tblTempVendorCDR_20' ) end [2025-03-04 19:55:18] Production.INFO: ProcessCDR(1,14608075,1,1,2) [2025-03-04 19:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608075', 'tblTempUsageDetail_20' ) start [2025-03-04 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608075', 'tblTempUsageDetail_20' ) end [2025-03-04 19:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:55:21] Production.INFO: ==15670== Releasing lock... [2025-03-04 19:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:55:21] Production.INFO: 45 MB #Memory Used# [2025-03-04 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:56:05 [end_date_ymd] => 2025-03-04 19:56:05 [RateCDR] => 1 ) [2025-03-04 19: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 16:56:05' and `end` < '2025-03-04 19: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-04 19:56:18] Production.INFO: count ==2243 [2025-03-04 19:56:18] Production.ERROR: pbx CDR StartTime 2025-03-04 16:56:05 - End Time 2025-03-04 19:56:05 [2025-03-04 19:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608080', 'tblTempUsageDetail_20' ) start [2025-03-04 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608080', 'tblTempUsageDetail_20' ) end [2025-03-04 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608080', 'tblTempVendorCDR_20' ) start [2025-03-04 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608080', 'tblTempVendorCDR_20' ) end [2025-03-04 19:56:18] Production.INFO: ProcessCDR(1,14608080,1,1,2) [2025-03-04 19:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608080', 'tblTempUsageDetail_20' ) start [2025-03-04 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608080', 'tblTempUsageDetail_20' ) end [2025-03-04 19:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:56:22] Production.INFO: ==15748== Releasing lock... [2025-03-04 19:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:56:22] Production.INFO: 45 MB #Memory Used# [2025-03-04 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:57:05 [end_date_ymd] => 2025-03-04 19:57:05 [RateCDR] => 1 ) [2025-03-04 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-04 16:57:05' and `end` < '2025-03-04 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-04 19:57:17] Production.INFO: count ==2235 [2025-03-04 19:57:18] Production.ERROR: pbx CDR StartTime 2025-03-04 16:57:05 - End Time 2025-03-04 19:57:05 [2025-03-04 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608085', 'tblTempUsageDetail_20' ) start [2025-03-04 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608085', 'tblTempUsageDetail_20' ) end [2025-03-04 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608085', 'tblTempVendorCDR_20' ) start [2025-03-04 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608085', 'tblTempVendorCDR_20' ) end [2025-03-04 19:57:18] Production.INFO: ProcessCDR(1,14608085,1,1,2) [2025-03-04 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608085', 'tblTempUsageDetail_20' ) start [2025-03-04 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608085', 'tblTempUsageDetail_20' ) end [2025-03-04 19:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:57:22] Production.INFO: ==15821== Releasing lock... [2025-03-04 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:57:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-04 19:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:58:06 [end_date_ymd] => 2025-03-04 19:58:06 [RateCDR] => 1 ) [2025-03-04 19: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 16:58:06' and `end` < '2025-03-04 19: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-04 19:58:18] Production.INFO: count ==2237 [2025-03-04 19:58:19] Production.ERROR: pbx CDR StartTime 2025-03-04 16:58:06 - End Time 2025-03-04 19:58:06 [2025-03-04 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608090', 'tblTempUsageDetail_20' ) start [2025-03-04 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608090', 'tblTempUsageDetail_20' ) end [2025-03-04 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608090', 'tblTempVendorCDR_20' ) start [2025-03-04 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608090', 'tblTempVendorCDR_20' ) end [2025-03-04 19:58:19] Production.INFO: ProcessCDR(1,14608090,1,1,2) [2025-03-04 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608090', 'tblTempUsageDetail_20' ) start [2025-03-04 19:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608090', 'tblTempUsageDetail_20' ) end [2025-03-04 19:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:58:24] Production.INFO: ==15899== Releasing lock... [2025-03-04 19:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:58:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-04 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 16:59:05 [end_date_ymd] => 2025-03-04 19:59:05 [RateCDR] => 1 ) [2025-03-04 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-04 16:59:05' and `end` < '2025-03-04 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-04 19:59:17] Production.INFO: count ==2231 [2025-03-04 19:59:18] Production.ERROR: pbx CDR StartTime 2025-03-04 16:59:05 - End Time 2025-03-04 19:59:05 [2025-03-04 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608095', 'tblTempUsageDetail_20' ) start [2025-03-04 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608095', 'tblTempUsageDetail_20' ) end [2025-03-04 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608095', 'tblTempVendorCDR_20' ) start [2025-03-04 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608095', 'tblTempVendorCDR_20' ) end [2025-03-04 19:59:18] Production.INFO: ProcessCDR(1,14608095,1,1,2) [2025-03-04 19:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 19:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608095', 'tblTempUsageDetail_20' ) start [2025-03-04 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608095', 'tblTempUsageDetail_20' ) end [2025-03-04 19:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 19:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 19:59:23] Production.INFO: ==15970== Releasing lock... [2025-03-04 19:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 19:59:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-04 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:00:06 [end_date_ymd] => 2025-03-04 20:00:06 [RateCDR] => 1 ) [2025-03-04 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-04 17:00:06' and `end` < '2025-03-04 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-04 20:00:18] Production.INFO: count ==2215 [2025-03-04 20:00:19] Production.ERROR: pbx CDR StartTime 2025-03-04 17:00:06 - End Time 2025-03-04 20:00:06 [2025-03-04 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608101', 'tblTempUsageDetail_20' ) start [2025-03-04 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608101', 'tblTempUsageDetail_20' ) end [2025-03-04 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608101', 'tblTempVendorCDR_20' ) start [2025-03-04 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608101', 'tblTempVendorCDR_20' ) end [2025-03-04 20:00:19] Production.INFO: ProcessCDR(1,14608101,1,1,2) [2025-03-04 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608101', 'tblTempUsageDetail_20' ) start [2025-03-04 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608101', 'tblTempUsageDetail_20' ) end [2025-03-04 20:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:00:22] Production.INFO: ==16056== Releasing lock... [2025-03-04 20:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:00:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-04 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:01:05 [end_date_ymd] => 2025-03-04 20:01:05 [RateCDR] => 1 ) [2025-03-04 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-04 17:01:05' and `end` < '2025-03-04 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-04 20:01:17] Production.INFO: count ==2131 [2025-03-04 20:01:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:01:05 - End Time 2025-03-04 20:01:05 [2025-03-04 20:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608106', 'tblTempUsageDetail_20' ) start [2025-03-04 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608106', 'tblTempUsageDetail_20' ) end [2025-03-04 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608106', 'tblTempVendorCDR_20' ) start [2025-03-04 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608106', 'tblTempVendorCDR_20' ) end [2025-03-04 20:01:18] Production.INFO: ProcessCDR(1,14608106,1,1,2) [2025-03-04 20:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608106', 'tblTempUsageDetail_20' ) start [2025-03-04 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608106', 'tblTempUsageDetail_20' ) end [2025-03-04 20:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:01:22] Production.INFO: ==16185== Releasing lock... [2025-03-04 20:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:01:22] Production.INFO: 44 MB #Memory Used# [2025-03-04 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:02:05 [end_date_ymd] => 2025-03-04 20:02:05 [RateCDR] => 1 ) [2025-03-04 20:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 17:02:05' and `end` < '2025-03-04 20:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 20:02:18] Production.INFO: count ==2109 [2025-03-04 20:02:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:02:05 - End Time 2025-03-04 20:02:05 [2025-03-04 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608111', 'tblTempUsageDetail_20' ) start [2025-03-04 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608111', 'tblTempUsageDetail_20' ) end [2025-03-04 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608111', 'tblTempVendorCDR_20' ) start [2025-03-04 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608111', 'tblTempVendorCDR_20' ) end [2025-03-04 20:02:18] Production.INFO: ProcessCDR(1,14608111,1,1,2) [2025-03-04 20:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608111', 'tblTempUsageDetail_20' ) start [2025-03-04 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608111', 'tblTempUsageDetail_20' ) end [2025-03-04 20:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:02:22] Production.INFO: ==16261== Releasing lock... [2025-03-04 20:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:02:22] Production.INFO: 44 MB #Memory Used# [2025-03-04 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:03:05 [end_date_ymd] => 2025-03-04 20:03:05 [RateCDR] => 1 ) [2025-03-04 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-04 17:03:05' and `end` < '2025-03-04 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-04 20:03:17] Production.INFO: count ==2090 [2025-03-04 20:03:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:03:05 - End Time 2025-03-04 20:03:05 [2025-03-04 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608116', 'tblTempUsageDetail_20' ) start [2025-03-04 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608116', 'tblTempUsageDetail_20' ) end [2025-03-04 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608116', 'tblTempVendorCDR_20' ) start [2025-03-04 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608116', 'tblTempVendorCDR_20' ) end [2025-03-04 20:03:18] Production.INFO: ProcessCDR(1,14608116,1,1,2) [2025-03-04 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608116', 'tblTempUsageDetail_20' ) start [2025-03-04 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608116', 'tblTempUsageDetail_20' ) end [2025-03-04 20:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:03:21] Production.INFO: ==16335== Releasing lock... [2025-03-04 20:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:03:21] Production.INFO: 43.75 MB #Memory Used# [2025-03-04 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:04:05 [end_date_ymd] => 2025-03-04 20:04:05 [RateCDR] => 1 ) [2025-03-04 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-04 17:04:05' and `end` < '2025-03-04 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-04 20:04:17] Production.INFO: count ==2085 [2025-03-04 20:04:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:04:05 - End Time 2025-03-04 20:04:05 [2025-03-04 20:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608121', 'tblTempUsageDetail_20' ) start [2025-03-04 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608121', 'tblTempUsageDetail_20' ) end [2025-03-04 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608121', 'tblTempVendorCDR_20' ) start [2025-03-04 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608121', 'tblTempVendorCDR_20' ) end [2025-03-04 20:04:18] Production.INFO: ProcessCDR(1,14608121,1,1,2) [2025-03-04 20:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608121', 'tblTempUsageDetail_20' ) start [2025-03-04 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608121', 'tblTempUsageDetail_20' ) end [2025-03-04 20:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:04:21] Production.INFO: ==16418== Releasing lock... [2025-03-04 20:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:04:21] Production.INFO: 43.75 MB #Memory Used# [2025-03-04 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:05:05 [end_date_ymd] => 2025-03-04 20:05:05 [RateCDR] => 1 ) [2025-03-04 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-04 17:05:05' and `end` < '2025-03-04 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-04 20:05:17] Production.INFO: count ==2082 [2025-03-04 20:05:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:05:05 - End Time 2025-03-04 20:05:05 [2025-03-04 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608126', 'tblTempUsageDetail_20' ) start [2025-03-04 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608126', 'tblTempUsageDetail_20' ) end [2025-03-04 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608126', 'tblTempVendorCDR_20' ) start [2025-03-04 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608126', 'tblTempVendorCDR_20' ) end [2025-03-04 20:05:18] Production.INFO: ProcessCDR(1,14608126,1,1,2) [2025-03-04 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608126', 'tblTempUsageDetail_20' ) start [2025-03-04 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608126', 'tblTempUsageDetail_20' ) end [2025-03-04 20:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:05:21] Production.INFO: ==16492== Releasing lock... [2025-03-04 20:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:05:21] Production.INFO: 44 MB #Memory Used# [2025-03-04 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:06:05 [end_date_ymd] => 2025-03-04 20:06:05 [RateCDR] => 1 ) [2025-03-04 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-04 17:06:05' and `end` < '2025-03-04 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-04 20:06:17] Production.INFO: count ==2071 [2025-03-04 20:06:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:06:05 - End Time 2025-03-04 20:06:05 [2025-03-04 20:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608131', 'tblTempUsageDetail_20' ) start [2025-03-04 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608131', 'tblTempUsageDetail_20' ) end [2025-03-04 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608131', 'tblTempVendorCDR_20' ) start [2025-03-04 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608131', 'tblTempVendorCDR_20' ) end [2025-03-04 20:06:18] Production.INFO: ProcessCDR(1,14608131,1,1,2) [2025-03-04 20:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608131', 'tblTempUsageDetail_20' ) start [2025-03-04 20:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608131', 'tblTempUsageDetail_20' ) end [2025-03-04 20:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:06:21] Production.INFO: ==16569== Releasing lock... [2025-03-04 20:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:06:21] Production.INFO: 43.75 MB #Memory Used# [2025-03-04 20:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:07:06 [end_date_ymd] => 2025-03-04 20:07:06 [RateCDR] => 1 ) [2025-03-04 20: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 17:07:06' and `end` < '2025-03-04 20: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-04 20:07:18] Production.INFO: count ==2059 [2025-03-04 20:07:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:07:06 - End Time 2025-03-04 20:07:06 [2025-03-04 20:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608136', 'tblTempUsageDetail_20' ) start [2025-03-04 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608136', 'tblTempUsageDetail_20' ) end [2025-03-04 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608136', 'tblTempVendorCDR_20' ) start [2025-03-04 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608136', 'tblTempVendorCDR_20' ) end [2025-03-04 20:07:19] Production.INFO: ProcessCDR(1,14608136,1,1,2) [2025-03-04 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608136', 'tblTempUsageDetail_20' ) start [2025-03-04 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608136', 'tblTempUsageDetail_20' ) end [2025-03-04 20:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:07:23] Production.INFO: ==16646== Releasing lock... [2025-03-04 20:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:07:23] Production.INFO: 43.5 MB #Memory Used# [2025-03-04 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:08:05 [end_date_ymd] => 2025-03-04 20:08:05 [RateCDR] => 1 ) [2025-03-04 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-04 17:08:05' and `end` < '2025-03-04 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-04 20:08:17] Production.INFO: count ==2056 [2025-03-04 20:08:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:08:05 - End Time 2025-03-04 20:08:05 [2025-03-04 20:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608141', 'tblTempUsageDetail_20' ) start [2025-03-04 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608141', 'tblTempUsageDetail_20' ) end [2025-03-04 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608141', 'tblTempVendorCDR_20' ) start [2025-03-04 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608141', 'tblTempVendorCDR_20' ) end [2025-03-04 20:08:18] Production.INFO: ProcessCDR(1,14608141,1,1,2) [2025-03-04 20:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608141', 'tblTempUsageDetail_20' ) start [2025-03-04 20:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608141', 'tblTempUsageDetail_20' ) end [2025-03-04 20:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:08:21] Production.INFO: ==16723== Releasing lock... [2025-03-04 20:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:08:21] Production.INFO: 43.5 MB #Memory Used# [2025-03-04 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:09:05 [end_date_ymd] => 2025-03-04 20:09:05 [RateCDR] => 1 ) [2025-03-04 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-04 17:09:05' and `end` < '2025-03-04 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-04 20:09:18] Production.INFO: count ==2051 [2025-03-04 20:09:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:09:05 - End Time 2025-03-04 20:09:05 [2025-03-04 20:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608146', 'tblTempUsageDetail_20' ) start [2025-03-04 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608146', 'tblTempUsageDetail_20' ) end [2025-03-04 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608146', 'tblTempVendorCDR_20' ) start [2025-03-04 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608146', 'tblTempVendorCDR_20' ) end [2025-03-04 20:09:18] Production.INFO: ProcessCDR(1,14608146,1,1,2) [2025-03-04 20:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608146', 'tblTempUsageDetail_20' ) start [2025-03-04 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608146', 'tblTempUsageDetail_20' ) end [2025-03-04 20:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:09:22] Production.INFO: ==16839== Releasing lock... [2025-03-04 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:09:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-04 20:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:10:05 [end_date_ymd] => 2025-03-04 20:10:05 [RateCDR] => 1 ) [2025-03-04 20:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 17:10:05' and `end` < '2025-03-04 20:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 20:10:18] Production.INFO: count ==2021 [2025-03-04 20:10:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:10:05 - End Time 2025-03-04 20:10:05 [2025-03-04 20:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608151', 'tblTempUsageDetail_20' ) start [2025-03-04 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608151', 'tblTempUsageDetail_20' ) end [2025-03-04 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608151', 'tblTempVendorCDR_20' ) start [2025-03-04 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608151', 'tblTempVendorCDR_20' ) end [2025-03-04 20:10:18] Production.INFO: ProcessCDR(1,14608151,1,1,2) [2025-03-04 20:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608151', 'tblTempUsageDetail_20' ) start [2025-03-04 20:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608151', 'tblTempUsageDetail_20' ) end [2025-03-04 20:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:10:21] Production.INFO: ==16914== Releasing lock... [2025-03-04 20:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:10:21] Production.INFO: 43.25 MB #Memory Used# [2025-03-04 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:11:05 [end_date_ymd] => 2025-03-04 20:11:05 [RateCDR] => 1 ) [2025-03-04 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 17:11:05' and `end` < '2025-03-04 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 20:11:17] Production.INFO: count ==1958 [2025-03-04 20:11:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:11:05 - End Time 2025-03-04 20:11:05 [2025-03-04 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608157', 'tblTempUsageDetail_20' ) start [2025-03-04 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608157', 'tblTempUsageDetail_20' ) end [2025-03-04 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608157', 'tblTempVendorCDR_20' ) start [2025-03-04 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608157', 'tblTempVendorCDR_20' ) end [2025-03-04 20:11:18] Production.INFO: ProcessCDR(1,14608157,1,1,2) [2025-03-04 20:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608157', 'tblTempUsageDetail_20' ) start [2025-03-04 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608157', 'tblTempUsageDetail_20' ) end [2025-03-04 20:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:11:21] Production.INFO: ==16998== Releasing lock... [2025-03-04 20:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:11:21] Production.INFO: 42.75 MB #Memory Used# [2025-03-04 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:12:05 [end_date_ymd] => 2025-03-04 20:12:05 [RateCDR] => 1 ) [2025-03-04 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-04 17:12:05' and `end` < '2025-03-04 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-04 20:12:17] Production.INFO: count ==1954 [2025-03-04 20:12:17] Production.ERROR: pbx CDR StartTime 2025-03-04 17:12:05 - End Time 2025-03-04 20:12:05 [2025-03-04 20:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608162', 'tblTempUsageDetail_20' ) start [2025-03-04 20:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608162', 'tblTempUsageDetail_20' ) end [2025-03-04 20:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608162', 'tblTempVendorCDR_20' ) start [2025-03-04 20:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608162', 'tblTempVendorCDR_20' ) end [2025-03-04 20:12:17] Production.INFO: ProcessCDR(1,14608162,1,1,2) [2025-03-04 20:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608162', 'tblTempUsageDetail_20' ) start [2025-03-04 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608162', 'tblTempUsageDetail_20' ) end [2025-03-04 20:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:12:22] Production.INFO: ==17070== Releasing lock... [2025-03-04 20:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:12:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-04 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:13:05 [end_date_ymd] => 2025-03-04 20:13:05 [RateCDR] => 1 ) [2025-03-04 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-04 17:13:05' and `end` < '2025-03-04 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-04 20:13:18] Production.INFO: count ==1949 [2025-03-04 20:13:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:13:05 - End Time 2025-03-04 20:13:05 [2025-03-04 20:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608167', 'tblTempUsageDetail_20' ) start [2025-03-04 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608167', 'tblTempUsageDetail_20' ) end [2025-03-04 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608167', 'tblTempVendorCDR_20' ) start [2025-03-04 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608167', 'tblTempVendorCDR_20' ) end [2025-03-04 20:13:18] Production.INFO: ProcessCDR(1,14608167,1,1,2) [2025-03-04 20:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608167', 'tblTempUsageDetail_20' ) start [2025-03-04 20:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608167', 'tblTempUsageDetail_20' ) end [2025-03-04 20:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:13:21] Production.INFO: ==17145== Releasing lock... [2025-03-04 20:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:13:21] Production.INFO: 42.5 MB #Memory Used# [2025-03-04 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:14:05 [end_date_ymd] => 2025-03-04 20:14:05 [RateCDR] => 1 ) [2025-03-04 20:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 17:14:05' and `end` < '2025-03-04 20:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 20:14:17] Production.INFO: count ==1937 [2025-03-04 20:14:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:14:05 - End Time 2025-03-04 20:14:05 [2025-03-04 20:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608172', 'tblTempUsageDetail_20' ) start [2025-03-04 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608172', 'tblTempUsageDetail_20' ) end [2025-03-04 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608172', 'tblTempVendorCDR_20' ) start [2025-03-04 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608172', 'tblTempVendorCDR_20' ) end [2025-03-04 20:14:18] Production.INFO: ProcessCDR(1,14608172,1,1,2) [2025-03-04 20:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608172', 'tblTempUsageDetail_20' ) start [2025-03-04 20:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608172', 'tblTempUsageDetail_20' ) end [2025-03-04 20:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:14:21] Production.INFO: ==17224== Releasing lock... [2025-03-04 20:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:14:21] Production.INFO: 42.5 MB #Memory Used# [2025-03-04 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:15:05 [end_date_ymd] => 2025-03-04 20:15:05 [RateCDR] => 1 ) [2025-03-04 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-04 17:15:05' and `end` < '2025-03-04 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-04 20:15:17] Production.INFO: count ==1919 [2025-03-04 20:15:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:15:05 - End Time 2025-03-04 20:15:05 [2025-03-04 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608177', 'tblTempUsageDetail_20' ) start [2025-03-04 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608177', 'tblTempUsageDetail_20' ) end [2025-03-04 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608177', 'tblTempVendorCDR_20' ) start [2025-03-04 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608177', 'tblTempVendorCDR_20' ) end [2025-03-04 20:15:18] Production.INFO: ProcessCDR(1,14608177,1,1,2) [2025-03-04 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608177', 'tblTempUsageDetail_20' ) start [2025-03-04 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608177', 'tblTempUsageDetail_20' ) end [2025-03-04 20:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:15:21] Production.INFO: ==17302== Releasing lock... [2025-03-04 20:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:15:21] Production.INFO: 42.5 MB #Memory Used# [2025-03-04 20:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:16:06 [end_date_ymd] => 2025-03-04 20:16:06 [RateCDR] => 1 ) [2025-03-04 20: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 17:16:06' and `end` < '2025-03-04 20: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-04 20:16:18] Production.INFO: count ==1908 [2025-03-04 20:16:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:16:06 - End Time 2025-03-04 20:16:06 [2025-03-04 20:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608182', 'tblTempUsageDetail_20' ) start [2025-03-04 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608182', 'tblTempUsageDetail_20' ) end [2025-03-04 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608182', 'tblTempVendorCDR_20' ) start [2025-03-04 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608182', 'tblTempVendorCDR_20' ) end [2025-03-04 20:16:18] Production.INFO: ProcessCDR(1,14608182,1,1,2) [2025-03-04 20:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608182', 'tblTempUsageDetail_20' ) start [2025-03-04 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608182', 'tblTempUsageDetail_20' ) end [2025-03-04 20:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:16:22] Production.INFO: ==17381== Releasing lock... [2025-03-04 20:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:16:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-04 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:17:05 [end_date_ymd] => 2025-03-04 20:17:05 [RateCDR] => 1 ) [2025-03-04 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-04 17:17:05' and `end` < '2025-03-04 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-04 20:17:17] Production.INFO: count ==1898 [2025-03-04 20:17:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:17:05 - End Time 2025-03-04 20:17:05 [2025-03-04 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608187', 'tblTempUsageDetail_20' ) start [2025-03-04 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608187', 'tblTempUsageDetail_20' ) end [2025-03-04 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608187', 'tblTempVendorCDR_20' ) start [2025-03-04 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608187', 'tblTempVendorCDR_20' ) end [2025-03-04 20:17:18] Production.INFO: ProcessCDR(1,14608187,1,1,2) [2025-03-04 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608187', 'tblTempUsageDetail_20' ) start [2025-03-04 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608187', 'tblTempUsageDetail_20' ) end [2025-03-04 20:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:17:21] Production.INFO: ==17459== Releasing lock... [2025-03-04 20:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:17:21] Production.INFO: 42.25 MB #Memory Used# [2025-03-04 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:18:05 [end_date_ymd] => 2025-03-04 20:18:05 [RateCDR] => 1 ) [2025-03-04 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-04 17:18:05' and `end` < '2025-03-04 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-04 20:18:17] Production.INFO: count ==1900 [2025-03-04 20:18:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:18:05 - End Time 2025-03-04 20:18:05 [2025-03-04 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608192', 'tblTempUsageDetail_20' ) start [2025-03-04 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608192', 'tblTempUsageDetail_20' ) end [2025-03-04 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608192', 'tblTempVendorCDR_20' ) start [2025-03-04 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608192', 'tblTempVendorCDR_20' ) end [2025-03-04 20:18:18] Production.INFO: ProcessCDR(1,14608192,1,1,2) [2025-03-04 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608192', 'tblTempUsageDetail_20' ) start [2025-03-04 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608192', 'tblTempUsageDetail_20' ) end [2025-03-04 20:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:18:21] Production.INFO: ==17548== Releasing lock... [2025-03-04 20:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:18:21] Production.INFO: 42 MB #Memory Used# [2025-03-04 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:19:05 [end_date_ymd] => 2025-03-04 20:19:05 [RateCDR] => 1 ) [2025-03-04 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-04 17:19:05' and `end` < '2025-03-04 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-04 20:19:17] Production.INFO: count ==1889 [2025-03-04 20:19:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:19:05 - End Time 2025-03-04 20:19:05 [2025-03-04 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608197', 'tblTempUsageDetail_20' ) start [2025-03-04 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608197', 'tblTempUsageDetail_20' ) end [2025-03-04 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608197', 'tblTempVendorCDR_20' ) start [2025-03-04 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608197', 'tblTempVendorCDR_20' ) end [2025-03-04 20:19:18] Production.INFO: ProcessCDR(1,14608197,1,1,2) [2025-03-04 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608197', 'tblTempUsageDetail_20' ) start [2025-03-04 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608197', 'tblTempUsageDetail_20' ) end [2025-03-04 20:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:19:22] Production.INFO: ==17627== Releasing lock... [2025-03-04 20:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:19:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-04 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:20:06 [end_date_ymd] => 2025-03-04 20:20:06 [RateCDR] => 1 ) [2025-03-04 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-04 17:20:06' and `end` < '2025-03-04 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-04 20:20:19] Production.INFO: count ==1888 [2025-03-04 20:20:19] Production.ERROR: pbx CDR StartTime 2025-03-04 17:20:06 - End Time 2025-03-04 20:20:06 [2025-03-04 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608203', 'tblTempUsageDetail_20' ) start [2025-03-04 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608203', 'tblTempUsageDetail_20' ) end [2025-03-04 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608203', 'tblTempVendorCDR_20' ) start [2025-03-04 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608203', 'tblTempVendorCDR_20' ) end [2025-03-04 20:20:19] Production.INFO: ProcessCDR(1,14608203,1,1,2) [2025-03-04 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608203', 'tblTempUsageDetail_20' ) start [2025-03-04 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608203', 'tblTempUsageDetail_20' ) end [2025-03-04 20:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:20:24] Production.INFO: ==17707== Releasing lock... [2025-03-04 20:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:20:24] Production.INFO: 42 MB #Memory Used# [2025-03-04 20:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:21:04 [end_date_ymd] => 2025-03-04 20:21:04 [RateCDR] => 1 ) [2025-03-04 20: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-04 17:21:04' and `end` < '2025-03-04 20: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-04 20:21:17] Production.INFO: count ==1853 [2025-03-04 20:21:17] Production.ERROR: pbx CDR StartTime 2025-03-04 17:21:04 - End Time 2025-03-04 20:21:04 [2025-03-04 20:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608208', 'tblTempUsageDetail_20' ) start [2025-03-04 20:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608208', 'tblTempUsageDetail_20' ) end [2025-03-04 20:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608208', 'tblTempVendorCDR_20' ) start [2025-03-04 20:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608208', 'tblTempVendorCDR_20' ) end [2025-03-04 20:21:17] Production.INFO: ProcessCDR(1,14608208,1,1,2) [2025-03-04 20:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608208', 'tblTempUsageDetail_20' ) start [2025-03-04 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608208', 'tblTempUsageDetail_20' ) end [2025-03-04 20:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:21:22] Production.INFO: ==17779== Releasing lock... [2025-03-04 20:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:21:22] Production.INFO: 42 MB #Memory Used# [2025-03-04 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:22:05 [end_date_ymd] => 2025-03-04 20:22:05 [RateCDR] => 1 ) [2025-03-04 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-04 17:22:05' and `end` < '2025-03-04 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-04 20:22:17] Production.INFO: count ==1848 [2025-03-04 20:22:17] Production.ERROR: pbx CDR StartTime 2025-03-04 17:22:05 - End Time 2025-03-04 20:22:05 [2025-03-04 20:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608213', 'tblTempUsageDetail_20' ) start [2025-03-04 20:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608213', 'tblTempUsageDetail_20' ) end [2025-03-04 20:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608213', 'tblTempVendorCDR_20' ) start [2025-03-04 20:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608213', 'tblTempVendorCDR_20' ) end [2025-03-04 20:22:17] Production.INFO: ProcessCDR(1,14608213,1,1,2) [2025-03-04 20:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608213', 'tblTempUsageDetail_20' ) start [2025-03-04 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608213', 'tblTempUsageDetail_20' ) end [2025-03-04 20:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:22:21] Production.INFO: ==17853== Releasing lock... [2025-03-04 20:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:22:21] Production.INFO: 42 MB #Memory Used# [2025-03-04 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:23:05 [end_date_ymd] => 2025-03-04 20:23:05 [RateCDR] => 1 ) [2025-03-04 20:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 17:23:05' and `end` < '2025-03-04 20:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 20:23:17] Production.INFO: count ==1840 [2025-03-04 20:23:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:23:05 - End Time 2025-03-04 20:23:05 [2025-03-04 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608218', 'tblTempUsageDetail_20' ) start [2025-03-04 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608218', 'tblTempUsageDetail_20' ) end [2025-03-04 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608218', 'tblTempVendorCDR_20' ) start [2025-03-04 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608218', 'tblTempVendorCDR_20' ) end [2025-03-04 20:23:18] Production.INFO: ProcessCDR(1,14608218,1,1,2) [2025-03-04 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608218', 'tblTempUsageDetail_20' ) start [2025-03-04 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608218', 'tblTempUsageDetail_20' ) end [2025-03-04 20:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:23:21] Production.INFO: ==17931== Releasing lock... [2025-03-04 20:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:23:21] Production.INFO: 41.5 MB #Memory Used# [2025-03-04 20:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:24:06 [end_date_ymd] => 2025-03-04 20:24:06 [RateCDR] => 1 ) [2025-03-04 20: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 17:24:06' and `end` < '2025-03-04 20: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-04 20:24:18] Production.INFO: count ==1838 [2025-03-04 20:24:19] Production.ERROR: pbx CDR StartTime 2025-03-04 17:24:06 - End Time 2025-03-04 20:24:06 [2025-03-04 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608223', 'tblTempUsageDetail_20' ) start [2025-03-04 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608223', 'tblTempUsageDetail_20' ) end [2025-03-04 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608223', 'tblTempVendorCDR_20' ) start [2025-03-04 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608223', 'tblTempVendorCDR_20' ) end [2025-03-04 20:24:19] Production.INFO: ProcessCDR(1,14608223,1,1,2) [2025-03-04 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608223', 'tblTempUsageDetail_20' ) start [2025-03-04 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608223', 'tblTempUsageDetail_20' ) end [2025-03-04 20:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:24:22] Production.INFO: ==18005== Releasing lock... [2025-03-04 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:24:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-04 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:25:05 [end_date_ymd] => 2025-03-04 20:25:05 [RateCDR] => 1 ) [2025-03-04 20: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 17:25:05' and `end` < '2025-03-04 20: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-04 20:25:17] Production.INFO: count ==1839 [2025-03-04 20:25:17] Production.ERROR: pbx CDR StartTime 2025-03-04 17:25:05 - End Time 2025-03-04 20:25:05 [2025-03-04 20:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608228', 'tblTempUsageDetail_20' ) start [2025-03-04 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608228', 'tblTempUsageDetail_20' ) end [2025-03-04 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608228', 'tblTempVendorCDR_20' ) start [2025-03-04 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608228', 'tblTempVendorCDR_20' ) end [2025-03-04 20:25:17] Production.INFO: ProcessCDR(1,14608228,1,1,2) [2025-03-04 20:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608228', 'tblTempUsageDetail_20' ) start [2025-03-04 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608228', 'tblTempUsageDetail_20' ) end [2025-03-04 20:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:25:21] Production.INFO: ==18118== Releasing lock... [2025-03-04 20:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:25:21] Production.INFO: 41.5 MB #Memory Used# [2025-03-04 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:26:05 [end_date_ymd] => 2025-03-04 20:26:05 [RateCDR] => 1 ) [2025-03-04 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-04 17:26:05' and `end` < '2025-03-04 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-04 20:26:17] Production.INFO: count ==1836 [2025-03-04 20:26:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:26:05 - End Time 2025-03-04 20:26:05 [2025-03-04 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608233', 'tblTempUsageDetail_20' ) start [2025-03-04 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608233', 'tblTempUsageDetail_20' ) end [2025-03-04 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608233', 'tblTempVendorCDR_20' ) start [2025-03-04 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608233', 'tblTempVendorCDR_20' ) end [2025-03-04 20:26:18] Production.INFO: ProcessCDR(1,14608233,1,1,2) [2025-03-04 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608233', 'tblTempUsageDetail_20' ) start [2025-03-04 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608233', 'tblTempUsageDetail_20' ) end [2025-03-04 20:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:26:23] Production.INFO: ==18192== Releasing lock... [2025-03-04 20:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:26:23] Production.INFO: 42 MB #Memory Used# [2025-03-04 20:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:27:06 [end_date_ymd] => 2025-03-04 20:27:06 [RateCDR] => 1 ) [2025-03-04 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-04 17:27:06' and `end` < '2025-03-04 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-04 20:27:18] Production.INFO: count ==1831 [2025-03-04 20:27:19] Production.ERROR: pbx CDR StartTime 2025-03-04 17:27:06 - End Time 2025-03-04 20:27:06 [2025-03-04 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608238', 'tblTempUsageDetail_20' ) start [2025-03-04 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608238', 'tblTempUsageDetail_20' ) end [2025-03-04 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608238', 'tblTempVendorCDR_20' ) start [2025-03-04 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608238', 'tblTempVendorCDR_20' ) end [2025-03-04 20:27:19] Production.INFO: ProcessCDR(1,14608238,1,1,2) [2025-03-04 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608238', 'tblTempUsageDetail_20' ) start [2025-03-04 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608238', 'tblTempUsageDetail_20' ) end [2025-03-04 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:27:22] Production.INFO: ==18269== Releasing lock... [2025-03-04 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:27:22] Production.INFO: 42 MB #Memory Used# [2025-03-04 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:28:05 [end_date_ymd] => 2025-03-04 20:28:05 [RateCDR] => 1 ) [2025-03-04 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-04 17:28:05' and `end` < '2025-03-04 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-04 20:28:17] Production.INFO: count ==1831 [2025-03-04 20:28:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:28:05 - End Time 2025-03-04 20:28:05 [2025-03-04 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608243', 'tblTempUsageDetail_20' ) start [2025-03-04 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608243', 'tblTempUsageDetail_20' ) end [2025-03-04 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608243', 'tblTempVendorCDR_20' ) start [2025-03-04 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608243', 'tblTempVendorCDR_20' ) end [2025-03-04 20:28:18] Production.INFO: ProcessCDR(1,14608243,1,1,2) [2025-03-04 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608243', 'tblTempUsageDetail_20' ) start [2025-03-04 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608243', 'tblTempUsageDetail_20' ) end [2025-03-04 20:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:28:23] Production.INFO: ==18338== Releasing lock... [2025-03-04 20:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:28:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-04 20:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:29:06 [end_date_ymd] => 2025-03-04 20:29:06 [RateCDR] => 1 ) [2025-03-04 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-04 17:29:06' and `end` < '2025-03-04 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-04 20:29:18] Production.INFO: count ==1815 [2025-03-04 20:29:19] Production.ERROR: pbx CDR StartTime 2025-03-04 17:29:06 - End Time 2025-03-04 20:29:06 [2025-03-04 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608248', 'tblTempUsageDetail_20' ) start [2025-03-04 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608248', 'tblTempUsageDetail_20' ) end [2025-03-04 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608248', 'tblTempVendorCDR_20' ) start [2025-03-04 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608248', 'tblTempVendorCDR_20' ) end [2025-03-04 20:29:19] Production.INFO: ProcessCDR(1,14608248,1,1,2) [2025-03-04 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608248', 'tblTempUsageDetail_20' ) start [2025-03-04 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608248', 'tblTempUsageDetail_20' ) end [2025-03-04 20:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:29:23] Production.INFO: ==18418== Releasing lock... [2025-03-04 20:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:29:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-04 20:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:30:05 [end_date_ymd] => 2025-03-04 20:30:05 [RateCDR] => 1 ) [2025-03-04 20:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 17:30:05' and `end` < '2025-03-04 20:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 20:30:18] Production.INFO: count ==1816 [2025-03-04 20:30:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:30:05 - End Time 2025-03-04 20:30:05 [2025-03-04 20:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608253', 'tblTempUsageDetail_20' ) start [2025-03-04 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608253', 'tblTempUsageDetail_20' ) end [2025-03-04 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608253', 'tblTempVendorCDR_20' ) start [2025-03-04 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608253', 'tblTempVendorCDR_20' ) end [2025-03-04 20:30:18] Production.INFO: ProcessCDR(1,14608253,1,1,2) [2025-03-04 20:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608253', 'tblTempUsageDetail_20' ) start [2025-03-04 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608253', 'tblTempUsageDetail_20' ) end [2025-03-04 20:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:30:23] Production.INFO: ==18497== Releasing lock... [2025-03-04 20:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:30:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-04 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:31:05 [end_date_ymd] => 2025-03-04 20:31:05 [RateCDR] => 1 ) [2025-03-04 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-04 17:31:05' and `end` < '2025-03-04 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-04 20:31:18] Production.INFO: count ==1788 [2025-03-04 20:31:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:31:05 - End Time 2025-03-04 20:31:05 [2025-03-04 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608259', 'tblTempUsageDetail_20' ) start [2025-03-04 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608259', 'tblTempUsageDetail_20' ) end [2025-03-04 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608259', 'tblTempVendorCDR_20' ) start [2025-03-04 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608259', 'tblTempVendorCDR_20' ) end [2025-03-04 20:31:18] Production.INFO: ProcessCDR(1,14608259,1,1,2) [2025-03-04 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608259', 'tblTempUsageDetail_20' ) start [2025-03-04 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608259', 'tblTempUsageDetail_20' ) end [2025-03-04 20:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:31:22] Production.INFO: ==18572== Releasing lock... [2025-03-04 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:31:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-04 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:32:05 [end_date_ymd] => 2025-03-04 20:32:05 [RateCDR] => 1 ) [2025-03-04 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-04 17:32:05' and `end` < '2025-03-04 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-04 20:32:17] Production.INFO: count ==1792 [2025-03-04 20:32:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:32:05 - End Time 2025-03-04 20:32:05 [2025-03-04 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608264', 'tblTempUsageDetail_20' ) start [2025-03-04 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608264', 'tblTempUsageDetail_20' ) end [2025-03-04 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608264', 'tblTempVendorCDR_20' ) start [2025-03-04 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608264', 'tblTempVendorCDR_20' ) end [2025-03-04 20:32:18] Production.INFO: ProcessCDR(1,14608264,1,1,2) [2025-03-04 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608264', 'tblTempUsageDetail_20' ) start [2025-03-04 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608264', 'tblTempUsageDetail_20' ) end [2025-03-04 20:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:32:21] Production.INFO: ==18645== Releasing lock... [2025-03-04 20:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:32:21] Production.INFO: 41.75 MB #Memory Used# [2025-03-04 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:33:05 [end_date_ymd] => 2025-03-04 20:33:05 [RateCDR] => 1 ) [2025-03-04 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-04 17:33:05' and `end` < '2025-03-04 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-04 20:33:17] Production.INFO: count ==1791 [2025-03-04 20:33:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:33:05 - End Time 2025-03-04 20:33:05 [2025-03-04 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608269', 'tblTempUsageDetail_20' ) start [2025-03-04 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608269', 'tblTempUsageDetail_20' ) end [2025-03-04 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608269', 'tblTempVendorCDR_20' ) start [2025-03-04 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608269', 'tblTempVendorCDR_20' ) end [2025-03-04 20:33:18] Production.INFO: ProcessCDR(1,14608269,1,1,2) [2025-03-04 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608269', 'tblTempUsageDetail_20' ) start [2025-03-04 20:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608269', 'tblTempUsageDetail_20' ) end [2025-03-04 20:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:33:21] Production.INFO: ==18719== Releasing lock... [2025-03-04 20:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:33:21] Production.INFO: 41.5 MB #Memory Used# [2025-03-04 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:34:05 [end_date_ymd] => 2025-03-04 20:34:05 [RateCDR] => 1 ) [2025-03-04 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-04 17:34:05' and `end` < '2025-03-04 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-04 20:34:17] Production.INFO: count ==1794 [2025-03-04 20:34:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:34:05 - End Time 2025-03-04 20:34:05 [2025-03-04 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608274', 'tblTempUsageDetail_20' ) start [2025-03-04 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608274', 'tblTempUsageDetail_20' ) end [2025-03-04 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608274', 'tblTempVendorCDR_20' ) start [2025-03-04 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608274', 'tblTempVendorCDR_20' ) end [2025-03-04 20:34:18] Production.INFO: ProcessCDR(1,14608274,1,1,2) [2025-03-04 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608274', 'tblTempUsageDetail_20' ) start [2025-03-04 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608274', 'tblTempUsageDetail_20' ) end [2025-03-04 20:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:34:21] Production.INFO: ==18793== Releasing lock... [2025-03-04 20:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:34:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-04 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:35:05 [end_date_ymd] => 2025-03-04 20:35:05 [RateCDR] => 1 ) [2025-03-04 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-04 17:35:05' and `end` < '2025-03-04 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-04 20:35:17] Production.INFO: count ==1784 [2025-03-04 20:35:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:35:05 - End Time 2025-03-04 20:35:05 [2025-03-04 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608279', 'tblTempUsageDetail_20' ) start [2025-03-04 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608279', 'tblTempUsageDetail_20' ) end [2025-03-04 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608279', 'tblTempVendorCDR_20' ) start [2025-03-04 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608279', 'tblTempVendorCDR_20' ) end [2025-03-04 20:35:18] Production.INFO: ProcessCDR(1,14608279,1,1,2) [2025-03-04 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608279', 'tblTempUsageDetail_20' ) start [2025-03-04 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608279', 'tblTempUsageDetail_20' ) end [2025-03-04 20:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:35:23] Production.INFO: ==18868== Releasing lock... [2025-03-04 20:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:35:23] Production.INFO: 42 MB #Memory Used# [2025-03-04 20:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:36:04 [end_date_ymd] => 2025-03-04 20:36:04 [RateCDR] => 1 ) [2025-03-04 20:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 17:36:04' and `end` < '2025-03-04 20:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 20:36:17] Production.INFO: count ==1780 [2025-03-04 20:36:17] Production.ERROR: pbx CDR StartTime 2025-03-04 17:36:04 - End Time 2025-03-04 20:36:04 [2025-03-04 20:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608284', 'tblTempUsageDetail_20' ) start [2025-03-04 20:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608284', 'tblTempUsageDetail_20' ) end [2025-03-04 20:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608284', 'tblTempVendorCDR_20' ) start [2025-03-04 20:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608284', 'tblTempVendorCDR_20' ) end [2025-03-04 20:36:17] Production.INFO: ProcessCDR(1,14608284,1,1,2) [2025-03-04 20:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608284', 'tblTempUsageDetail_20' ) start [2025-03-04 20:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608284', 'tblTempUsageDetail_20' ) end [2025-03-04 20:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:36:20] Production.INFO: ==18944== Releasing lock... [2025-03-04 20:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:36:20] Production.INFO: 42 MB #Memory Used# [2025-03-04 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:37:05 [end_date_ymd] => 2025-03-04 20:37:05 [RateCDR] => 1 ) [2025-03-04 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-04 17:37:05' and `end` < '2025-03-04 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-04 20:37:17] Production.INFO: count ==1779 [2025-03-04 20:37:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:37:05 - End Time 2025-03-04 20:37:05 [2025-03-04 20:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608289', 'tblTempUsageDetail_20' ) start [2025-03-04 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608289', 'tblTempUsageDetail_20' ) end [2025-03-04 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608289', 'tblTempVendorCDR_20' ) start [2025-03-04 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608289', 'tblTempVendorCDR_20' ) end [2025-03-04 20:37:18] Production.INFO: ProcessCDR(1,14608289,1,1,2) [2025-03-04 20:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608289', 'tblTempUsageDetail_20' ) start [2025-03-04 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608289', 'tblTempUsageDetail_20' ) end [2025-03-04 20:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:37:21] Production.INFO: ==19020== Releasing lock... [2025-03-04 20:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:37:21] Production.INFO: 41.75 MB #Memory Used# [2025-03-04 20:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:38:06 [end_date_ymd] => 2025-03-04 20:38:06 [RateCDR] => 1 ) [2025-03-04 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-04 17:38:06' and `end` < '2025-03-04 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-04 20:38:18] Production.INFO: count ==1779 [2025-03-04 20:38:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:38:06 - End Time 2025-03-04 20:38:06 [2025-03-04 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608294', 'tblTempUsageDetail_20' ) start [2025-03-04 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608294', 'tblTempUsageDetail_20' ) end [2025-03-04 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608294', 'tblTempVendorCDR_20' ) start [2025-03-04 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608294', 'tblTempVendorCDR_20' ) end [2025-03-04 20:38:18] Production.INFO: ProcessCDR(1,14608294,1,1,2) [2025-03-04 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608294', 'tblTempUsageDetail_20' ) start [2025-03-04 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608294', 'tblTempUsageDetail_20' ) end [2025-03-04 20:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:38:23] Production.INFO: ==19099== Releasing lock... [2025-03-04 20:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:38:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-04 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:39:05 [end_date_ymd] => 2025-03-04 20:39:05 [RateCDR] => 1 ) [2025-03-04 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-04 17:39:05' and `end` < '2025-03-04 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-04 20:39:17] Production.INFO: count ==1761 [2025-03-04 20:39:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:39:05 - End Time 2025-03-04 20:39:05 [2025-03-04 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608299', 'tblTempUsageDetail_20' ) start [2025-03-04 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608299', 'tblTempUsageDetail_20' ) end [2025-03-04 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608299', 'tblTempVendorCDR_20' ) start [2025-03-04 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608299', 'tblTempVendorCDR_20' ) end [2025-03-04 20:39:18] Production.INFO: ProcessCDR(1,14608299,1,1,2) [2025-03-04 20:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608299', 'tblTempUsageDetail_20' ) start [2025-03-04 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608299', 'tblTempUsageDetail_20' ) end [2025-03-04 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:39:22] Production.INFO: ==19172== Releasing lock... [2025-03-04 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:39:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-04 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:40:06 [end_date_ymd] => 2025-03-04 20:40:06 [RateCDR] => 1 ) [2025-03-04 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-04 17:40:06' and `end` < '2025-03-04 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-04 20:40:18] Production.INFO: count ==1767 [2025-03-04 20:40:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:40:06 - End Time 2025-03-04 20:40:06 [2025-03-04 20:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608305', 'tblTempUsageDetail_20' ) start [2025-03-04 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608305', 'tblTempUsageDetail_20' ) end [2025-03-04 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608305', 'tblTempVendorCDR_20' ) start [2025-03-04 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608305', 'tblTempVendorCDR_20' ) end [2025-03-04 20:40:18] Production.INFO: ProcessCDR(1,14608305,1,1,2) [2025-03-04 20:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608305', 'tblTempUsageDetail_20' ) start [2025-03-04 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608305', 'tblTempUsageDetail_20' ) end [2025-03-04 20:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:40:22] Production.INFO: ==19283== Releasing lock... [2025-03-04 20:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:40:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-04 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:41:05 [end_date_ymd] => 2025-03-04 20:41:05 [RateCDR] => 1 ) [2025-03-04 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-04 17:41:05' and `end` < '2025-03-04 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-04 20:41:17] Production.INFO: count ==1693 [2025-03-04 20:41:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:41:05 - End Time 2025-03-04 20:41:05 [2025-03-04 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608310', 'tblTempUsageDetail_20' ) start [2025-03-04 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608310', 'tblTempUsageDetail_20' ) end [2025-03-04 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608310', 'tblTempVendorCDR_20' ) start [2025-03-04 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608310', 'tblTempVendorCDR_20' ) end [2025-03-04 20:41:18] Production.INFO: ProcessCDR(1,14608310,1,1,2) [2025-03-04 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608310', 'tblTempUsageDetail_20' ) start [2025-03-04 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608310', 'tblTempUsageDetail_20' ) end [2025-03-04 20:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:41:22] Production.INFO: ==19358== Releasing lock... [2025-03-04 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:41:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-04 20:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:42:06 [end_date_ymd] => 2025-03-04 20:42:06 [RateCDR] => 1 ) [2025-03-04 20: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 17:42:06' and `end` < '2025-03-04 20: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-04 20:42:18] Production.INFO: count ==1682 [2025-03-04 20:42:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:42:06 - End Time 2025-03-04 20:42:06 [2025-03-04 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608315', 'tblTempUsageDetail_20' ) start [2025-03-04 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608315', 'tblTempUsageDetail_20' ) end [2025-03-04 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608315', 'tblTempVendorCDR_20' ) start [2025-03-04 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608315', 'tblTempVendorCDR_20' ) end [2025-03-04 20:42:18] Production.INFO: ProcessCDR(1,14608315,1,1,2) [2025-03-04 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608315', 'tblTempUsageDetail_20' ) start [2025-03-04 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608315', 'tblTempUsageDetail_20' ) end [2025-03-04 20:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:42:21] Production.INFO: ==19429== Releasing lock... [2025-03-04 20:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:42:21] Production.INFO: 40.75 MB #Memory Used# [2025-03-04 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:43:05 [end_date_ymd] => 2025-03-04 20:43:05 [RateCDR] => 1 ) [2025-03-04 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-04 17:43:05' and `end` < '2025-03-04 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-04 20:43:17] Production.INFO: count ==1672 [2025-03-04 20:43:17] Production.ERROR: pbx CDR StartTime 2025-03-04 17:43:05 - End Time 2025-03-04 20:43:05 [2025-03-04 20:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608320', 'tblTempUsageDetail_20' ) start [2025-03-04 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608320', 'tblTempUsageDetail_20' ) end [2025-03-04 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608320', 'tblTempVendorCDR_20' ) start [2025-03-04 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608320', 'tblTempVendorCDR_20' ) end [2025-03-04 20:43:17] Production.INFO: ProcessCDR(1,14608320,1,1,2) [2025-03-04 20:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608320', 'tblTempUsageDetail_20' ) start [2025-03-04 20:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608320', 'tblTempUsageDetail_20' ) end [2025-03-04 20:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:43:20] Production.INFO: ==19504== Releasing lock... [2025-03-04 20:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:43:20] Production.INFO: 40.5 MB #Memory Used# [2025-03-04 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:44:05 [end_date_ymd] => 2025-03-04 20:44:05 [RateCDR] => 1 ) [2025-03-04 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-04 17:44:05' and `end` < '2025-03-04 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-04 20:44:17] Production.INFO: count ==1665 [2025-03-04 20:44:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:44:05 - End Time 2025-03-04 20:44:05 [2025-03-04 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608325', 'tblTempUsageDetail_20' ) start [2025-03-04 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608325', 'tblTempUsageDetail_20' ) end [2025-03-04 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608325', 'tblTempVendorCDR_20' ) start [2025-03-04 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608325', 'tblTempVendorCDR_20' ) end [2025-03-04 20:44:18] Production.INFO: ProcessCDR(1,14608325,1,1,2) [2025-03-04 20:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608325', 'tblTempUsageDetail_20' ) start [2025-03-04 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608325', 'tblTempUsageDetail_20' ) end [2025-03-04 20:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:44:23] Production.INFO: ==19576== Releasing lock... [2025-03-04 20:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:44:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-04 20:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:45:06 [end_date_ymd] => 2025-03-04 20:45:06 [RateCDR] => 1 ) [2025-03-04 20: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 17:45:06' and `end` < '2025-03-04 20: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-04 20:45:18] Production.INFO: count ==1666 [2025-03-04 20:45:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:45:06 - End Time 2025-03-04 20:45:06 [2025-03-04 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608330', 'tblTempUsageDetail_20' ) start [2025-03-04 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608330', 'tblTempUsageDetail_20' ) end [2025-03-04 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608330', 'tblTempVendorCDR_20' ) start [2025-03-04 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608330', 'tblTempVendorCDR_20' ) end [2025-03-04 20:45:18] Production.INFO: ProcessCDR(1,14608330,1,1,2) [2025-03-04 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608330', 'tblTempUsageDetail_20' ) start [2025-03-04 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608330', 'tblTempUsageDetail_20' ) end [2025-03-04 20:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:45:23] Production.INFO: ==19648== Releasing lock... [2025-03-04 20:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:45:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-04 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:46:05 [end_date_ymd] => 2025-03-04 20:46:05 [RateCDR] => 1 ) [2025-03-04 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-04 17:46:05' and `end` < '2025-03-04 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-04 20:46:17] Production.INFO: count ==1661 [2025-03-04 20:46:17] Production.ERROR: pbx CDR StartTime 2025-03-04 17:46:05 - End Time 2025-03-04 20:46:05 [2025-03-04 20:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608335', 'tblTempUsageDetail_20' ) start [2025-03-04 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608335', 'tblTempUsageDetail_20' ) end [2025-03-04 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608335', 'tblTempVendorCDR_20' ) start [2025-03-04 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608335', 'tblTempVendorCDR_20' ) end [2025-03-04 20:46:17] Production.INFO: ProcessCDR(1,14608335,1,1,2) [2025-03-04 20:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608335', 'tblTempUsageDetail_20' ) start [2025-03-04 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608335', 'tblTempUsageDetail_20' ) end [2025-03-04 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:46:22] Production.INFO: ==19718== Releasing lock... [2025-03-04 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:46:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-04 20:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:47:06 [end_date_ymd] => 2025-03-04 20:47:06 [RateCDR] => 1 ) [2025-03-04 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-04 17:47:06' and `end` < '2025-03-04 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-04 20:47:18] Production.INFO: count ==1655 [2025-03-04 20:47:19] Production.ERROR: pbx CDR StartTime 2025-03-04 17:47:06 - End Time 2025-03-04 20:47:06 [2025-03-04 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608340', 'tblTempUsageDetail_20' ) start [2025-03-04 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608340', 'tblTempUsageDetail_20' ) end [2025-03-04 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608340', 'tblTempVendorCDR_20' ) start [2025-03-04 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608340', 'tblTempVendorCDR_20' ) end [2025-03-04 20:47:19] Production.INFO: ProcessCDR(1,14608340,1,1,2) [2025-03-04 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608340', 'tblTempUsageDetail_20' ) start [2025-03-04 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608340', 'tblTempUsageDetail_20' ) end [2025-03-04 20:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:47:22] Production.INFO: ==19790== Releasing lock... [2025-03-04 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:47:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-04 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:48:05 [end_date_ymd] => 2025-03-04 20:48:05 [RateCDR] => 1 ) [2025-03-04 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-04 17:48:05' and `end` < '2025-03-04 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-04 20:48:17] Production.INFO: count ==1653 [2025-03-04 20:48:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:48:05 - End Time 2025-03-04 20:48:05 [2025-03-04 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608345', 'tblTempUsageDetail_20' ) start [2025-03-04 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608345', 'tblTempUsageDetail_20' ) end [2025-03-04 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608345', 'tblTempVendorCDR_20' ) start [2025-03-04 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608345', 'tblTempVendorCDR_20' ) end [2025-03-04 20:48:18] Production.INFO: ProcessCDR(1,14608345,1,1,2) [2025-03-04 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608345', 'tblTempUsageDetail_20' ) start [2025-03-04 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608345', 'tblTempUsageDetail_20' ) end [2025-03-04 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:48:22] Production.INFO: ==19861== Releasing lock... [2025-03-04 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:48:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-04 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:49:05 [end_date_ymd] => 2025-03-04 20:49:05 [RateCDR] => 1 ) [2025-03-04 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-04 17:49:05' and `end` < '2025-03-04 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-04 20:49:18] Production.INFO: count ==1650 [2025-03-04 20:49:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:49:05 - End Time 2025-03-04 20:49:05 [2025-03-04 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608350', 'tblTempUsageDetail_20' ) start [2025-03-04 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608350', 'tblTempUsageDetail_20' ) end [2025-03-04 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608350', 'tblTempVendorCDR_20' ) start [2025-03-04 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608350', 'tblTempVendorCDR_20' ) end [2025-03-04 20:49:18] Production.INFO: ProcessCDR(1,14608350,1,1,2) [2025-03-04 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608350', 'tblTempUsageDetail_20' ) start [2025-03-04 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608350', 'tblTempUsageDetail_20' ) end [2025-03-04 20:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:49:21] Production.INFO: ==19931== Releasing lock... [2025-03-04 20:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:49:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-04 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:50:06 [end_date_ymd] => 2025-03-04 20:50:06 [RateCDR] => 1 ) [2025-03-04 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-04 17:50:06' and `end` < '2025-03-04 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-04 20:50:18] Production.INFO: count ==1655 [2025-03-04 20:50:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:50:06 - End Time 2025-03-04 20:50:06 [2025-03-04 20:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608356', 'tblTempUsageDetail_20' ) start [2025-03-04 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608356', 'tblTempUsageDetail_20' ) end [2025-03-04 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608356', 'tblTempVendorCDR_20' ) start [2025-03-04 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608356', 'tblTempVendorCDR_20' ) end [2025-03-04 20:50:18] Production.INFO: ProcessCDR(1,14608356,1,1,2) [2025-03-04 20:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608356', 'tblTempUsageDetail_20' ) start [2025-03-04 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608356', 'tblTempUsageDetail_20' ) end [2025-03-04 20:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:50:22] Production.INFO: ==20004== Releasing lock... [2025-03-04 20:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:50:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-04 20:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:51:06 [end_date_ymd] => 2025-03-04 20:51:06 [RateCDR] => 1 ) [2025-03-04 20: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-04 17:51:06' and `end` < '2025-03-04 20: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-04 20:51:18] Production.INFO: count ==1593 [2025-03-04 20:51:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:51:06 - End Time 2025-03-04 20:51:06 [2025-03-04 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608361', 'tblTempUsageDetail_20' ) start [2025-03-04 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608361', 'tblTempUsageDetail_20' ) end [2025-03-04 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608361', 'tblTempVendorCDR_20' ) start [2025-03-04 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608361', 'tblTempVendorCDR_20' ) end [2025-03-04 20:51:18] Production.INFO: ProcessCDR(1,14608361,1,1,2) [2025-03-04 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608361', 'tblTempUsageDetail_20' ) start [2025-03-04 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608361', 'tblTempUsageDetail_20' ) end [2025-03-04 20:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:51:21] Production.INFO: ==20078== Releasing lock... [2025-03-04 20:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:51:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-04 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:52:05 [end_date_ymd] => 2025-03-04 20:52:05 [RateCDR] => 1 ) [2025-03-04 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-04 17:52:05' and `end` < '2025-03-04 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-04 20:52:17] Production.INFO: count ==1590 [2025-03-04 20:52:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:52:05 - End Time 2025-03-04 20:52:05 [2025-03-04 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608366', 'tblTempUsageDetail_20' ) start [2025-03-04 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608366', 'tblTempUsageDetail_20' ) end [2025-03-04 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608366', 'tblTempVendorCDR_20' ) start [2025-03-04 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608366', 'tblTempVendorCDR_20' ) end [2025-03-04 20:52:18] Production.INFO: ProcessCDR(1,14608366,1,1,2) [2025-03-04 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608366', 'tblTempUsageDetail_20' ) start [2025-03-04 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608366', 'tblTempUsageDetail_20' ) end [2025-03-04 20:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:52:21] Production.INFO: ==20147== Releasing lock... [2025-03-04 20:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:52:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-04 20:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:53:06 [end_date_ymd] => 2025-03-04 20:53:06 [RateCDR] => 1 ) [2025-03-04 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-04 17:53:06' and `end` < '2025-03-04 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-04 20:53:18] Production.INFO: count ==1601 [2025-03-04 20:53:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:53:06 - End Time 2025-03-04 20:53:06 [2025-03-04 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608371', 'tblTempUsageDetail_20' ) start [2025-03-04 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608371', 'tblTempUsageDetail_20' ) end [2025-03-04 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608371', 'tblTempVendorCDR_20' ) start [2025-03-04 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608371', 'tblTempVendorCDR_20' ) end [2025-03-04 20:53:18] Production.INFO: ProcessCDR(1,14608371,1,1,2) [2025-03-04 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608371', 'tblTempUsageDetail_20' ) start [2025-03-04 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608371', 'tblTempUsageDetail_20' ) end [2025-03-04 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:53:22] Production.INFO: ==20220== Releasing lock... [2025-03-04 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:53:22] Production.INFO: 40 MB #Memory Used# [2025-03-04 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:54:05 [end_date_ymd] => 2025-03-04 20:54:05 [RateCDR] => 1 ) [2025-03-04 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-04 17:54:05' and `end` < '2025-03-04 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-04 20:54:17] Production.INFO: count ==1601 [2025-03-04 20:54:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:54:05 - End Time 2025-03-04 20:54:05 [2025-03-04 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608376', 'tblTempUsageDetail_20' ) start [2025-03-04 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608376', 'tblTempUsageDetail_20' ) end [2025-03-04 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608376', 'tblTempVendorCDR_20' ) start [2025-03-04 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608376', 'tblTempVendorCDR_20' ) end [2025-03-04 20:54:18] Production.INFO: ProcessCDR(1,14608376,1,1,2) [2025-03-04 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608376', 'tblTempUsageDetail_20' ) start [2025-03-04 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608376', 'tblTempUsageDetail_20' ) end [2025-03-04 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:54:22] Production.INFO: ==20289== Releasing lock... [2025-03-04 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:54:22] Production.INFO: 40 MB #Memory Used# [2025-03-04 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:55:05 [end_date_ymd] => 2025-03-04 20:55:05 [RateCDR] => 1 ) [2025-03-04 20:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 17:55:05' and `end` < '2025-03-04 20:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 20:55:18] Production.INFO: count ==1597 [2025-03-04 20:55:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:55:05 - End Time 2025-03-04 20:55:05 [2025-03-04 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608381', 'tblTempUsageDetail_20' ) start [2025-03-04 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608381', 'tblTempUsageDetail_20' ) end [2025-03-04 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608381', 'tblTempVendorCDR_20' ) start [2025-03-04 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608381', 'tblTempVendorCDR_20' ) end [2025-03-04 20:55:18] Production.INFO: ProcessCDR(1,14608381,1,1,2) [2025-03-04 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608381', 'tblTempUsageDetail_20' ) start [2025-03-04 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608381', 'tblTempUsageDetail_20' ) end [2025-03-04 20:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:55:23] Production.INFO: ==20360== Releasing lock... [2025-03-04 20:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:55:23] Production.INFO: 40 MB #Memory Used# [2025-03-04 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:56:05 [end_date_ymd] => 2025-03-04 20:56:05 [RateCDR] => 1 ) [2025-03-04 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-04 17:56:05' and `end` < '2025-03-04 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-04 20:56:17] Production.INFO: count ==1590 [2025-03-04 20:56:17] Production.ERROR: pbx CDR StartTime 2025-03-04 17:56:05 - End Time 2025-03-04 20:56:05 [2025-03-04 20:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608386', 'tblTempUsageDetail_20' ) start [2025-03-04 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608386', 'tblTempUsageDetail_20' ) end [2025-03-04 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608386', 'tblTempVendorCDR_20' ) start [2025-03-04 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608386', 'tblTempVendorCDR_20' ) end [2025-03-04 20:56:17] Production.INFO: ProcessCDR(1,14608386,1,1,2) [2025-03-04 20:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608386', 'tblTempUsageDetail_20' ) start [2025-03-04 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608386', 'tblTempUsageDetail_20' ) end [2025-03-04 20:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:56:21] Production.INFO: ==20471== Releasing lock... [2025-03-04 20:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:56:21] Production.INFO: 40 MB #Memory Used# [2025-03-04 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:57:05 [end_date_ymd] => 2025-03-04 20:57:05 [RateCDR] => 1 ) [2025-03-04 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-04 17:57:05' and `end` < '2025-03-04 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-04 20:57:17] Production.INFO: count ==1587 [2025-03-04 20:57:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:57:05 - End Time 2025-03-04 20:57:05 [2025-03-04 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608391', 'tblTempUsageDetail_20' ) start [2025-03-04 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608391', 'tblTempUsageDetail_20' ) end [2025-03-04 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608391', 'tblTempVendorCDR_20' ) start [2025-03-04 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608391', 'tblTempVendorCDR_20' ) end [2025-03-04 20:57:18] Production.INFO: ProcessCDR(1,14608391,1,1,2) [2025-03-04 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608391', 'tblTempUsageDetail_20' ) start [2025-03-04 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608391', 'tblTempUsageDetail_20' ) end [2025-03-04 20:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:57:21] Production.INFO: ==20548== Releasing lock... [2025-03-04 20:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:57:21] Production.INFO: 40 MB #Memory Used# [2025-03-04 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:58:05 [end_date_ymd] => 2025-03-04 20:58:05 [RateCDR] => 1 ) [2025-03-04 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-04 17:58:05' and `end` < '2025-03-04 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-04 20:58:17] Production.INFO: count ==1585 [2025-03-04 20:58:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:58:05 - End Time 2025-03-04 20:58:05 [2025-03-04 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608396', 'tblTempUsageDetail_20' ) start [2025-03-04 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608396', 'tblTempUsageDetail_20' ) end [2025-03-04 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608396', 'tblTempVendorCDR_20' ) start [2025-03-04 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608396', 'tblTempVendorCDR_20' ) end [2025-03-04 20:58:18] Production.INFO: ProcessCDR(1,14608396,1,1,2) [2025-03-04 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608396', 'tblTempUsageDetail_20' ) start [2025-03-04 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608396', 'tblTempUsageDetail_20' ) end [2025-03-04 20:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:58:21] Production.INFO: ==20623== Releasing lock... [2025-03-04 20:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:58:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-04 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 17:59:05 [end_date_ymd] => 2025-03-04 20:59:05 [RateCDR] => 1 ) [2025-03-04 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-04 17:59:05' and `end` < '2025-03-04 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-04 20:59:17] Production.INFO: count ==1573 [2025-03-04 20:59:18] Production.ERROR: pbx CDR StartTime 2025-03-04 17:59:05 - End Time 2025-03-04 20:59:05 [2025-03-04 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608401', 'tblTempUsageDetail_20' ) start [2025-03-04 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608401', 'tblTempUsageDetail_20' ) end [2025-03-04 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608401', 'tblTempVendorCDR_20' ) start [2025-03-04 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608401', 'tblTempVendorCDR_20' ) end [2025-03-04 20:59:18] Production.INFO: ProcessCDR(1,14608401,1,1,2) [2025-03-04 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 20:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608401', 'tblTempUsageDetail_20' ) start [2025-03-04 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608401', 'tblTempUsageDetail_20' ) end [2025-03-04 20:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 20:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 20:59:21] Production.INFO: ==20692== Releasing lock... [2025-03-04 20:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 20:59:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-04 21:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:00:07 [end_date_ymd] => 2025-03-04 21:00:07 [RateCDR] => 1 ) [2025-03-04 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-04 18:00:07' and `end` < '2025-03-04 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-04 21:00:19] Production.INFO: count ==1563 [2025-03-04 21:00:19] Production.ERROR: pbx CDR StartTime 2025-03-04 18:00:07 - End Time 2025-03-04 21:00:07 [2025-03-04 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608407', 'tblTempUsageDetail_20' ) start [2025-03-04 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608407', 'tblTempUsageDetail_20' ) end [2025-03-04 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608407', 'tblTempVendorCDR_20' ) start [2025-03-04 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608407', 'tblTempVendorCDR_20' ) end [2025-03-04 21:00:19] Production.INFO: ProcessCDR(1,14608407,1,1,2) [2025-03-04 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608407', 'tblTempUsageDetail_20' ) start [2025-03-04 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608407', 'tblTempUsageDetail_20' ) end [2025-03-04 21:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:00:22] Production.INFO: ==20767== Releasing lock... [2025-03-04 21:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:00:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-04 21:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:01:06 [end_date_ymd] => 2025-03-04 21:01:06 [RateCDR] => 1 ) [2025-03-04 21: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 18:01:06' and `end` < '2025-03-04 21: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-04 21:01:18] Production.INFO: count ==1554 [2025-03-04 21:01:18] Production.ERROR: pbx CDR StartTime 2025-03-04 18:01:06 - End Time 2025-03-04 21:01:06 [2025-03-04 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608412', 'tblTempUsageDetail_20' ) start [2025-03-04 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608412', 'tblTempUsageDetail_20' ) end [2025-03-04 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608412', 'tblTempVendorCDR_20' ) start [2025-03-04 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608412', 'tblTempVendorCDR_20' ) end [2025-03-04 21:01:18] Production.INFO: ProcessCDR(1,14608412,1,1,2) [2025-03-04 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608412', 'tblTempUsageDetail_20' ) start [2025-03-04 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608412', 'tblTempUsageDetail_20' ) end [2025-03-04 21:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:01:22] Production.INFO: ==20851== Releasing lock... [2025-03-04 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:01:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-04 21:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:02:06 [end_date_ymd] => 2025-03-04 21:02:06 [RateCDR] => 1 ) [2025-03-04 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-04 18:02:06' and `end` < '2025-03-04 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-04 21:02:18] Production.INFO: count ==1549 [2025-03-04 21:02:19] Production.ERROR: pbx CDR StartTime 2025-03-04 18:02:06 - End Time 2025-03-04 21:02:06 [2025-03-04 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608417', 'tblTempUsageDetail_20' ) start [2025-03-04 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608417', 'tblTempUsageDetail_20' ) end [2025-03-04 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608417', 'tblTempVendorCDR_20' ) start [2025-03-04 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608417', 'tblTempVendorCDR_20' ) end [2025-03-04 21:02:19] Production.INFO: ProcessCDR(1,14608417,1,1,2) [2025-03-04 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608417', 'tblTempUsageDetail_20' ) start [2025-03-04 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608417', 'tblTempUsageDetail_20' ) end [2025-03-04 21:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:02:22] Production.INFO: ==20923== Releasing lock... [2025-03-04 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:02:22] Production.INFO: 40 MB #Memory Used# [2025-03-04 21:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:03:06 [end_date_ymd] => 2025-03-04 21:03:06 [RateCDR] => 1 ) [2025-03-04 21: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-04 18:03:06' and `end` < '2025-03-04 21: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-04 21:03:18] Production.INFO: count ==1543 [2025-03-04 21:03:18] Production.ERROR: pbx CDR StartTime 2025-03-04 18:03:06 - End Time 2025-03-04 21:03:06 [2025-03-04 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608422', 'tblTempUsageDetail_20' ) start [2025-03-04 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608422', 'tblTempUsageDetail_20' ) end [2025-03-04 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608422', 'tblTempVendorCDR_20' ) start [2025-03-04 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608422', 'tblTempVendorCDR_20' ) end [2025-03-04 21:03:18] Production.INFO: ProcessCDR(1,14608422,1,1,2) [2025-03-04 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608422', 'tblTempUsageDetail_20' ) start [2025-03-04 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608422', 'tblTempUsageDetail_20' ) end [2025-03-04 21:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:03:22] Production.INFO: ==20994== Releasing lock... [2025-03-04 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:03:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-04 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:04:05 [end_date_ymd] => 2025-03-04 21:04:05 [RateCDR] => 1 ) [2025-03-04 21:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 18:04:05' and `end` < '2025-03-04 21:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 21:04:17] Production.INFO: count ==1526 [2025-03-04 21:04:18] Production.ERROR: pbx CDR StartTime 2025-03-04 18:04:05 - End Time 2025-03-04 21:04:05 [2025-03-04 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608427', 'tblTempUsageDetail_20' ) start [2025-03-04 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608427', 'tblTempUsageDetail_20' ) end [2025-03-04 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608427', 'tblTempVendorCDR_20' ) start [2025-03-04 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608427', 'tblTempVendorCDR_20' ) end [2025-03-04 21:04:18] Production.INFO: ProcessCDR(1,14608427,1,1,2) [2025-03-04 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608427', 'tblTempUsageDetail_20' ) start [2025-03-04 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608427', 'tblTempUsageDetail_20' ) end [2025-03-04 21:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:04:21] Production.INFO: ==21066== Releasing lock... [2025-03-04 21:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:04:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-04 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:05:05 [end_date_ymd] => 2025-03-04 21:05:05 [RateCDR] => 1 ) [2025-03-04 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-04 18:05:05' and `end` < '2025-03-04 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-04 21:05:18] Production.INFO: count ==1517 [2025-03-04 21:05:18] Production.ERROR: pbx CDR StartTime 2025-03-04 18:05:05 - End Time 2025-03-04 21:05:05 [2025-03-04 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608432', 'tblTempUsageDetail_20' ) start [2025-03-04 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608432', 'tblTempUsageDetail_20' ) end [2025-03-04 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608432', 'tblTempVendorCDR_20' ) start [2025-03-04 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608432', 'tblTempVendorCDR_20' ) end [2025-03-04 21:05:18] Production.INFO: ProcessCDR(1,14608432,1,1,2) [2025-03-04 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608432', 'tblTempUsageDetail_20' ) start [2025-03-04 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608432', 'tblTempUsageDetail_20' ) end [2025-03-04 21:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:05:21] Production.INFO: ==21139== Releasing lock... [2025-03-04 21:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:05:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-04 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:06:05 [end_date_ymd] => 2025-03-04 21:06:05 [RateCDR] => 1 ) [2025-03-04 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-04 18:06:05' and `end` < '2025-03-04 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-04 21:06:17] Production.INFO: count ==1516 [2025-03-04 21:06:17] Production.ERROR: pbx CDR StartTime 2025-03-04 18:06:05 - End Time 2025-03-04 21:06:05 [2025-03-04 21:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608437', 'tblTempUsageDetail_20' ) start [2025-03-04 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608437', 'tblTempUsageDetail_20' ) end [2025-03-04 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608437', 'tblTempVendorCDR_20' ) start [2025-03-04 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608437', 'tblTempVendorCDR_20' ) end [2025-03-04 21:06:17] Production.INFO: ProcessCDR(1,14608437,1,1,2) [2025-03-04 21:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608437', 'tblTempUsageDetail_20' ) start [2025-03-04 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608437', 'tblTempUsageDetail_20' ) end [2025-03-04 21:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:06:21] Production.INFO: ==21210== Releasing lock... [2025-03-04 21:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:06:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-04 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:07:05 [end_date_ymd] => 2025-03-04 21:07:05 [RateCDR] => 1 ) [2025-03-04 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-04 18:07:05' and `end` < '2025-03-04 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-04 21:07:17] Production.INFO: count ==1506 [2025-03-04 21:07:17] Production.ERROR: pbx CDR StartTime 2025-03-04 18:07:05 - End Time 2025-03-04 21:07:05 [2025-03-04 21:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608442', 'tblTempUsageDetail_20' ) start [2025-03-04 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608442', 'tblTempUsageDetail_20' ) end [2025-03-04 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608442', 'tblTempVendorCDR_20' ) start [2025-03-04 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608442', 'tblTempVendorCDR_20' ) end [2025-03-04 21:07:17] Production.INFO: ProcessCDR(1,14608442,1,1,2) [2025-03-04 21:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608442', 'tblTempUsageDetail_20' ) start [2025-03-04 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608442', 'tblTempUsageDetail_20' ) end [2025-03-04 21:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:07:21] Production.INFO: ==21281== Releasing lock... [2025-03-04 21:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:07:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-04 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:08:05 [end_date_ymd] => 2025-03-04 21:08:05 [RateCDR] => 1 ) [2025-03-04 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-04 18:08:05' and `end` < '2025-03-04 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-04 21:08:17] Production.INFO: count ==1506 [2025-03-04 21:08:17] Production.ERROR: pbx CDR StartTime 2025-03-04 18:08:05 - End Time 2025-03-04 21:08:05 [2025-03-04 21:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608447', 'tblTempUsageDetail_20' ) start [2025-03-04 21:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608447', 'tblTempUsageDetail_20' ) end [2025-03-04 21:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608447', 'tblTempVendorCDR_20' ) start [2025-03-04 21:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608447', 'tblTempVendorCDR_20' ) end [2025-03-04 21:08:17] Production.INFO: ProcessCDR(1,14608447,1,1,2) [2025-03-04 21:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608447', 'tblTempUsageDetail_20' ) start [2025-03-04 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608447', 'tblTempUsageDetail_20' ) end [2025-03-04 21:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:08:22] Production.INFO: ==21354== Releasing lock... [2025-03-04 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:08:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-04 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:09:05 [end_date_ymd] => 2025-03-04 21:09:05 [RateCDR] => 1 ) [2025-03-04 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-04 18:09:05' and `end` < '2025-03-04 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-04 21:09:17] Production.INFO: count ==1504 [2025-03-04 21:09:17] Production.ERROR: pbx CDR StartTime 2025-03-04 18:09:05 - End Time 2025-03-04 21:09:05 [2025-03-04 21:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608452', 'tblTempUsageDetail_20' ) start [2025-03-04 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608452', 'tblTempUsageDetail_20' ) end [2025-03-04 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608452', 'tblTempVendorCDR_20' ) start [2025-03-04 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608452', 'tblTempVendorCDR_20' ) end [2025-03-04 21:09:17] Production.INFO: ProcessCDR(1,14608452,1,1,2) [2025-03-04 21:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608452', 'tblTempUsageDetail_20' ) start [2025-03-04 21:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608452', 'tblTempUsageDetail_20' ) end [2025-03-04 21:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:09:20] Production.INFO: ==21426== Releasing lock... [2025-03-04 21:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:09:20] Production.INFO: 39.5 MB #Memory Used# [2025-03-04 21:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:10:07 [end_date_ymd] => 2025-03-04 21:10:07 [RateCDR] => 1 ) [2025-03-04 21: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-04 18:10:07' and `end` < '2025-03-04 21: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-04 21:10:19] Production.INFO: count ==1590 [2025-03-04 21:10:19] Production.ERROR: pbx CDR StartTime 2025-03-04 18:10:07 - End Time 2025-03-04 21:10:07 [2025-03-04 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608458', 'tblTempUsageDetail_20' ) start [2025-03-04 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608458', 'tblTempUsageDetail_20' ) end [2025-03-04 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608458', 'tblTempVendorCDR_20' ) start [2025-03-04 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608458', 'tblTempVendorCDR_20' ) end [2025-03-04 21:10:19] Production.INFO: ProcessCDR(1,14608458,1,1,2) [2025-03-04 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608458', 'tblTempUsageDetail_20' ) start [2025-03-04 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608458', 'tblTempUsageDetail_20' ) end [2025-03-04 21:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:10:24] Production.INFO: ==21501== Releasing lock... [2025-03-04 21:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:10:24] Production.INFO: 40 MB #Memory Used# [2025-03-04 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:11:05 [end_date_ymd] => 2025-03-04 21:11:05 [RateCDR] => 1 ) [2025-03-04 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-04 18:11:05' and `end` < '2025-03-04 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-04 21:11:17] Production.INFO: count ==1556 [2025-03-04 21:11:18] Production.ERROR: pbx CDR StartTime 2025-03-04 18:11:05 - End Time 2025-03-04 21:11:05 [2025-03-04 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608463', 'tblTempUsageDetail_20' ) start [2025-03-04 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608463', 'tblTempUsageDetail_20' ) end [2025-03-04 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608463', 'tblTempVendorCDR_20' ) start [2025-03-04 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608463', 'tblTempVendorCDR_20' ) end [2025-03-04 21:11:18] Production.INFO: ProcessCDR(1,14608463,1,1,2) [2025-03-04 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608463', 'tblTempUsageDetail_20' ) start [2025-03-04 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608463', 'tblTempUsageDetail_20' ) end [2025-03-04 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:11:22] Production.INFO: ==21617== Releasing lock... [2025-03-04 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:11:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-04 21:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:12:06 [end_date_ymd] => 2025-03-04 21:12:06 [RateCDR] => 1 ) [2025-03-04 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-04 18:12:06' and `end` < '2025-03-04 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-04 21:12:18] Production.INFO: count ==1552 [2025-03-04 21:12:18] Production.ERROR: pbx CDR StartTime 2025-03-04 18:12:06 - End Time 2025-03-04 21:12:06 [2025-03-04 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608468', 'tblTempUsageDetail_20' ) start [2025-03-04 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608468', 'tblTempUsageDetail_20' ) end [2025-03-04 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608468', 'tblTempVendorCDR_20' ) start [2025-03-04 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608468', 'tblTempVendorCDR_20' ) end [2025-03-04 21:12:18] Production.INFO: ProcessCDR(1,14608468,1,1,2) [2025-03-04 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608468', 'tblTempUsageDetail_20' ) start [2025-03-04 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608468', 'tblTempUsageDetail_20' ) end [2025-03-04 21:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:12:23] Production.INFO: ==21692== Releasing lock... [2025-03-04 21:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:12:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-04 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:13:05 [end_date_ymd] => 2025-03-04 21:13:05 [RateCDR] => 1 ) [2025-03-04 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-04 18:13:05' and `end` < '2025-03-04 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-04 21:13:18] Production.INFO: count ==1555 [2025-03-04 21:13:18] Production.ERROR: pbx CDR StartTime 2025-03-04 18:13:05 - End Time 2025-03-04 21:13:05 [2025-03-04 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608473', 'tblTempUsageDetail_20' ) start [2025-03-04 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608473', 'tblTempUsageDetail_20' ) end [2025-03-04 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608473', 'tblTempVendorCDR_20' ) start [2025-03-04 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608473', 'tblTempVendorCDR_20' ) end [2025-03-04 21:13:18] Production.INFO: ProcessCDR(1,14608473,1,1,2) [2025-03-04 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608473', 'tblTempUsageDetail_20' ) start [2025-03-04 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608473', 'tblTempUsageDetail_20' ) end [2025-03-04 21:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:13:21] Production.INFO: ==21761== Releasing lock... [2025-03-04 21:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:13:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-04 21:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:14:06 [end_date_ymd] => 2025-03-04 21:14:06 [RateCDR] => 1 ) [2025-03-04 21: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 18:14:06' and `end` < '2025-03-04 21: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-04 21:14:18] Production.INFO: count ==1546 [2025-03-04 21:14:19] Production.ERROR: pbx CDR StartTime 2025-03-04 18:14:06 - End Time 2025-03-04 21:14:06 [2025-03-04 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608478', 'tblTempUsageDetail_20' ) start [2025-03-04 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608478', 'tblTempUsageDetail_20' ) end [2025-03-04 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608478', 'tblTempVendorCDR_20' ) start [2025-03-04 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608478', 'tblTempVendorCDR_20' ) end [2025-03-04 21:14:19] Production.INFO: ProcessCDR(1,14608478,1,1,2) [2025-03-04 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608478', 'tblTempUsageDetail_20' ) start [2025-03-04 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608478', 'tblTempUsageDetail_20' ) end [2025-03-04 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:14:22] Production.INFO: ==21834== Releasing lock... [2025-03-04 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:14:22] Production.INFO: 40 MB #Memory Used# [2025-03-04 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:15:05 [end_date_ymd] => 2025-03-04 21:15:05 [RateCDR] => 1 ) [2025-03-04 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-04 18:15:05' and `end` < '2025-03-04 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-04 21:15:17] Production.INFO: count ==1543 [2025-03-04 21:15:18] Production.ERROR: pbx CDR StartTime 2025-03-04 18:15:05 - End Time 2025-03-04 21:15:05 [2025-03-04 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608483', 'tblTempUsageDetail_20' ) start [2025-03-04 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608483', 'tblTempUsageDetail_20' ) end [2025-03-04 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608483', 'tblTempVendorCDR_20' ) start [2025-03-04 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608483', 'tblTempVendorCDR_20' ) end [2025-03-04 21:15:18] Production.INFO: ProcessCDR(1,14608483,1,1,2) [2025-03-04 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608483', 'tblTempUsageDetail_20' ) start [2025-03-04 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608483', 'tblTempUsageDetail_20' ) end [2025-03-04 21:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:15:22] Production.INFO: ==21908== Releasing lock... [2025-03-04 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:15:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-04 21:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:16:06 [end_date_ymd] => 2025-03-04 21:16:06 [RateCDR] => 1 ) [2025-03-04 21: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 18:16:06' and `end` < '2025-03-04 21: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-04 21:16:18] Production.INFO: count ==1544 [2025-03-04 21:16:18] Production.ERROR: pbx CDR StartTime 2025-03-04 18:16:06 - End Time 2025-03-04 21:16:06 [2025-03-04 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608488', 'tblTempUsageDetail_20' ) start [2025-03-04 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608488', 'tblTempUsageDetail_20' ) end [2025-03-04 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608488', 'tblTempVendorCDR_20' ) start [2025-03-04 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608488', 'tblTempVendorCDR_20' ) end [2025-03-04 21:16:19] Production.INFO: ProcessCDR(1,14608488,1,1,2) [2025-03-04 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608488', 'tblTempUsageDetail_20' ) start [2025-03-04 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608488', 'tblTempUsageDetail_20' ) end [2025-03-04 21:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:16:23] Production.INFO: ==21986== Releasing lock... [2025-03-04 21:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:16:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-04 21:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:17:05 [end_date_ymd] => 2025-03-04 21:17:05 [RateCDR] => 1 ) [2025-03-04 21: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 18:17:05' and `end` < '2025-03-04 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-04 21:17:18] Production.INFO: count ==1543 [2025-03-04 21:17:18] Production.ERROR: pbx CDR StartTime 2025-03-04 18:17:05 - End Time 2025-03-04 21:17:05 [2025-03-04 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608493', 'tblTempUsageDetail_20' ) start [2025-03-04 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608493', 'tblTempUsageDetail_20' ) end [2025-03-04 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608493', 'tblTempVendorCDR_20' ) start [2025-03-04 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608493', 'tblTempVendorCDR_20' ) end [2025-03-04 21:17:18] Production.INFO: ProcessCDR(1,14608493,1,1,2) [2025-03-04 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608493', 'tblTempUsageDetail_20' ) start [2025-03-04 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608493', 'tblTempUsageDetail_20' ) end [2025-03-04 21:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:17:21] Production.INFO: ==22061== Releasing lock... [2025-03-04 21:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:17:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-04 21:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:18:06 [end_date_ymd] => 2025-03-04 21:18:06 [RateCDR] => 1 ) [2025-03-04 21: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 18:18:06' and `end` < '2025-03-04 21: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-04 21:18:18] Production.INFO: count ==1538 [2025-03-04 21:18:18] Production.ERROR: pbx CDR StartTime 2025-03-04 18:18:06 - End Time 2025-03-04 21:18:06 [2025-03-04 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608498', 'tblTempUsageDetail_20' ) start [2025-03-04 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608498', 'tblTempUsageDetail_20' ) end [2025-03-04 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608498', 'tblTempVendorCDR_20' ) start [2025-03-04 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608498', 'tblTempVendorCDR_20' ) end [2025-03-04 21:18:18] Production.INFO: ProcessCDR(1,14608498,1,1,2) [2025-03-04 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608498', 'tblTempUsageDetail_20' ) start [2025-03-04 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608498', 'tblTempUsageDetail_20' ) end [2025-03-04 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:18:22] Production.INFO: ==22133== Releasing lock... [2025-03-04 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:18:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-04 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:19:05 [end_date_ymd] => 2025-03-04 21:19:05 [RateCDR] => 1 ) [2025-03-04 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 18:19:05' and `end` < '2025-03-04 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 21:19:17] Production.INFO: count ==1535 [2025-03-04 21:19:17] Production.ERROR: pbx CDR StartTime 2025-03-04 18:19:05 - End Time 2025-03-04 21:19:05 [2025-03-04 21:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608503', 'tblTempUsageDetail_20' ) start [2025-03-04 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608503', 'tblTempUsageDetail_20' ) end [2025-03-04 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608503', 'tblTempVendorCDR_20' ) start [2025-03-04 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608503', 'tblTempVendorCDR_20' ) end [2025-03-04 21:19:17] Production.INFO: ProcessCDR(1,14608503,1,1,2) [2025-03-04 21:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608503', 'tblTempUsageDetail_20' ) start [2025-03-04 21:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608503', 'tblTempUsageDetail_20' ) end [2025-03-04 21:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:19:20] Production.INFO: ==22210== Releasing lock... [2025-03-04 21:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:19:20] Production.INFO: 39.5 MB #Memory Used# [2025-03-04 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:20:06 [end_date_ymd] => 2025-03-04 21:20:06 [RateCDR] => 1 ) [2025-03-04 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-04 18:20:06' and `end` < '2025-03-04 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-04 21:20:19] Production.INFO: count ==1530 [2025-03-04 21:20:19] Production.ERROR: pbx CDR StartTime 2025-03-04 18:20:06 - End Time 2025-03-04 21:20:06 [2025-03-04 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608508', 'tblTempUsageDetail_20' ) start [2025-03-04 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608508', 'tblTempUsageDetail_20' ) end [2025-03-04 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608508', 'tblTempVendorCDR_20' ) start [2025-03-04 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608508', 'tblTempVendorCDR_20' ) end [2025-03-04 21:20:19] Production.INFO: ProcessCDR(1,14608508,1,1,2) [2025-03-04 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608508', 'tblTempUsageDetail_20' ) start [2025-03-04 21:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608508', 'tblTempUsageDetail_20' ) end [2025-03-04 21:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:20:24] Production.INFO: ==22288== Releasing lock... [2025-03-04 21:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:20:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-04 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:21:05 [end_date_ymd] => 2025-03-04 21:21:05 [RateCDR] => 1 ) [2025-03-04 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 18:21:05' and `end` < '2025-03-04 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 21:21:17] Production.INFO: count ==1470 [2025-03-04 21:21:18] Production.ERROR: pbx CDR StartTime 2025-03-04 18:21:05 - End Time 2025-03-04 21:21:05 [2025-03-04 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608514', 'tblTempUsageDetail_20' ) start [2025-03-04 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608514', 'tblTempUsageDetail_20' ) end [2025-03-04 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608514', 'tblTempVendorCDR_20' ) start [2025-03-04 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608514', 'tblTempVendorCDR_20' ) end [2025-03-04 21:21:18] Production.INFO: ProcessCDR(1,14608514,1,1,2) [2025-03-04 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608514', 'tblTempUsageDetail_20' ) start [2025-03-04 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608514', 'tblTempUsageDetail_20' ) end [2025-03-04 21:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:21:21] Production.INFO: ==22363== Releasing lock... [2025-03-04 21:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:21:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-04 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:22:05 [end_date_ymd] => 2025-03-04 21:22:05 [RateCDR] => 1 ) [2025-03-04 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-04 18:22:05' and `end` < '2025-03-04 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-04 21:22:17] Production.INFO: count ==1469 [2025-03-04 21:22:18] Production.ERROR: pbx CDR StartTime 2025-03-04 18:22:05 - End Time 2025-03-04 21:22:05 [2025-03-04 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608519', 'tblTempUsageDetail_20' ) start [2025-03-04 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608519', 'tblTempUsageDetail_20' ) end [2025-03-04 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608519', 'tblTempVendorCDR_20' ) start [2025-03-04 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608519', 'tblTempVendorCDR_20' ) end [2025-03-04 21:22:18] Production.INFO: ProcessCDR(1,14608519,1,1,2) [2025-03-04 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608519', 'tblTempUsageDetail_20' ) start [2025-03-04 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608519', 'tblTempUsageDetail_20' ) end [2025-03-04 21:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:22:21] Production.INFO: ==22436== Releasing lock... [2025-03-04 21:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:22:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-04 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:23:05 [end_date_ymd] => 2025-03-04 21:23:05 [RateCDR] => 1 ) [2025-03-04 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-04 18:23:05' and `end` < '2025-03-04 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-04 21:23:17] Production.INFO: count ==1466 [2025-03-04 21:23:18] Production.ERROR: pbx CDR StartTime 2025-03-04 18:23:05 - End Time 2025-03-04 21:23:05 [2025-03-04 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608524', 'tblTempUsageDetail_20' ) start [2025-03-04 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608524', 'tblTempUsageDetail_20' ) end [2025-03-04 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608524', 'tblTempVendorCDR_20' ) start [2025-03-04 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608524', 'tblTempVendorCDR_20' ) end [2025-03-04 21:23:18] Production.INFO: ProcessCDR(1,14608524,1,1,2) [2025-03-04 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608524', 'tblTempUsageDetail_20' ) start [2025-03-04 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608524', 'tblTempUsageDetail_20' ) end [2025-03-04 21:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:23:22] Production.INFO: ==22507== Releasing lock... [2025-03-04 21:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:23:22] Production.INFO: 39 MB #Memory Used# [2025-03-04 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:24:05 [end_date_ymd] => 2025-03-04 21:24:05 [RateCDR] => 1 ) [2025-03-04 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-04 18:24:05' and `end` < '2025-03-04 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-04 21:24:18] Production.INFO: count ==1466 [2025-03-04 21:24:18] Production.ERROR: pbx CDR StartTime 2025-03-04 18:24:05 - End Time 2025-03-04 21:24:05 [2025-03-04 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608529', 'tblTempUsageDetail_20' ) start [2025-03-04 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608529', 'tblTempUsageDetail_20' ) end [2025-03-04 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608529', 'tblTempVendorCDR_20' ) start [2025-03-04 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608529', 'tblTempVendorCDR_20' ) end [2025-03-04 21:24:18] Production.INFO: ProcessCDR(1,14608529,1,1,2) [2025-03-04 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608529', 'tblTempUsageDetail_20' ) start [2025-03-04 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608529', 'tblTempUsageDetail_20' ) end [2025-03-04 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:24:22] Production.INFO: ==22592== Releasing lock... [2025-03-04 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:24:22] Production.INFO: 39 MB #Memory Used# [2025-03-04 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:25:05 [end_date_ymd] => 2025-03-04 21:25:05 [RateCDR] => 1 ) [2025-03-04 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-04 18:25:05' and `end` < '2025-03-04 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-04 21:25:17] Production.INFO: count ==1464 [2025-03-04 21:25:18] Production.ERROR: pbx CDR StartTime 2025-03-04 18:25:05 - End Time 2025-03-04 21:25:05 [2025-03-04 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608534', 'tblTempUsageDetail_20' ) start [2025-03-04 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608534', 'tblTempUsageDetail_20' ) end [2025-03-04 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608534', 'tblTempVendorCDR_20' ) start [2025-03-04 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608534', 'tblTempVendorCDR_20' ) end [2025-03-04 21:25:18] Production.INFO: ProcessCDR(1,14608534,1,1,2) [2025-03-04 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608534', 'tblTempUsageDetail_20' ) start [2025-03-04 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608534', 'tblTempUsageDetail_20' ) end [2025-03-04 21:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:25:21] Production.INFO: ==22678== Releasing lock... [2025-03-04 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:25:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-04 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:26:05 [end_date_ymd] => 2025-03-04 21:26:05 [RateCDR] => 1 ) [2025-03-04 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-04 18:26:05' and `end` < '2025-03-04 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-04 21:26:17] Production.INFO: count ==1460 [2025-03-04 21:26:18] Production.ERROR: pbx CDR StartTime 2025-03-04 18:26:05 - End Time 2025-03-04 21:26:05 [2025-03-04 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608539', 'tblTempUsageDetail_20' ) start [2025-03-04 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608539', 'tblTempUsageDetail_20' ) end [2025-03-04 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608539', 'tblTempVendorCDR_20' ) start [2025-03-04 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608539', 'tblTempVendorCDR_20' ) end [2025-03-04 21:26:18] Production.INFO: ProcessCDR(1,14608539,1,1,2) [2025-03-04 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608539', 'tblTempUsageDetail_20' ) start [2025-03-04 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608539', 'tblTempUsageDetail_20' ) end [2025-03-04 21:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:26:21] Production.INFO: ==22762== Releasing lock... [2025-03-04 21:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:26:21] Production.INFO: 39 MB #Memory Used# [2025-03-04 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:27:05 [end_date_ymd] => 2025-03-04 21:27:05 [RateCDR] => 1 ) [2025-03-04 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-04 18:27:05' and `end` < '2025-03-04 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-04 21:27:17] Production.INFO: count ==1450 [2025-03-04 21:27:18] Production.ERROR: pbx CDR StartTime 2025-03-04 18:27:05 - End Time 2025-03-04 21:27:05 [2025-03-04 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608544', 'tblTempUsageDetail_20' ) start [2025-03-04 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608544', 'tblTempUsageDetail_20' ) end [2025-03-04 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608544', 'tblTempVendorCDR_20' ) start [2025-03-04 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608544', 'tblTempVendorCDR_20' ) end [2025-03-04 21:27:18] Production.INFO: ProcessCDR(1,14608544,1,1,2) [2025-03-04 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608544', 'tblTempUsageDetail_20' ) start [2025-03-04 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608544', 'tblTempUsageDetail_20' ) end [2025-03-04 21:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:27:22] Production.INFO: ==22876== Releasing lock... [2025-03-04 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:27:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-04 21:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:28:06 [end_date_ymd] => 2025-03-04 21:28:06 [RateCDR] => 1 ) [2025-03-04 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-04 18:28:06' and `end` < '2025-03-04 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-04 21:28:18] Production.INFO: count ==1433 [2025-03-04 21:28:18] Production.ERROR: pbx CDR StartTime 2025-03-04 18:28:06 - End Time 2025-03-04 21:28:06 [2025-03-04 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608549', 'tblTempUsageDetail_20' ) start [2025-03-04 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608549', 'tblTempUsageDetail_20' ) end [2025-03-04 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608549', 'tblTempVendorCDR_20' ) start [2025-03-04 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608549', 'tblTempVendorCDR_20' ) end [2025-03-04 21:28:18] Production.INFO: ProcessCDR(1,14608549,1,1,2) [2025-03-04 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608549', 'tblTempUsageDetail_20' ) start [2025-03-04 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608549', 'tblTempUsageDetail_20' ) end [2025-03-04 21:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:28:21] Production.INFO: ==22953== Releasing lock... [2025-03-04 21:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:28:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-04 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:29:05 [end_date_ymd] => 2025-03-04 21:29:05 [RateCDR] => 1 ) [2025-03-04 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-04 18:29:05' and `end` < '2025-03-04 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-04 21:29:17] Production.INFO: count ==1423 [2025-03-04 21:29:18] Production.ERROR: pbx CDR StartTime 2025-03-04 18:29:05 - End Time 2025-03-04 21:29:05 [2025-03-04 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608554', 'tblTempUsageDetail_20' ) start [2025-03-04 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608554', 'tblTempUsageDetail_20' ) end [2025-03-04 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608554', 'tblTempVendorCDR_20' ) start [2025-03-04 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608554', 'tblTempVendorCDR_20' ) end [2025-03-04 21:29:18] Production.INFO: ProcessCDR(1,14608554,1,1,2) [2025-03-04 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608554', 'tblTempUsageDetail_20' ) start [2025-03-04 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608554', 'tblTempUsageDetail_20' ) end [2025-03-04 21:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:29:21] Production.INFO: ==23031== Releasing lock... [2025-03-04 21:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:29:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-04 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:30:06 [end_date_ymd] => 2025-03-04 21:30:06 [RateCDR] => 1 ) [2025-03-04 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-04 18:30:06' and `end` < '2025-03-04 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-04 21:30:18] Production.INFO: count ==1419 [2025-03-04 21:30:19] Production.ERROR: pbx CDR StartTime 2025-03-04 18:30:06 - End Time 2025-03-04 21:30:06 [2025-03-04 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608560', 'tblTempUsageDetail_20' ) start [2025-03-04 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608560', 'tblTempUsageDetail_20' ) end [2025-03-04 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608560', 'tblTempVendorCDR_20' ) start [2025-03-04 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608560', 'tblTempVendorCDR_20' ) end [2025-03-04 21:30:19] Production.INFO: ProcessCDR(1,14608560,1,1,2) [2025-03-04 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608560', 'tblTempUsageDetail_20' ) start [2025-03-04 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608560', 'tblTempUsageDetail_20' ) end [2025-03-04 21:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:30:24] Production.INFO: ==23109== Releasing lock... [2025-03-04 21:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:30:24] Production.INFO: 39.25 MB #Memory Used# [2025-03-04 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:31:05 [end_date_ymd] => 2025-03-04 21:31:05 [RateCDR] => 1 ) [2025-03-04 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-04 18:31:05' and `end` < '2025-03-04 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-04 21:31:17] Production.INFO: count ==1363 [2025-03-04 21:31:18] Production.ERROR: pbx CDR StartTime 2025-03-04 18:31:05 - End Time 2025-03-04 21:31:05 [2025-03-04 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608565', 'tblTempUsageDetail_20' ) start [2025-03-04 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608565', 'tblTempUsageDetail_20' ) end [2025-03-04 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608565', 'tblTempVendorCDR_20' ) start [2025-03-04 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608565', 'tblTempVendorCDR_20' ) end [2025-03-04 21:31:18] Production.INFO: ProcessCDR(1,14608565,1,1,2) [2025-03-04 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608565', 'tblTempUsageDetail_20' ) start [2025-03-04 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608565', 'tblTempUsageDetail_20' ) end [2025-03-04 21:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:31:21] Production.INFO: ==23187== Releasing lock... [2025-03-04 21:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:31:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-04 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:32:05 [end_date_ymd] => 2025-03-04 21:32:05 [RateCDR] => 1 ) [2025-03-04 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 18:32:05' and `end` < '2025-03-04 21:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 21:32:17] Production.INFO: count ==1374 [2025-03-04 21:32:18] Production.ERROR: pbx CDR StartTime 2025-03-04 18:32:05 - End Time 2025-03-04 21:32:05 [2025-03-04 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608570', 'tblTempUsageDetail_20' ) start [2025-03-04 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608570', 'tblTempUsageDetail_20' ) end [2025-03-04 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608570', 'tblTempVendorCDR_20' ) start [2025-03-04 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608570', 'tblTempVendorCDR_20' ) end [2025-03-04 21:32:18] Production.INFO: ProcessCDR(1,14608570,1,1,2) [2025-03-04 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608570', 'tblTempUsageDetail_20' ) start [2025-03-04 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608570', 'tblTempUsageDetail_20' ) end [2025-03-04 21:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:32:21] Production.INFO: ==23271== Releasing lock... [2025-03-04 21:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:32:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-04 21:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:33:04 [end_date_ymd] => 2025-03-04 21:33:04 [RateCDR] => 1 ) [2025-03-04 21: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-04 18:33:04' and `end` < '2025-03-04 21: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-04 21:33:16] Production.INFO: count ==1377 [2025-03-04 21:33:17] Production.ERROR: pbx CDR StartTime 2025-03-04 18:33:04 - End Time 2025-03-04 21:33:04 [2025-03-04 21:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608575', 'tblTempUsageDetail_20' ) start [2025-03-04 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608575', 'tblTempUsageDetail_20' ) end [2025-03-04 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608575', 'tblTempVendorCDR_20' ) start [2025-03-04 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608575', 'tblTempVendorCDR_20' ) end [2025-03-04 21:33:17] Production.INFO: ProcessCDR(1,14608575,1,1,2) [2025-03-04 21:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608575', 'tblTempUsageDetail_20' ) start [2025-03-04 21:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608575', 'tblTempUsageDetail_20' ) end [2025-03-04 21:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:33:20] Production.INFO: ==23352== Releasing lock... [2025-03-04 21:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:33:20] Production.INFO: 38.75 MB #Memory Used# [2025-03-04 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:34:05 [end_date_ymd] => 2025-03-04 21:34:05 [RateCDR] => 1 ) [2025-03-04 21:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 18:34:05' and `end` < '2025-03-04 21:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 21:34:17] Production.INFO: count ==1379 [2025-03-04 21:34:18] Production.ERROR: pbx CDR StartTime 2025-03-04 18:34:05 - End Time 2025-03-04 21:34:05 [2025-03-04 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608580', 'tblTempUsageDetail_20' ) start [2025-03-04 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608580', 'tblTempUsageDetail_20' ) end [2025-03-04 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608580', 'tblTempVendorCDR_20' ) start [2025-03-04 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608580', 'tblTempVendorCDR_20' ) end [2025-03-04 21:34:18] Production.INFO: ProcessCDR(1,14608580,1,1,2) [2025-03-04 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608580', 'tblTempUsageDetail_20' ) start [2025-03-04 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608580', 'tblTempUsageDetail_20' ) end [2025-03-04 21:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:34:21] Production.INFO: ==23431== Releasing lock... [2025-03-04 21:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:34:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-04 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:35:05 [end_date_ymd] => 2025-03-04 21:35:05 [RateCDR] => 1 ) [2025-03-04 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-04 18:35:05' and `end` < '2025-03-04 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-04 21:35:17] Production.INFO: count ==1378 [2025-03-04 21:35:18] Production.ERROR: pbx CDR StartTime 2025-03-04 18:35:05 - End Time 2025-03-04 21:35:05 [2025-03-04 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608585', 'tblTempUsageDetail_20' ) start [2025-03-04 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608585', 'tblTempUsageDetail_20' ) end [2025-03-04 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608585', 'tblTempVendorCDR_20' ) start [2025-03-04 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608585', 'tblTempVendorCDR_20' ) end [2025-03-04 21:35:18] Production.INFO: ProcessCDR(1,14608585,1,1,2) [2025-03-04 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608585', 'tblTempUsageDetail_20' ) start [2025-03-04 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608585', 'tblTempUsageDetail_20' ) end [2025-03-04 21:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:35:21] Production.INFO: ==23510== Releasing lock... [2025-03-04 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:35:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-04 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:36:05 [end_date_ymd] => 2025-03-04 21:36:05 [RateCDR] => 1 ) [2025-03-04 21: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 18:36:05' and `end` < '2025-03-04 21: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-04 21:36:17] Production.INFO: count ==1378 [2025-03-04 21:36:17] Production.ERROR: pbx CDR StartTime 2025-03-04 18:36:05 - End Time 2025-03-04 21:36:05 [2025-03-04 21:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608590', 'tblTempUsageDetail_20' ) start [2025-03-04 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608590', 'tblTempUsageDetail_20' ) end [2025-03-04 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608590', 'tblTempVendorCDR_20' ) start [2025-03-04 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608590', 'tblTempVendorCDR_20' ) end [2025-03-04 21:36:17] Production.INFO: ProcessCDR(1,14608590,1,1,2) [2025-03-04 21:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608590', 'tblTempUsageDetail_20' ) start [2025-03-04 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608590', 'tblTempUsageDetail_20' ) end [2025-03-04 21:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:36:21] Production.INFO: ==23589== Releasing lock... [2025-03-04 21:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:36:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-04 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:37:05 [end_date_ymd] => 2025-03-04 21:37:05 [RateCDR] => 1 ) [2025-03-04 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-04 18:37:05' and `end` < '2025-03-04 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-04 21:37:18] Production.INFO: count ==1377 [2025-03-04 21:37:18] Production.ERROR: pbx CDR StartTime 2025-03-04 18:37:05 - End Time 2025-03-04 21:37:05 [2025-03-04 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608595', 'tblTempUsageDetail_20' ) start [2025-03-04 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608595', 'tblTempUsageDetail_20' ) end [2025-03-04 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608595', 'tblTempVendorCDR_20' ) start [2025-03-04 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608595', 'tblTempVendorCDR_20' ) end [2025-03-04 21:37:18] Production.INFO: ProcessCDR(1,14608595,1,1,2) [2025-03-04 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608595', 'tblTempUsageDetail_20' ) start [2025-03-04 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608595', 'tblTempUsageDetail_20' ) end [2025-03-04 21:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:37:21] Production.INFO: ==23667== Releasing lock... [2025-03-04 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:37:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-04 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:38:05 [end_date_ymd] => 2025-03-04 21:38:05 [RateCDR] => 1 ) [2025-03-04 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-04 18:38:05' and `end` < '2025-03-04 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-04 21:38:18] Production.INFO: count ==1374 [2025-03-04 21:38:18] Production.ERROR: pbx CDR StartTime 2025-03-04 18:38:05 - End Time 2025-03-04 21:38:05 [2025-03-04 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608600', 'tblTempUsageDetail_20' ) start [2025-03-04 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608600', 'tblTempUsageDetail_20' ) end [2025-03-04 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608600', 'tblTempVendorCDR_20' ) start [2025-03-04 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608600', 'tblTempVendorCDR_20' ) end [2025-03-04 21:38:18] Production.INFO: ProcessCDR(1,14608600,1,1,2) [2025-03-04 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608600', 'tblTempUsageDetail_20' ) start [2025-03-04 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608600', 'tblTempUsageDetail_20' ) end [2025-03-04 21:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:38:21] Production.INFO: ==23746== Releasing lock... [2025-03-04 21:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:38:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-04 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:39:05 [end_date_ymd] => 2025-03-04 21:39:05 [RateCDR] => 1 ) [2025-03-04 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-04 18:39:05' and `end` < '2025-03-04 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-04 21:39:18] Production.INFO: count ==1370 [2025-03-04 21:39:18] Production.ERROR: pbx CDR StartTime 2025-03-04 18:39:05 - End Time 2025-03-04 21:39:05 [2025-03-04 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608605', 'tblTempUsageDetail_20' ) start [2025-03-04 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608605', 'tblTempUsageDetail_20' ) end [2025-03-04 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608605', 'tblTempVendorCDR_20' ) start [2025-03-04 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608605', 'tblTempVendorCDR_20' ) end [2025-03-04 21:39:18] Production.INFO: ProcessCDR(1,14608605,1,1,2) [2025-03-04 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608605', 'tblTempUsageDetail_20' ) start [2025-03-04 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608605', 'tblTempUsageDetail_20' ) end [2025-03-04 21:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:39:21] Production.INFO: ==23824== Releasing lock... [2025-03-04 21:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:39:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-04 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:40:06 [end_date_ymd] => 2025-03-04 21:40:06 [RateCDR] => 1 ) [2025-03-04 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-04 18:40:06' and `end` < '2025-03-04 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-04 21:40:18] Production.INFO: count ==1366 [2025-03-04 21:40:19] Production.ERROR: pbx CDR StartTime 2025-03-04 18:40:06 - End Time 2025-03-04 21:40:06 [2025-03-04 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608610', 'tblTempUsageDetail_20' ) start [2025-03-04 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608610', 'tblTempUsageDetail_20' ) end [2025-03-04 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608610', 'tblTempVendorCDR_20' ) start [2025-03-04 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608610', 'tblTempVendorCDR_20' ) end [2025-03-04 21:40:19] Production.INFO: ProcessCDR(1,14608610,1,1,2) [2025-03-04 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608610', 'tblTempUsageDetail_20' ) start [2025-03-04 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608610', 'tblTempUsageDetail_20' ) end [2025-03-04 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:40:22] Production.INFO: ==23903== Releasing lock... [2025-03-04 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:40:22] Production.INFO: 38 MB #Memory Used# [2025-03-04 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:41:05 [end_date_ymd] => 2025-03-04 21:41:05 [RateCDR] => 1 ) [2025-03-04 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-04 18:41:05' and `end` < '2025-03-04 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-04 21:41:17] Production.INFO: count ==1323 [2025-03-04 21:41:18] Production.ERROR: pbx CDR StartTime 2025-03-04 18:41:05 - End Time 2025-03-04 21:41:05 [2025-03-04 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608616', 'tblTempUsageDetail_20' ) start [2025-03-04 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608616', 'tblTempUsageDetail_20' ) end [2025-03-04 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608616', 'tblTempVendorCDR_20' ) start [2025-03-04 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608616', 'tblTempVendorCDR_20' ) end [2025-03-04 21:41:18] Production.INFO: ProcessCDR(1,14608616,1,1,2) [2025-03-04 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608616', 'tblTempUsageDetail_20' ) start [2025-03-04 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608616', 'tblTempUsageDetail_20' ) end [2025-03-04 21:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:41:21] Production.INFO: ==23982== Releasing lock... [2025-03-04 21:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:41:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-04 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:42:05 [end_date_ymd] => 2025-03-04 21:42:05 [RateCDR] => 1 ) [2025-03-04 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 18:42:05' and `end` < '2025-03-04 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 21:42:17] Production.INFO: count ==1321 [2025-03-04 21:42:17] Production.ERROR: pbx CDR StartTime 2025-03-04 18:42:05 - End Time 2025-03-04 21:42:05 [2025-03-04 21:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608621', 'tblTempUsageDetail_20' ) start [2025-03-04 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608621', 'tblTempUsageDetail_20' ) end [2025-03-04 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608621', 'tblTempVendorCDR_20' ) start [2025-03-04 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608621', 'tblTempVendorCDR_20' ) end [2025-03-04 21:42:17] Production.INFO: ProcessCDR(1,14608621,1,1,2) [2025-03-04 21:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608621', 'tblTempUsageDetail_20' ) start [2025-03-04 21:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608621', 'tblTempUsageDetail_20' ) end [2025-03-04 21:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:42:20] Production.INFO: ==24092== Releasing lock... [2025-03-04 21:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:42:20] Production.INFO: 38 MB #Memory Used# [2025-03-04 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:43:05 [end_date_ymd] => 2025-03-04 21:43:05 [RateCDR] => 1 ) [2025-03-04 21:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 18:43:05' and `end` < '2025-03-04 21:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 21:43:17] Production.INFO: count ==1322 [2025-03-04 21:43:17] Production.ERROR: pbx CDR StartTime 2025-03-04 18:43:05 - End Time 2025-03-04 21:43:05 [2025-03-04 21:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608626', 'tblTempUsageDetail_20' ) start [2025-03-04 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608626', 'tblTempUsageDetail_20' ) end [2025-03-04 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608626', 'tblTempVendorCDR_20' ) start [2025-03-04 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608626', 'tblTempVendorCDR_20' ) end [2025-03-04 21:43:17] Production.INFO: ProcessCDR(1,14608626,1,1,2) [2025-03-04 21:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608626', 'tblTempUsageDetail_20' ) start [2025-03-04 21:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608626', 'tblTempUsageDetail_20' ) end [2025-03-04 21:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:43:20] Production.INFO: ==24168== Releasing lock... [2025-03-04 21:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:43:20] Production.INFO: 38.25 MB #Memory Used# [2025-03-04 21:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:44:04 [end_date_ymd] => 2025-03-04 21:44:04 [RateCDR] => 1 ) [2025-03-04 21:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 18:44:04' and `end` < '2025-03-04 21:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 21:44:16] Production.INFO: count ==1322 [2025-03-04 21:44:17] Production.ERROR: pbx CDR StartTime 2025-03-04 18:44:04 - End Time 2025-03-04 21:44:04 [2025-03-04 21:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608631', 'tblTempUsageDetail_20' ) start [2025-03-04 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608631', 'tblTempUsageDetail_20' ) end [2025-03-04 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608631', 'tblTempVendorCDR_20' ) start [2025-03-04 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608631', 'tblTempVendorCDR_20' ) end [2025-03-04 21:44:17] Production.INFO: ProcessCDR(1,14608631,1,1,2) [2025-03-04 21:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608631', 'tblTempUsageDetail_20' ) start [2025-03-04 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608631', 'tblTempUsageDetail_20' ) end [2025-03-04 21:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:44:22] Production.INFO: ==24240== Releasing lock... [2025-03-04 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:44:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-04 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:45:05 [end_date_ymd] => 2025-03-04 21:45:05 [RateCDR] => 1 ) [2025-03-04 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-04 18:45:05' and `end` < '2025-03-04 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-04 21:45:17] Production.INFO: count ==1324 [2025-03-04 21:45:17] Production.ERROR: pbx CDR StartTime 2025-03-04 18:45:05 - End Time 2025-03-04 21:45:05 [2025-03-04 21:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608636', 'tblTempUsageDetail_20' ) start [2025-03-04 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608636', 'tblTempUsageDetail_20' ) end [2025-03-04 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608636', 'tblTempVendorCDR_20' ) start [2025-03-04 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608636', 'tblTempVendorCDR_20' ) end [2025-03-04 21:45:17] Production.INFO: ProcessCDR(1,14608636,1,1,2) [2025-03-04 21:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608636', 'tblTempUsageDetail_20' ) start [2025-03-04 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608636', 'tblTempUsageDetail_20' ) end [2025-03-04 21:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:45:21] Production.INFO: ==24319== Releasing lock... [2025-03-04 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:45:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-04 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:46:05 [end_date_ymd] => 2025-03-04 21:46:05 [RateCDR] => 1 ) [2025-03-04 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-04 18:46:05' and `end` < '2025-03-04 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-04 21:46:18] Production.INFO: count ==1314 [2025-03-04 21:46:18] Production.ERROR: pbx CDR StartTime 2025-03-04 18:46:05 - End Time 2025-03-04 21:46:05 [2025-03-04 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608641', 'tblTempUsageDetail_20' ) start [2025-03-04 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608641', 'tblTempUsageDetail_20' ) end [2025-03-04 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608641', 'tblTempVendorCDR_20' ) start [2025-03-04 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608641', 'tblTempVendorCDR_20' ) end [2025-03-04 21:46:18] Production.INFO: ProcessCDR(1,14608641,1,1,2) [2025-03-04 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608641', 'tblTempUsageDetail_20' ) start [2025-03-04 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608641', 'tblTempUsageDetail_20' ) end [2025-03-04 21:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:46:21] Production.INFO: ==24394== Releasing lock... [2025-03-04 21:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:46:21] Production.INFO: 38 MB #Memory Used# [2025-03-04 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:47:05 [end_date_ymd] => 2025-03-04 21:47:05 [RateCDR] => 1 ) [2025-03-04 21:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 18:47:05' and `end` < '2025-03-04 21:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 21:47:17] Production.INFO: count ==1309 [2025-03-04 21:47:17] Production.ERROR: pbx CDR StartTime 2025-03-04 18:47:05 - End Time 2025-03-04 21:47:05 [2025-03-04 21:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608646', 'tblTempUsageDetail_20' ) start [2025-03-04 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608646', 'tblTempUsageDetail_20' ) end [2025-03-04 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608646', 'tblTempVendorCDR_20' ) start [2025-03-04 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608646', 'tblTempVendorCDR_20' ) end [2025-03-04 21:47:17] Production.INFO: ProcessCDR(1,14608646,1,1,2) [2025-03-04 21:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608646', 'tblTempUsageDetail_20' ) start [2025-03-04 21:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608646', 'tblTempUsageDetail_20' ) end [2025-03-04 21:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:47:20] Production.INFO: ==24467== Releasing lock... [2025-03-04 21:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:47:20] Production.INFO: 38.25 MB #Memory Used# [2025-03-04 21:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:48:06 [end_date_ymd] => 2025-03-04 21:48:06 [RateCDR] => 1 ) [2025-03-04 21: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 18:48:06' and `end` < '2025-03-04 21: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-04 21:48:18] Production.INFO: count ==1307 [2025-03-04 21:48:18] Production.ERROR: pbx CDR StartTime 2025-03-04 18:48:06 - End Time 2025-03-04 21:48:06 [2025-03-04 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608651', 'tblTempUsageDetail_20' ) start [2025-03-04 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608651', 'tblTempUsageDetail_20' ) end [2025-03-04 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608651', 'tblTempVendorCDR_20' ) start [2025-03-04 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608651', 'tblTempVendorCDR_20' ) end [2025-03-04 21:48:18] Production.INFO: ProcessCDR(1,14608651,1,1,2) [2025-03-04 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608651', 'tblTempUsageDetail_20' ) start [2025-03-04 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608651', 'tblTempUsageDetail_20' ) end [2025-03-04 21:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:48:21] Production.INFO: ==24540== Releasing lock... [2025-03-04 21:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:48:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-04 21:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:49:04 [end_date_ymd] => 2025-03-04 21:49:04 [RateCDR] => 1 ) [2025-03-04 21:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 18:49:04' and `end` < '2025-03-04 21:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 21:49:16] Production.INFO: count ==1311 [2025-03-04 21:49:17] Production.ERROR: pbx CDR StartTime 2025-03-04 18:49:04 - End Time 2025-03-04 21:49:04 [2025-03-04 21:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608656', 'tblTempUsageDetail_20' ) start [2025-03-04 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608656', 'tblTempUsageDetail_20' ) end [2025-03-04 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608656', 'tblTempVendorCDR_20' ) start [2025-03-04 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608656', 'tblTempVendorCDR_20' ) end [2025-03-04 21:49:17] Production.INFO: ProcessCDR(1,14608656,1,1,2) [2025-03-04 21:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608656', 'tblTempUsageDetail_20' ) start [2025-03-04 21:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608656', 'tblTempUsageDetail_20' ) end [2025-03-04 21:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:49:20] Production.INFO: ==24616== Releasing lock... [2025-03-04 21:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:49:20] Production.INFO: 38.5 MB #Memory Used# [2025-03-04 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:50:06 [end_date_ymd] => 2025-03-04 21:50:06 [RateCDR] => 1 ) [2025-03-04 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-04 18:50:06' and `end` < '2025-03-04 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-04 21:50:18] Production.INFO: count ==1302 [2025-03-04 21:50:18] Production.ERROR: pbx CDR StartTime 2025-03-04 18:50:06 - End Time 2025-03-04 21:50:06 [2025-03-04 21:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608662', 'tblTempUsageDetail_20' ) start [2025-03-04 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608662', 'tblTempUsageDetail_20' ) end [2025-03-04 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608662', 'tblTempVendorCDR_20' ) start [2025-03-04 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608662', 'tblTempVendorCDR_20' ) end [2025-03-04 21:50:18] Production.INFO: ProcessCDR(1,14608662,1,1,2) [2025-03-04 21:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608662', 'tblTempUsageDetail_20' ) start [2025-03-04 21:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608662', 'tblTempUsageDetail_20' ) end [2025-03-04 21:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:50:21] Production.INFO: ==24694== Releasing lock... [2025-03-04 21:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:50:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-04 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:51:05 [end_date_ymd] => 2025-03-04 21:51:05 [RateCDR] => 1 ) [2025-03-04 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-04 18:51:05' and `end` < '2025-03-04 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-04 21:51:17] Production.INFO: count ==1270 [2025-03-04 21:51:17] Production.ERROR: pbx CDR StartTime 2025-03-04 18:51:05 - End Time 2025-03-04 21:51:05 [2025-03-04 21:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608667', 'tblTempUsageDetail_20' ) start [2025-03-04 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608667', 'tblTempUsageDetail_20' ) end [2025-03-04 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608667', 'tblTempVendorCDR_20' ) start [2025-03-04 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608667', 'tblTempVendorCDR_20' ) end [2025-03-04 21:51:17] Production.INFO: ProcessCDR(1,14608667,1,1,2) [2025-03-04 21:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608667', 'tblTempUsageDetail_20' ) start [2025-03-04 21:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608667', 'tblTempUsageDetail_20' ) end [2025-03-04 21:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:51:20] Production.INFO: ==24770== Releasing lock... [2025-03-04 21:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:51:20] Production.INFO: 37.75 MB #Memory Used# [2025-03-04 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:52:05 [end_date_ymd] => 2025-03-04 21:52:05 [RateCDR] => 1 ) [2025-03-04 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-04 18:52:05' and `end` < '2025-03-04 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-04 21:52:17] Production.INFO: count ==1270 [2025-03-04 21:52:17] Production.ERROR: pbx CDR StartTime 2025-03-04 18:52:05 - End Time 2025-03-04 21:52:05 [2025-03-04 21:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608672', 'tblTempUsageDetail_20' ) start [2025-03-04 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608672', 'tblTempUsageDetail_20' ) end [2025-03-04 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608672', 'tblTempVendorCDR_20' ) start [2025-03-04 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608672', 'tblTempVendorCDR_20' ) end [2025-03-04 21:52:17] Production.INFO: ProcessCDR(1,14608672,1,1,2) [2025-03-04 21:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608672', 'tblTempUsageDetail_20' ) start [2025-03-04 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608672', 'tblTempUsageDetail_20' ) end [2025-03-04 21:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:52:21] Production.INFO: ==24843== Releasing lock... [2025-03-04 21:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:52:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-04 21:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:53:06 [end_date_ymd] => 2025-03-04 21:53:06 [RateCDR] => 1 ) [2025-03-04 21: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 18:53:06' and `end` < '2025-03-04 21: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-04 21:53:18] Production.INFO: count ==1261 [2025-03-04 21:53:18] Production.ERROR: pbx CDR StartTime 2025-03-04 18:53:06 - End Time 2025-03-04 21:53:06 [2025-03-04 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608677', 'tblTempUsageDetail_20' ) start [2025-03-04 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608677', 'tblTempUsageDetail_20' ) end [2025-03-04 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608677', 'tblTempVendorCDR_20' ) start [2025-03-04 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608677', 'tblTempVendorCDR_20' ) end [2025-03-04 21:53:18] Production.INFO: ProcessCDR(1,14608677,1,1,2) [2025-03-04 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608677', 'tblTempUsageDetail_20' ) start [2025-03-04 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608677', 'tblTempUsageDetail_20' ) end [2025-03-04 21:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:53:21] Production.INFO: ==24919== Releasing lock... [2025-03-04 21:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:53:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-04 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:54:05 [end_date_ymd] => 2025-03-04 21:54:05 [RateCDR] => 1 ) [2025-03-04 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 18:54:05' and `end` < '2025-03-04 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 21:54:17] Production.INFO: count ==1254 [2025-03-04 21:54:17] Production.ERROR: pbx CDR StartTime 2025-03-04 18:54:05 - End Time 2025-03-04 21:54:05 [2025-03-04 21:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608682', 'tblTempUsageDetail_20' ) start [2025-03-04 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608682', 'tblTempUsageDetail_20' ) end [2025-03-04 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608682', 'tblTempVendorCDR_20' ) start [2025-03-04 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608682', 'tblTempVendorCDR_20' ) end [2025-03-04 21:54:17] Production.INFO: ProcessCDR(1,14608682,1,1,2) [2025-03-04 21:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608682', 'tblTempUsageDetail_20' ) start [2025-03-04 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608682', 'tblTempUsageDetail_20' ) end [2025-03-04 21:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:54:22] Production.INFO: ==24996== Releasing lock... [2025-03-04 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:54:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-04 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:55:05 [end_date_ymd] => 2025-03-04 21:55:05 [RateCDR] => 1 ) [2025-03-04 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-04 18:55:05' and `end` < '2025-03-04 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-04 21:55:17] Production.INFO: count ==1243 [2025-03-04 21:55:18] Production.ERROR: pbx CDR StartTime 2025-03-04 18:55:05 - End Time 2025-03-04 21:55:05 [2025-03-04 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608687', 'tblTempUsageDetail_20' ) start [2025-03-04 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608687', 'tblTempUsageDetail_20' ) end [2025-03-04 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608687', 'tblTempVendorCDR_20' ) start [2025-03-04 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608687', 'tblTempVendorCDR_20' ) end [2025-03-04 21:55:18] Production.INFO: ProcessCDR(1,14608687,1,1,2) [2025-03-04 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608687', 'tblTempUsageDetail_20' ) start [2025-03-04 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608687', 'tblTempUsageDetail_20' ) end [2025-03-04 21:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:55:21] Production.INFO: ==25075== Releasing lock... [2025-03-04 21:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:55:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-04 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:56:05 [end_date_ymd] => 2025-03-04 21:56:05 [RateCDR] => 1 ) [2025-03-04 21: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 18:56:05' and `end` < '2025-03-04 21: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-04 21:56:17] Production.INFO: count ==1230 [2025-03-04 21:56:17] Production.ERROR: pbx CDR StartTime 2025-03-04 18:56:05 - End Time 2025-03-04 21:56:05 [2025-03-04 21:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608692', 'tblTempUsageDetail_20' ) start [2025-03-04 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608692', 'tblTempUsageDetail_20' ) end [2025-03-04 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608692', 'tblTempVendorCDR_20' ) start [2025-03-04 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608692', 'tblTempVendorCDR_20' ) end [2025-03-04 21:56:18] Production.INFO: ProcessCDR(1,14608692,1,1,2) [2025-03-04 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608692', 'tblTempUsageDetail_20' ) start [2025-03-04 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608692', 'tblTempUsageDetail_20' ) end [2025-03-04 21:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:56:21] Production.INFO: ==25149== Releasing lock... [2025-03-04 21:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:56:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-04 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:57:05 [end_date_ymd] => 2025-03-04 21:57:05 [RateCDR] => 1 ) [2025-03-04 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-04 18:57:05' and `end` < '2025-03-04 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-04 21:57:17] Production.INFO: count ==1229 [2025-03-04 21:57:18] Production.ERROR: pbx CDR StartTime 2025-03-04 18:57:05 - End Time 2025-03-04 21:57:05 [2025-03-04 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608697', 'tblTempUsageDetail_20' ) start [2025-03-04 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608697', 'tblTempUsageDetail_20' ) end [2025-03-04 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608697', 'tblTempVendorCDR_20' ) start [2025-03-04 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608697', 'tblTempVendorCDR_20' ) end [2025-03-04 21:57:18] Production.INFO: ProcessCDR(1,14608697,1,1,2) [2025-03-04 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608697', 'tblTempUsageDetail_20' ) start [2025-03-04 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608697', 'tblTempUsageDetail_20' ) end [2025-03-04 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:57:22] Production.INFO: ==25222== Releasing lock... [2025-03-04 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:57:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-04 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:58:05 [end_date_ymd] => 2025-03-04 21:58:05 [RateCDR] => 1 ) [2025-03-04 21:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 18:58:05' and `end` < '2025-03-04 21:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 21:58:17] Production.INFO: count ==1217 [2025-03-04 21:58:18] Production.ERROR: pbx CDR StartTime 2025-03-04 18:58:05 - End Time 2025-03-04 21:58:05 [2025-03-04 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608702', 'tblTempUsageDetail_20' ) start [2025-03-04 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608702', 'tblTempUsageDetail_20' ) end [2025-03-04 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608702', 'tblTempVendorCDR_20' ) start [2025-03-04 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608702', 'tblTempVendorCDR_20' ) end [2025-03-04 21:58:18] Production.INFO: ProcessCDR(1,14608702,1,1,2) [2025-03-04 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608702', 'tblTempUsageDetail_20' ) start [2025-03-04 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608702', 'tblTempUsageDetail_20' ) end [2025-03-04 21:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:58:22] Production.INFO: ==25333== Releasing lock... [2025-03-04 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:58:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-04 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 18:59:05 [end_date_ymd] => 2025-03-04 21:59:05 [RateCDR] => 1 ) [2025-03-04 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 18:59:05' and `end` < '2025-03-04 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 21:59:17] Production.INFO: count ==1202 [2025-03-04 21:59:17] Production.ERROR: pbx CDR StartTime 2025-03-04 18:59:05 - End Time 2025-03-04 21:59:05 [2025-03-04 21:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608707', 'tblTempUsageDetail_20' ) start [2025-03-04 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608707', 'tblTempUsageDetail_20' ) end [2025-03-04 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608707', 'tblTempVendorCDR_20' ) start [2025-03-04 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608707', 'tblTempVendorCDR_20' ) end [2025-03-04 21:59:17] Production.INFO: ProcessCDR(1,14608707,1,1,2) [2025-03-04 21:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 21:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 21:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608707', 'tblTempUsageDetail_20' ) start [2025-03-04 21:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608707', 'tblTempUsageDetail_20' ) end [2025-03-04 21:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 21:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 21:59:20] Production.INFO: ==25406== Releasing lock... [2025-03-04 21:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 21:59:20] Production.INFO: 37.5 MB #Memory Used# [2025-03-04 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:00:06 [end_date_ymd] => 2025-03-04 22:00:06 [RateCDR] => 1 ) [2025-03-04 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-04 19:00:06' and `end` < '2025-03-04 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-04 22:00:18] Production.INFO: count ==1197 [2025-03-04 22:00:19] Production.ERROR: pbx CDR StartTime 2025-03-04 19:00:06 - End Time 2025-03-04 22:00:06 [2025-03-04 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608713', 'tblTempUsageDetail_20' ) start [2025-03-04 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608713', 'tblTempUsageDetail_20' ) end [2025-03-04 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608713', 'tblTempVendorCDR_20' ) start [2025-03-04 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608713', 'tblTempVendorCDR_20' ) end [2025-03-04 22:00:19] Production.INFO: ProcessCDR(1,14608713,1,1,2) [2025-03-04 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608713', 'tblTempUsageDetail_20' ) start [2025-03-04 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608713', 'tblTempUsageDetail_20' ) end [2025-03-04 22:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:00:22] Production.INFO: ==25486== Releasing lock... [2025-03-04 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:00:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-04 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:01:05 [end_date_ymd] => 2025-03-04 22:01:05 [RateCDR] => 1 ) [2025-03-04 22:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 19:01:05' and `end` < '2025-03-04 22:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 22:01:17] Production.INFO: count ==1175 [2025-03-04 22:01:18] Production.ERROR: pbx CDR StartTime 2025-03-04 19:01:05 - End Time 2025-03-04 22:01:05 [2025-03-04 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608718', 'tblTempUsageDetail_20' ) start [2025-03-04 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608718', 'tblTempUsageDetail_20' ) end [2025-03-04 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608718', 'tblTempVendorCDR_20' ) start [2025-03-04 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608718', 'tblTempVendorCDR_20' ) end [2025-03-04 22:01:18] Production.INFO: ProcessCDR(1,14608718,1,1,2) [2025-03-04 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608718', 'tblTempUsageDetail_20' ) start [2025-03-04 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608718', 'tblTempUsageDetail_20' ) end [2025-03-04 22:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:01:21] Production.INFO: ==25576== Releasing lock... [2025-03-04 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:01:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-04 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:02:05 [end_date_ymd] => 2025-03-04 22:02:05 [RateCDR] => 1 ) [2025-03-04 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-04 19:02:05' and `end` < '2025-03-04 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-04 22:02:17] Production.INFO: count ==1171 [2025-03-04 22:02:18] Production.ERROR: pbx CDR StartTime 2025-03-04 19:02:05 - End Time 2025-03-04 22:02:05 [2025-03-04 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608723', 'tblTempUsageDetail_20' ) start [2025-03-04 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608723', 'tblTempUsageDetail_20' ) end [2025-03-04 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608723', 'tblTempVendorCDR_20' ) start [2025-03-04 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608723', 'tblTempVendorCDR_20' ) end [2025-03-04 22:02:18] Production.INFO: ProcessCDR(1,14608723,1,1,2) [2025-03-04 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608723', 'tblTempUsageDetail_20' ) start [2025-03-04 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608723', 'tblTempUsageDetail_20' ) end [2025-03-04 22:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:02:21] Production.INFO: ==25649== Releasing lock... [2025-03-04 22:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:02:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-04 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:03:05 [end_date_ymd] => 2025-03-04 22:03:05 [RateCDR] => 1 ) [2025-03-04 22: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 19:03:05' and `end` < '2025-03-04 22: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-04 22:03:18] Production.INFO: count ==1165 [2025-03-04 22:03:18] Production.ERROR: pbx CDR StartTime 2025-03-04 19:03:05 - End Time 2025-03-04 22:03:05 [2025-03-04 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608728', 'tblTempUsageDetail_20' ) start [2025-03-04 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608728', 'tblTempUsageDetail_20' ) end [2025-03-04 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608728', 'tblTempVendorCDR_20' ) start [2025-03-04 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608728', 'tblTempVendorCDR_20' ) end [2025-03-04 22:03:18] Production.INFO: ProcessCDR(1,14608728,1,1,2) [2025-03-04 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608728', 'tblTempUsageDetail_20' ) start [2025-03-04 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608728', 'tblTempUsageDetail_20' ) end [2025-03-04 22:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:03:21] Production.INFO: ==25718== Releasing lock... [2025-03-04 22:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:03:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-04 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:04:05 [end_date_ymd] => 2025-03-04 22:04:05 [RateCDR] => 1 ) [2025-03-04 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-04 19:04:05' and `end` < '2025-03-04 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-04 22:04:17] Production.INFO: count ==1162 [2025-03-04 22:04:18] Production.ERROR: pbx CDR StartTime 2025-03-04 19:04:05 - End Time 2025-03-04 22:04:05 [2025-03-04 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608733', 'tblTempUsageDetail_20' ) start [2025-03-04 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608733', 'tblTempUsageDetail_20' ) end [2025-03-04 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608733', 'tblTempVendorCDR_20' ) start [2025-03-04 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608733', 'tblTempVendorCDR_20' ) end [2025-03-04 22:04:18] Production.INFO: ProcessCDR(1,14608733,1,1,2) [2025-03-04 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608733', 'tblTempUsageDetail_20' ) start [2025-03-04 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608733', 'tblTempUsageDetail_20' ) end [2025-03-04 22:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:04:21] Production.INFO: ==25790== Releasing lock... [2025-03-04 22:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:04:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-04 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:05:05 [end_date_ymd] => 2025-03-04 22:05:05 [RateCDR] => 1 ) [2025-03-04 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-04 19:05:05' and `end` < '2025-03-04 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-04 22:05:17] Production.INFO: count ==1161 [2025-03-04 22:05:17] Production.ERROR: pbx CDR StartTime 2025-03-04 19:05:05 - End Time 2025-03-04 22:05:05 [2025-03-04 22:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608738', 'tblTempUsageDetail_20' ) start [2025-03-04 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608738', 'tblTempUsageDetail_20' ) end [2025-03-04 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608738', 'tblTempVendorCDR_20' ) start [2025-03-04 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608738', 'tblTempVendorCDR_20' ) end [2025-03-04 22:05:17] Production.INFO: ProcessCDR(1,14608738,1,1,2) [2025-03-04 22:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608738', 'tblTempUsageDetail_20' ) start [2025-03-04 22:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608738', 'tblTempUsageDetail_20' ) end [2025-03-04 22:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:05:20] Production.INFO: ==25863== Releasing lock... [2025-03-04 22:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:05:20] Production.INFO: 37 MB #Memory Used# [2025-03-04 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:06:05 [end_date_ymd] => 2025-03-04 22:06:05 [RateCDR] => 1 ) [2025-03-04 22:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 19:06:05' and `end` < '2025-03-04 22:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 22:06:17] Production.INFO: count ==1159 [2025-03-04 22:06:17] Production.ERROR: pbx CDR StartTime 2025-03-04 19:06:05 - End Time 2025-03-04 22:06:05 [2025-03-04 22:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608743', 'tblTempUsageDetail_20' ) start [2025-03-04 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608743', 'tblTempUsageDetail_20' ) end [2025-03-04 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608743', 'tblTempVendorCDR_20' ) start [2025-03-04 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608743', 'tblTempVendorCDR_20' ) end [2025-03-04 22:06:17] Production.INFO: ProcessCDR(1,14608743,1,1,2) [2025-03-04 22:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608743', 'tblTempUsageDetail_20' ) start [2025-03-04 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608743', 'tblTempUsageDetail_20' ) end [2025-03-04 22:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:06:21] Production.INFO: ==25935== Releasing lock... [2025-03-04 22:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:06:21] Production.INFO: 37 MB #Memory Used# [2025-03-04 22:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:07:06 [end_date_ymd] => 2025-03-04 22:07:06 [RateCDR] => 1 ) [2025-03-04 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-04 19:07:06' and `end` < '2025-03-04 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-04 22:07:18] Production.INFO: count ==1159 [2025-03-04 22:07:18] Production.ERROR: pbx CDR StartTime 2025-03-04 19:07:06 - End Time 2025-03-04 22:07:06 [2025-03-04 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608748', 'tblTempUsageDetail_20' ) start [2025-03-04 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608748', 'tblTempUsageDetail_20' ) end [2025-03-04 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608748', 'tblTempVendorCDR_20' ) start [2025-03-04 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608748', 'tblTempVendorCDR_20' ) end [2025-03-04 22:07:18] Production.INFO: ProcessCDR(1,14608748,1,1,2) [2025-03-04 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608748', 'tblTempUsageDetail_20' ) start [2025-03-04 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608748', 'tblTempUsageDetail_20' ) end [2025-03-04 22:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:07:23] Production.INFO: ==26009== Releasing lock... [2025-03-04 22:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:07:23] Production.INFO: 37 MB #Memory Used# [2025-03-04 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:08:05 [end_date_ymd] => 2025-03-04 22:08:05 [RateCDR] => 1 ) [2025-03-04 22:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 19:08:05' and `end` < '2025-03-04 22:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 22:08:17] Production.INFO: count ==1158 [2025-03-04 22:08:18] Production.ERROR: pbx CDR StartTime 2025-03-04 19:08:05 - End Time 2025-03-04 22:08:05 [2025-03-04 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608753', 'tblTempUsageDetail_20' ) start [2025-03-04 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608753', 'tblTempUsageDetail_20' ) end [2025-03-04 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608753', 'tblTempVendorCDR_20' ) start [2025-03-04 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608753', 'tblTempVendorCDR_20' ) end [2025-03-04 22:08:18] Production.INFO: ProcessCDR(1,14608753,1,1,2) [2025-03-04 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608753', 'tblTempUsageDetail_20' ) start [2025-03-04 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608753', 'tblTempUsageDetail_20' ) end [2025-03-04 22:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:08:21] Production.INFO: ==26120== Releasing lock... [2025-03-04 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:08:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-04 22:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:09:06 [end_date_ymd] => 2025-03-04 22:09:06 [RateCDR] => 1 ) [2025-03-04 22: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 19:09:06' and `end` < '2025-03-04 22: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-04 22:09:18] Production.INFO: count ==1158 [2025-03-04 22:09:18] Production.ERROR: pbx CDR StartTime 2025-03-04 19:09:06 - End Time 2025-03-04 22:09:06 [2025-03-04 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608758', 'tblTempUsageDetail_20' ) start [2025-03-04 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608758', 'tblTempUsageDetail_20' ) end [2025-03-04 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608758', 'tblTempVendorCDR_20' ) start [2025-03-04 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608758', 'tblTempVendorCDR_20' ) end [2025-03-04 22:09:18] Production.INFO: ProcessCDR(1,14608758,1,1,2) [2025-03-04 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608758', 'tblTempUsageDetail_20' ) start [2025-03-04 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608758', 'tblTempUsageDetail_20' ) end [2025-03-04 22:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:09:21] Production.INFO: ==26192== Releasing lock... [2025-03-04 22:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:09:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-04 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:10:06 [end_date_ymd] => 2025-03-04 22:10:06 [RateCDR] => 1 ) [2025-03-04 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-04 19:10:06' and `end` < '2025-03-04 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-04 22:10:18] Production.INFO: count ==1158 [2025-03-04 22:10:18] Production.ERROR: pbx CDR StartTime 2025-03-04 19:10:06 - End Time 2025-03-04 22:10:06 [2025-03-04 22:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608764', 'tblTempUsageDetail_20' ) start [2025-03-04 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608764', 'tblTempUsageDetail_20' ) end [2025-03-04 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608764', 'tblTempVendorCDR_20' ) start [2025-03-04 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608764', 'tblTempVendorCDR_20' ) end [2025-03-04 22:10:18] Production.INFO: ProcessCDR(1,14608764,1,1,2) [2025-03-04 22:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608764', 'tblTempUsageDetail_20' ) start [2025-03-04 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608764', 'tblTempUsageDetail_20' ) end [2025-03-04 22:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:10:21] Production.INFO: ==26264== Releasing lock... [2025-03-04 22:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:10:21] Production.INFO: 37 MB #Memory Used# [2025-03-04 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:11:05 [end_date_ymd] => 2025-03-04 22:11:05 [RateCDR] => 1 ) [2025-03-04 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-04 19:11:05' and `end` < '2025-03-04 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-04 22:11:17] Production.INFO: count ==1177 [2025-03-04 22:11:17] Production.ERROR: pbx CDR StartTime 2025-03-04 19:11:05 - End Time 2025-03-04 22:11:05 [2025-03-04 22:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608769', 'tblTempUsageDetail_20' ) start [2025-03-04 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608769', 'tblTempUsageDetail_20' ) end [2025-03-04 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608769', 'tblTempVendorCDR_20' ) start [2025-03-04 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608769', 'tblTempVendorCDR_20' ) end [2025-03-04 22:11:17] Production.INFO: ProcessCDR(1,14608769,1,1,2) [2025-03-04 22:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608769', 'tblTempUsageDetail_20' ) start [2025-03-04 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608769', 'tblTempUsageDetail_20' ) end [2025-03-04 22:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:11:21] Production.INFO: ==26339== Releasing lock... [2025-03-04 22:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:11:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-04 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:12:05 [end_date_ymd] => 2025-03-04 22:12:05 [RateCDR] => 1 ) [2025-03-04 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-04 19:12:05' and `end` < '2025-03-04 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-04 22:12:17] Production.INFO: count ==1177 [2025-03-04 22:12:17] Production.ERROR: pbx CDR StartTime 2025-03-04 19:12:05 - End Time 2025-03-04 22:12:05 [2025-03-04 22:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608774', 'tblTempUsageDetail_20' ) start [2025-03-04 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608774', 'tblTempUsageDetail_20' ) end [2025-03-04 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608774', 'tblTempVendorCDR_20' ) start [2025-03-04 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608774', 'tblTempVendorCDR_20' ) end [2025-03-04 22:12:17] Production.INFO: ProcessCDR(1,14608774,1,1,2) [2025-03-04 22:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608774', 'tblTempUsageDetail_20' ) start [2025-03-04 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608774', 'tblTempUsageDetail_20' ) end [2025-03-04 22:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:12:22] Production.INFO: ==26409== Releasing lock... [2025-03-04 22:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:12:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-04 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:13:05 [end_date_ymd] => 2025-03-04 22:13:05 [RateCDR] => 1 ) [2025-03-04 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-04 19:13:05' and `end` < '2025-03-04 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-04 22:13:17] Production.INFO: count ==1178 [2025-03-04 22:13:17] Production.ERROR: pbx CDR StartTime 2025-03-04 19:13:05 - End Time 2025-03-04 22:13:05 [2025-03-04 22:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608779', 'tblTempUsageDetail_20' ) start [2025-03-04 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608779', 'tblTempUsageDetail_20' ) end [2025-03-04 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608779', 'tblTempVendorCDR_20' ) start [2025-03-04 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608779', 'tblTempVendorCDR_20' ) end [2025-03-04 22:13:17] Production.INFO: ProcessCDR(1,14608779,1,1,2) [2025-03-04 22:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608779', 'tblTempUsageDetail_20' ) start [2025-03-04 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608779', 'tblTempUsageDetail_20' ) end [2025-03-04 22:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:13:22] Production.INFO: ==26518== Releasing lock... [2025-03-04 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:13:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-04 22:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:14:06 [end_date_ymd] => 2025-03-04 22:14:06 [RateCDR] => 1 ) [2025-03-04 22: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 19:14:06' and `end` < '2025-03-04 22: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-04 22:14:18] Production.INFO: count ==1177 [2025-03-04 22:14:18] Production.ERROR: pbx CDR StartTime 2025-03-04 19:14:06 - End Time 2025-03-04 22:14:06 [2025-03-04 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608784', 'tblTempUsageDetail_20' ) start [2025-03-04 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608784', 'tblTempUsageDetail_20' ) end [2025-03-04 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608784', 'tblTempVendorCDR_20' ) start [2025-03-04 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608784', 'tblTempVendorCDR_20' ) end [2025-03-04 22:14:18] Production.INFO: ProcessCDR(1,14608784,1,1,2) [2025-03-04 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608784', 'tblTempUsageDetail_20' ) start [2025-03-04 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608784', 'tblTempUsageDetail_20' ) end [2025-03-04 22:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:14:23] Production.INFO: ==26593== Releasing lock... [2025-03-04 22:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:14:23] Production.INFO: 37 MB #Memory Used# [2025-03-04 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:15:05 [end_date_ymd] => 2025-03-04 22:15:05 [RateCDR] => 1 ) [2025-03-04 22:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 19:15:05' and `end` < '2025-03-04 22:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 22:15:17] Production.INFO: count ==1176 [2025-03-04 22:15:17] Production.ERROR: pbx CDR StartTime 2025-03-04 19:15:05 - End Time 2025-03-04 22:15:05 [2025-03-04 22:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608789', 'tblTempUsageDetail_20' ) start [2025-03-04 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608789', 'tblTempUsageDetail_20' ) end [2025-03-04 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608789', 'tblTempVendorCDR_20' ) start [2025-03-04 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608789', 'tblTempVendorCDR_20' ) end [2025-03-04 22:15:17] Production.INFO: ProcessCDR(1,14608789,1,1,2) [2025-03-04 22:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608789', 'tblTempUsageDetail_20' ) start [2025-03-04 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608789', 'tblTempUsageDetail_20' ) end [2025-03-04 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:15:21] Production.INFO: ==26664== Releasing lock... [2025-03-04 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:15:21] Production.INFO: 37 MB #Memory Used# [2025-03-04 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:16:05 [end_date_ymd] => 2025-03-04 22:16:05 [RateCDR] => 1 ) [2025-03-04 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-04 19:16:05' and `end` < '2025-03-04 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-04 22:16:17] Production.INFO: count ==1171 [2025-03-04 22:16:18] Production.ERROR: pbx CDR StartTime 2025-03-04 19:16:05 - End Time 2025-03-04 22:16:05 [2025-03-04 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608794', 'tblTempUsageDetail_20' ) start [2025-03-04 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608794', 'tblTempUsageDetail_20' ) end [2025-03-04 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608794', 'tblTempVendorCDR_20' ) start [2025-03-04 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608794', 'tblTempVendorCDR_20' ) end [2025-03-04 22:16:18] Production.INFO: ProcessCDR(1,14608794,1,1,2) [2025-03-04 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608794', 'tblTempUsageDetail_20' ) start [2025-03-04 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608794', 'tblTempUsageDetail_20' ) end [2025-03-04 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:16:22] Production.INFO: ==26737== Releasing lock... [2025-03-04 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:16:22] Production.INFO: 37 MB #Memory Used# [2025-03-04 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:17:05 [end_date_ymd] => 2025-03-04 22:17:05 [RateCDR] => 1 ) [2025-03-04 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-04 19:17:05' and `end` < '2025-03-04 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-04 22:17:17] Production.INFO: count ==1168 [2025-03-04 22:17:18] Production.ERROR: pbx CDR StartTime 2025-03-04 19:17:05 - End Time 2025-03-04 22:17:05 [2025-03-04 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608799', 'tblTempUsageDetail_20' ) start [2025-03-04 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608799', 'tblTempUsageDetail_20' ) end [2025-03-04 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608799', 'tblTempVendorCDR_20' ) start [2025-03-04 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608799', 'tblTempVendorCDR_20' ) end [2025-03-04 22:17:18] Production.INFO: ProcessCDR(1,14608799,1,1,2) [2025-03-04 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608799', 'tblTempUsageDetail_20' ) start [2025-03-04 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608799', 'tblTempUsageDetail_20' ) end [2025-03-04 22:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:17:23] Production.INFO: ==26824== Releasing lock... [2025-03-04 22:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:17:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-04 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:18:05 [end_date_ymd] => 2025-03-04 22:18:05 [RateCDR] => 1 ) [2025-03-04 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-04 19:18:05' and `end` < '2025-03-04 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-04 22:18:17] Production.INFO: count ==1169 [2025-03-04 22:18:17] Production.ERROR: pbx CDR StartTime 2025-03-04 19:18:05 - End Time 2025-03-04 22:18:05 [2025-03-04 22:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608804', 'tblTempUsageDetail_20' ) start [2025-03-04 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608804', 'tblTempUsageDetail_20' ) end [2025-03-04 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608804', 'tblTempVendorCDR_20' ) start [2025-03-04 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608804', 'tblTempVendorCDR_20' ) end [2025-03-04 22:18:17] Production.INFO: ProcessCDR(1,14608804,1,1,2) [2025-03-04 22:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608804', 'tblTempUsageDetail_20' ) start [2025-03-04 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608804', 'tblTempUsageDetail_20' ) end [2025-03-04 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:18:22] Production.INFO: ==26895== Releasing lock... [2025-03-04 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:18:22] Production.INFO: 37 MB #Memory Used# [2025-03-04 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:19:05 [end_date_ymd] => 2025-03-04 22:19:05 [RateCDR] => 1 ) [2025-03-04 22:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 19:19:05' and `end` < '2025-03-04 22:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 22:19:17] Production.INFO: count ==1169 [2025-03-04 22:19:18] Production.ERROR: pbx CDR StartTime 2025-03-04 19:19:05 - End Time 2025-03-04 22:19:05 [2025-03-04 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608809', 'tblTempUsageDetail_20' ) start [2025-03-04 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608809', 'tblTempUsageDetail_20' ) end [2025-03-04 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608809', 'tblTempVendorCDR_20' ) start [2025-03-04 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608809', 'tblTempVendorCDR_20' ) end [2025-03-04 22:19:18] Production.INFO: ProcessCDR(1,14608809,1,1,2) [2025-03-04 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608809', 'tblTempUsageDetail_20' ) start [2025-03-04 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608809', 'tblTempUsageDetail_20' ) end [2025-03-04 22:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:19:21] Production.INFO: ==26966== Releasing lock... [2025-03-04 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:19:21] Production.INFO: 37 MB #Memory Used# [2025-03-04 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:20:06 [end_date_ymd] => 2025-03-04 22:20:06 [RateCDR] => 1 ) [2025-03-04 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-04 19:20:06' and `end` < '2025-03-04 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-04 22:20:18] Production.INFO: count ==1168 [2025-03-04 22:20:18] Production.ERROR: pbx CDR StartTime 2025-03-04 19:20:06 - End Time 2025-03-04 22:20:06 [2025-03-04 22:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608814', 'tblTempUsageDetail_20' ) start [2025-03-04 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608814', 'tblTempUsageDetail_20' ) end [2025-03-04 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608814', 'tblTempVendorCDR_20' ) start [2025-03-04 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608814', 'tblTempVendorCDR_20' ) end [2025-03-04 22:20:18] Production.INFO: ProcessCDR(1,14608814,1,1,2) [2025-03-04 22:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608814', 'tblTempUsageDetail_20' ) start [2025-03-04 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608814', 'tblTempUsageDetail_20' ) end [2025-03-04 22:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:20:21] Production.INFO: ==27039== Releasing lock... [2025-03-04 22:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:20:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-04 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:21:05 [end_date_ymd] => 2025-03-04 22:21:05 [RateCDR] => 1 ) [2025-03-04 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-04 19:21:05' and `end` < '2025-03-04 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-04 22:21:17] Production.INFO: count ==1149 [2025-03-04 22:21:17] Production.ERROR: pbx CDR StartTime 2025-03-04 19:21:05 - End Time 2025-03-04 22:21:05 [2025-03-04 22:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608820', 'tblTempUsageDetail_20' ) start [2025-03-04 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608820', 'tblTempUsageDetail_20' ) end [2025-03-04 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608820', 'tblTempVendorCDR_20' ) start [2025-03-04 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608820', 'tblTempVendorCDR_20' ) end [2025-03-04 22:21:17] Production.INFO: ProcessCDR(1,14608820,1,1,2) [2025-03-04 22:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608820', 'tblTempUsageDetail_20' ) start [2025-03-04 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608820', 'tblTempUsageDetail_20' ) end [2025-03-04 22:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:21:21] Production.INFO: ==27117== Releasing lock... [2025-03-04 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:21:21] Production.INFO: 37 MB #Memory Used# [2025-03-04 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:22:05 [end_date_ymd] => 2025-03-04 22:22:05 [RateCDR] => 1 ) [2025-03-04 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-04 19:22:05' and `end` < '2025-03-04 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-04 22:22:18] Production.INFO: count ==1147 [2025-03-04 22:22:18] Production.ERROR: pbx CDR StartTime 2025-03-04 19:22:05 - End Time 2025-03-04 22:22:05 [2025-03-04 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608825', 'tblTempUsageDetail_20' ) start [2025-03-04 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608825', 'tblTempUsageDetail_20' ) end [2025-03-04 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608825', 'tblTempVendorCDR_20' ) start [2025-03-04 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608825', 'tblTempVendorCDR_20' ) end [2025-03-04 22:22:18] Production.INFO: ProcessCDR(1,14608825,1,1,2) [2025-03-04 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608825', 'tblTempUsageDetail_20' ) start [2025-03-04 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608825', 'tblTempUsageDetail_20' ) end [2025-03-04 22:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:22:21] Production.INFO: ==27190== Releasing lock... [2025-03-04 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:22:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-04 22:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:23:04 [end_date_ymd] => 2025-03-04 22:23:04 [RateCDR] => 1 ) [2025-03-04 22: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-04 19:23:04' and `end` < '2025-03-04 22: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-04 22:23:16] Production.INFO: count ==1147 [2025-03-04 22:23:17] Production.ERROR: pbx CDR StartTime 2025-03-04 19:23:04 - End Time 2025-03-04 22:23:04 [2025-03-04 22:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608830', 'tblTempUsageDetail_20' ) start [2025-03-04 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608830', 'tblTempUsageDetail_20' ) end [2025-03-04 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608830', 'tblTempVendorCDR_20' ) start [2025-03-04 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608830', 'tblTempVendorCDR_20' ) end [2025-03-04 22:23:17] Production.INFO: ProcessCDR(1,14608830,1,1,2) [2025-03-04 22:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608830', 'tblTempUsageDetail_20' ) start [2025-03-04 22:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608830', 'tblTempUsageDetail_20' ) end [2025-03-04 22:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:23:20] Production.INFO: ==27260== Releasing lock... [2025-03-04 22:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:23:20] Production.INFO: 37.25 MB #Memory Used# [2025-03-04 22:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:24:06 [end_date_ymd] => 2025-03-04 22:24:06 [RateCDR] => 1 ) [2025-03-04 22: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 19:24:06' and `end` < '2025-03-04 22: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-04 22:24:18] Production.INFO: count ==1136 [2025-03-04 22:24:18] Production.ERROR: pbx CDR StartTime 2025-03-04 19:24:06 - End Time 2025-03-04 22:24:06 [2025-03-04 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608835', 'tblTempUsageDetail_20' ) start [2025-03-04 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608835', 'tblTempUsageDetail_20' ) end [2025-03-04 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608835', 'tblTempVendorCDR_20' ) start [2025-03-04 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608835', 'tblTempVendorCDR_20' ) end [2025-03-04 22:24:18] Production.INFO: ProcessCDR(1,14608835,1,1,2) [2025-03-04 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608835', 'tblTempUsageDetail_20' ) start [2025-03-04 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608835', 'tblTempUsageDetail_20' ) end [2025-03-04 22:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:24:23] Production.INFO: ==27331== Releasing lock... [2025-03-04 22:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:24:23] Production.INFO: 37 MB #Memory Used# [2025-03-04 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:25:05 [end_date_ymd] => 2025-03-04 22:25:05 [RateCDR] => 1 ) [2025-03-04 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-04 19:25:05' and `end` < '2025-03-04 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-04 22:25:18] Production.INFO: count ==1124 [2025-03-04 22:25:18] Production.ERROR: pbx CDR StartTime 2025-03-04 19:25:05 - End Time 2025-03-04 22:25:05 [2025-03-04 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608840', 'tblTempUsageDetail_20' ) start [2025-03-04 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608840', 'tblTempUsageDetail_20' ) end [2025-03-04 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608840', 'tblTempVendorCDR_20' ) start [2025-03-04 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608840', 'tblTempVendorCDR_20' ) end [2025-03-04 22:25:18] Production.INFO: ProcessCDR(1,14608840,1,1,2) [2025-03-04 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608840', 'tblTempUsageDetail_20' ) start [2025-03-04 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608840', 'tblTempUsageDetail_20' ) end [2025-03-04 22:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:25:21] Production.INFO: ==27401== Releasing lock... [2025-03-04 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:25:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-04 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:26:05 [end_date_ymd] => 2025-03-04 22:26:05 [RateCDR] => 1 ) [2025-03-04 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-04 19:26:05' and `end` < '2025-03-04 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-04 22:26:17] Production.INFO: count ==1110 [2025-03-04 22:26:17] Production.ERROR: pbx CDR StartTime 2025-03-04 19:26:05 - End Time 2025-03-04 22:26:05 [2025-03-04 22:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608845', 'tblTempUsageDetail_20' ) start [2025-03-04 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608845', 'tblTempUsageDetail_20' ) end [2025-03-04 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608845', 'tblTempVendorCDR_20' ) start [2025-03-04 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608845', 'tblTempVendorCDR_20' ) end [2025-03-04 22:26:17] Production.INFO: ProcessCDR(1,14608845,1,1,2) [2025-03-04 22:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608845', 'tblTempUsageDetail_20' ) start [2025-03-04 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608845', 'tblTempUsageDetail_20' ) end [2025-03-04 22:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:26:21] Production.INFO: ==27474== Releasing lock... [2025-03-04 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:26:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-04 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:27:05 [end_date_ymd] => 2025-03-04 22:27:05 [RateCDR] => 1 ) [2025-03-04 22:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 19:27:05' and `end` < '2025-03-04 22:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 22:27:18] Production.INFO: count ==1096 [2025-03-04 22:27:18] Production.ERROR: pbx CDR StartTime 2025-03-04 19:27:05 - End Time 2025-03-04 22:27:05 [2025-03-04 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608850', 'tblTempUsageDetail_20' ) start [2025-03-04 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608850', 'tblTempUsageDetail_20' ) end [2025-03-04 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608850', 'tblTempVendorCDR_20' ) start [2025-03-04 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608850', 'tblTempVendorCDR_20' ) end [2025-03-04 22:27:18] Production.INFO: ProcessCDR(1,14608850,1,1,2) [2025-03-04 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608850', 'tblTempUsageDetail_20' ) start [2025-03-04 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608850', 'tblTempUsageDetail_20' ) end [2025-03-04 22:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:27:21] Production.INFO: ==27545== Releasing lock... [2025-03-04 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:27:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-04 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:28:05 [end_date_ymd] => 2025-03-04 22:28:05 [RateCDR] => 1 ) [2025-03-04 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-04 19:28:05' and `end` < '2025-03-04 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-04 22:28:17] Production.INFO: count ==1092 [2025-03-04 22:28:17] Production.ERROR: pbx CDR StartTime 2025-03-04 19:28:05 - End Time 2025-03-04 22:28:05 [2025-03-04 22:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608855', 'tblTempUsageDetail_20' ) start [2025-03-04 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608855', 'tblTempUsageDetail_20' ) end [2025-03-04 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608855', 'tblTempVendorCDR_20' ) start [2025-03-04 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608855', 'tblTempVendorCDR_20' ) end [2025-03-04 22:28:17] Production.INFO: ProcessCDR(1,14608855,1,1,2) [2025-03-04 22:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608855', 'tblTempUsageDetail_20' ) start [2025-03-04 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608855', 'tblTempUsageDetail_20' ) end [2025-03-04 22:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:28:21] Production.INFO: ==27618== Releasing lock... [2025-03-04 22:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:28:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-04 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:29:05 [end_date_ymd] => 2025-03-04 22:29:05 [RateCDR] => 1 ) [2025-03-04 22:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 19:29:05' and `end` < '2025-03-04 22:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 22:29:17] Production.INFO: count ==1094 [2025-03-04 22:29:18] Production.ERROR: pbx CDR StartTime 2025-03-04 19:29:05 - End Time 2025-03-04 22:29:05 [2025-03-04 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608860', 'tblTempUsageDetail_20' ) start [2025-03-04 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608860', 'tblTempUsageDetail_20' ) end [2025-03-04 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608860', 'tblTempVendorCDR_20' ) start [2025-03-04 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608860', 'tblTempVendorCDR_20' ) end [2025-03-04 22:29:18] Production.INFO: ProcessCDR(1,14608860,1,1,2) [2025-03-04 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608860', 'tblTempUsageDetail_20' ) start [2025-03-04 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608860', 'tblTempUsageDetail_20' ) end [2025-03-04 22:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:29:21] Production.INFO: ==27726== Releasing lock... [2025-03-04 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:29:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-04 22:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:30:05 [end_date_ymd] => 2025-03-04 22:30:05 [RateCDR] => 1 ) [2025-03-04 22:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 19:30:05' and `end` < '2025-03-04 22:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 22:30:17] Production.INFO: count ==1097 [2025-03-04 22:30:18] Production.ERROR: pbx CDR StartTime 2025-03-04 19:30:05 - End Time 2025-03-04 22:30:05 [2025-03-04 22:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608866', 'tblTempUsageDetail_20' ) start [2025-03-04 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608866', 'tblTempUsageDetail_20' ) end [2025-03-04 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608866', 'tblTempVendorCDR_20' ) start [2025-03-04 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608866', 'tblTempVendorCDR_20' ) end [2025-03-04 22:30:18] Production.INFO: ProcessCDR(1,14608866,1,1,2) [2025-03-04 22:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608866', 'tblTempUsageDetail_20' ) start [2025-03-04 22:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608866', 'tblTempUsageDetail_20' ) end [2025-03-04 22:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:30:21] Production.INFO: ==27798== Releasing lock... [2025-03-04 22:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:30:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-04 22:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:31:06 [end_date_ymd] => 2025-03-04 22:31:06 [RateCDR] => 1 ) [2025-03-04 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-04 19:31:06' and `end` < '2025-03-04 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-04 22:31:18] Production.INFO: count ==1068 [2025-03-04 22:31:18] Production.ERROR: pbx CDR StartTime 2025-03-04 19:31:06 - End Time 2025-03-04 22:31:06 [2025-03-04 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608871', 'tblTempUsageDetail_20' ) start [2025-03-04 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608871', 'tblTempUsageDetail_20' ) end [2025-03-04 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608871', 'tblTempVendorCDR_20' ) start [2025-03-04 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608871', 'tblTempVendorCDR_20' ) end [2025-03-04 22:31:18] Production.INFO: ProcessCDR(1,14608871,1,1,2) [2025-03-04 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608871', 'tblTempUsageDetail_20' ) start [2025-03-04 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608871', 'tblTempUsageDetail_20' ) end [2025-03-04 22:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:31:21] Production.INFO: ==27872== Releasing lock... [2025-03-04 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:31:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-04 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:32:05 [end_date_ymd] => 2025-03-04 22:32:05 [RateCDR] => 1 ) [2025-03-04 22:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 19:32:05' and `end` < '2025-03-04 22:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 22:32:17] Production.INFO: count ==1057 [2025-03-04 22:32:17] Production.ERROR: pbx CDR StartTime 2025-03-04 19:32:05 - End Time 2025-03-04 22:32:05 [2025-03-04 22:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608876', 'tblTempUsageDetail_20' ) start [2025-03-04 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608876', 'tblTempUsageDetail_20' ) end [2025-03-04 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608876', 'tblTempVendorCDR_20' ) start [2025-03-04 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608876', 'tblTempVendorCDR_20' ) end [2025-03-04 22:32:18] Production.INFO: ProcessCDR(1,14608876,1,1,2) [2025-03-04 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608876', 'tblTempUsageDetail_20' ) start [2025-03-04 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608876', 'tblTempUsageDetail_20' ) end [2025-03-04 22:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:32:21] Production.INFO: ==27943== Releasing lock... [2025-03-04 22:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:32:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-04 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:33:05 [end_date_ymd] => 2025-03-04 22:33:05 [RateCDR] => 1 ) [2025-03-04 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-04 19:33:05' and `end` < '2025-03-04 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-04 22:33:17] Production.INFO: count ==1053 [2025-03-04 22:33:17] Production.ERROR: pbx CDR StartTime 2025-03-04 19:33:05 - End Time 2025-03-04 22:33:05 [2025-03-04 22:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608881', 'tblTempUsageDetail_20' ) start [2025-03-04 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608881', 'tblTempUsageDetail_20' ) end [2025-03-04 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608881', 'tblTempVendorCDR_20' ) start [2025-03-04 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608881', 'tblTempVendorCDR_20' ) end [2025-03-04 22:33:18] Production.INFO: ProcessCDR(1,14608881,1,1,2) [2025-03-04 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608881', 'tblTempUsageDetail_20' ) start [2025-03-04 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608881', 'tblTempUsageDetail_20' ) end [2025-03-04 22:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:33:21] Production.INFO: ==28019== Releasing lock... [2025-03-04 22:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:33:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-04 22:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:34:06 [end_date_ymd] => 2025-03-04 22:34:06 [RateCDR] => 1 ) [2025-03-04 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-04 19:34:06' and `end` < '2025-03-04 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-04 22:34:18] Production.INFO: count ==1053 [2025-03-04 22:34:18] Production.ERROR: pbx CDR StartTime 2025-03-04 19:34:06 - End Time 2025-03-04 22:34:06 [2025-03-04 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608886', 'tblTempUsageDetail_20' ) start [2025-03-04 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608886', 'tblTempUsageDetail_20' ) end [2025-03-04 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608886', 'tblTempVendorCDR_20' ) start [2025-03-04 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608886', 'tblTempVendorCDR_20' ) end [2025-03-04 22:34:18] Production.INFO: ProcessCDR(1,14608886,1,1,2) [2025-03-04 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608886', 'tblTempUsageDetail_20' ) start [2025-03-04 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608886', 'tblTempUsageDetail_20' ) end [2025-03-04 22:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:34:21] Production.INFO: ==28092== Releasing lock... [2025-03-04 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:34:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-04 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:35:05 [end_date_ymd] => 2025-03-04 22:35:05 [RateCDR] => 1 ) [2025-03-04 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-04 19:35:05' and `end` < '2025-03-04 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-04 22:35:17] Production.INFO: count ==1055 [2025-03-04 22:35:18] Production.ERROR: pbx CDR StartTime 2025-03-04 19:35:05 - End Time 2025-03-04 22:35:05 [2025-03-04 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608891', 'tblTempUsageDetail_20' ) start [2025-03-04 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608891', 'tblTempUsageDetail_20' ) end [2025-03-04 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608891', 'tblTempVendorCDR_20' ) start [2025-03-04 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608891', 'tblTempVendorCDR_20' ) end [2025-03-04 22:35:18] Production.INFO: ProcessCDR(1,14608891,1,1,2) [2025-03-04 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608891', 'tblTempUsageDetail_20' ) start [2025-03-04 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608891', 'tblTempUsageDetail_20' ) end [2025-03-04 22:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:35:21] Production.INFO: ==28165== Releasing lock... [2025-03-04 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:35:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-04 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:36:05 [end_date_ymd] => 2025-03-04 22:36:05 [RateCDR] => 1 ) [2025-03-04 22:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 19:36:05' and `end` < '2025-03-04 22:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 22:36:18] Production.INFO: count ==1048 [2025-03-04 22:36:18] Production.ERROR: pbx CDR StartTime 2025-03-04 19:36:05 - End Time 2025-03-04 22:36:05 [2025-03-04 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608896', 'tblTempUsageDetail_20' ) start [2025-03-04 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608896', 'tblTempUsageDetail_20' ) end [2025-03-04 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608896', 'tblTempVendorCDR_20' ) start [2025-03-04 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608896', 'tblTempVendorCDR_20' ) end [2025-03-04 22:36:18] Production.INFO: ProcessCDR(1,14608896,1,1,2) [2025-03-04 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608896', 'tblTempUsageDetail_20' ) start [2025-03-04 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608896', 'tblTempUsageDetail_20' ) end [2025-03-04 22:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:36:21] Production.INFO: ==28235== Releasing lock... [2025-03-04 22:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:36:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-04 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:37:05 [end_date_ymd] => 2025-03-04 22:37:05 [RateCDR] => 1 ) [2025-03-04 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-04 19:37:05' and `end` < '2025-03-04 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-04 22:37:17] Production.INFO: count ==1038 [2025-03-04 22:37:17] Production.ERROR: pbx CDR StartTime 2025-03-04 19:37:05 - End Time 2025-03-04 22:37:05 [2025-03-04 22:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608901', 'tblTempUsageDetail_20' ) start [2025-03-04 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608901', 'tblTempUsageDetail_20' ) end [2025-03-04 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608901', 'tblTempVendorCDR_20' ) start [2025-03-04 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608901', 'tblTempVendorCDR_20' ) end [2025-03-04 22:37:17] Production.INFO: ProcessCDR(1,14608901,1,1,2) [2025-03-04 22:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608901', 'tblTempUsageDetail_20' ) start [2025-03-04 22:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608901', 'tblTempUsageDetail_20' ) end [2025-03-04 22:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:37:20] Production.INFO: ==28304== Releasing lock... [2025-03-04 22:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:37:20] Production.INFO: 36.25 MB #Memory Used# [2025-03-04 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:38:05 [end_date_ymd] => 2025-03-04 22:38:05 [RateCDR] => 1 ) [2025-03-04 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-04 19:38:05' and `end` < '2025-03-04 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-04 22:38:17] Production.INFO: count ==1035 [2025-03-04 22:38:17] Production.ERROR: pbx CDR StartTime 2025-03-04 19:38:05 - End Time 2025-03-04 22:38:05 [2025-03-04 22:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608906', 'tblTempUsageDetail_20' ) start [2025-03-04 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608906', 'tblTempUsageDetail_20' ) end [2025-03-04 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608906', 'tblTempVendorCDR_20' ) start [2025-03-04 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608906', 'tblTempVendorCDR_20' ) end [2025-03-04 22:38:17] Production.INFO: ProcessCDR(1,14608906,1,1,2) [2025-03-04 22:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608906', 'tblTempUsageDetail_20' ) start [2025-03-04 22:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608906', 'tblTempUsageDetail_20' ) end [2025-03-04 22:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:38:20] Production.INFO: ==28382== Releasing lock... [2025-03-04 22:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:38:20] Production.INFO: 36.5 MB #Memory Used# [2025-03-04 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:39:05 [end_date_ymd] => 2025-03-04 22:39:05 [RateCDR] => 1 ) [2025-03-04 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-04 19:39:05' and `end` < '2025-03-04 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-04 22:39:18] Production.INFO: count ==1032 [2025-03-04 22:39:18] Production.ERROR: pbx CDR StartTime 2025-03-04 19:39:05 - End Time 2025-03-04 22:39:05 [2025-03-04 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608911', 'tblTempUsageDetail_20' ) start [2025-03-04 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608911', 'tblTempUsageDetail_20' ) end [2025-03-04 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608911', 'tblTempVendorCDR_20' ) start [2025-03-04 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608911', 'tblTempVendorCDR_20' ) end [2025-03-04 22:39:18] Production.INFO: ProcessCDR(1,14608911,1,1,2) [2025-03-04 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608911', 'tblTempUsageDetail_20' ) start [2025-03-04 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608911', 'tblTempUsageDetail_20' ) end [2025-03-04 22:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:39:22] Production.INFO: ==28456== Releasing lock... [2025-03-04 22:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:39:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-04 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:40:06 [end_date_ymd] => 2025-03-04 22:40:06 [RateCDR] => 1 ) [2025-03-04 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-04 19:40:06' and `end` < '2025-03-04 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-04 22:40:18] Production.INFO: count ==1023 [2025-03-04 22:40:19] Production.ERROR: pbx CDR StartTime 2025-03-04 19:40:06 - End Time 2025-03-04 22:40:06 [2025-03-04 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608917', 'tblTempUsageDetail_20' ) start [2025-03-04 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608917', 'tblTempUsageDetail_20' ) end [2025-03-04 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608917', 'tblTempVendorCDR_20' ) start [2025-03-04 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608917', 'tblTempVendorCDR_20' ) end [2025-03-04 22:40:19] Production.INFO: ProcessCDR(1,14608917,1,1,2) [2025-03-04 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608917', 'tblTempUsageDetail_20' ) start [2025-03-04 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608917', 'tblTempUsageDetail_20' ) end [2025-03-04 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:40:22] Production.INFO: ==28531== Releasing lock... [2025-03-04 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:40:22] Production.INFO: 36 MB #Memory Used# [2025-03-04 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:41:05 [end_date_ymd] => 2025-03-04 22:41:05 [RateCDR] => 1 ) [2025-03-04 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-04 19:41:05' and `end` < '2025-03-04 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-04 22:41:18] Production.INFO: count ==1020 [2025-03-04 22:41:18] Production.ERROR: pbx CDR StartTime 2025-03-04 19:41:05 - End Time 2025-03-04 22:41:05 [2025-03-04 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608922', 'tblTempUsageDetail_20' ) start [2025-03-04 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608922', 'tblTempUsageDetail_20' ) end [2025-03-04 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608922', 'tblTempVendorCDR_20' ) start [2025-03-04 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608922', 'tblTempVendorCDR_20' ) end [2025-03-04 22:41:18] Production.INFO: ProcessCDR(1,14608922,1,1,2) [2025-03-04 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608922', 'tblTempUsageDetail_20' ) start [2025-03-04 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608922', 'tblTempUsageDetail_20' ) end [2025-03-04 22:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:41:21] Production.INFO: ==28607== Releasing lock... [2025-03-04 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:41:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-04 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:42:05 [end_date_ymd] => 2025-03-04 22:42:05 [RateCDR] => 1 ) [2025-03-04 22:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 19:42:05' and `end` < '2025-03-04 22:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 22:42:18] Production.INFO: count ==1020 [2025-03-04 22:42:18] Production.ERROR: pbx CDR StartTime 2025-03-04 19:42:05 - End Time 2025-03-04 22:42:05 [2025-03-04 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608927', 'tblTempUsageDetail_20' ) start [2025-03-04 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608927', 'tblTempUsageDetail_20' ) end [2025-03-04 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608927', 'tblTempVendorCDR_20' ) start [2025-03-04 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608927', 'tblTempVendorCDR_20' ) end [2025-03-04 22:42:18] Production.INFO: ProcessCDR(1,14608927,1,1,2) [2025-03-04 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608927', 'tblTempUsageDetail_20' ) start [2025-03-04 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608927', 'tblTempUsageDetail_20' ) end [2025-03-04 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:42:22] Production.INFO: ==28682== Releasing lock... [2025-03-04 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:42:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-04 22:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:43:06 [end_date_ymd] => 2025-03-04 22:43:06 [RateCDR] => 1 ) [2025-03-04 22: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-04 19:43:06' and `end` < '2025-03-04 22: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-04 22:43:18] Production.INFO: count ==1024 [2025-03-04 22:43:18] Production.ERROR: pbx CDR StartTime 2025-03-04 19:43:06 - End Time 2025-03-04 22:43:06 [2025-03-04 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608932', 'tblTempUsageDetail_20' ) start [2025-03-04 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608932', 'tblTempUsageDetail_20' ) end [2025-03-04 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608932', 'tblTempVendorCDR_20' ) start [2025-03-04 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608932', 'tblTempVendorCDR_20' ) end [2025-03-04 22:43:18] Production.INFO: ProcessCDR(1,14608932,1,1,2) [2025-03-04 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608932', 'tblTempUsageDetail_20' ) start [2025-03-04 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608932', 'tblTempUsageDetail_20' ) end [2025-03-04 22:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:43:22] Production.INFO: ==28754== Releasing lock... [2025-03-04 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:43:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-04 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:44:05 [end_date_ymd] => 2025-03-04 22:44:05 [RateCDR] => 1 ) [2025-03-04 22:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 19:44:05' and `end` < '2025-03-04 22:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 22:44:17] Production.INFO: count ==1022 [2025-03-04 22:44:17] Production.ERROR: pbx CDR StartTime 2025-03-04 19:44:05 - End Time 2025-03-04 22:44:05 [2025-03-04 22:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608937', 'tblTempUsageDetail_20' ) start [2025-03-04 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608937', 'tblTempUsageDetail_20' ) end [2025-03-04 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608937', 'tblTempVendorCDR_20' ) start [2025-03-04 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608937', 'tblTempVendorCDR_20' ) end [2025-03-04 22:44:17] Production.INFO: ProcessCDR(1,14608937,1,1,2) [2025-03-04 22:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608937', 'tblTempUsageDetail_20' ) start [2025-03-04 22:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608937', 'tblTempUsageDetail_20' ) end [2025-03-04 22:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:44:20] Production.INFO: ==28868== Releasing lock... [2025-03-04 22:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:44:20] Production.INFO: 36.25 MB #Memory Used# [2025-03-04 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:45:05 [end_date_ymd] => 2025-03-04 22:45:05 [RateCDR] => 1 ) [2025-03-04 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-04 19:45:05' and `end` < '2025-03-04 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-04 22:45:17] Production.INFO: count ==1021 [2025-03-04 22:45:17] Production.ERROR: pbx CDR StartTime 2025-03-04 19:45:05 - End Time 2025-03-04 22:45:05 [2025-03-04 22:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608942', 'tblTempUsageDetail_20' ) start [2025-03-04 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608942', 'tblTempUsageDetail_20' ) end [2025-03-04 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608942', 'tblTempVendorCDR_20' ) start [2025-03-04 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608942', 'tblTempVendorCDR_20' ) end [2025-03-04 22:45:17] Production.INFO: ProcessCDR(1,14608942,1,1,2) [2025-03-04 22:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608942', 'tblTempUsageDetail_20' ) start [2025-03-04 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608942', 'tblTempUsageDetail_20' ) end [2025-03-04 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:45:21] Production.INFO: ==28940== Releasing lock... [2025-03-04 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:45:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-04 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:46:05 [end_date_ymd] => 2025-03-04 22:46:05 [RateCDR] => 1 ) [2025-03-04 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-04 19:46:05' and `end` < '2025-03-04 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-04 22:46:17] Production.INFO: count ==1020 [2025-03-04 22:46:17] Production.ERROR: pbx CDR StartTime 2025-03-04 19:46:05 - End Time 2025-03-04 22:46:05 [2025-03-04 22:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608947', 'tblTempUsageDetail_20' ) start [2025-03-04 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608947', 'tblTempUsageDetail_20' ) end [2025-03-04 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608947', 'tblTempVendorCDR_20' ) start [2025-03-04 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608947', 'tblTempVendorCDR_20' ) end [2025-03-04 22:46:18] Production.INFO: ProcessCDR(1,14608947,1,1,2) [2025-03-04 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608947', 'tblTempUsageDetail_20' ) start [2025-03-04 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608947', 'tblTempUsageDetail_20' ) end [2025-03-04 22:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:46:21] Production.INFO: ==29014== Releasing lock... [2025-03-04 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:46:21] Production.INFO: 36 MB #Memory Used# [2025-03-04 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:47:05 [end_date_ymd] => 2025-03-04 22:47:05 [RateCDR] => 1 ) [2025-03-04 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-04 19:47:05' and `end` < '2025-03-04 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-04 22:47:17] Production.INFO: count ==1020 [2025-03-04 22:47:18] Production.ERROR: pbx CDR StartTime 2025-03-04 19:47:05 - End Time 2025-03-04 22:47:05 [2025-03-04 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608952', 'tblTempUsageDetail_20' ) start [2025-03-04 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608952', 'tblTempUsageDetail_20' ) end [2025-03-04 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608952', 'tblTempVendorCDR_20' ) start [2025-03-04 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608952', 'tblTempVendorCDR_20' ) end [2025-03-04 22:47:18] Production.INFO: ProcessCDR(1,14608952,1,1,2) [2025-03-04 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608952', 'tblTempUsageDetail_20' ) start [2025-03-04 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608952', 'tblTempUsageDetail_20' ) end [2025-03-04 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:47:21] Production.INFO: ==29086== Releasing lock... [2025-03-04 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:47:21] Production.INFO: 36 MB #Memory Used# [2025-03-04 22:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:48:06 [end_date_ymd] => 2025-03-04 22:48:06 [RateCDR] => 1 ) [2025-03-04 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-04 19:48:06' and `end` < '2025-03-04 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-04 22:48:18] Production.INFO: count ==1012 [2025-03-04 22:48:18] Production.ERROR: pbx CDR StartTime 2025-03-04 19:48:06 - End Time 2025-03-04 22:48:06 [2025-03-04 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608957', 'tblTempUsageDetail_20' ) start [2025-03-04 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608957', 'tblTempUsageDetail_20' ) end [2025-03-04 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608957', 'tblTempVendorCDR_20' ) start [2025-03-04 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608957', 'tblTempVendorCDR_20' ) end [2025-03-04 22:48:18] Production.INFO: ProcessCDR(1,14608957,1,1,2) [2025-03-04 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608957', 'tblTempUsageDetail_20' ) start [2025-03-04 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608957', 'tblTempUsageDetail_20' ) end [2025-03-04 22:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:48:21] Production.INFO: ==29161== Releasing lock... [2025-03-04 22:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:48:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-04 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:49:05 [end_date_ymd] => 2025-03-04 22:49:05 [RateCDR] => 1 ) [2025-03-04 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-04 19:49:05' and `end` < '2025-03-04 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-04 22:49:17] Production.INFO: count ==1005 [2025-03-04 22:49:17] Production.ERROR: pbx CDR StartTime 2025-03-04 19:49:05 - End Time 2025-03-04 22:49:05 [2025-03-04 22:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608962', 'tblTempUsageDetail_20' ) start [2025-03-04 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608962', 'tblTempUsageDetail_20' ) end [2025-03-04 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608962', 'tblTempVendorCDR_20' ) start [2025-03-04 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608962', 'tblTempVendorCDR_20' ) end [2025-03-04 22:49:17] Production.INFO: ProcessCDR(1,14608962,1,1,2) [2025-03-04 22:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608962', 'tblTempUsageDetail_20' ) start [2025-03-04 22:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608962', 'tblTempUsageDetail_20' ) end [2025-03-04 22:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:49:20] Production.INFO: ==29241== Releasing lock... [2025-03-04 22:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:49:20] Production.INFO: 35.5 MB #Memory Used# [2025-03-04 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:50:06 [end_date_ymd] => 2025-03-04 22:50:06 [RateCDR] => 1 ) [2025-03-04 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-04 19:50:06' and `end` < '2025-03-04 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-04 22:50:18] Production.INFO: count ==1010 [2025-03-04 22:50:18] Production.ERROR: pbx CDR StartTime 2025-03-04 19:50:06 - End Time 2025-03-04 22:50:06 [2025-03-04 22:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608968', 'tblTempUsageDetail_20' ) start [2025-03-04 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608968', 'tblTempUsageDetail_20' ) end [2025-03-04 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608968', 'tblTempVendorCDR_20' ) start [2025-03-04 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608968', 'tblTempVendorCDR_20' ) end [2025-03-04 22:50:19] Production.INFO: ProcessCDR(1,14608968,1,1,2) [2025-03-04 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608968', 'tblTempUsageDetail_20' ) start [2025-03-04 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608968', 'tblTempUsageDetail_20' ) end [2025-03-04 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:50:22] Production.INFO: ==29318== Releasing lock... [2025-03-04 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:50:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-04 22:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:51:04 [end_date_ymd] => 2025-03-04 22:51:04 [RateCDR] => 1 ) [2025-03-04 22:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 19:51:04' and `end` < '2025-03-04 22:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 22:51:16] Production.INFO: count ==980 [2025-03-04 22:51:17] Production.ERROR: pbx CDR StartTime 2025-03-04 19:51:04 - End Time 2025-03-04 22:51:04 [2025-03-04 22:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608973', 'tblTempUsageDetail_20' ) start [2025-03-04 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608973', 'tblTempUsageDetail_20' ) end [2025-03-04 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608973', 'tblTempVendorCDR_20' ) start [2025-03-04 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608973', 'tblTempVendorCDR_20' ) end [2025-03-04 22:51:17] Production.INFO: ProcessCDR(1,14608973,1,1,2) [2025-03-04 22:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608973', 'tblTempUsageDetail_20' ) start [2025-03-04 22:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608973', 'tblTempUsageDetail_20' ) end [2025-03-04 22:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:51:20] Production.INFO: ==29391== Releasing lock... [2025-03-04 22:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:51:20] Production.INFO: 35.75 MB #Memory Used# [2025-03-04 22:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:52:06 [end_date_ymd] => 2025-03-04 22:52:06 [RateCDR] => 1 ) [2025-03-04 22: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 19:52:06' and `end` < '2025-03-04 22: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-04 22:52:18] Production.INFO: count ==974 [2025-03-04 22:52:18] Production.ERROR: pbx CDR StartTime 2025-03-04 19:52:06 - End Time 2025-03-04 22:52:06 [2025-03-04 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608978', 'tblTempUsageDetail_20' ) start [2025-03-04 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608978', 'tblTempUsageDetail_20' ) end [2025-03-04 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608978', 'tblTempVendorCDR_20' ) start [2025-03-04 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608978', 'tblTempVendorCDR_20' ) end [2025-03-04 22:52:18] Production.INFO: ProcessCDR(1,14608978,1,1,2) [2025-03-04 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608978', 'tblTempUsageDetail_20' ) start [2025-03-04 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608978', 'tblTempUsageDetail_20' ) end [2025-03-04 22:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:52:21] Production.INFO: ==29466== Releasing lock... [2025-03-04 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:52:21] Production.INFO: 36 MB #Memory Used# [2025-03-04 22:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:53:04 [end_date_ymd] => 2025-03-04 22:53:04 [RateCDR] => 1 ) [2025-03-04 22:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 19:53:04' and `end` < '2025-03-04 22:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 22:53:17] Production.INFO: count ==975 [2025-03-04 22:53:17] Production.ERROR: pbx CDR StartTime 2025-03-04 19:53:04 - End Time 2025-03-04 22:53:04 [2025-03-04 22:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608983', 'tblTempUsageDetail_20' ) start [2025-03-04 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608983', 'tblTempUsageDetail_20' ) end [2025-03-04 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608983', 'tblTempVendorCDR_20' ) start [2025-03-04 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608983', 'tblTempVendorCDR_20' ) end [2025-03-04 22:53:17] Production.INFO: ProcessCDR(1,14608983,1,1,2) [2025-03-04 22:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608983', 'tblTempUsageDetail_20' ) start [2025-03-04 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608983', 'tblTempUsageDetail_20' ) end [2025-03-04 22:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:53:21] Production.INFO: ==29543== Releasing lock... [2025-03-04 22:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:53:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-04 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:54:05 [end_date_ymd] => 2025-03-04 22:54:05 [RateCDR] => 1 ) [2025-03-04 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-04 19:54:05' and `end` < '2025-03-04 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-04 22:54:17] Production.INFO: count ==974 [2025-03-04 22:54:18] Production.ERROR: pbx CDR StartTime 2025-03-04 19:54:05 - End Time 2025-03-04 22:54:05 [2025-03-04 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608988', 'tblTempUsageDetail_20' ) start [2025-03-04 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608988', 'tblTempUsageDetail_20' ) end [2025-03-04 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608988', 'tblTempVendorCDR_20' ) start [2025-03-04 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608988', 'tblTempVendorCDR_20' ) end [2025-03-04 22:54:18] Production.INFO: ProcessCDR(1,14608988,1,1,2) [2025-03-04 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608988', 'tblTempUsageDetail_20' ) start [2025-03-04 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608988', 'tblTempUsageDetail_20' ) end [2025-03-04 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:54:22] Production.INFO: ==29621== Releasing lock... [2025-03-04 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:54:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-04 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:55:05 [end_date_ymd] => 2025-03-04 22:55:05 [RateCDR] => 1 ) [2025-03-04 22: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 19:55:05' and `end` < '2025-03-04 22: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-04 22:55:17] Production.INFO: count ==972 [2025-03-04 22:55:17] Production.ERROR: pbx CDR StartTime 2025-03-04 19:55:05 - End Time 2025-03-04 22:55:05 [2025-03-04 22:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608993', 'tblTempUsageDetail_20' ) start [2025-03-04 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608993', 'tblTempUsageDetail_20' ) end [2025-03-04 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608993', 'tblTempVendorCDR_20' ) start [2025-03-04 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608993', 'tblTempVendorCDR_20' ) end [2025-03-04 22:55:17] Production.INFO: ProcessCDR(1,14608993,1,1,2) [2025-03-04 22:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608993', 'tblTempUsageDetail_20' ) start [2025-03-04 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608993', 'tblTempUsageDetail_20' ) end [2025-03-04 22:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:55:22] Production.INFO: ==29696== Releasing lock... [2025-03-04 22:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:55:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-04 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:56:05 [end_date_ymd] => 2025-03-04 22:56:05 [RateCDR] => 1 ) [2025-03-04 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-04 19:56:05' and `end` < '2025-03-04 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-04 22:56:17] Production.INFO: count ==963 [2025-03-04 22:56:18] Production.ERROR: pbx CDR StartTime 2025-03-04 19:56:05 - End Time 2025-03-04 22:56:05 [2025-03-04 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608998', 'tblTempUsageDetail_20' ) start [2025-03-04 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14608998', 'tblTempUsageDetail_20' ) end [2025-03-04 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608998', 'tblTempVendorCDR_20' ) start [2025-03-04 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14608998', 'tblTempVendorCDR_20' ) end [2025-03-04 22:56:18] Production.INFO: ProcessCDR(1,14608998,1,1,2) [2025-03-04 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14608998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14608998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14608998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14608998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608998', 'tblTempUsageDetail_20' ) start [2025-03-04 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14608998', 'tblTempUsageDetail_20' ) end [2025-03-04 22:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:56:21] Production.INFO: ==29772== Releasing lock... [2025-03-04 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:56:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-04 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:57:05 [end_date_ymd] => 2025-03-04 22:57:05 [RateCDR] => 1 ) [2025-03-04 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-04 19:57:05' and `end` < '2025-03-04 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-04 22:57:17] Production.INFO: count ==960 [2025-03-04 22:57:18] Production.ERROR: pbx CDR StartTime 2025-03-04 19:57:05 - End Time 2025-03-04 22:57:05 [2025-03-04 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609003', 'tblTempUsageDetail_20' ) start [2025-03-04 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609003', 'tblTempUsageDetail_20' ) end [2025-03-04 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609003', 'tblTempVendorCDR_20' ) start [2025-03-04 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609003', 'tblTempVendorCDR_20' ) end [2025-03-04 22:57:18] Production.INFO: ProcessCDR(1,14609003,1,1,2) [2025-03-04 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609003', 'tblTempUsageDetail_20' ) start [2025-03-04 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609003', 'tblTempUsageDetail_20' ) end [2025-03-04 22:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:57:21] Production.INFO: ==29843== Releasing lock... [2025-03-04 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:57:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-04 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:58:05 [end_date_ymd] => 2025-03-04 22:58:05 [RateCDR] => 1 ) [2025-03-04 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-04 19:58:05' and `end` < '2025-03-04 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-04 22:58:17] Production.INFO: count ==949 [2025-03-04 22:58:17] Production.ERROR: pbx CDR StartTime 2025-03-04 19:58:05 - End Time 2025-03-04 22:58:05 [2025-03-04 22:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609008', 'tblTempUsageDetail_20' ) start [2025-03-04 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609008', 'tblTempUsageDetail_20' ) end [2025-03-04 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609008', 'tblTempVendorCDR_20' ) start [2025-03-04 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609008', 'tblTempVendorCDR_20' ) end [2025-03-04 22:58:17] Production.INFO: ProcessCDR(1,14609008,1,1,2) [2025-03-04 22:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609008', 'tblTempUsageDetail_20' ) start [2025-03-04 22:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609008', 'tblTempUsageDetail_20' ) end [2025-03-04 22:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:58:20] Production.INFO: ==29917== Releasing lock... [2025-03-04 22:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:58:20] Production.INFO: 35 MB #Memory Used# [2025-03-04 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 19:59:05 [end_date_ymd] => 2025-03-04 22:59:05 [RateCDR] => 1 ) [2025-03-04 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-04 19:59:05' and `end` < '2025-03-04 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-04 22:59:18] Production.INFO: count ==948 [2025-03-04 22:59:18] Production.ERROR: pbx CDR StartTime 2025-03-04 19:59:05 - End Time 2025-03-04 22:59:05 [2025-03-04 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609013', 'tblTempUsageDetail_20' ) start [2025-03-04 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609013', 'tblTempUsageDetail_20' ) end [2025-03-04 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609013', 'tblTempVendorCDR_20' ) start [2025-03-04 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609013', 'tblTempVendorCDR_20' ) end [2025-03-04 22:59:18] Production.INFO: ProcessCDR(1,14609013,1,1,2) [2025-03-04 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609013', 'tblTempUsageDetail_20' ) start [2025-03-04 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609013', 'tblTempUsageDetail_20' ) end [2025-03-04 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 22:59:21] Production.INFO: ==29989== Releasing lock... [2025-03-04 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 22:59:21] Production.INFO: 35 MB #Memory Used# [2025-03-04 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:00:05 [end_date_ymd] => 2025-03-04 23:00:05 [RateCDR] => 1 ) [2025-03-04 23:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 20:00:05' and `end` < '2025-03-04 23:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 23:00:17] Production.INFO: count ==950 [2025-03-04 23:00:18] Production.ERROR: pbx CDR StartTime 2025-03-04 20:00:05 - End Time 2025-03-04 23:00:05 [2025-03-04 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609019', 'tblTempUsageDetail_20' ) start [2025-03-04 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609019', 'tblTempUsageDetail_20' ) end [2025-03-04 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609019', 'tblTempVendorCDR_20' ) start [2025-03-04 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609019', 'tblTempVendorCDR_20' ) end [2025-03-04 23:00:18] Production.INFO: ProcessCDR(1,14609019,1,1,2) [2025-03-04 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609019', 'tblTempUsageDetail_20' ) start [2025-03-04 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609019', 'tblTempUsageDetail_20' ) end [2025-03-04 23:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:00:21] Production.INFO: ==30104== Releasing lock... [2025-03-04 23:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:00:21] Production.INFO: 35 MB #Memory Used# [2025-03-04 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:01:05 [end_date_ymd] => 2025-03-04 23:01:05 [RateCDR] => 1 ) [2025-03-04 23: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 20:01:05' and `end` < '2025-03-04 23: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-04 23:01:17] Production.INFO: count ==951 [2025-03-04 23:01:18] Production.ERROR: pbx CDR StartTime 2025-03-04 20:01:05 - End Time 2025-03-04 23:01:05 [2025-03-04 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609024', 'tblTempUsageDetail_20' ) start [2025-03-04 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609024', 'tblTempUsageDetail_20' ) end [2025-03-04 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609024', 'tblTempVendorCDR_20' ) start [2025-03-04 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609024', 'tblTempVendorCDR_20' ) end [2025-03-04 23:01:18] Production.INFO: ProcessCDR(1,14609024,1,1,2) [2025-03-04 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609024', 'tblTempUsageDetail_20' ) start [2025-03-04 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609024', 'tblTempUsageDetail_20' ) end [2025-03-04 23:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:01:21] Production.INFO: ==30193== Releasing lock... [2025-03-04 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:01:21] Production.INFO: 35 MB #Memory Used# [2025-03-04 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:02:05 [end_date_ymd] => 2025-03-04 23:02:05 [RateCDR] => 1 ) [2025-03-04 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-04 20:02:05' and `end` < '2025-03-04 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-04 23:02:17] Production.INFO: count ==952 [2025-03-04 23:02:18] Production.ERROR: pbx CDR StartTime 2025-03-04 20:02:05 - End Time 2025-03-04 23:02:05 [2025-03-04 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609029', 'tblTempUsageDetail_20' ) start [2025-03-04 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609029', 'tblTempUsageDetail_20' ) end [2025-03-04 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609029', 'tblTempVendorCDR_20' ) start [2025-03-04 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609029', 'tblTempVendorCDR_20' ) end [2025-03-04 23:02:18] Production.INFO: ProcessCDR(1,14609029,1,1,2) [2025-03-04 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609029', 'tblTempUsageDetail_20' ) start [2025-03-04 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609029', 'tblTempUsageDetail_20' ) end [2025-03-04 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:02:22] Production.INFO: ==30351== Releasing lock... [2025-03-04 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:02:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-04 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:03:05 [end_date_ymd] => 2025-03-04 23:03:05 [RateCDR] => 1 ) [2025-03-04 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-04 20:03:05' and `end` < '2025-03-04 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-04 23:03:17] Production.INFO: count ==953 [2025-03-04 23:03:17] Production.ERROR: pbx CDR StartTime 2025-03-04 20:03:05 - End Time 2025-03-04 23:03:05 [2025-03-04 23:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609034', 'tblTempUsageDetail_20' ) start [2025-03-04 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609034', 'tblTempUsageDetail_20' ) end [2025-03-04 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609034', 'tblTempVendorCDR_20' ) start [2025-03-04 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609034', 'tblTempVendorCDR_20' ) end [2025-03-04 23:03:17] Production.INFO: ProcessCDR(1,14609034,1,1,2) [2025-03-04 23:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609034', 'tblTempUsageDetail_20' ) start [2025-03-04 23:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609034', 'tblTempUsageDetail_20' ) end [2025-03-04 23:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:03:20] Production.INFO: ==30425== Releasing lock... [2025-03-04 23:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:03:20] Production.INFO: 35.25 MB #Memory Used# [2025-03-04 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:04:05 [end_date_ymd] => 2025-03-04 23:04:05 [RateCDR] => 1 ) [2025-03-04 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-04 20:04:05' and `end` < '2025-03-04 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-04 23:04:17] Production.INFO: count ==955 [2025-03-04 23:04:18] Production.ERROR: pbx CDR StartTime 2025-03-04 20:04:05 - End Time 2025-03-04 23:04:05 [2025-03-04 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609039', 'tblTempUsageDetail_20' ) start [2025-03-04 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609039', 'tblTempUsageDetail_20' ) end [2025-03-04 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609039', 'tblTempVendorCDR_20' ) start [2025-03-04 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609039', 'tblTempVendorCDR_20' ) end [2025-03-04 23:04:18] Production.INFO: ProcessCDR(1,14609039,1,1,2) [2025-03-04 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609039', 'tblTempUsageDetail_20' ) start [2025-03-04 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609039', 'tblTempUsageDetail_20' ) end [2025-03-04 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:04:21] Production.INFO: ==30504== Releasing lock... [2025-03-04 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:04:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-04 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:05:05 [end_date_ymd] => 2025-03-04 23:05:05 [RateCDR] => 1 ) [2025-03-04 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-04 20:05:05' and `end` < '2025-03-04 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-04 23:05:17] Production.INFO: count ==950 [2025-03-04 23:05:17] Production.ERROR: pbx CDR StartTime 2025-03-04 20:05:05 - End Time 2025-03-04 23:05:05 [2025-03-04 23:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609044', 'tblTempUsageDetail_20' ) start [2025-03-04 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609044', 'tblTempUsageDetail_20' ) end [2025-03-04 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609044', 'tblTempVendorCDR_20' ) start [2025-03-04 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609044', 'tblTempVendorCDR_20' ) end [2025-03-04 23:05:17] Production.INFO: ProcessCDR(1,14609044,1,1,2) [2025-03-04 23:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609044', 'tblTempUsageDetail_20' ) start [2025-03-04 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609044', 'tblTempUsageDetail_20' ) end [2025-03-04 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:05:21] Production.INFO: ==30652== Releasing lock... [2025-03-04 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:05:21] Production.INFO: 35 MB #Memory Used# [2025-03-04 23:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:06:06 [end_date_ymd] => 2025-03-04 23:06:06 [RateCDR] => 1 ) [2025-03-04 23: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 20:06:06' and `end` < '2025-03-04 23: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-04 23:06:18] Production.INFO: count ==950 [2025-03-04 23:06:18] Production.ERROR: pbx CDR StartTime 2025-03-04 20:06:06 - End Time 2025-03-04 23:06:06 [2025-03-04 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609049', 'tblTempUsageDetail_20' ) start [2025-03-04 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609049', 'tblTempUsageDetail_20' ) end [2025-03-04 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609049', 'tblTempVendorCDR_20' ) start [2025-03-04 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609049', 'tblTempVendorCDR_20' ) end [2025-03-04 23:06:18] Production.INFO: ProcessCDR(1,14609049,1,1,2) [2025-03-04 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609049', 'tblTempUsageDetail_20' ) start [2025-03-04 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609049', 'tblTempUsageDetail_20' ) end [2025-03-04 23:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:06:21] Production.INFO: ==30728== Releasing lock... [2025-03-04 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:06:21] Production.INFO: 35 MB #Memory Used# [2025-03-04 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:07:05 [end_date_ymd] => 2025-03-04 23:07:05 [RateCDR] => 1 ) [2025-03-04 23: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 20:07:05' and `end` < '2025-03-04 23: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-04 23:07:17] Production.INFO: count ==949 [2025-03-04 23:07:17] Production.ERROR: pbx CDR StartTime 2025-03-04 20:07:05 - End Time 2025-03-04 23:07:05 [2025-03-04 23:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609054', 'tblTempUsageDetail_20' ) start [2025-03-04 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609054', 'tblTempUsageDetail_20' ) end [2025-03-04 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609054', 'tblTempVendorCDR_20' ) start [2025-03-04 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609054', 'tblTempVendorCDR_20' ) end [2025-03-04 23:07:17] Production.INFO: ProcessCDR(1,14609054,1,1,2) [2025-03-04 23:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609054', 'tblTempUsageDetail_20' ) start [2025-03-04 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609054', 'tblTempUsageDetail_20' ) end [2025-03-04 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:07:22] Production.INFO: ==30804== Releasing lock... [2025-03-04 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:07:22] Production.INFO: 35 MB #Memory Used# [2025-03-04 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:08:05 [end_date_ymd] => 2025-03-04 23:08:05 [RateCDR] => 1 ) [2025-03-04 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-04 20:08:05' and `end` < '2025-03-04 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-04 23:08:17] Production.INFO: count ==944 [2025-03-04 23:08:17] Production.ERROR: pbx CDR StartTime 2025-03-04 20:08:05 - End Time 2025-03-04 23:08:05 [2025-03-04 23:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609059', 'tblTempUsageDetail_20' ) start [2025-03-04 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609059', 'tblTempUsageDetail_20' ) end [2025-03-04 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609059', 'tblTempVendorCDR_20' ) start [2025-03-04 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609059', 'tblTempVendorCDR_20' ) end [2025-03-04 23:08:17] Production.INFO: ProcessCDR(1,14609059,1,1,2) [2025-03-04 23:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609059', 'tblTempUsageDetail_20' ) start [2025-03-04 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609059', 'tblTempUsageDetail_20' ) end [2025-03-04 23:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:08:22] Production.INFO: ==30894== Releasing lock... [2025-03-04 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:08:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-04 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:09:05 [end_date_ymd] => 2025-03-04 23:09:05 [RateCDR] => 1 ) [2025-03-04 23:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 20:09:05' and `end` < '2025-03-04 23:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 23:09:17] Production.INFO: count ==942 [2025-03-04 23:09:17] Production.ERROR: pbx CDR StartTime 2025-03-04 20:09:05 - End Time 2025-03-04 23:09:05 [2025-03-04 23:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609064', 'tblTempUsageDetail_20' ) start [2025-03-04 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609064', 'tblTempUsageDetail_20' ) end [2025-03-04 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609064', 'tblTempVendorCDR_20' ) start [2025-03-04 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609064', 'tblTempVendorCDR_20' ) end [2025-03-04 23:09:17] Production.INFO: ProcessCDR(1,14609064,1,1,2) [2025-03-04 23:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609064', 'tblTempUsageDetail_20' ) start [2025-03-04 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609064', 'tblTempUsageDetail_20' ) end [2025-03-04 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:09:22] Production.INFO: ==31034== Releasing lock... [2025-03-04 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:09:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-04 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:10:06 [end_date_ymd] => 2025-03-04 23:10:06 [RateCDR] => 1 ) [2025-03-04 23: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 20:10:06' and `end` < '2025-03-04 23: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-04 23:10:18] Production.INFO: count ==943 [2025-03-04 23:10:18] Production.ERROR: pbx CDR StartTime 2025-03-04 20:10:06 - End Time 2025-03-04 23:10:06 [2025-03-04 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609068', 'tblTempUsageDetail_20' ) start [2025-03-04 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609068', 'tblTempUsageDetail_20' ) end [2025-03-04 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609068', 'tblTempVendorCDR_20' ) start [2025-03-04 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609068', 'tblTempVendorCDR_20' ) end [2025-03-04 23:10:18] Production.INFO: ProcessCDR(1,14609068,1,1,2) [2025-03-04 23:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609068', 'tblTempUsageDetail_20' ) start [2025-03-04 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609068', 'tblTempUsageDetail_20' ) end [2025-03-04 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:10:22] Production.INFO: ==31112== Releasing lock... [2025-03-04 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:10:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-04 23:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:11:06 [end_date_ymd] => 2025-03-04 23:11:06 [RateCDR] => 1 ) [2025-03-04 23: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 20:11:06' and `end` < '2025-03-04 23: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-04 23:11:18] Production.INFO: count ==941 [2025-03-04 23:11:18] Production.ERROR: pbx CDR StartTime 2025-03-04 20:11:06 - End Time 2025-03-04 23:11:06 [2025-03-04 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609075', 'tblTempUsageDetail_20' ) start [2025-03-04 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609075', 'tblTempUsageDetail_20' ) end [2025-03-04 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609075', 'tblTempVendorCDR_20' ) start [2025-03-04 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609075', 'tblTempVendorCDR_20' ) end [2025-03-04 23:11:18] Production.INFO: ProcessCDR(1,14609075,1,1,2) [2025-03-04 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609075', 'tblTempUsageDetail_20' ) start [2025-03-04 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609075', 'tblTempUsageDetail_20' ) end [2025-03-04 23:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:11:21] Production.INFO: ==31196== Releasing lock... [2025-03-04 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:11:21] Production.INFO: 35 MB #Memory Used# [2025-03-04 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:12:05 [end_date_ymd] => 2025-03-04 23:12:05 [RateCDR] => 1 ) [2025-03-04 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-04 20:12:05' and `end` < '2025-03-04 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-04 23:12:17] Production.INFO: count ==935 [2025-03-04 23:12:17] Production.ERROR: pbx CDR StartTime 2025-03-04 20:12:05 - End Time 2025-03-04 23:12:05 [2025-03-04 23:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609080', 'tblTempUsageDetail_20' ) start [2025-03-04 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609080', 'tblTempUsageDetail_20' ) end [2025-03-04 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609080', 'tblTempVendorCDR_20' ) start [2025-03-04 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609080', 'tblTempVendorCDR_20' ) end [2025-03-04 23:12:17] Production.INFO: ProcessCDR(1,14609080,1,1,2) [2025-03-04 23:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609080', 'tblTempUsageDetail_20' ) start [2025-03-04 23:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609080', 'tblTempUsageDetail_20' ) end [2025-03-04 23:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:12:20] Production.INFO: ==31360== Releasing lock... [2025-03-04 23:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:12:20] Production.INFO: 35 MB #Memory Used# [2025-03-04 23:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:13:06 [end_date_ymd] => 2025-03-04 23:13:06 [RateCDR] => 1 ) [2025-03-04 23: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 20:13:06' and `end` < '2025-03-04 23: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-04 23:13:18] Production.INFO: count ==933 [2025-03-04 23:13:18] Production.ERROR: pbx CDR StartTime 2025-03-04 20:13:06 - End Time 2025-03-04 23:13:06 [2025-03-04 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609085', 'tblTempUsageDetail_20' ) start [2025-03-04 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609085', 'tblTempUsageDetail_20' ) end [2025-03-04 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609085', 'tblTempVendorCDR_20' ) start [2025-03-04 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609085', 'tblTempVendorCDR_20' ) end [2025-03-04 23:13:18] Production.INFO: ProcessCDR(1,14609085,1,1,2) [2025-03-04 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609085', 'tblTempUsageDetail_20' ) start [2025-03-04 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609085', 'tblTempUsageDetail_20' ) end [2025-03-04 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:13:21] Production.INFO: ==31438== Releasing lock... [2025-03-04 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:13:21] Production.INFO: 35 MB #Memory Used# [2025-03-04 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:14:05 [end_date_ymd] => 2025-03-04 23:14:05 [RateCDR] => 1 ) [2025-03-04 23: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 20:14:05' and `end` < '2025-03-04 23: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-04 23:14:17] Production.INFO: count ==933 [2025-03-04 23:14:17] Production.ERROR: pbx CDR StartTime 2025-03-04 20:14:05 - End Time 2025-03-04 23:14:05 [2025-03-04 23:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609090', 'tblTempUsageDetail_20' ) start [2025-03-04 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609090', 'tblTempUsageDetail_20' ) end [2025-03-04 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609090', 'tblTempVendorCDR_20' ) start [2025-03-04 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609090', 'tblTempVendorCDR_20' ) end [2025-03-04 23:14:17] Production.INFO: ProcessCDR(1,14609090,1,1,2) [2025-03-04 23:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609090', 'tblTempUsageDetail_20' ) start [2025-03-04 23:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609090', 'tblTempUsageDetail_20' ) end [2025-03-04 23:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:14:20] Production.INFO: ==31512== Releasing lock... [2025-03-04 23:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:14:20] Production.INFO: 35 MB #Memory Used# [2025-03-04 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:15:05 [end_date_ymd] => 2025-03-04 23:15:05 [RateCDR] => 1 ) [2025-03-04 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-04 20:15:05' and `end` < '2025-03-04 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-04 23:15:17] Production.INFO: count ==930 [2025-03-04 23:15:17] Production.ERROR: pbx CDR StartTime 2025-03-04 20:15:05 - End Time 2025-03-04 23:15:05 [2025-03-04 23:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609095', 'tblTempUsageDetail_20' ) start [2025-03-04 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609095', 'tblTempUsageDetail_20' ) end [2025-03-04 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609095', 'tblTempVendorCDR_20' ) start [2025-03-04 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609095', 'tblTempVendorCDR_20' ) end [2025-03-04 23:15:17] Production.INFO: ProcessCDR(1,14609095,1,1,2) [2025-03-04 23:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609095', 'tblTempUsageDetail_20' ) start [2025-03-04 23:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609095', 'tblTempUsageDetail_20' ) end [2025-03-04 23:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:15:20] Production.INFO: ==31666== Releasing lock... [2025-03-04 23:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:15:20] Production.INFO: 35 MB #Memory Used# [2025-03-04 23:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:16:04 [end_date_ymd] => 2025-03-04 23:16:04 [RateCDR] => 1 ) [2025-03-04 23:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 20:16:04' and `end` < '2025-03-04 23:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 23:16:17] Production.INFO: count ==929 [2025-03-04 23:16:17] Production.ERROR: pbx CDR StartTime 2025-03-04 20:16:04 - End Time 2025-03-04 23:16:04 [2025-03-04 23:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609100', 'tblTempUsageDetail_20' ) start [2025-03-04 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609100', 'tblTempUsageDetail_20' ) end [2025-03-04 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609100', 'tblTempVendorCDR_20' ) start [2025-03-04 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609100', 'tblTempVendorCDR_20' ) end [2025-03-04 23:16:17] Production.INFO: ProcessCDR(1,14609100,1,1,2) [2025-03-04 23:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609100', 'tblTempUsageDetail_20' ) start [2025-03-04 23:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609100', 'tblTempUsageDetail_20' ) end [2025-03-04 23:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:16:20] Production.INFO: ==31782== Releasing lock... [2025-03-04 23:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:16:20] Production.INFO: 34.75 MB #Memory Used# [2025-03-04 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:17:05 [end_date_ymd] => 2025-03-04 23:17:05 [RateCDR] => 1 ) [2025-03-04 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-04 20:17:05' and `end` < '2025-03-04 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-04 23:17:18] Production.INFO: count ==922 [2025-03-04 23:17:18] Production.ERROR: pbx CDR StartTime 2025-03-04 20:17:05 - End Time 2025-03-04 23:17:05 [2025-03-04 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609105', 'tblTempUsageDetail_20' ) start [2025-03-04 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609105', 'tblTempUsageDetail_20' ) end [2025-03-04 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609105', 'tblTempVendorCDR_20' ) start [2025-03-04 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609105', 'tblTempVendorCDR_20' ) end [2025-03-04 23:17:18] Production.INFO: ProcessCDR(1,14609105,1,1,2) [2025-03-04 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609105', 'tblTempUsageDetail_20' ) start [2025-03-04 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609105', 'tblTempUsageDetail_20' ) end [2025-03-04 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:17:21] Production.INFO: ==31859== Releasing lock... [2025-03-04 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:17:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-04 23:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:18:06 [end_date_ymd] => 2025-03-04 23:18:06 [RateCDR] => 1 ) [2025-03-04 23: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 20:18:06' and `end` < '2025-03-04 23: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-04 23:18:18] Production.INFO: count ==925 [2025-03-04 23:18:18] Production.ERROR: pbx CDR StartTime 2025-03-04 20:18:06 - End Time 2025-03-04 23:18:06 [2025-03-04 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609110', 'tblTempUsageDetail_20' ) start [2025-03-04 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609110', 'tblTempUsageDetail_20' ) end [2025-03-04 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609110', 'tblTempVendorCDR_20' ) start [2025-03-04 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609110', 'tblTempVendorCDR_20' ) end [2025-03-04 23:18:18] Production.INFO: ProcessCDR(1,14609110,1,1,2) [2025-03-04 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609110', 'tblTempUsageDetail_20' ) start [2025-03-04 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609110', 'tblTempUsageDetail_20' ) end [2025-03-04 23:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:18:21] Production.INFO: ==31933== Releasing lock... [2025-03-04 23:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:18:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-04 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:19:05 [end_date_ymd] => 2025-03-04 23:19:05 [RateCDR] => 1 ) [2025-03-04 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-04 20:19:05' and `end` < '2025-03-04 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-04 23:19:17] Production.INFO: count ==923 [2025-03-04 23:19:17] Production.ERROR: pbx CDR StartTime 2025-03-04 20:19:05 - End Time 2025-03-04 23:19:05 [2025-03-04 23:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609115', 'tblTempUsageDetail_20' ) start [2025-03-04 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609115', 'tblTempUsageDetail_20' ) end [2025-03-04 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609115', 'tblTempVendorCDR_20' ) start [2025-03-04 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609115', 'tblTempVendorCDR_20' ) end [2025-03-04 23:19:17] Production.INFO: ProcessCDR(1,14609115,1,1,2) [2025-03-04 23:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609115', 'tblTempUsageDetail_20' ) start [2025-03-04 23:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609115', 'tblTempUsageDetail_20' ) end [2025-03-04 23:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:19:20] Production.INFO: ==32015== Releasing lock... [2025-03-04 23:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:19:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-04 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:20:06 [end_date_ymd] => 2025-03-04 23:20:06 [RateCDR] => 1 ) [2025-03-04 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-04 20:20:06' and `end` < '2025-03-04 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-04 23:20:18] Production.INFO: count ==922 [2025-03-04 23:20:18] Production.ERROR: pbx CDR StartTime 2025-03-04 20:20:06 - End Time 2025-03-04 23:20:06 [2025-03-04 23:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609121', 'tblTempUsageDetail_20' ) start [2025-03-04 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609121', 'tblTempUsageDetail_20' ) end [2025-03-04 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609121', 'tblTempVendorCDR_20' ) start [2025-03-04 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609121', 'tblTempVendorCDR_20' ) end [2025-03-04 23:20:18] Production.INFO: ProcessCDR(1,14609121,1,1,2) [2025-03-04 23:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609121', 'tblTempUsageDetail_20' ) start [2025-03-04 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609121', 'tblTempUsageDetail_20' ) end [2025-03-04 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:20:22] Production.INFO: ==32093== Releasing lock... [2025-03-04 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:20:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-04 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:21:05 [end_date_ymd] => 2025-03-04 23:21:05 [RateCDR] => 1 ) [2025-03-04 23:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 20:21:05' and `end` < '2025-03-04 23:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 23:21:17] Production.INFO: count ==887 [2025-03-04 23:21:17] Production.ERROR: pbx CDR StartTime 2025-03-04 20:21:05 - End Time 2025-03-04 23:21:05 [2025-03-04 23:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609126', 'tblTempUsageDetail_20' ) start [2025-03-04 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609126', 'tblTempUsageDetail_20' ) end [2025-03-04 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609126', 'tblTempVendorCDR_20' ) start [2025-03-04 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609126', 'tblTempVendorCDR_20' ) end [2025-03-04 23:21:17] Production.INFO: ProcessCDR(1,14609126,1,1,2) [2025-03-04 23:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609126', 'tblTempUsageDetail_20' ) start [2025-03-04 23:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609126', 'tblTempUsageDetail_20' ) end [2025-03-04 23:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:21:20] Production.INFO: ==32173== Releasing lock... [2025-03-04 23:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:21:20] Production.INFO: 35 MB #Memory Used# [2025-03-04 23:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:22:06 [end_date_ymd] => 2025-03-04 23:22:06 [RateCDR] => 1 ) [2025-03-04 23: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 20:22:06' and `end` < '2025-03-04 23: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-04 23:22:18] Production.INFO: count ==878 [2025-03-04 23:22:18] Production.ERROR: pbx CDR StartTime 2025-03-04 20:22:06 - End Time 2025-03-04 23:22:06 [2025-03-04 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609131', 'tblTempUsageDetail_20' ) start [2025-03-04 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609131', 'tblTempUsageDetail_20' ) end [2025-03-04 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609131', 'tblTempVendorCDR_20' ) start [2025-03-04 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609131', 'tblTempVendorCDR_20' ) end [2025-03-04 23:22:18] Production.INFO: ProcessCDR(1,14609131,1,1,2) [2025-03-04 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609131', 'tblTempUsageDetail_20' ) start [2025-03-04 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609131', 'tblTempUsageDetail_20' ) end [2025-03-04 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:22:21] Production.INFO: ==32250== Releasing lock... [2025-03-04 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:22:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-04 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:23:05 [end_date_ymd] => 2025-03-04 23:23:05 [RateCDR] => 1 ) [2025-03-04 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-04 20:23:05' and `end` < '2025-03-04 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-04 23:23:17] Production.INFO: count ==870 [2025-03-04 23:23:17] Production.ERROR: pbx CDR StartTime 2025-03-04 20:23:05 - End Time 2025-03-04 23:23:05 [2025-03-04 23:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609136', 'tblTempUsageDetail_20' ) start [2025-03-04 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609136', 'tblTempUsageDetail_20' ) end [2025-03-04 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609136', 'tblTempVendorCDR_20' ) start [2025-03-04 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609136', 'tblTempVendorCDR_20' ) end [2025-03-04 23:23:17] Production.INFO: ProcessCDR(1,14609136,1,1,2) [2025-03-04 23:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609136', 'tblTempUsageDetail_20' ) start [2025-03-04 23:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609136', 'tblTempUsageDetail_20' ) end [2025-03-04 23:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:23:20] Production.INFO: ==32325== Releasing lock... [2025-03-04 23:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:23:20] Production.INFO: 34 MB #Memory Used# [2025-03-04 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:24:05 [end_date_ymd] => 2025-03-04 23:24:05 [RateCDR] => 1 ) [2025-03-04 23:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 20:24:05' and `end` < '2025-03-04 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-04 23:24:17] Production.INFO: count ==878 [2025-03-04 23:24:17] Production.ERROR: pbx CDR StartTime 2025-03-04 20:24:05 - End Time 2025-03-04 23:24:05 [2025-03-04 23:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609141', 'tblTempUsageDetail_20' ) start [2025-03-04 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609141', 'tblTempUsageDetail_20' ) end [2025-03-04 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609141', 'tblTempVendorCDR_20' ) start [2025-03-04 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609141', 'tblTempVendorCDR_20' ) end [2025-03-04 23:24:17] Production.INFO: ProcessCDR(1,14609141,1,1,2) [2025-03-04 23:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609141', 'tblTempUsageDetail_20' ) start [2025-03-04 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609141', 'tblTempUsageDetail_20' ) end [2025-03-04 23:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:24:21] Production.INFO: ==32402== Releasing lock... [2025-03-04 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:24:21] Production.INFO: 34 MB #Memory Used# [2025-03-04 23:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:25:04 [end_date_ymd] => 2025-03-04 23:25:04 [RateCDR] => 1 ) [2025-03-04 23:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 20:25:04' and `end` < '2025-03-04 23:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 23:25:16] Production.INFO: count ==875 [2025-03-04 23:25:16] Production.ERROR: pbx CDR StartTime 2025-03-04 20:25:04 - End Time 2025-03-04 23:25:04 [2025-03-04 23:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609146', 'tblTempUsageDetail_20' ) start [2025-03-04 23:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609146', 'tblTempUsageDetail_20' ) end [2025-03-04 23:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609146', 'tblTempVendorCDR_20' ) start [2025-03-04 23:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609146', 'tblTempVendorCDR_20' ) end [2025-03-04 23:25:16] Production.INFO: ProcessCDR(1,14609146,1,1,2) [2025-03-04 23:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:25:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609146', 'tblTempUsageDetail_20' ) start [2025-03-04 23:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609146', 'tblTempUsageDetail_20' ) end [2025-03-04 23:25:19] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:25:20] Production.INFO: ==32479== Releasing lock... [2025-03-04 23:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:25:20] Production.INFO: 34 MB #Memory Used# [2025-03-04 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:26:05 [end_date_ymd] => 2025-03-04 23:26:05 [RateCDR] => 1 ) [2025-03-04 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-04 20:26:05' and `end` < '2025-03-04 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-04 23:26:17] Production.INFO: count ==874 [2025-03-04 23:26:17] Production.ERROR: pbx CDR StartTime 2025-03-04 20:26:05 - End Time 2025-03-04 23:26:05 [2025-03-04 23:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609151', 'tblTempUsageDetail_20' ) start [2025-03-04 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609151', 'tblTempUsageDetail_20' ) end [2025-03-04 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609151', 'tblTempVendorCDR_20' ) start [2025-03-04 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609151', 'tblTempVendorCDR_20' ) end [2025-03-04 23:26:17] Production.INFO: ProcessCDR(1,14609151,1,1,2) [2025-03-04 23:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609151', 'tblTempUsageDetail_20' ) start [2025-03-04 23:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609151', 'tblTempUsageDetail_20' ) end [2025-03-04 23:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:26:20] Production.INFO: ==32556== Releasing lock... [2025-03-04 23:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:26:20] Production.INFO: 34 MB #Memory Used# [2025-03-04 23:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:27:06 [end_date_ymd] => 2025-03-04 23:27:06 [RateCDR] => 1 ) [2025-03-04 23: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 20:27:06' and `end` < '2025-03-04 23: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-04 23:27:18] Production.INFO: count ==871 [2025-03-04 23:27:18] Production.ERROR: pbx CDR StartTime 2025-03-04 20:27:06 - End Time 2025-03-04 23:27:06 [2025-03-04 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609156', 'tblTempUsageDetail_20' ) start [2025-03-04 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609156', 'tblTempUsageDetail_20' ) end [2025-03-04 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609156', 'tblTempVendorCDR_20' ) start [2025-03-04 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609156', 'tblTempVendorCDR_20' ) end [2025-03-04 23:27:18] Production.INFO: ProcessCDR(1,14609156,1,1,2) [2025-03-04 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609156', 'tblTempUsageDetail_20' ) start [2025-03-04 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609156', 'tblTempUsageDetail_20' ) end [2025-03-04 23:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:27:21] Production.INFO: ==32633== Releasing lock... [2025-03-04 23:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:27:21] Production.INFO: 34 MB #Memory Used# [2025-03-04 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:28:05 [end_date_ymd] => 2025-03-04 23:28:05 [RateCDR] => 1 ) [2025-03-04 23:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 20:28:05' and `end` < '2025-03-04 23:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 23:28:17] Production.INFO: count ==870 [2025-03-04 23:28:17] Production.ERROR: pbx CDR StartTime 2025-03-04 20:28:05 - End Time 2025-03-04 23:28:05 [2025-03-04 23:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609161', 'tblTempUsageDetail_20' ) start [2025-03-04 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609161', 'tblTempUsageDetail_20' ) end [2025-03-04 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609161', 'tblTempVendorCDR_20' ) start [2025-03-04 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609161', 'tblTempVendorCDR_20' ) end [2025-03-04 23:28:17] Production.INFO: ProcessCDR(1,14609161,1,1,2) [2025-03-04 23:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609161', 'tblTempUsageDetail_20' ) start [2025-03-04 23:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609161', 'tblTempUsageDetail_20' ) end [2025-03-04 23:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:28:20] Production.INFO: ==32708== Releasing lock... [2025-03-04 23:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:28:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-04 23:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:29:06 [end_date_ymd] => 2025-03-04 23:29:06 [RateCDR] => 1 ) [2025-03-04 23: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-04 20:29:06' and `end` < '2025-03-04 23: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-04 23:29:18] Production.INFO: count ==874 [2025-03-04 23:29:18] Production.ERROR: pbx CDR StartTime 2025-03-04 20:29:06 - End Time 2025-03-04 23:29:06 [2025-03-04 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609166', 'tblTempUsageDetail_20' ) start [2025-03-04 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609166', 'tblTempUsageDetail_20' ) end [2025-03-04 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609166', 'tblTempVendorCDR_20' ) start [2025-03-04 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609166', 'tblTempVendorCDR_20' ) end [2025-03-04 23:29:18] Production.INFO: ProcessCDR(1,14609166,1,1,2) [2025-03-04 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609166', 'tblTempUsageDetail_20' ) start [2025-03-04 23:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609166', 'tblTempUsageDetail_20' ) end [2025-03-04 23:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:29:23] Production.INFO: ==324== Releasing lock... [2025-03-04 23:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:29:23] Production.INFO: 34 MB #Memory Used# [2025-03-04 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:30:06 [end_date_ymd] => 2025-03-04 23:30:06 [RateCDR] => 1 ) [2025-03-04 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-04 20:30:06' and `end` < '2025-03-04 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-04 23:30:18] Production.INFO: count ==871 [2025-03-04 23:30:18] Production.ERROR: pbx CDR StartTime 2025-03-04 20:30:06 - End Time 2025-03-04 23:30:06 [2025-03-04 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609172', 'tblTempUsageDetail_20' ) start [2025-03-04 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609172', 'tblTempUsageDetail_20' ) end [2025-03-04 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609172', 'tblTempVendorCDR_20' ) start [2025-03-04 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609172', 'tblTempVendorCDR_20' ) end [2025-03-04 23:30:18] Production.INFO: ProcessCDR(1,14609172,1,1,2) [2025-03-04 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609172', 'tblTempUsageDetail_20' ) start [2025-03-04 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609172', 'tblTempUsageDetail_20' ) end [2025-03-04 23:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:30:21] Production.INFO: ==454== Releasing lock... [2025-03-04 23:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:30:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-04 23:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:31:06 [end_date_ymd] => 2025-03-04 23:31:06 [RateCDR] => 1 ) [2025-03-04 23: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-04 20:31:06' and `end` < '2025-03-04 23: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-04 23:31:18] Production.INFO: count ==838 [2025-03-04 23:31:18] Production.ERROR: pbx CDR StartTime 2025-03-04 20:31:06 - End Time 2025-03-04 23:31:06 [2025-03-04 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609177', 'tblTempUsageDetail_20' ) start [2025-03-04 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609177', 'tblTempUsageDetail_20' ) end [2025-03-04 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609177', 'tblTempVendorCDR_20' ) start [2025-03-04 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609177', 'tblTempVendorCDR_20' ) end [2025-03-04 23:31:18] Production.INFO: ProcessCDR(1,14609177,1,1,2) [2025-03-04 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609177', 'tblTempUsageDetail_20' ) start [2025-03-04 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609177', 'tblTempUsageDetail_20' ) end [2025-03-04 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:31:21] Production.INFO: ==538== Releasing lock... [2025-03-04 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:31:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-04 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:32:05 [end_date_ymd] => 2025-03-04 23:32:05 [RateCDR] => 1 ) [2025-03-04 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 20:32:05' and `end` < '2025-03-04 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 23:32:17] Production.INFO: count ==837 [2025-03-04 23:32:17] Production.ERROR: pbx CDR StartTime 2025-03-04 20:32:05 - End Time 2025-03-04 23:32:05 [2025-03-04 23:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609182', 'tblTempUsageDetail_20' ) start [2025-03-04 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609182', 'tblTempUsageDetail_20' ) end [2025-03-04 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609182', 'tblTempVendorCDR_20' ) start [2025-03-04 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609182', 'tblTempVendorCDR_20' ) end [2025-03-04 23:32:17] Production.INFO: ProcessCDR(1,14609182,1,1,2) [2025-03-04 23:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609182', 'tblTempUsageDetail_20' ) start [2025-03-04 23:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609182', 'tblTempUsageDetail_20' ) end [2025-03-04 23:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:32:20] Production.INFO: ==628== Releasing lock... [2025-03-04 23:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:32:20] Production.INFO: 33.75 MB #Memory Used# [2025-03-04 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:33:05 [end_date_ymd] => 2025-03-04 23:33:05 [RateCDR] => 1 ) [2025-03-04 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-04 20:33:05' and `end` < '2025-03-04 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-04 23:33:17] Production.INFO: count ==838 [2025-03-04 23:33:17] Production.ERROR: pbx CDR StartTime 2025-03-04 20:33:05 - End Time 2025-03-04 23:33:05 [2025-03-04 23:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609187', 'tblTempUsageDetail_20' ) start [2025-03-04 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609187', 'tblTempUsageDetail_20' ) end [2025-03-04 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609187', 'tblTempVendorCDR_20' ) start [2025-03-04 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609187', 'tblTempVendorCDR_20' ) end [2025-03-04 23:33:17] Production.INFO: ProcessCDR(1,14609187,1,1,2) [2025-03-04 23:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609187', 'tblTempUsageDetail_20' ) start [2025-03-04 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609187', 'tblTempUsageDetail_20' ) end [2025-03-04 23:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:33:22] Production.INFO: ==726== Releasing lock... [2025-03-04 23:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:33:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-04 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:34:05 [end_date_ymd] => 2025-03-04 23:34:05 [RateCDR] => 1 ) [2025-03-04 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-04 20:34:05' and `end` < '2025-03-04 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-04 23:34:17] Production.INFO: count ==837 [2025-03-04 23:34:17] Production.ERROR: pbx CDR StartTime 2025-03-04 20:34:05 - End Time 2025-03-04 23:34:05 [2025-03-04 23:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609192', 'tblTempUsageDetail_20' ) start [2025-03-04 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609192', 'tblTempUsageDetail_20' ) end [2025-03-04 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609192', 'tblTempVendorCDR_20' ) start [2025-03-04 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609192', 'tblTempVendorCDR_20' ) end [2025-03-04 23:34:17] Production.INFO: ProcessCDR(1,14609192,1,1,2) [2025-03-04 23:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609192', 'tblTempUsageDetail_20' ) start [2025-03-04 23:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609192', 'tblTempUsageDetail_20' ) end [2025-03-04 23:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:34:20] Production.INFO: ==809== Releasing lock... [2025-03-04 23:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:34:20] Production.INFO: 33.75 MB #Memory Used# [2025-03-04 23:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:35:06 [end_date_ymd] => 2025-03-04 23:35:06 [RateCDR] => 1 ) [2025-03-04 23: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-04 20:35:06' and `end` < '2025-03-04 23: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-04 23:35:18] Production.INFO: count ==833 [2025-03-04 23:35:18] Production.ERROR: pbx CDR StartTime 2025-03-04 20:35:06 - End Time 2025-03-04 23:35:06 [2025-03-04 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609197', 'tblTempUsageDetail_20' ) start [2025-03-04 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609197', 'tblTempUsageDetail_20' ) end [2025-03-04 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609197', 'tblTempVendorCDR_20' ) start [2025-03-04 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609197', 'tblTempVendorCDR_20' ) end [2025-03-04 23:35:18] Production.INFO: ProcessCDR(1,14609197,1,1,2) [2025-03-04 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609197', 'tblTempUsageDetail_20' ) start [2025-03-04 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609197', 'tblTempUsageDetail_20' ) end [2025-03-04 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:35:21] Production.INFO: ==887== Releasing lock... [2025-03-04 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:35:21] Production.INFO: 34 MB #Memory Used# [2025-03-04 23:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:36:04 [end_date_ymd] => 2025-03-04 23:36:04 [RateCDR] => 1 ) [2025-03-04 23:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 20:36:04' and `end` < '2025-03-04 23:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 23:36:16] Production.INFO: count ==831 [2025-03-04 23:36:16] Production.ERROR: pbx CDR StartTime 2025-03-04 20:36:04 - End Time 2025-03-04 23:36:04 [2025-03-04 23:36:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609202', 'tblTempUsageDetail_20' ) start [2025-03-04 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609202', 'tblTempUsageDetail_20' ) end [2025-03-04 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609202', 'tblTempVendorCDR_20' ) start [2025-03-04 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609202', 'tblTempVendorCDR_20' ) end [2025-03-04 23:36:17] Production.INFO: ProcessCDR(1,14609202,1,1,2) [2025-03-04 23:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609202', 'tblTempUsageDetail_20' ) start [2025-03-04 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609202', 'tblTempUsageDetail_20' ) end [2025-03-04 23:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:36:21] Production.INFO: ==965== Releasing lock... [2025-03-04 23:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:36:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-04 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:37:05 [end_date_ymd] => 2025-03-04 23:37:05 [RateCDR] => 1 ) [2025-03-04 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-04 20:37:05' and `end` < '2025-03-04 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-04 23:37:17] Production.INFO: count ==831 [2025-03-04 23:37:17] Production.ERROR: pbx CDR StartTime 2025-03-04 20:37:05 - End Time 2025-03-04 23:37:05 [2025-03-04 23:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609207', 'tblTempUsageDetail_20' ) start [2025-03-04 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609207', 'tblTempUsageDetail_20' ) end [2025-03-04 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609207', 'tblTempVendorCDR_20' ) start [2025-03-04 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609207', 'tblTempVendorCDR_20' ) end [2025-03-04 23:37:17] Production.INFO: ProcessCDR(1,14609207,1,1,2) [2025-03-04 23:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609207', 'tblTempUsageDetail_20' ) start [2025-03-04 23:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609207', 'tblTempUsageDetail_20' ) end [2025-03-04 23:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:37:20] Production.INFO: ==1041== Releasing lock... [2025-03-04 23:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:37:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-04 23:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:38:06 [end_date_ymd] => 2025-03-04 23:38:06 [RateCDR] => 1 ) [2025-03-04 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-04 20:38:06' and `end` < '2025-03-04 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-04 23:38:18] Production.INFO: count ==831 [2025-03-04 23:38:18] Production.ERROR: pbx CDR StartTime 2025-03-04 20:38:06 - End Time 2025-03-04 23:38:06 [2025-03-04 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609212', 'tblTempUsageDetail_20' ) start [2025-03-04 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609212', 'tblTempUsageDetail_20' ) end [2025-03-04 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609212', 'tblTempVendorCDR_20' ) start [2025-03-04 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609212', 'tblTempVendorCDR_20' ) end [2025-03-04 23:38:18] Production.INFO: ProcessCDR(1,14609212,1,1,2) [2025-03-04 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609212', 'tblTempUsageDetail_20' ) start [2025-03-04 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609212', 'tblTempUsageDetail_20' ) end [2025-03-04 23:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:38:21] Production.INFO: ==1124== Releasing lock... [2025-03-04 23:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:38:21] Production.INFO: 34 MB #Memory Used# [2025-03-04 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:39:05 [end_date_ymd] => 2025-03-04 23:39:05 [RateCDR] => 1 ) [2025-03-04 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-04 20:39:05' and `end` < '2025-03-04 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-04 23:39:17] Production.INFO: count ==823 [2025-03-04 23:39:18] Production.ERROR: pbx CDR StartTime 2025-03-04 20:39:05 - End Time 2025-03-04 23:39:05 [2025-03-04 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609217', 'tblTempUsageDetail_20' ) start [2025-03-04 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609217', 'tblTempUsageDetail_20' ) end [2025-03-04 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609217', 'tblTempVendorCDR_20' ) start [2025-03-04 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609217', 'tblTempVendorCDR_20' ) end [2025-03-04 23:39:18] Production.INFO: ProcessCDR(1,14609217,1,1,2) [2025-03-04 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609217', 'tblTempUsageDetail_20' ) start [2025-03-04 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609217', 'tblTempUsageDetail_20' ) end [2025-03-04 23:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:39:21] Production.INFO: ==1208== Releasing lock... [2025-03-04 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:39:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-04 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:40:06 [end_date_ymd] => 2025-03-04 23:40:06 [RateCDR] => 1 ) [2025-03-04 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-04 20:40:06' and `end` < '2025-03-04 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-04 23:40:18] Production.INFO: count ==821 [2025-03-04 23:40:18] Production.ERROR: pbx CDR StartTime 2025-03-04 20:40:06 - End Time 2025-03-04 23:40:06 [2025-03-04 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609223', 'tblTempUsageDetail_20' ) start [2025-03-04 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609223', 'tblTempUsageDetail_20' ) end [2025-03-04 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609223', 'tblTempVendorCDR_20' ) start [2025-03-04 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609223', 'tblTempVendorCDR_20' ) end [2025-03-04 23:40:18] Production.INFO: ProcessCDR(1,14609223,1,1,2) [2025-03-04 23:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609223', 'tblTempUsageDetail_20' ) start [2025-03-04 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609223', 'tblTempUsageDetail_20' ) end [2025-03-04 23:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:40:21] Production.INFO: ==1300== Releasing lock... [2025-03-04 23:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:40:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-04 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:41:05 [end_date_ymd] => 2025-03-04 23:41:05 [RateCDR] => 1 ) [2025-03-04 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-04 20:41:05' and `end` < '2025-03-04 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-04 23:41:17] Production.INFO: count ==818 [2025-03-04 23:41:17] Production.ERROR: pbx CDR StartTime 2025-03-04 20:41:05 - End Time 2025-03-04 23:41:05 [2025-03-04 23:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609228', 'tblTempUsageDetail_20' ) start [2025-03-04 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609228', 'tblTempUsageDetail_20' ) end [2025-03-04 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609228', 'tblTempVendorCDR_20' ) start [2025-03-04 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609228', 'tblTempVendorCDR_20' ) end [2025-03-04 23:41:17] Production.INFO: ProcessCDR(1,14609228,1,1,2) [2025-03-04 23:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609228', 'tblTempUsageDetail_20' ) start [2025-03-04 23:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609228', 'tblTempUsageDetail_20' ) end [2025-03-04 23:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:41:20] Production.INFO: ==1378== Releasing lock... [2025-03-04 23:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:41:20] Production.INFO: 33.5 MB #Memory Used# [2025-03-04 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:42:05 [end_date_ymd] => 2025-03-04 23:42:05 [RateCDR] => 1 ) [2025-03-04 23:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 20:42:05' and `end` < '2025-03-04 23:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 23:42:17] Production.INFO: count ==821 [2025-03-04 23:42:18] Production.ERROR: pbx CDR StartTime 2025-03-04 20:42:05 - End Time 2025-03-04 23:42:05 [2025-03-04 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609233', 'tblTempUsageDetail_20' ) start [2025-03-04 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609233', 'tblTempUsageDetail_20' ) end [2025-03-04 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609233', 'tblTempVendorCDR_20' ) start [2025-03-04 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609233', 'tblTempVendorCDR_20' ) end [2025-03-04 23:42:18] Production.INFO: ProcessCDR(1,14609233,1,1,2) [2025-03-04 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609233', 'tblTempUsageDetail_20' ) start [2025-03-04 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609233', 'tblTempUsageDetail_20' ) end [2025-03-04 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:42:22] Production.INFO: ==1453== Releasing lock... [2025-03-04 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:42:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-04 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:43:05 [end_date_ymd] => 2025-03-04 23:43:05 [RateCDR] => 1 ) [2025-03-04 23:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 20:43:05' and `end` < '2025-03-04 23:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 23:43:17] Production.INFO: count ==818 [2025-03-04 23:43:17] Production.ERROR: pbx CDR StartTime 2025-03-04 20:43:05 - End Time 2025-03-04 23:43:05 [2025-03-04 23:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609238', 'tblTempUsageDetail_20' ) start [2025-03-04 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609238', 'tblTempUsageDetail_20' ) end [2025-03-04 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609238', 'tblTempVendorCDR_20' ) start [2025-03-04 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609238', 'tblTempVendorCDR_20' ) end [2025-03-04 23:43:17] Production.INFO: ProcessCDR(1,14609238,1,1,2) [2025-03-04 23:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609238', 'tblTempUsageDetail_20' ) start [2025-03-04 23:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609238', 'tblTempUsageDetail_20' ) end [2025-03-04 23:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:43:20] Production.INFO: ==1565== Releasing lock... [2025-03-04 23:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:43:20] Production.INFO: 33.5 MB #Memory Used# [2025-03-04 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:44:05 [end_date_ymd] => 2025-03-04 23:44:05 [RateCDR] => 1 ) [2025-03-04 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-04 20:44:05' and `end` < '2025-03-04 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-04 23:44:17] Production.INFO: count ==812 [2025-03-04 23:44:17] Production.ERROR: pbx CDR StartTime 2025-03-04 20:44:05 - End Time 2025-03-04 23:44:05 [2025-03-04 23:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609243', 'tblTempUsageDetail_20' ) start [2025-03-04 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609243', 'tblTempUsageDetail_20' ) end [2025-03-04 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609243', 'tblTempVendorCDR_20' ) start [2025-03-04 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609243', 'tblTempVendorCDR_20' ) end [2025-03-04 23:44:17] Production.INFO: ProcessCDR(1,14609243,1,1,2) [2025-03-04 23:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609243', 'tblTempUsageDetail_20' ) start [2025-03-04 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609243', 'tblTempUsageDetail_20' ) end [2025-03-04 23:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:44:22] Production.INFO: ==1646== Releasing lock... [2025-03-04 23:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:44:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-04 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:45:05 [end_date_ymd] => 2025-03-04 23:45:05 [RateCDR] => 1 ) [2025-03-04 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-04 20:45:05' and `end` < '2025-03-04 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-04 23:45:18] Production.INFO: count ==810 [2025-03-04 23:45:18] Production.ERROR: pbx CDR StartTime 2025-03-04 20:45:05 - End Time 2025-03-04 23:45:05 [2025-03-04 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609248', 'tblTempUsageDetail_20' ) start [2025-03-04 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609248', 'tblTempUsageDetail_20' ) end [2025-03-04 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609248', 'tblTempVendorCDR_20' ) start [2025-03-04 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609248', 'tblTempVendorCDR_20' ) end [2025-03-04 23:45:18] Production.INFO: ProcessCDR(1,14609248,1,1,2) [2025-03-04 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609248', 'tblTempUsageDetail_20' ) start [2025-03-04 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609248', 'tblTempUsageDetail_20' ) end [2025-03-04 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:45:21] Production.INFO: ==1727== Releasing lock... [2025-03-04 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:45:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-04 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:46:05 [end_date_ymd] => 2025-03-04 23:46:05 [RateCDR] => 1 ) [2025-03-04 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-04 20:46:05' and `end` < '2025-03-04 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-04 23:46:17] Production.INFO: count ==809 [2025-03-04 23:46:17] Production.ERROR: pbx CDR StartTime 2025-03-04 20:46:05 - End Time 2025-03-04 23:46:05 [2025-03-04 23:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609253', 'tblTempUsageDetail_20' ) start [2025-03-04 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609253', 'tblTempUsageDetail_20' ) end [2025-03-04 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609253', 'tblTempVendorCDR_20' ) start [2025-03-04 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609253', 'tblTempVendorCDR_20' ) end [2025-03-04 23:46:17] Production.INFO: ProcessCDR(1,14609253,1,1,2) [2025-03-04 23:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609253', 'tblTempUsageDetail_20' ) start [2025-03-04 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609253', 'tblTempUsageDetail_20' ) end [2025-03-04 23:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:46:20] Production.INFO: ==1846== Releasing lock... [2025-03-04 23:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:46:20] Production.INFO: 34 MB #Memory Used# [2025-03-04 23:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:47:06 [end_date_ymd] => 2025-03-04 23:47:06 [RateCDR] => 1 ) [2025-03-04 23: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-04 20:47:06' and `end` < '2025-03-04 23: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-04 23:47:18] Production.INFO: count ==810 [2025-03-04 23:47:18] Production.ERROR: pbx CDR StartTime 2025-03-04 20:47:06 - End Time 2025-03-04 23:47:06 [2025-03-04 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609258', 'tblTempUsageDetail_20' ) start [2025-03-04 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609258', 'tblTempUsageDetail_20' ) end [2025-03-04 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609258', 'tblTempVendorCDR_20' ) start [2025-03-04 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609258', 'tblTempVendorCDR_20' ) end [2025-03-04 23:47:18] Production.INFO: ProcessCDR(1,14609258,1,1,2) [2025-03-04 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609258', 'tblTempUsageDetail_20' ) start [2025-03-04 23:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609258', 'tblTempUsageDetail_20' ) end [2025-03-04 23:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:47:23] Production.INFO: ==1923== Releasing lock... [2025-03-04 23:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:47:23] Production.INFO: 34 MB #Memory Used# [2025-03-04 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:48:05 [end_date_ymd] => 2025-03-04 23:48:05 [RateCDR] => 1 ) [2025-03-04 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-04 20:48:05' and `end` < '2025-03-04 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-04 23:48:17] Production.INFO: count ==809 [2025-03-04 23:48:17] Production.ERROR: pbx CDR StartTime 2025-03-04 20:48:05 - End Time 2025-03-04 23:48:05 [2025-03-04 23:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609263', 'tblTempUsageDetail_20' ) start [2025-03-04 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609263', 'tblTempUsageDetail_20' ) end [2025-03-04 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609263', 'tblTempVendorCDR_20' ) start [2025-03-04 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609263', 'tblTempVendorCDR_20' ) end [2025-03-04 23:48:17] Production.INFO: ProcessCDR(1,14609263,1,1,2) [2025-03-04 23:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609263', 'tblTempUsageDetail_20' ) start [2025-03-04 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609263', 'tblTempUsageDetail_20' ) end [2025-03-04 23:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:48:21] Production.INFO: ==2000== Releasing lock... [2025-03-04 23:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:48:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-04 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:49:05 [end_date_ymd] => 2025-03-04 23:49:05 [RateCDR] => 1 ) [2025-03-04 23:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 20:49:05' and `end` < '2025-03-04 23:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 23:49:17] Production.INFO: count ==809 [2025-03-04 23:49:18] Production.ERROR: pbx CDR StartTime 2025-03-04 20:49:05 - End Time 2025-03-04 23:49:05 [2025-03-04 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609268', 'tblTempUsageDetail_20' ) start [2025-03-04 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609268', 'tblTempUsageDetail_20' ) end [2025-03-04 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609268', 'tblTempVendorCDR_20' ) start [2025-03-04 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609268', 'tblTempVendorCDR_20' ) end [2025-03-04 23:49:18] Production.INFO: ProcessCDR(1,14609268,1,1,2) [2025-03-04 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609268', 'tblTempUsageDetail_20' ) start [2025-03-04 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609268', 'tblTempUsageDetail_20' ) end [2025-03-04 23:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:49:21] Production.INFO: ==2077== Releasing lock... [2025-03-04 23:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:49:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-04 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:50:05 [end_date_ymd] => 2025-03-04 23:50:05 [RateCDR] => 1 ) [2025-03-04 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-04 20:50:05' and `end` < '2025-03-04 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-04 23:50:17] Production.INFO: count ==807 [2025-03-04 23:50:17] Production.ERROR: pbx CDR StartTime 2025-03-04 20:50:05 - End Time 2025-03-04 23:50:05 [2025-03-04 23:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609274', 'tblTempUsageDetail_20' ) start [2025-03-04 23:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609274', 'tblTempUsageDetail_20' ) end [2025-03-04 23:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609274', 'tblTempVendorCDR_20' ) start [2025-03-04 23:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609274', 'tblTempVendorCDR_20' ) end [2025-03-04 23:50:17] Production.INFO: ProcessCDR(1,14609274,1,1,2) [2025-03-04 23:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609274', 'tblTempUsageDetail_20' ) start [2025-03-04 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609274', 'tblTempUsageDetail_20' ) end [2025-03-04 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:50:22] Production.INFO: ==2155== Releasing lock... [2025-03-04 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:50:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-04 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:51:05 [end_date_ymd] => 2025-03-04 23:51:05 [RateCDR] => 1 ) [2025-03-04 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-04 20:51:05' and `end` < '2025-03-04 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-04 23:51:17] Production.INFO: count ==813 [2025-03-04 23:51:17] Production.ERROR: pbx CDR StartTime 2025-03-04 20:51:05 - End Time 2025-03-04 23:51:05 [2025-03-04 23:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609279', 'tblTempUsageDetail_20' ) start [2025-03-04 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609279', 'tblTempUsageDetail_20' ) end [2025-03-04 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609279', 'tblTempVendorCDR_20' ) start [2025-03-04 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609279', 'tblTempVendorCDR_20' ) end [2025-03-04 23:51:17] Production.INFO: ProcessCDR(1,14609279,1,1,2) [2025-03-04 23:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609279', 'tblTempUsageDetail_20' ) start [2025-03-04 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609279', 'tblTempUsageDetail_20' ) end [2025-03-04 23:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:51:22] Production.INFO: ==2242== Releasing lock... [2025-03-04 23:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:51:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-04 23:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:52:06 [end_date_ymd] => 2025-03-04 23:52:06 [RateCDR] => 1 ) [2025-03-04 23: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 20:52:06' and `end` < '2025-03-04 23: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-04 23:52:18] Production.INFO: count ==802 [2025-03-04 23:52:18] Production.ERROR: pbx CDR StartTime 2025-03-04 20:52:06 - End Time 2025-03-04 23:52:06 [2025-03-04 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609284', 'tblTempUsageDetail_20' ) start [2025-03-04 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609284', 'tblTempUsageDetail_20' ) end [2025-03-04 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609284', 'tblTempVendorCDR_20' ) start [2025-03-04 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609284', 'tblTempVendorCDR_20' ) end [2025-03-04 23:52:18] Production.INFO: ProcessCDR(1,14609284,1,1,2) [2025-03-04 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609284', 'tblTempUsageDetail_20' ) start [2025-03-04 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609284', 'tblTempUsageDetail_20' ) end [2025-03-04 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:52:21] Production.INFO: ==2320== Releasing lock... [2025-03-04 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:52:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-04 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:53:05 [end_date_ymd] => 2025-03-04 23:53:05 [RateCDR] => 1 ) [2025-03-04 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-04 20:53:05' and `end` < '2025-03-04 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-04 23:53:17] Production.INFO: count ==796 [2025-03-04 23:53:17] Production.ERROR: pbx CDR StartTime 2025-03-04 20:53:05 - End Time 2025-03-04 23:53:05 [2025-03-04 23:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609289', 'tblTempUsageDetail_20' ) start [2025-03-04 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609289', 'tblTempUsageDetail_20' ) end [2025-03-04 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609289', 'tblTempVendorCDR_20' ) start [2025-03-04 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609289', 'tblTempVendorCDR_20' ) end [2025-03-04 23:53:17] Production.INFO: ProcessCDR(1,14609289,1,1,2) [2025-03-04 23:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609289', 'tblTempUsageDetail_20' ) start [2025-03-04 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609289', 'tblTempUsageDetail_20' ) end [2025-03-04 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:53:21] Production.INFO: ==2397== Releasing lock... [2025-03-04 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:53:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-04 23:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:54:06 [end_date_ymd] => 2025-03-04 23:54:06 [RateCDR] => 1 ) [2025-03-04 23: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 20:54:06' and `end` < '2025-03-04 23: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-04 23:54:18] Production.INFO: count ==794 [2025-03-04 23:54:18] Production.ERROR: pbx CDR StartTime 2025-03-04 20:54:06 - End Time 2025-03-04 23:54:06 [2025-03-04 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609294', 'tblTempUsageDetail_20' ) start [2025-03-04 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609294', 'tblTempUsageDetail_20' ) end [2025-03-04 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609294', 'tblTempVendorCDR_20' ) start [2025-03-04 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609294', 'tblTempVendorCDR_20' ) end [2025-03-04 23:54:18] Production.INFO: ProcessCDR(1,14609294,1,1,2) [2025-03-04 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609294', 'tblTempUsageDetail_20' ) start [2025-03-04 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609294', 'tblTempUsageDetail_20' ) end [2025-03-04 23:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:54:21] Production.INFO: ==2472== Releasing lock... [2025-03-04 23:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:54:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-04 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:55:05 [end_date_ymd] => 2025-03-04 23:55:05 [RateCDR] => 1 ) [2025-03-04 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-04 20:55:05' and `end` < '2025-03-04 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-04 23:55:17] Production.INFO: count ==793 [2025-03-04 23:55:17] Production.ERROR: pbx CDR StartTime 2025-03-04 20:55:05 - End Time 2025-03-04 23:55:05 [2025-03-04 23:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609299', 'tblTempUsageDetail_20' ) start [2025-03-04 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609299', 'tblTempUsageDetail_20' ) end [2025-03-04 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609299', 'tblTempVendorCDR_20' ) start [2025-03-04 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609299', 'tblTempVendorCDR_20' ) end [2025-03-04 23:55:17] Production.INFO: ProcessCDR(1,14609299,1,1,2) [2025-03-04 23:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609299', 'tblTempUsageDetail_20' ) start [2025-03-04 23:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609299', 'tblTempUsageDetail_20' ) end [2025-03-04 23:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:55:20] Production.INFO: ==2547== Releasing lock... [2025-03-04 23:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:55:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-04 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:56:05 [end_date_ymd] => 2025-03-04 23:56:05 [RateCDR] => 1 ) [2025-03-04 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-04 20:56:05' and `end` < '2025-03-04 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-04 23:56:17] Production.INFO: count ==793 [2025-03-04 23:56:17] Production.ERROR: pbx CDR StartTime 2025-03-04 20:56:05 - End Time 2025-03-04 23:56:05 [2025-03-04 23:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609304', 'tblTempUsageDetail_20' ) start [2025-03-04 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609304', 'tblTempUsageDetail_20' ) end [2025-03-04 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609304', 'tblTempVendorCDR_20' ) start [2025-03-04 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609304', 'tblTempVendorCDR_20' ) end [2025-03-04 23:56:17] Production.INFO: ProcessCDR(1,14609304,1,1,2) [2025-03-04 23:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609304', 'tblTempUsageDetail_20' ) start [2025-03-04 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609304', 'tblTempUsageDetail_20' ) end [2025-03-04 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:56:22] Production.INFO: ==2628== Releasing lock... [2025-03-04 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:56:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-04 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:57:05 [end_date_ymd] => 2025-03-04 23:57:05 [RateCDR] => 1 ) [2025-03-04 23:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 20:57:05' and `end` < '2025-03-04 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-04 23:57:17] Production.INFO: count ==795 [2025-03-04 23:57:17] Production.ERROR: pbx CDR StartTime 2025-03-04 20:57:05 - End Time 2025-03-04 23:57:05 [2025-03-04 23:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609309', 'tblTempUsageDetail_20' ) start [2025-03-04 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609309', 'tblTempUsageDetail_20' ) end [2025-03-04 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609309', 'tblTempVendorCDR_20' ) start [2025-03-04 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609309', 'tblTempVendorCDR_20' ) end [2025-03-04 23:57:17] Production.INFO: ProcessCDR(1,14609309,1,1,2) [2025-03-04 23:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609309', 'tblTempUsageDetail_20' ) start [2025-03-04 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609309', 'tblTempUsageDetail_20' ) end [2025-03-04 23:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:57:22] Production.INFO: ==2701== Releasing lock... [2025-03-04 23:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:57:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-04 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:58:05 [end_date_ymd] => 2025-03-04 23:58:05 [RateCDR] => 1 ) [2025-03-04 23:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-04 20:58:05' and `end` < '2025-03-04 23:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-04 23:58:17] Production.INFO: count ==795 [2025-03-04 23:58:17] Production.ERROR: pbx CDR StartTime 2025-03-04 20:58:05 - End Time 2025-03-04 23:58:05 [2025-03-04 23:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609314', 'tblTempUsageDetail_20' ) start [2025-03-04 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609314', 'tblTempUsageDetail_20' ) end [2025-03-04 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609314', 'tblTempVendorCDR_20' ) start [2025-03-04 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609314', 'tblTempVendorCDR_20' ) end [2025-03-04 23:58:17] Production.INFO: ProcessCDR(1,14609314,1,1,2) [2025-03-04 23:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609314', 'tblTempUsageDetail_20' ) start [2025-03-04 23:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609314', 'tblTempUsageDetail_20' ) end [2025-03-04 23:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:58:20] Production.INFO: ==2780== Releasing lock... [2025-03-04 23:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:58:20] Production.INFO: 33.5 MB #Memory Used# [2025-03-04 23:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-04 20:59:04 [end_date_ymd] => 2025-03-04 23:59:04 [RateCDR] => 1 ) [2025-03-04 23: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-04 20:59:04' and `end` < '2025-03-04 23: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-04 23:59:16] Production.INFO: count ==787 [2025-03-04 23:59:17] Production.ERROR: pbx CDR StartTime 2025-03-04 20:59:04 - End Time 2025-03-04 23:59:04 [2025-03-04 23:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-04 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609319', 'tblTempUsageDetail_20' ) start [2025-03-04 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14609319', 'tblTempUsageDetail_20' ) end [2025-03-04 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609319', 'tblTempVendorCDR_20' ) start [2025-03-04 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14609319', 'tblTempVendorCDR_20' ) end [2025-03-04 23:59:17] Production.INFO: ProcessCDR(1,14609319,1,1,2) [2025-03-04 23:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14609319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14609319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-04 23:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14609319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:59:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14609319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-04 23:59:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609319', 'tblTempUsageDetail_20' ) start [2025-03-04 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14609319', 'tblTempUsageDetail_20' ) end [2025-03-04 23:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-04 23:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-04 23:59:20] Production.INFO: ==2856== Releasing lock... [2025-03-04 23:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-04 23:59:20] Production.INFO: 33.25 MB #Memory Used#